821 Commits

Author SHA1 Message Date
timlinux
ff7ec71bd2 This is the initial commit for the qgis plugin template. The template consists of:
class Plugin (a subclass of QgisPlugin)
class PluginGuiBase (supplied as a simple qdialog ui)
class PluginGui (the subclass of PluginGuiBase)

The only thing the user would need to change in the makefile is the name of the .so
so you just copy the plugin template dir to a new dir under plugins, change the .so name in the makefile add the plugin dir the configure.in and the plugin dir makefile.

I will be adding a bash script file soon that automates the above process. This template development is in progress.


git-svn-id: http://svn.osgeo.org/qgis/trunk@881 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 22:28:45 +00:00
gsherman
511274d7fa changes to support project loading from command line, plus fix that prevented ogr layers from loading at all from command line
git-svn-id: http://svn.osgeo.org/qgis/trunk@880 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 20:54:26 +00:00
gsherman
7ca45080b6 added iostream include
git-svn-id: http://svn.osgeo.org/qgis/trunk@879 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 07:02:43 +00:00
mcoletti
ba833cdfbb - fixed command line raster layer bug
main.cpp :

 - greatly simplified main()

 - now will try to load a command line argument first as raster, then
   vector; if it succeeds at the first, it won't try the second

qgisapp.{h,cpp} :

 - added addLayer(QFileInfo const &) [0]

 - added addRasterLayer(QFileInfo const &) [0]

 - do a little better checking for null pointers and freeing up
   resources when an error occurs

Notes:

Also, multiple rasters and vectors should be able to be specified on
the command line without problems.

[0] These will return true if successfully loaded the given file,
otherwise false.


