80 Commits

Author SHA1 Message Date
wonder
4bb5cad2cc Change in handling of missing layers within QgsProject. Instead of throwing an exception, now a custom handler is called
that might try to fix the missing layers. There's a default handler (QgsProjectBadLayerDefaultHandler) which simply ignores
all missing layers. Then there's a GUI handler (QgsProjectBadLayerGuiHandler) in GUI library which asks user about
the path for missing layers. QGIS application automatically installs the GUI handler on startup.

This should allow python plugins/applications to work with QgsProject without a fear of a segfault as there are no more
exceptions thrown during load/save of the project files.

Some further notes:
- removed QgsProjectBadLayerException class and (now empty) qgsexception.cpp file
- openFilesRememberingFilter() moved to QgisGui namespace (was duplicated: QgisApp vs QgsOpenVectorLayerDialog)
- removed deprecated buildVectorFilters_ methods
- added python bindings for new classes/methods


git-svn-id: http://svn.osgeo.org/qgis/trunk@12350 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-07 17:14:41 +00:00
mhugent
f81780d271 Apply patch #1716 (improvements to ZoomLast, ZoomNext tools) from Smizuno
git-svn-id: http://svn.osgeo.org/qgis/trunk@12279 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-28 21:20:16 +00:00
wonder
adb8ab92fd Save style file name inside the style.
Fixed saving of symbols added in symbol selector


git-svn-id: http://svn.osgeo.org/qgis/trunk@12161 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-17 11:23:36 +00:00
wonder
961742e243 Symbology-NG branch merged to trunk. This includes also work on labeling done during my GSoC'09.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12139 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-16 10:36:24 +00:00
jef
a17488239f fix python plugin crashes - changes GUI API
- QgsMapCanvas::xyCoordinates(QgsPoint & p) => xyCoordinates(const QgsPoint & p)
- QgsMapToolEmitPoint::canvasClicked(QgsPoint& point, Qt::MouseButton button) => canvasClicked( const QgsPoint& point, Qt::MouseButton button)
- might be a SIP 4.8 problem



git-svn-id: http://svn.osgeo.org/qgis/trunk@11540 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-02 22:41:43 +00:00
jef
db860f0014 fix r11536
git-svn-id: http://svn.osgeo.org/qgis/trunk@11537 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-09-01 17:41:24 +00:00
wonder
a4ac4f8305 Always use QPixmap when drawing the map in canvas.
This results in faster updates of canvas when rendered map is QImage - e.g. when panning / updating rubber bands.


git-svn-id: http://svn.osgeo.org/qgis/trunk@10926 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-14 21:26:42 +00:00
wonder
43202ab685 Fixed #1706.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10896 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-06-09 23:25:10 +00:00
jef
5cf3395673 fix python binding compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk@10742 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-05-05 21:52:46 +00:00
gsherman
598677b882 Applied patch from ticket #1522 for Zoom Next functionality.
Includes icons for zoom next tool (same icon for all themes).


git-svn-id: http://svn.osgeo.org/qgis/trunk@10588 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-18 00:02:22 +00:00
wonder
62d01abe74 PyQGIS: wrapped QgsMapTip and QgsRunProcess.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10557 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-04-13 12:29:59 +00:00
wonder
f99fc62b03 pyqgis: another piece of code with missing binding :-/
git-svn-id: http://svn.osgeo.org/qgis/trunk@10327 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-03-20 15:51:33 +00:00
wonder
71b1fc7d77 Applied patch from Andrej Krutak - added removeDockWidget() to interface.
git-svn-id: http://svn.osgeo.org/qgis/trunk@10286 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-03-16 14:22:07 +00:00
mhugent
8f02ced2d6 Remove the private members from the composer sip files as they cannot be used from Python anyway
git-svn-id: http://svn.osgeo.org/qgis/trunk@10275 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-03-13 20:46:02 +00:00
mhugent
233cf07bb6 Added /TransferThis/ keywords in the constructor of the composer item classes as suggested by Martin, fixed the possibility of moving the paper item
git-svn-id: http://svn.osgeo.org/qgis/trunk@10248 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-28 14:35:45 +00:00
mhugent
f7fd50ffa4 Python bindings for composer classes
git-svn-id: http://svn.osgeo.org/qgis/trunk@10244 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-27 13:57:26 +00:00
jef
bb61177a46 revert accidental commit
git-svn-id: http://svn.osgeo.org/qgis/trunk@10239 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-25 20:58:19 +00:00
mhugent
0baa9349ea saver string list handling
git-svn-id: http://svn.osgeo.org/qgis/trunk@10236 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-25 19:15:23 +00:00
wonder
d73452e241 Added QgsMapTool::keyReleaseEvent()
Added missing binding for QgsMapTool::keyPressEvent()
 ... will ever people add the bindings for newly added functions? :-/



