156 Commits

Author SHA1 Message Date
Nick Bowsher
9a08f1097a
[feature] Add extra mesh layer legend node for currently displayed vector datasets 2024-10-02 11:13:40 +10:00
Alessandro Pasotti
1f86ad11b7 Add a blocking variant 2024-09-20 16:03:14 +02:00
Alessandro Pasotti
90622beb53 [server] WMS GetLegendGr.. cascading size
Fix #57422 by adjusting the legend size considering the
cascaded legend imag size.
2024-09-18 18:13:31 +02:00
Nyall Dawson
ef0289f3ec Fix formatting of Python ..deprecated annotations in docstrings
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/174
2024-09-02 11:42:12 +10:00
Nyall Dawson
71c7b63cf6 Allow filtering private layers from QgsLayerTreeFilterProxyModel 2024-08-31 06:19:26 +10:00
Nyall Dawson
d55b4ea066 Expose proxy model for QgsLegendRenderer to allow filtering rendered content 2024-08-31 06:19:26 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
6f652d251b Drop no-value copy constructor dox 2024-07-25 04:02:55 +10:00
uclaros
15ebae07df add userData property to 2024-06-22 10:23:34 +10:00
Even Rouault
a68422b982 Various typo fixes
Including 3 public methods, which are deprecated by this commit and replaced by a typo-fixed version
2024-02-29 06:03:03 +10:00
Jacky Volpes
8983852288 Note precision about method becoming public 2024-02-28 12:34:26 +10:00
Jacky Volpes
a137a459a8 Remove expression evaluation in layout legend widget 2024-02-28 12:34:26 +10:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0' 2024-02-18 20:57:23 +01:00
Even Rouault
02caeb9db7
Header files: remove all mentions of '\since QGIS 2.' 2024-02-18 20:46:01 +01:00
Alessandro Pasotti
9a9f94bf9a SERVER: fix getlegendgraphic with colorramp & JSON
Fix #55651
2024-02-08 14:52:49 +10:00
Nyall Dawson
feecb4017c Make some custom model roles enum class for Qt6 compatibility 2024-02-06 21:04:43 +10:00
Denis Rouzaud
c76b86e26b
move enum QgsMapLayerProxyModel::Filter to Qgis (#54891) 2023-10-11 13:57:01 +02:00
Nyall Dawson
c2352af95b Add mechanism to make screen properties available for icon
generation in layer tree model
2023-06-23 15:05:15 +10:00
Nyall Dawson
deb12464b5 Add repr for layer tree legend nodes 2023-03-31 14:22:44 +10:00
Nyall Dawson
856f626722 [layouts] When legend filtering is enabled for multiple maps,
ensure that the visible layers for each map is correctly considered
when determining what symbols are overall visible

AKA make multiple map filtering work nicely alongside map themes
2023-03-26 20:21:56 +10:00
Nyall Dawson
030c4f9208 Deprecate confusing old legend filtering API 2023-03-26 20:21:56 +10:00
Nyall Dawson
1742934be5 Add more flexible/understandable api for setting layer tree legend filters
And update existing broken tests which are incorrectly showing
symbols which should not be visible in the legend
2023-03-26 20:21:56 +10:00
Nyall Dawson
b39c389cd9 Fix version numbers 2023-03-14 04:24:19 +10:00
Nyall Dawson
bf11dc1777 Add layer tree signals for hit test started/completed, and methods
to determine whether a background hit test is in progress and
block while it completes
2023-03-14 04:24:19 +10:00
Nyall Dawson
1938f6e255 Add flag to QgsLayerTreeModel to execute legend hit tests in
a background task
2023-03-08 19:28:18 +10:00
Nyall Dawson
2d403b0fef Add method to reorder layer tree group children according to a list of map layers 2023-01-16 19:07:30 +10:00
Harrissou Sant-anna
f1f7b7ab12 Fix see also blocks misformatting 2022-12-31 06:56:48 +10:00
Nyall Dawson
34df6d129a [feature] Use text renderer in layout legends
This change allows use of the full text renderer capabilities
for legend titles, subtitles, and item text. It allows buffers,
shadows, font spacing control, and all over options (including
mixed HTML formatting!) which is permitted for use in text
formats.
2022-11-29 14:31:36 +10:00
Mathieu Pellerin
41211b8a1a Add missing dox 2022-10-24 14:41:42 +07:00
Mathieu Pellerin
a17ab8f03b Add UI to select which insertion method should be used when adding new layers 2022-10-24 14:41:40 +07:00
Mathieu Pellerin
9b0dda7733 Add a new 'optimal' layer tree insertion method for newly added layers 2022-10-24 14:39:50 +07:00
vcloarec
1ce710a0c3 Sipify 2022-08-31 22:40:45 -04:00
Nyall Dawson
c52b2d3ce4 Show a layer tree next to elevation profile plots
This:

- Allows users to turn on or off the visibility of layers from
the profile plot on a plot-by-plot basis (previously the layer
visibility was taken straight from the main canvas layer visibility)
- Allows users to rearrange the drawing order of layers in the plot
- Allows a shortcut to the layer elevation properties settings by
double clicking layers
- Provides a "legend" for the features visible on the plot
2022-04-22 13:07:16 +10:00
Nyall Dawson
82274e89f5 Pass list by reference 2021-11-25 14:23:57 +11:00
Nyall Dawson
9749706c16 Ensure QgsLayerTree::layerOrder correctly respects any layer tree groups
with QgsGroupLayers associated to them
2021-11-24 07:29:31 +11:00
Nyall Dawson
921541d047 Allow association of a QgsGroupLayer with a QgsLayerTreeGroup
and ensure group layer state correctly reflects the state of the
layer tree group
2021-11-24 07:29:31 +11: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
1f73983725 Expose some useful API from QgsLegendPatchShape 2021-10-11 12:03:13 +10:00
Nyall Dawson
e6b39077a2
Promote QgsCoordinateTransform::TransformDirection to enum class, move to Qgis
This enum was forcing an include of qgscoordinatetransform.h within the
widely used qgsabstractgeometry.h header, causing an absolute explosion
of includes of a bunch of very heavy header classes all across QGIS. By
removing the forced include we can avoid a ton of unwanted includes
and make wider use of forward declarations...
2021-09-22 16:40:49 +10:00
Nyall Dawson
1925277b4e Use the new UsersCannotToggleEditing property to refine situations
when various actions and editing dependant states should be
reflected in qgis app

We don't want annotation layers (which are always editable) to
make things like the "cancel edits for all layers" action
to become enabled.
2021-08-18 12:32:41 +10:00
Nyall Dawson
155c76c91d Add some __repr__ methods for QgsLayerTreeNode classes 2021-08-11 13:35:59 +10:00
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