git-svn-id: http://svn.osgeo.org/qgis/trunk@878 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 06:27:11 +00:00
gsherman
e37224d201 removed fix for bug 882424 since it clobbers raster display. Will fix post-0.1 release
git-svn-id: http://svn.osgeo.org/qgis/trunk@877 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 03:26:04 +00:00
gsherman
fb10f49539 fixed some memory leaks -- many more left to find
git-svn-id: http://svn.osgeo.org/qgis/trunk@876 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-21 03:01:39 +00:00
gsherman
02bb2837ad Fixed Partial map displayed after window resize bug [882424 ]
git-svn-id: http://svn.osgeo.org/qgis/trunk@875 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 20:53:26 +00:00
stevehalasz
611a3a5672 fix for appropriately enabling/disabling vector specific toolbar buttons
(bug #900676)


git-svn-id: http://svn.osgeo.org/qgis/trunk@874 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 18:44:47 +00:00
gsherman
f5337a7d69 changed #ifdef DEBUG to #ifdef QGISDEBUG to fix rh/fedora problem
git-svn-id: http://svn.osgeo.org/qgis/trunk@873 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 17:17:36 +00:00
gsherman
79ee83d007 added line to strip the qgis binary after make
git-svn-id: http://svn.osgeo.org/qgis/trunk@872 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 17:13:30 +00:00
gsherman
a0cb1da653 changed debug define from DEBUG to QGISDEBUG
git-svn-id: http://svn.osgeo.org/qgis/trunk@871 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 17:10:57 +00:00
gsherman
441b473645 added debug message to destructor
git-svn-id: http://svn.osgeo.org/qgis/trunk@870 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 05:13:29 +00:00
gsherman
8e2f8eec60 Plugged a few memory leaks
git-svn-id: http://svn.osgeo.org/qgis/trunk@869 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 05:12:38 +00:00
gsherman
d37964d411 Bumped version to 0.1pre2
git-svn-id: http://svn.osgeo.org/qgis/trunk@868 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 02:17:00 +00:00
gsherman
2f27e0382c fixed path to help contents (changed to <prefix>/share/qgis/doc)
git-svn-id: http://svn.osgeo.org/qgis/trunk@867 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-20 01:53:36 +00:00
stevehalasz
54abcbe001 don't dirty canvas right after rendering. fix for unnesessary repaints (bug #889466)
git-svn-id: http://svn.osgeo.org/qgis/trunk@866 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-19 21:37:49 +00:00
timlinux
b7a9e60a93 Added addRasterLayer to the plugin interface.
git-svn-id: http://svn.osgeo.org/qgis/trunk@865 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-19 16:21:31 +00:00
gsherman
4be3a931e7 Added port to the new connection dialog. Port is used in connecting to PostgreSQL. If port is not specified, the default of 5432 is used.
git-svn-id: http://svn.osgeo.org/qgis/trunk@864 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-19 06:55:25 +00:00
jobi
4fdd09e5fd added spec-file for rpm builds
added makefiles to doc/* paths to get a better overview


git-svn-id: http://svn.osgeo.org/qgis/trunk@863 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-18 18:49:54 +00:00
gsherman
e650e8232f added asPolygon function to return the rectangle as a set of polyogn coordinates
git-svn-id: http://svn.osgeo.org/qgis/trunk@862 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-16 22:44:47 +00:00
gsherman
8023114140 Fixed compile problem under Qt 3.1.2 related to GDAL driver detection code. Qt 3.1.2 does not support the case sensitive argument to QString::startsWith and QString::endsWith. Removed the second argument. This needs to be revisited if case insensitve detection is truly required.
git-svn-id: http://svn.osgeo.org/qgis/trunk@861 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-16 18:21:51 +00:00
gsherman
8ea53c210d Fixed compile problem under Qt 3.1.2 related to GDAL driver detection code. Qt 3.1.2 does not support the case sensitive argument to QString::startsWith and QString::endsWith
git-svn-id: http://svn.osgeo.org/qgis/trunk@860 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-16 15:47:10 +00:00
jobi
5a10886620 - fixed --with-gdal
- it can now be turned off, because you can also work only with postgis
  - spit is only enable if gdal and postgresql are both available
  - error if gdal and postgresql are both not available
  - changed --with_pg to --with_postgresql to make it more clearly
- fixed small bugbaby in Makefile.am


git-svn-id: http://svn.osgeo.org/qgis/trunk@859 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-15 12:23:30 +00:00
mcoletti
73d0a81cbc - fixed bug whereby GDAL drivers with unspecified metadata file
extensions wouldn't show up in open dialog filter list; now these
  drivers show up with the "All (*.*)" category, but only using their
  driver short names to prevent that filter line from getting too long

- compensated for GDAL bug whereby USGS ASCII DEM's use "*.dem" file
  extension, but the GDAL metadata doesn't reflect that; now the file
  filter for the open raster dialog properly displays a filter for
  USGS ASCII DEM instead of putting it into the "catch-all" (*.*) file
  filter  (Reported this GDAL bug, too.)


git-svn-id: http://svn.osgeo.org/qgis/trunk@858 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 22:51:46 +00:00
gsherman
393b335bb9 latest spit changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@857 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 18:01:56 +00:00
jobi
2b4c42d03f Added make release, what creats a tar.gz and a tar.bz2
git-svn-id: http://svn.osgeo.org/qgis/trunk@855 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 17:28:18 +00:00
gsherman
dd54568947 icon for spit
git-svn-id: http://svn.osgeo.org/qgis/trunk@852 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 16:53:04 +00:00
gsherman
cd57a85d56 latest fixes
git-svn-id: http://svn.osgeo.org/qgis/trunk@851 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 16:44:16 +00:00
gsherman
8a86ae4b0e lars fix for crash when trying to buffer a raster
git-svn-id: http://svn.osgeo.org/qgis/trunk@850 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 16:34:36 +00:00
stevehalasz
8baf0de757 fix for multiple repaints when adding multiple rasters (bug #891870)
git-svn-id: http://svn.osgeo.org/qgis/trunk@849 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 15:38:50 +00:00
gsherman
28c8418817 updated changelog for 0.1pre1
git-svn-id: http://svn.osgeo.org/qgis/trunk@842 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 02:12:51 +00:00
gsherman
b445357a66 Update readme for 0.1pre1
git-svn-id: http://svn.osgeo.org/qgis/trunk@841 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-14 02:11:27 +00:00
timlinux
c488b28687 Substituted QT_DEBUG with DEBUG for ifdefs.
git-svn-id: http://svn.osgeo.org/qgis/trunk@836 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 23:21:37 +00:00
gsherman
a4675f56df added debug to the layer name beautification code
git-svn-id: http://svn.osgeo.org/qgis/trunk@834 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 22:49:17 +00:00
mcoletti
5ff54e4af6 Fixed bug whereby some supported raster formats weren't getting
included in the open raster layer file dialog filter list.


git-svn-id: http://svn.osgeo.org/qgis/trunk@833 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 22:32:26 +00:00
mcoletti
d6fe92ad51 TODO #13 completed, with bonus of remembering previous working
directories, too.


git-svn-id: http://svn.osgeo.org/qgis/trunk@832 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 22:15:30 +00:00
mcoletti
a4c578646b - open file dialogs now use previous file filters and working
directories unless, of course, the open file dialogs are invoked for
  the first time for opening a raster or vector layer


git-svn-id: http://svn.osgeo.org/qgis/trunk@831 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 22:13:52 +00:00
timlinux
4cef2669e2 Mark item 23 done (dialog consistency for label names).
git-svn-id: http://svn.osgeo.org/qgis/trunk@830 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 22:08:46 +00:00
stevehalasz
90a938847d include stdlib.h to fix FreeBSD compile problem
git-svn-id: http://svn.osgeo.org/qgis/trunk@829 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 20:25:33 +00:00
gsherman
e7eeb232d8 removed since it is only needed to update translation files and can be generated using the two shell scripts (create_qm_files.sh and update_ts_files.sh)
git-svn-id: http://svn.osgeo.org/qgis/trunk@828 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 20:03:41 +00:00
gsherman
14a66f04d8 added Hoshi's picutre to the wall of shame
git-svn-id: http://svn.osgeo.org/qgis/trunk@827 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 19:35:43 +00:00
hoshi
c03421d903 Quantum GIS Brazilian Portuguese translation file.
git-svn-id: http://svn.osgeo.org/qgis/trunk@826 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 18:51:44 +00:00
gsherman
636e83c302 shell script to create the qm files from the ts files
git-svn-id: http://svn.osgeo.org/qgis/trunk@825 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 17:55:30 +00:00
gsherman
3456a47638 added GEOS detection and warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@824 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 17:51:56 +00:00
gsherman
256ca167fc shell script to create the translation files in the src subdirectory
git-svn-id: http://svn.osgeo.org/qgis/trunk@823 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 17:50:50 +00:00
stevehalasz
36025f3872 adding bug 891870
git-svn-id: http://svn.osgeo.org/qgis/trunk@822 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 16:52:25 +00:00
jobi
484f0c6243 fixed bug that spit is enable although postgresql unavailable
git-svn-id: http://svn.osgeo.org/qgis/trunk@821 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 16:26:06 +00:00
gsherman
16a61be9af Added bug numbers to issues
git-svn-id: http://svn.osgeo.org/qgis/trunk@820 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 16:22:46 +00:00
gsherman
34250c272f Added a couple of items to establish the format for the file
git-svn-id: http://svn.osgeo.org/qgis/trunk@819 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 16:18:45 +00:00
gsherman
b0a188d153 cleaned up mess made by GNU indent
git-svn-id: http://svn.osgeo.org/qgis/trunk@818 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-02-13 08:18:41 +00:00