Nyall Dawson
02266ef8e6
Rename Qgis::MessageLevel::None to NoLevel. None is a reserved
...
keyword in Python, so this value was previously inaccessible to PyQGIS
scripts
Also change all references to Qgis::MessageLevel values to their
fully qualified names, to ease a future transition to an enum
class (when sip bugs are fixed)
Fixes #42996
2021-05-30 10:36:01 +10:00
Nyall Dawson
b5dfe8f155
Refactor enum handling
...
- Add enums to qgis.h instead of qgscoreenums, so that they belong to
a Qgis namespace
- Split up the various symbol headers into multiple files so that we
can fine-tune their inclusion and forward declare more readily, speeding
up recompilation
- Move QgsSymbol enums to qgis
2021-05-18 16:59:22 +10:00
Marco Hugentobler
3ecb5e5cc8
Add const, nullptr and improve docstrings
2021-05-11 15:25:48 +02:00
Marco Hugentobler
af607f74e3
More code layout
2021-05-07 16:42:41 +02:00
Marco Hugentobler
fc2a0d60ad
Spelling and documentation
2021-05-07 16:33:33 +02:00
Marco Hugentobler
8da3d112c5
Export label symbol also to json
2021-05-07 15:05:25 +02:00
Marco Hugentobler
260f4b7ac2
[FEATURE]: Show legend entries for labeling
2021-05-06 11:03:15 +02:00
Jorge Gustavo Rocha
e1588fcc7c
typo fix in sip
2021-03-23 17:14:15 +10:00
Jorge Gustavo Rocha
01806b1dea
Add optional recursive = false to findGroups
2021-03-23 17:14:15 +10:00
Jorge Gustavo Rocha
2eb7781f51
add findAllGroups to recursively get all groups
2021-03-23 17:14:15 +10:00
Denis Rouzaud
ba8a445850
run sipify
2021-03-22 21:13:52 +01:00
Alessandro Pasotti
b269b504e6
Doxy
2021-03-11 11:38:40 +01:00
Alessandro Pasotti
273fd82e3d
Update python/core/auto_generated/layertree/qgscolorramplegendnodesettings.sip.in
...
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2021-03-11 10:53:23 +01:00
Alessandro Pasotti
83f3ad65c2
Add option to use the old legend style
2021-03-11 10:45:42 +01:00
Nyall Dawson
7dfef3a0b1
Newer doxygen versions don't auto convert the first line in a class'
...
documentation to a brief note, so we have to do it explicitly...
2021-02-19 08:15:29 +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
2ec448053f
Add option to render color ramp legend items as horizontal bars
2020-12-19 05:28:20 +10:00
Nyall Dawson
eaea2aaf10
Allow users to set text format for ramp legend labels
2020-12-19 05:28:20 +10:00
Nyall Dawson
24549f05fd
Allow customisation of color ramp legend items in a print layout legend
2020-12-18 12:03:26 +10:00
Nyall Dawson
8eb9448746
Prefix/suffix support, ensure correct size determination of legend text
2020-12-18 12:03:26 +10:00
Nyall Dawson
f96ba98bb8
Use QgsColorRampLegendNodeSettings to control settings for QgsColorRampLegendNode items
2020-12-18 12:03:26 +10:00
Nyall Dawson
3fec67ac2c
Add QgsColorRampLegendNodeSettings class
2020-12-18 12:03:26 +10:00
Nyall Dawson
1be1229663
Forward declare
2020-12-18 12:03:26 +10:00
Nyall Dawson
e4a91e7659
Add missing sip casts for legend nodes
2020-12-16 18:46:53 +10:00
Nyall Dawson
869b24ea92
Add new QgsColorRampLegendNode class for rendering a color ramp item as a legend node
2020-12-16 18:46:53 +10:00
Nyall Dawson
da51a5a8d0
It's FAR too expensive to construct a QgsSettings object for every symbol node, especially for complex
...
projects. So only read the valid size ranges once, and store them for subsequent use
2020-12-09 18:18:27 +10:00
Nyall Dawson
762ee09e81
Spelling, sip
2020-12-03 07:23:44 +01:00
Nyall Dawson
9bcdcf687a
Add possibility for QgsRasterSymbolLegendNode nodes to be checked (API only, doesn't actually expose support for checkable raster classes!)
2020-12-03 07:23:44 +01:00
Nyall Dawson
902cb3debd
Move QgsSymbolLegendNode checkAll/uncheckAll/toggle methods up to
...
QgsLayerTreeModelLegendNode base class
Preparing the way for other legend node types to offer checkable support
2020-12-03 07:23:44 +01:00
Alessandro Pasotti
8c06a1ac43
Merge pull request #39872 from elpaso/hidden-layers-bugfix
...
Hidden layers bugfix
2020-11-13 10:40:14 +01:00
Alessandro Pasotti
cb43bd8bd2
Fix mutex visibility
2020-11-11 10:54:14 +01:00
nirvn
55eaaa7484
[layer tree] Fix corrupted tree when filter (by extent) is on with legend widget(s) enabled
2020-11-11 13:41:47 +07:00
Alessandro Pasotti
8d7f540427
Fix tree model loading from xml
2020-11-10 14:44:34 +01:00
Alessandro Pasotti
6aa537c778
Doxy
2020-10-23 18:16:49 +02:00
Alessandro Pasotti
13db03e099
Crashing!
2020-10-22 18:45:27 +02:00
Alessandro Pasotti
165dcb6719
Not working yet
2020-10-22 15:58:05 +02:00
Alessandro Pasotti
b0c208f008
Hidden layers flags
2020-10-22 15:26:58 +02:00
Nyall Dawson
746ee315bd
Fix boolean literal presentation in dox/PyQGIS docs
2020-10-16 16:03:26 +10:00
nirvn
9d105d9d59
[layer tree] Avoid needless layer tree model computations for scale-based layer visibility
2020-09-29 06:25:02 +07:00
Matthias Kuhn
2eaf5e6d29
Recalculate layout when legend item size changes
...
Fixes https://github.com/qgis/QGIS/issues/38881
2020-09-21 08:03:16 +10:00
Matthias Kuhn
673d6727ee
Improve legend performance
...
Only recalculate the position of the icons for affected legend nodes.
Avoids brute forcing over complex legends as soon as something is changed.
Fixes #38890
2020-09-21 08:02:13 +10:00
Nyall Dawson
f496173bd7
Fix messy doxygen blocks which mess with sipify script
...
Fixes #38291
2020-08-20 17:01:35 +10:00
Peter Petrik
d9f18ccb9c
Fix spelling ( #37849 )
...
fix the spelling errors
2020-07-21 12:51:48 +02:00
Nyall Dawson
81a9db9f57
[sipify] Fix creation of cross references
2020-06-15 13:43:58 +10:00
Nyall Dawson
c795ddb1e9
Updates
2020-06-11 13:29:59 +10:00
Denis Rouzaud
09a36c3f6d
fix UI and use invalidate rather than reset model
2020-06-06 09:22:38 +02:00
Denis Rouzaud
558e0b6ce8
use filters rather than list of layer types
2020-06-06 09:22:38 +02:00
Denis Rouzaud
91f71f51e9
fix dox + sip
2020-06-05 16:18:16 +02:00
Denis Rouzaud
3322d2bb64
add QgsLayerTreeFilterProxyModel to easily use a layer tree
2020-06-05 14:21:30 +02:00
Even Rouault
729a2f1482
regenerate qgslayertreenode.sip.in
2020-06-02 13:56:22 +02:00