Matthias Kuhn
a9d7630a69
Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
...
Because 3D coordinates should be the default.
References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Denis Rouzaud
85f3b81b55
remove double spaces in sip files
...
fix indentation
2017-05-03 08:02:14 +02:00
Denis Rouzaud
93971d5ed3
[sip] align pointer and reference in blacklisted files
...
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00
Martin Dobias
fd616ae94e
A bit of const-correctness and new convenience methods for edit tools
2017-02-24 11:27:45 +08:00
Nyall Dawson
c26ed69c6b
Rework map touch tool
...
Qt5 allows runtime detection of touch devices. This commit reworks
the current touch map tool by pulling its behavior into the normal
pan tool when a touch device is detected.
It avoids the need for a seperate map tool for touch interaction,
and also avoids having this tool always appear on the Windows
builds (regardless of the presence of a touch device)
2017-02-12 15:06:24 +10:00
Nyall Dawson
fe65063c2b
Remove many deprecated methods
2016-09-15 18:34:15 +10:00
Nyall Dawson
1a2231f10c
Rename QGis class to Qgis, for capitalisation consistency
2016-07-21 22:01:38 +10:00
Nyall Dawson
00502620c0
[FEATURE] Allow web map style shift-drag zoom
...
When certain map tools are active, you can hold down shift
and drag a rectangle on the map to zoom to that area. This
is enabled for the map tools which are not selection tools
(since they use shift for adding to selection), and edit
tools.
Gracias a Girona!
2016-05-30 19:39:57 +10:00
Nyall Dawson
8628f211dd
Switch to flags for map tool behaviour
2016-05-30 19:39:32 +10:00
Juergen E. Fischer
a90be95f7b
sip sync
2016-02-14 03:50:49 +01:00
Nyall Dawson
c3a57434d9
Fix clazy 'pass small and trivially-copyable type by value' warnings
2016-02-02 19:47:21 +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
f1633a1796
Change all signals to use const refs for non trivial objects
2015-10-26 22:46:25 +11: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
Matthias Kuhn
efcbbfdaeb
Move maptools from app->gui
2015-09-11 12:02:25 +02:00
Juergen E. Fischer
abd4a04399
sip update
2015-02-03 02:21:52 +01:00
Denis Rouzaud
c3bf02b42a
[SIP] add missing activated/deactivated signals for map tools
2014-09-11 10:41:02 +02:00
Juergen E. Fischer
c4c131ef75
sip sync
2014-05-27 23:32:42 +02:00
Juergen E. Fischer
df4360b0c8
identation update
2014-05-02 10:36:30 +02:00
Radim Blazek
0bdca1f9b4
missing identify/highlight sip methods
2014-03-27 13:45:25 +01:00
Denis Rouzaud
8c2fbbff65
use single signal for messageEmitted
2014-03-21 07:13:58 +01:00
Denis Rouzaud
4342b73eea
better naming for messageEmitted/Discarded in maptools, followup 5bc5fdb 59a6663 and 6609ca8
2014-03-21 07:12:09 +01:00
Denis Rouzaud
6609ca81d2
rename removeMessage to discardMessage, complete SIP
2014-03-19 08:16:33 +01: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
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
Martin Dobias
2bece090f5
Update Python bindings to match changes in core/gui libraries.
2013-12-05 18:27:45 +07:00
Juergen E. Fischer
51297d5990
indentation update (note to self: always run scripts/prepare-commit.sh before committing)
2013-09-17 12:41:43 +02:00
Denis Rouzaud
f4a4009bca
set cursor for mapTools
2013-06-28 09:56:56 +02:00
Juergen E. Fischer
3854086d47
sip update
2013-06-23 16:00:24 +02:00
Borys Jurgiel
daeafccd49
[API] Expose mouse wheel to map tools as QgsMapTool::wheelEvent()
2013-03-30 20:24:04 +01:00
Denis Rouzaud
682524ff54
MapToolIdentify moved to gui to make it accessible in python
...
put back convertMeasurement in gui as it is not app specific
use display settings for specific app units
2013-02-05 19:57:42 +10:00
Juergen E. Fischer
ac29c5b11f
prepare-commit.sh: remove trailing blanks from python files
2013-01-12 23:48:58 +01: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
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
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
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
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
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
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
wonder
497280c4d2
Fixes to compile the bindings also with SIP 4.7.
...
In this SIP version, additional classes used when converting
to a subclass don't get #included automatically so let's
#include them globally with %ModuleHeaderCode
git-svn-id: http://svn.osgeo.org/qgis/trunk@7129 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-08-06 23:33:00 +00:00
wonder
9289a37f56
Added QgsMapToolEmitPoint which emits a signal when a point on map canvas is clicked.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@6989 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-06-09 10:54:46 +00:00
wonder
7e367f30b8
Solved problems with destruction of map tools - canvas mustn't be deleted before map tool,
...
however in Python the destruction had to be done explicitly to acheive right order.
New solution is that QgsMapTool is derived from QObject and on construction, QgsMapCanvas
is set as its parent. This way canvas is always deleted after deletion of map tools.
Also, because of this, I've divided QgsMeasure to QgsMeasureTool and QgsMeasureDialog
(problem with 2 parents with QObject as a base).
git-svn-id: http://svn.osgeo.org/qgis/trunk@6908 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-04-23 14:57:08 +00:00
wonder
46a2d125a2
Merged refactoring branch back to trunk.
...
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00