git-svn-id: http://svn.osgeo.org/qgis/trunk@10118 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-02-06 15:42:35 +00:00
jef
7cd83173d5 fix #1490
git-svn-id: http://svn.osgeo.org/qgis/trunk@9977 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-01-16 21:08:35 +00:00
wonder
c223b010f9 PyQGIS: missing QgsMapTool bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@9706 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-25 21:37:38 +00:00
wonder
94567164a3 Renamed ambiguous functions QgsMapCanvas::zoom to zoomIn, zoomOut and zoomByFactor.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9691 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-24 10:15:34 +00:00
wonder
6a85e1a09c PyQGIS: added a missing function in QgsMessageViewer
git-svn-id: http://svn.osgeo.org/qgis/trunk@9675 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-20 22:19:42 +00:00
wonder
e9f6cecda8 PyQGIS: fixed QgsSnapper / QgsMapCanvasSnapper bindings
git-svn-id: http://svn.osgeo.org/qgis/trunk@9671 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-19 20:03:30 +00:00
wonder
43bf222968 - QgsSnapper: use one list of QgsSnapper::SnapLayer structs rather than three separate lists
- PyQGIS: finished QgsSnapper binding, added QgsMapCanvasSnapper


git-svn-id: http://svn.osgeo.org/qgis/trunk@9657 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-17 17:20:21 +00:00
mhugent
b49bc46bf8 Allow a 0 pointer for the vector layer in QgsRubberBand::setToGeometry
git-svn-id: http://svn.osgeo.org/qgis/trunk@9623 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-11 14:47:48 +00:00
timlinux
b40ceb2d62 API cleanups for QgsRect that got overlooked...
git-svn-id: http://svn.osgeo.org/qgis/trunk@9605 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-09 00:14:12 +00:00
timlinux
ddb96eae76 Final cleanups for gui API
git-svn-id: http://svn.osgeo.org/qgis/trunk@9576 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-11-07 18:41:36 +00:00
timlinux
e1b3c93e6a API cleanups to qgis project and maprenderer classes
git-svn-id: http://svn.osgeo.org/qgis/trunk@9536 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-24 21:47:48 +00:00
timlinux
5aeb250006 api cleanups for distance area
git-svn-id: http://svn.osgeo.org/qgis/trunk@9504 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-20 20:41:06 +00:00
timlinux
b6ec0534fb Further api updates in core
git-svn-id: http://svn.osgeo.org/qgis/trunk@9478 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-16 06:31:25 +00:00
jef
8094f1d4c6 hackfest commit from timlinux:
- more API cleanups
- single click (instead of drag) to select a feature (fixes #1154)
- fixes for topological editing


git-svn-id: http://svn.osgeo.org/qgis/trunk@9471 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-10 20:02:22 +00:00
jef
e7bba64bf1 fix sip compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk@9443 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-10-06 18:12:16 +00:00
timlinux
2659556af1 zoomToActiveLayer instead of zoomActiveLayer. Also applied patch from Magnus Homann to correct issue where save as shapefile does not allow using CRS of project projection.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9334 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-15 20:51:01 +00:00
telwertowski
0a6dbb7112 Add accessors for all menus, toolbars and actions to plugin interface so that plugins can insert actions at any position in any menu or toolbar.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9258 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-09-05 05:46:56 +00:00
timlinux
8f60bc5095 More api cleanups mainly affecting gui
git-svn-id: http://svn.osgeo.org/qgis/trunk@9233 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 18:28:22 +00:00
timlinux
21a5d7248b use isVisible() rather than visible() to test for layer visibility
git-svn-id: http://svn.osgeo.org/qgis/trunk@9232 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 18:06:54 +00:00
timlinux
7117ef8ec7 Implemented more gui api cleanups and suggestions from Albert Areny to clean the api. Note this commit breaks most python plugins out there. Please refer to the plugin interface header to see what is required to (trivially) repair your plugins.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9231 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-31 16:56:09 +00:00
timlinux
c6fb52f15d Further api consistency cleanups
git-svn-id: http://svn.osgeo.org/qgis/trunk@9134 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 19:15:03 +00:00
timlinux
a4bd78c9f8 Refactor spatial reference system to coordinate reference system (finalise fix of ticket #15). Also updated some more core api docs / module assignments.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9108 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-21 21:11:56 +00:00
timlinux
aa896df17a Various changes relating to projection selector: Renamed QgsLayerProjectionSelector to QgsGenericProjectionSelector so that it can be used in other contexts too. Added setSelectedEpsg call to projection selector. Added setMessage() call to generic projection selector. Updated python bindings accordingly.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9011 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-07 00:16:37 +00:00
timlinux
f27a50b1b6 Use mapRenderer() instead of mapRender() for the QgsMapCanvas map renderer accessor.
git-svn-id: http://svn.osgeo.org/qgis/trunk@9002 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-06 12:42:23 +00:00
timlinux
fb674886b7 renamed misnamed QgsMapRender (verb) to QgsMapRenderer (noun) as part of cleanups for 1.0.0 release. Updated all related dependencies. Also removed some spurious debug messages
git-svn-id: http://svn.osgeo.org/qgis/trunk@8997 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-05 21:11:58 +00:00
timlinux
e1368a77a9 Fix for ticket #15 (Use term CRS instead of Projection throughout. Note this is a cosmetic fix only - internally class and var names still use the incorrect 'projection' nomenclature
git-svn-id: http://svn.osgeo.org/qgis/trunk@8954 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-31 20:07:07 +00:00
jef
1be63335ca fix sip error
git-svn-id: http://svn.osgeo.org/qgis/trunk@8781 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-15 08:21:08 +00:00
timlinux
3c13ecf648 Replaced QgisAppInterface::getToolBox() with QgisAppInterface::addDockWidget and updated dependent code & python bindings. Note you may need to do a clean build after this commit for python bindings to build ok. The toolbox was removed in 0.11.0 and so the old getToolBox call was broken - this provides a replacement for that functionality.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8774 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-07-14 20:19:52 +00:00
jef
5e58eb576b update sip binding after r8656:
replaces QgsMapCanvas::restoreMapTool(), which shouldn't be public, with a
signal and handles it in QgisApp.



git-svn-id: http://svn.osgeo.org/qgis/trunk@8665 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-21 15:34:01 +00:00
mhugent
65f81d256b possibility to add WMS layers through plugin interface
git-svn-id: http://svn.osgeo.org/qgis/trunk@8593 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-05 09:30:48 +00:00
jef
7384134467 add support for maptool doubleclick events
git-svn-id: http://svn.osgeo.org/qgis/trunk@8542 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-29 15:59:57 +00:00
timlinux
52b8b28755 Multiple changes:
- added a call to get the file toolbar so that plugins providing 'add layer' type functionality can place their icons into the file toolbar along with other add layer icons.
 - cleaned up the vector props ui so that action panel fills all available space, and that label settings dont use tabs but a property pane style ui.
 - added an option to qgsoptions to enable / disable legend classification attributes list
 - fix issue with detailed item delegate not being selectable in win
 - updated style sheet so that system colour scheme is used for 'glossy' highlight
 - fixed formatting issues in vector metadata list
 - fixed python build error on mac where geos was not being linked to
 - added grass list view to grass toolbox


git-svn-id: http://svn.osgeo.org/qgis/trunk@8533 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-05-28 15:26:41 +00:00