1211 Commits

Author SHA1 Message Date
sbr00pwb
eadd6bd115 Fixed bug where QGIS attempts to render scale bar when no layers are added causing QGIS to freeze
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1558 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 15:22:19 +00:00
gsherman
c315e89a26 Added QgsMapLayerRegistry to libqgis sources
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 14:47:19 +00:00
larsl
6477f9096c ** Let the user choose GPS protocol and feature type to download
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1556 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 13:30:27 +00:00
gsherman
6bffe44f68 **Current extent support added to overview map
**Added acetate objects and support to QgsMapCanvas


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1555 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 01:04:08 +00:00
timlinux
e8c159c7c8 Modified projectio (serialisation and deserialisation of project files) to use maplayerregistry and not mapcanvas.
Implemented state handling of 'showInOverview' property in project io.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1554 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 23:10:16 +00:00
sbr00pwb
7946f68d59 Fixed scaling issues for scale bar plugin and implemented colour selection
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1553 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:41:40 +00:00
sbr00pwb
61df2f9a1c SPIT gui's tidied to conform with the format of the other plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1552 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:39:56 +00:00
sbr00pwb
bd84dc3c21 *** empty log message ***
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1551 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:38:53 +00:00
timlinux
66698be374 Bugfix for transparency wierdness in raster.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1550 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 22:23:57 +00:00
mcoletti
4d80222c68 fixed version numbers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:36:33 +00:00
mcoletti
9e6ebe4222 Added support for a feature type name in QgsFeature. The GDAL/OGR shape file
provider now also provides the feature type name.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1548 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:32:53 +00:00
sbr00pwb
f7ed3d787b First commit of the scale bar plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 16:03:02 +00:00
sbr00pwb
88b00506fd First commit of scale bar plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1546 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:59:42 +00:00
timlinux
0085f2f078 State of overview flag for a layer is now saved to disk - still working on state restoration again....
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1545 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:02:33 +00:00
timlinux
f4a6360b5d Added accessor to maplayer to retrieve overview status (for use by projectio).
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1544 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:01:49 +00:00
timlinux
20ff078024 Added "Show in overview" option to vector popup menu.
Removed overview stuff from debug only version of qgisapp.

Did plumbing for enableing disabling layers in overview from popup context menu.

Whoopdeedooo. :-)

All that remains to do now is sort out syncronisation of layer ordering between main map canvas and overview canvas.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1543 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 12:48:21 +00:00
timlinux
e9fa3ea782 fixed bug where pop transp. slider was not syncing when transp changed in raster props dialog.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1542 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 10:46:12 +00:00
timlinux
4d87e98215 Fixed empty .dbf crashing bug. Added transparency slider t raster popup menu.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1541 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 08:19:42 +00:00
timlinux
b76a4c8082 Added showInOverview stub
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1540 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 08:14:49 +00:00
timlinux
78721f4dc1 Fix crash when qgis loads shapefile with empty .dbf
Add transparency slider to raster popup menu.

Adding 'show in overview' mpopup menu option to raster (incomplete).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1539 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 23:39:20 +00:00
larsl
16502ea4ca ** Hid the "GPS download file importer" tab
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1538 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 22:18:16 +00:00
larsl
279b307e86 ** Call GPSBabel using QProcess instead of system(), show a progress bar while
GPSBabel is running, show the messages printed to GPSBabel's stderr if
   something goes wrong


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 20:39:45 +00:00
larsl
6bd4e9036a ** Started adding GPS data download capability. Only tracklogs from Garmin
devices for now, routes and waypoints and Magellan support will come in
   the near future.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1536 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 14:16:35 +00:00
jobi
c3620941ba ** updated ts files
** fixed German translation
** added translation support to external help applications (grid_maker and gpsimporter)


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1535 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 13:28:35 +00:00
gsherman
68bc4557bd Updated for changes @ devel17
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1534 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 04:08:48 +00:00
gsherman
a63ef48c09 Added option to set the number of features retreived before the map canvas
is updated


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1533 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 03:21:15 +00:00
larsl
5e3748caaa ** Changed some calls to QMessageBox::question() to QMessageBox::information()
since Qt 3.1.2 doesn't have question()


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1532 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 16:45:03 +00:00
timlinux
c2a72202d7 Minor bugfix to clear overview when new project is started.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1531 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 09:52:51 +00:00
timlinux
8d87cc16ad Implemented map overview using maplayers rather than snapshots of a raster layer.
Implemented QgsMapLayerRegistry  - s singleton object that keeps track of loaded layers. When a layer is added an entry is made in the registry. When a layer is removed, the registry emits a layerWillBeRemoved signal that is connected to any mapvcanvas, legend etc that may be using the layer. The objects using the layer can then remove any reference they make to the layer - after which the registry deletes the layer object.

