1230 Commits

Author SHA1 Message Date
timlinux
83b19d218b addRasterLayer to plugin interface
git-svn-id: http://svn.osgeo.org/qgis/trunk@1579 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 00:10:28 +00:00
timlinux
3199508db1 Added addRasterLayer(QgsRasterLayer *) to the plugin interface. This allows plugins to construct their own raster object, set its symbolisation and the pass it over to the app to be loaded into the canvas.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1578 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-14 00:08:46 +00:00
timlinux
0daeaf15f5 Removal of some genericly useable raster methods into qgsrasterlayer
git-svn-id: http://svn.osgeo.org/qgis/trunk@1577 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 22:04:47 +00:00
timlinux
72089002c9 Removed gdal deps in qgisapp.
Moved raster load stuff to a group at the end of qgisapp.cpp file.

Removed generically useable raster fns from qgisapp to static methods of qgsrasterlayer.

Some renaming of variable names etc.

Added addRaster(QgsRasterLayer *) private method to qgisapp - which is intended for use via plugins that want to load  'ready made' / symbolised raster layer into the mapCanvas.


git-svn-id: http://svn.osgeo.org/qgis/trunk@1576 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 22:01:40 +00:00
timlinux
0629fbc080 I commited this by mistake earlier - this just cleans up a little, but the 'Where clause' box doesnt do anything yet.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1575 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 17:45:39 +00:00
timlinux
ed5711fccb Legen Item font updates.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1574 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 17:25:58 +00:00
timlinux
0283222f6a Change legend item fonts to arial 10pt for consistancy with rest of gui and to make font size more reasonable for Winders Users.
In the next release I will softcode global font selection in qgsoptions, but I dont have time to do that right now.


git-svn-id: http://svn.osgeo.org/qgis/trunk@1573 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 17:17:14 +00:00
timlinux
e5e74b9f02 Add version name to splash
git-svn-id: http://svn.osgeo.org/qgis/trunk@1572 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 15:52:10 +00:00
timlinux
ba246340f5 Added version name to splash.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1571 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 15:50:37 +00:00
timlinux
4310f95bd0 Capture Point changes.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1570 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 15:02:32 +00:00
timlinux
07dd6b6ee6 Implemented a new map cursor type : Capture Point (little pencil icon on your toolbar). At the moment clicking on the map in capture point mode will cause QgsMapCanvas to emit an xyClickCoordinate(QgsPoint) signal which is picked up by qgisapp and the coordinates are placed into the system clipboard.
In release 0.5 this will be extended to provide simple point vector file data capture / digitising facility. This will be implemented by means of a plugin which will utilise the aforementioned xyClickCoordinate(QgsPoint) signal.


git-svn-id: http://svn.osgeo.org/qgis/trunk@1569 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 14:59:21 +00:00
timlinux
dcc8d58298 Added signal and mouse mode for capturing points.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1568 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 02:19:43 +00:00
timlinux
d2b641e2c7 Added digitising point icon.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1567 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-13 02:18:24 +00:00
larsl
91bfc3fcf1 Make 'no data' handling consistent in the GPX provider and remove isnan() since it breaks Windows builds
git-svn-id: http://svn.osgeo.org/qgis/trunk@1566 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 22:02:12 +00:00
gsherman
a6a2f975d6 Added ifdef's for OSX compilation (per J.Collord)
git-svn-id: http://svn.osgeo.org/qgis/trunk@1565 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 19:54:43 +00:00
gsherman
5366915385 Info about Windows version information and bumped extra version
git-svn-id: http://svn.osgeo.org/qgis/trunk@1564 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 19:24:28 +00:00
gsherman
aa04b4759e Massive changes to provide Windows support. This is a work in progress but
has been tested and it compiles under unix. Future changes to the code must
be aware of multiplatform issues.


git-svn-id: http://svn.osgeo.org/qgis/trunk@1563 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 18:27:11 +00:00
gsherman
0731c653f3 Fixed interect function to get rid of >? operator (windows doesn't like
it)


git-svn-id: http://svn.osgeo.org/qgis/trunk@1562 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 18:05:03 +00:00
gsherman
5133e9e8b7 Added WIN32 support -- Edit with caution -- we now are supporting multiple
platforms from one code base!


