Nyall Dawson
1b2af79c96
Ctrl zoom ( #3154 )
...
* Switch QgsMapCanvas zoomIn and zoomOut to slots
* Change shortcuts to zoom in/out tool to Ctrl+Alt +/-, and
make Ctrl + and Ctrl - trigger an immediate zoom in/out
Having Ctrl +/- perform an immediate zoom in/out is standard
across almost all apps with a zoom facility, so we should
respect that same behaviour.
This change also helps bring canvas and composer behaviour
closer together.
(fix #1824 )
2016-06-01 07:43:52 +10:00
Nyall Dawson
421ab4fee7
Add missing docs, SIP bindings, some const correctness
2016-05-29 14:59:23 +10:00
Nyall Dawson
78bcd4b10c
Correctly mark method as deprecated
2016-05-29 08:11:43 +10:00
Denis Rouzaud
cf99817b72
allow to lock scale to use magnification to zoom in/out
...
this also removes the option for different behavior of mouse wheel
2016-05-28 16:52:09 +02:00
Marco Hugentobler
c0d12dcdeb
[FEATURE]: possibility to set the segmentation tolerance (maximum angle or maximum difference)
2016-05-19 11:02:43 +02:00
Blottiere Paul
d23a110cb6
move magnification in map settings
2016-05-18 14:40:41 +02:00
Blottiere Paul
9a62613b6b
[FEATURE] add a map canvas magnifier
2016-05-12 09:42:51 +02:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
mhugent
f4bdaad59f
Merge pull request #2666 from mhugent/symbology_brush_transform
...
Symbology brush transform
2016-01-19 16:19:09 +01:00
Marco Hugentobler
aa3e550a2f
Revert "Revert sipfile changes"
...
This reverts commit f7284651218c7ebb0eb043e98f648ee04be42f83.
2016-01-19 14:43:45 +01:00
Marco Hugentobler
f728465121
Revert sipfile changes
2016-01-18 09:14:01 +01:00
Marco Hugentobler
193e9d7818
Update sip files
2016-01-14 13:46:13 +01:00
Sebastian Dietrich
e5f1d87506
allow zooming to multiple features by their ID
...
Changed QgsMapCanvas::zoomToFeatureId() to QgsMapCanvas::zoomToFeatureIds() accepting multiple IDs instead of just one.
2016-01-13 00:14:23 +01:00
mhugent
3febba279d
Merge pull request #2619 from mhugent/zoom_to_feature
...
[FEATURE]: Zoom to feature with right-click in attribute table
2016-01-12 16:20:17 +01:00
Marco Hugentobler
fb996ae7fa
Show message in message bar if feture has no geometry / empty geometry
2016-01-11 15:15:23 +01:00
Nyall Dawson
881074b194
Boost coverage of SIP bindings
...
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.
Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Marco Hugentobler
1317220a01
Update qgsmapcanvas.sip
2016-01-04 10:33:07 +01:00
Marco Hugentobler
f815ebc86b
[FEATURE]: Zoom to feature with right-click in attribute table
2015-12-28 12:35:19 +01:00
Nyall Dawson
9cc9d424ce
Add extra check for deprecations to documentation test
...
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.
It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.
Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Matthias Kuhn
56ccb2b858
sipClass_Klass is deprecated for a long time: replace with sipType_Klass
2015-11-11 23:22:51 +01:00
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