54 Commits

Author SHA1 Message Date
Martin Dobias
cd7180ec67 Added convenience method snappingUtils() to QgsMapCanvas
Map tools can use canvas.snappingUtils().snapToMap(pt) to do the snapping.
2015-01-20 10:21:54 +07:00
Juergen E. Fischer
d11cc82b3f keep rotation support state in canvas (followup 204e7104) 2015-01-16 20:30:47 +01:00
Sandro Santilli
2b1b79dbcb Expose QgsMapCanvas rotation and centering API to python 2014-12-09 09:57:35 +01:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00
Juergen E. Fischer
82b6e0342a cosmetic cleanups, typo fixes, formatting 2014-10-21 01:33:20 +02:00
Martin Dobias
43c4cd72ad Fix #10956 (QgsSnapper crash/freeze/issues)
QgsMapSettings instance of QgsMapCanvas may have been prematurely deleted by SIP.
The KeepReference annotation will force QgsMapCanvas wrapper to keep one more ref
to it, so its reference count will not go to zero while map canvas is still alive.
2014-10-21 00:06:13 +07:00
Denis Rouzaud
a9289b6a90 can re-center when scaling mapCanvas extent 2014-07-25 14:28:11 +02:00
Martin Dobias
1c0ccb7e72 Show busy indicator while rendering in map canvas 2014-06-02 13:26:57 +07:00
Juergen E. Fischer
c4c131ef75 sip sync 2014-05-27 23:32:42 +02:00
Nyall Dawson
af7af6c26a [FEATURE] Add option to use colour preview modes (grayscale, colour blindess) in map canvas (fix #9886) 2014-05-21 23:30:21 +10:00
Juergen E. Fischer
df4360b0c8 identation update 2014-05-02 10:36:30 +02:00
Denis Rouzaud
9a8b7c5555 better message display in map edit tools (fix #8873) emit signal from map tool, display message in qgisapp 2014-03-17 08:02:47 +01:00
Juergen E. Fischer
8242a04015 fix deprecation annotation of QgsMapRenderer::mapRenderer 2014-03-15 21:39:28 +01:00
Martin Dobias
5a4f8d07a0 Change "added/deprecated in 2.1" notes to 2.4 for stuff related to threading 2014-02-21 17:33:09 +07:00
Martin Dobias
a3af93394e Merge branch 'master' into threading-revival
Some features are still disabled - will be fixed later

Conflicts:
	python/core/composer/qgscomposition.sip
	python/core/diagram/qgsdiagram.sip
	python/core/diagram/qgshistogramdiagram.sip
	python/core/diagram/qgspiediagram.sip
	python/core/diagram/qgstextdiagram.sip
	python/core/qgsdiagramrendererv2.sip
	python/core/qgsfield.sip
	python/core/qgslabelsearchtree.sip
	python/core/qgsmaprenderer.sip
	python/core/qgsrenderchecker.sip
	python/core/symbology-ng/qgssymbollayerv2.sip
	python/gui/qgsmapcanvas.sip
	src/app/composer/qgscomposerlegendwidget.cpp
	src/app/qgisapp.cpp
	src/core/composer/qgsatlascomposition.cpp
	src/core/composer/qgscomposerattributetable.cpp
	src/core/composer/qgscomposermap.cpp
	src/core/composer/qgscomposition.cpp
	src/core/composer/qgscomposition.h
	src/core/diagram/qgsdiagram.h
	src/core/diagram/qgshistogramdiagram.cpp
	src/core/diagram/qgshistogramdiagram.h
	src/core/diagram/qgspiediagram.cpp
	src/core/diagram/qgspiediagram.h
	src/core/diagram/qgstextdiagram.cpp
	src/core/diagram/qgstextdiagram.h
	src/core/qgsdiagramrendererv2.cpp
	src/core/qgsdiagramrendererv2.h
	src/core/qgsmaprenderer.cpp
	src/core/qgsmaprenderer.h
	src/core/qgsnetworkaccessmanager.h
	src/core/qgspallabeling.cpp
	src/core/qgsrenderchecker.h
	src/core/qgsvectorlayer.cpp
	src/core/qgsvectorlayer.h
	src/core/qgsvectorlayerfeatureiterator.cpp
	src/core/qgsvectorlayerfeatureiterator.h
	src/core/raster/qgsrasterlayer.cpp
	src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
	src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
	src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.cpp
	src/core/symbology-ng/qgssymbollayerv2.h
	src/core/symbology-ng/qgssymbolv2.cpp
	src/gui/qgshighlight.cpp
	src/gui/qgsmapcanvas.cpp
	src/gui/qgsmapcanvas.h
	src/gui/qgsmapcanvasitem.cpp
	src/gui/qgsmaptoolidentify.cpp
	src/plugins/georeferencer/qgsgeorefplugingui.cpp
	src/providers/memory/qgsmemoryfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.cpp
	src/providers/ogr/qgsogrfeatureiterator.h
	src/providers/ogr/qgsogrprovider.cpp
	src/providers/oracle/qgsoraclefeatureiterator.cpp
	src/providers/oracle/qgsoracleprovider.cpp
	src/providers/postgres/qgspostgresconn.cpp
	src/providers/postgres/qgspostgresfeatureiterator.cpp
	src/providers/postgres/qgspostgresfeatureiterator.h
	src/providers/wfs/qgswfsfeatureiterator.cpp
	src/providers/wms/qgswmsprovider.cpp
	src/providers/wms/qgswmsprovider.h
	src/ui/qgsoptionsbase.ui
	tests/src/core/CMakeLists.txt
	tests/src/core/testqgscomposereffects.cpp
	tests/src/core/testqgscomposerhtml.cpp
	tests/src/core/testqgscomposerscalebar.cpp
	tests/src/core/testqgscomposershapes.cpp
2014-02-18 11:28:46 +07:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Radim Blazek
f33c4904d3 signal hasCrsTransformEnabled() renamed to hasCrsTransformEnabledChanged() 2014-01-16 17:28:00 +01:00
Martin Dobias
d3b5fb01cd User-configurable update interval 2013-12-11 21:12:24 +07:00
Martin Dobias
e814e8df92 Invalidate cached image when layer's data or appearance is modified 2013-12-10 15:35:13 +07:00
Martin Dobias
9164ae9412 Options: remove legacy rendering options, add parallel rendering 2013-12-09 22:40:29 +07:00
Martin Dobias
2bece090f5 Update Python bindings to match changes in core/gui libraries. 2013-12-05 18:27:45 +07:00
Tim Sutton
c610f37735 Applied patch from Hans-Peter Jansen <hpj [at] urpla.net> to address build issues with python-sip 4.15 and fix srs.db update issue when srs table has no noupdate column. 2013-12-08 22:40:35 +02:00
Alexander Bruy
5e45a22d06 remove deprecated methods from API 2012-12-23 10:40:23 +02:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00
Juergen E. Fischer
0246816e64 sip bindings: add /Transfer/ to QgsMapCanvas::mapRenderer()
(otherwise mc.mapRenderer().hasCrsTransformEnabled() can crash)
2012-05-25 15:42:18 +02:00
Alexander Bruy
42edad5ebc [FEATURE] new navigation tool Pan Map to Selection (fix #4031) 2012-01-24 19:42:31 +02:00
jef
56823410a3 deprecate QgsMapCanvas::pixmap() following QgsMapCanvasMap::pixmap()
git-svn-id: http://svn.osgeo.org/qgis/trunk@15208 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-19 13:21:34 +00:00
jef
e5863992af paintEvent isn't a signal
git-svn-id: http://svn.osgeo.org/qgis/trunk@15130 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-02-05 13:10:10 +00:00
timlinux
43aff11843 #3420 fix for map canvas rerender not working under python
git-svn-id: http://svn.osgeo.org/qgis/trunk@15075 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-01-25 07:43:44 +00:00
jef
e88a80afc8 apply #2712 and #2716 with slight modification. Thanks to Charles Timko.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13517 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-05-17 16:35:55 +00:00
wonder
73a878dfcd Added renderStarting() signal to QgsMapCanvas.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12955 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-18 21:25:20 +00:00
wonder
63d0a6520d Added QgsMapCanvas::layers() method
git-svn-id: http://svn.osgeo.org/qgis/trunk@12935 c8812cc2-4d05-0410-92ff-de0c093fc19c
2010-02-12 09:49:51 +00:00
jef
e5cf709dd3 another round of typo fixes (and use color instead of colour - like Qt; no string updates)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12600 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-12-23 16:14:24 +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
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
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
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
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
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
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
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
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
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
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
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
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