Nyall Dawson
c49b5b777f
Change a lot of arguments to const references in core/gui
...
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Nyall Dawson
a77935f491
Use actual map canvas variables & values for symbology widgets
2015-09-17 20:34:51 +10:00
Nyall Dawson
9e57e3d7ea
Add ability to set expression context variables for map canvas
2015-09-07 20:24:56 +10:00
Juergen E. Fischer
9752c468c1
indentation update
2015-07-29 11:52:14 +02:00
Martin Dobias
099faec597
Added API to use layer style overrides also in map canvas
...
... so that map canvas does not always use just the active layer style
2015-07-07 13:15:56 +02:00
Juergen E. Fischer
ea71b2c0c7
avoid reloading not rendered layers on map refresh
2015-06-24 18:08:24 +02:00
Juergen E. Fischer
f055db1e02
map canvas: update sip bindings (followup c3321e5)
2015-04-04 23:57:43 +02:00
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