34 Commits

Author SHA1 Message Date
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Alexey Karandashev
30700f1ef1 Fix GeometryType in documentation:
QgsWkbTypes::GeometryType to Qgis::GeometryType
and QgsWkbTypes::<geometry>Geometry to Qgis::GeometryType::<geometry>
2023-03-31 10:28:36 +10:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +10:00
Even Rouault
4462aed63a Python: fix crashes when casting mapCanvas().scene().items() objects to QgsHighlight/QgsMapCanvasAnnotationItem/QgsRubberBand (fixes #48471, fixes #48436) 2022-05-16 08:53:08 +10:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
bd8a8d5744 Spelling 2021-09-08 17:58:08 +10:00
Nyall Dawson
d43c575ff3 Don't force a vector layer to be used for QgsRubberBand::addGeometry
There's no reason to restrict this call solely to vector layers
-- it's useful to have accessible for adding geometries associated
with other layer types too.
2021-09-08 17:58:08 +10:00
Nyall Dawson
26b536b068 Add QgsRubberBand::copyPointsFrom to quickly copy all points from
one rubber band to another
2021-09-01 17:25:45 +10:00
Nyall Dawson
d68cd295db Allow drawing QgsRubberBand polygons using a fill symbol 2021-03-29 11:57:22 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
ccaca736c3 [api] Add option for setting a line symbol to use when rendering
a QgsRubberBand
2021-02-24 15:07:18 +10:00
Nyall Dawson
7b37f32b4f Add mechanism to defer updates of rubber bands when adding multiple
geometries

GREATLY speeds up rubber band creation for many geometries, resulting
in consequent speed ups to the move features tool, rotate features tool,
....
2021-02-23 05:20:00 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
uclaros
43e3e63bec
Support for polygons with holes in QgsRubberBand
Added support for polygons with holes to QgsRubberBand
Fixes #34399
2020-06-02 09:12:54 +10:00
Matthias Kuhn
be121984bf Apparently sip doesn't like double QObject inheritance
If a list of objects (QList<QgsMapCanvasItem *>) is converted to a list of python objects, sip fails if items inherit from QObject.
Fix #32700
2019-11-11 04:12:47 +10:00
Matthias Kuhn
cb688cbbcc Revert "Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker"
This reverts commit 4b014e6e84093fc59ce9ee085657161b56be189c.
2019-11-11 04:12:47 +10:00
Nyall Dawson
4b014e6e84 Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker
These conversions just crash sip (woo. sip. yay. good times.). I can't find
any alternative approach which avoids this crash, so just remove the cast
to avoid the crash.

Fixes #32700
2019-11-09 13:43:37 +10:00
Peter Petrik
cdd3a55e9e fix #30766, sip crash for QgsHighlight 2019-09-14 06:38:25 +10:00
Nyall Dawson
2aba793946 Fix some warnings 2019-07-19 09:22:48 +10:00
Matthias Kuhn
7691f526be Cleanup rubberband code 2019-07-17 04:26:29 +10:00
Sandro Mani
7af22a8bf6 Add QgsRubberBand::IconType::ICON_SVG 2019-07-17 04:26:29 +10:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Nyall Dawson
4b0f6b756c Slight improvements to Python docs 2019-02-05 04:55:34 +11:00
Matthias Kuhn
328760437c
Make QgsRubberBand fillColor a Q_PROPERTY 2018-09-30 09:46:24 +02:00
Matthias Kuhn
d4fd49129e Fix grammar 2018-09-30 08:29:10 +10:00
Matthias Kuhn
8fdf34be1d Doxygen for QgsRubberband 2018-09-30 08:29:10 +10:00
Matthias Kuhn
db65b9a8fc Add QgsRubberBand::setToGeometry with crs parameter 2018-09-30 08:28:05 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Denis Rouzaud
9ed1548494 move auto generated sip file in dedicated folder (gui) 2018-05-14 10:31:17 -04:00