This fixes a problem with adding an overview map which caused qgis to crash when a layer was removed because it was trying to delete the same pointer twice.

Added a better implementation of the overview map below map legend.

Refactoring in qgis app - all private members now adhere to qgis naming conventions (prefixed with m).


Import Note *** ONLY THE MAPLAYER REGISTRY SHOULD DELETE LAYERS NOW ***


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1530 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 08:43:53 +00:00
stevehalasz
a58ab02ca3 Correctly disable buttons when a raster is added as the first layer.
The pg buffer plugin button is not disabled. Need to provide a way to let plugins
handle this properly.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1529 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 20:10:43 +00:00
timlinux
3258a6bdb9 Added getPaletteAsPixmap function to raster and display on raster props
dialog. Also added gdaldatatype to raster props metadata dialog.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1526 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 11:04:29 +00:00
timlinux
9f49427d58 Added getPaletteAsPixmap function to raster and display on raster props
dialog. Also added gdaldatatype to raster props metadata dialog.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1525 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 11:04:00 +00:00
jobi
a1e1dba09a ** fixed tims typo with GDAL_LDADD
** cleaned pluginnames


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1523 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 10:23:47 +00:00
timlinux
a1becbbd6c Added getPalletteAsPixmap method to rasterlayer class so that the palette of a paletted raster layer can be retrieved and visualised.
Rearranged 'General' tab on raster props dialog, including adding a
palette view that uses the above mentioned call to rasterlayer class.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1521 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-04 09:53:30 +00:00
gsherman
123d497842 Updated todo list for 0.4
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1520 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 18:36:46 +00:00
jobi
d7af42f63e ** fixed bug #965720 by adding math.h for gcc 3.4 problems
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1519 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 14:05:01 +00:00
timlinux
7abeebbc62 Added $(GDAL_LADD) to makefile to remove dltest GDALTermProgress error.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1518 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-03 13:06:57 +00:00
timlinux
0b1a5e0a9f Minor fix added std:: before endl in setProgress.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1517 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 22:07:18 +00:00
timlinux
bff70c726e MapCanvas changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1516 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 14:05:44 +00:00
timlinux
c59cec4c65 Updated draw method following changes to maplayer.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1515 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:36:45 +00:00
timlinux
389d331bf1 Renamed obscurely named Impl struct to CanvasProperties and private instance of impl_ to mCanvasProperties.
More tweaking on printing stuff though its still not scaling properly except to A4 landscape.

Added private member mScale (double) and accessor so that plugins can access the current scale.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1514 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:25:25 +00:00
timlinux
ef7c3840f0 Removed src parameter in draw(). This is redundant because you can get it by using qpainter->device(); Updated vector accordingly. Update for raster will follow.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1513 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:22:15 +00:00
timlinux
d725311bae Minor changes - added some debug info on filePrint
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1512 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:18:21 +00:00
timlinux
ca3c3c055d Hide dialog before setting props.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1511 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:16:26 +00:00
timlinux
32a594b885 Hide the dialog before updating props.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1510 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-02 13:05:07 +00:00
timlinux
ca8b224e00 Fixed const const error that arose when trying to compile under qt 3.2
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1508 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-01 09:58:17 +00:00
timlinux
d81622471b Fixed incorrect designer version
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1507 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-01 09:44:59 +00:00
timlinux
22f4014504 Switch to using QPaintDeviceMetrics for determining size of paint device.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1506 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-01 08:05:57 +00:00
timlinux
4e96112ffe Switch to useing QPaintDeviceMetrics for determining size of paint device.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1505 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-01 08:05:15 +00:00
gsherman
a85e2db47d Fix for theme preview as the themes are highlighted in the theme
drop-down box


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1504 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-01 01:07:54 +00:00