git-svn-id: http://svn.osgeo.org/qgis/trunk@1561 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-12 17:26:47 +00:00
timlinux
5e8447a5c5 Minor bugfix for some dodgy looking ternary operators.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1560 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 22:53:14 +00:00
timlinux
d0dc16e8c5 Fix canvas zorder syncing problems between overview and mapcanvas.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1559 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 17:09:46 +00:00
sbr00pwb
b52c7eed86 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@1558 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 15:22:19 +00:00
gsherman
fcc6380014 Added QgsMapLayerRegistry to libqgis sources
git-svn-id: http://svn.osgeo.org/qgis/trunk@1557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 14:47:19 +00:00
larsl
9b01ff1547 ** Let the user choose GPS protocol and feature type to download
git-svn-id: http://svn.osgeo.org/qgis/trunk@1556 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 13:30:27 +00:00
gsherman
caeb76e04d **Current extent support added to overview map
**Added acetate objects and support to QgsMapCanvas


git-svn-id: http://svn.osgeo.org/qgis/trunk@1555 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-11 01:04:08 +00:00
timlinux
3fb49d8efd 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@1554 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 23:10:16 +00:00
sbr00pwb
077dcef119 Fixed scaling issues for scale bar plugin and implemented colour selection
git-svn-id: http://svn.osgeo.org/qgis/trunk@1553 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:41:40 +00:00
sbr00pwb
57326b2603 SPIT gui's tidied to conform with the format of the other plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@1552 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:39:56 +00:00
sbr00pwb
1375103d0b *** empty log message ***
git-svn-id: http://svn.osgeo.org/qgis/trunk@1551 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-10 15:38:53 +00:00
timlinux
13678848bb Bugfix for transparency wierdness in raster.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1550 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 22:23:57 +00:00
mcoletti
e7232480f5 fixed version numbers
git-svn-id: http://svn.osgeo.org/qgis/trunk@1549 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:36:33 +00:00
mcoletti
5b5c0028d3 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@1548 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 21:32:53 +00:00
sbr00pwb
f6a539419d First commit of the scale bar plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@1547 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 16:03:02 +00:00
sbr00pwb
4cfd891f3e First commit of scale bar plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@1546 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:59:42 +00:00
timlinux
f110f652f7 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@1545 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:02:33 +00:00
timlinux
dcff68f782 Added accessor to maplayer to retrieve overview status (for use by projectio).
git-svn-id: http://svn.osgeo.org/qgis/trunk@1544 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 15:01:49 +00:00
timlinux
597751ea24 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@1543 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 12:48:21 +00:00
timlinux
a5147b9d0d 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@1542 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 10:46:12 +00:00
timlinux
d3e5e2456c Fixed empty .dbf crashing bug. Added transparency slider t raster popup menu.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1541 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 08:19:42 +00:00
timlinux
64659f52e2 Added showInOverview stub
git-svn-id: http://svn.osgeo.org/qgis/trunk@1540 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-09 08:14:49 +00:00
timlinux
507f1b2132 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@1539 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 23:39:20 +00:00
larsl
a7d36ce73d ** Hid the "GPS download file importer" tab
git-svn-id: http://svn.osgeo.org/qgis/trunk@1538 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 22:18:16 +00:00
larsl
449c0f0555 ** 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@1537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 20:39:45 +00:00
larsl
d0a02efe19 ** 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@1536 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 14:16:35 +00:00
jobi
3144fa49c2 ** 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@1535 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 13:28:35 +00:00
gsherman
16306a0d26 Updated for changes @ devel17
git-svn-id: http://svn.osgeo.org/qgis/trunk@1534 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 04:08:48 +00:00
gsherman
35ed8c46c9 Added option to set the number of features retreived before the map canvas
is updated


git-svn-id: http://svn.osgeo.org/qgis/trunk@1533 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-08 03:21:15 +00:00
larsl
1cf87b6a0a ** 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@1532 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 16:45:03 +00:00
timlinux
ef89cc538a Minor bugfix to clear overview when new project is started.
git-svn-id: http://svn.osgeo.org/qgis/trunk@1531 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 09:52:51 +00:00
timlinux
e466391d9c 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@1530 c8812cc2-4d05-0410-92ff-de0c093fc19c
2004-06-07 08:43:53 +00:00