2937 Commits

Author SHA1 Message Date
Alessandro Pasotti
8835b2d05e
Merge pull request #43617 from troopa81/fix_htmlwidget_geom
Set up cache geometry if HTML widget needs it
2021-06-30 10:49:37 +02:00
Nyall Dawson
2a9c32bb9c [feature] Expose data defined control over raster layer opacity
Allows the opacity of a raster to be varied e.g. on different
pages of an atlas, depending on the visibility of another layer,
by temporal variables, etc...
2021-06-25 13:53:52 +10:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00
Even Rouault
8a6ed7d8f9 Address -Woverloaded-virtual clang virtual and enable the warning 2021-06-25 06:37:49 +10:00
Julien Cabieces
ac031372e1 Fixes #34791 : set up cache geometry if HTML widget needs it 2021-06-21 14:05:06 +02:00
Sandro Mani
9553f06700 Add QgsMapTool::canvasToolTipEvent 2021-06-19 06:23:07 +10:00
Nyall Dawson
870945c476 Don't restrict adding crs selections to list of recent CRSes to only
a few select dialogs

If the user has gone to the trouble of picking a CRS from the dialog,
it should ALWAYS be pushed to the list of recently used CRS, regardless
of whether they've done it from project properties, layer properties,
some processing algorithm, etc...
2021-06-16 12:03:32 +10:00
Nyall Dawson
57700196cd [api] Add method for PyQGIS QgsMapTool subclasses to set the tool name
Since PyQGIS can't access protected member variables, we need an
explicit setter for this variable.
2021-06-15 16:28:17 +10:00
Nyall Dawson
4ff3f447dc Don't try to insert links in raises blocks in PyQGIS docs
These aren't formatted correctly if we do
2021-06-10 11:03:43 +10:00
Nyall Dawson
ccb4146206 [api] Add signal to QgsLayoutDesignerInterface which is emitted
whenever a map item's preview image has been refreshed inside
the designer
2021-06-09 20:45:20 +10:00
Nyall Dawson
6bd24e5d17 [api] Add QgsLayoutDesignerInterface.layoutExported signal
Emitted whenever the layout is exported from the designer
2021-06-09 20:45:20 +10:00
Nyall Dawson
e62714484f [api] Add method for plugins to retrieve results of last layout export
operation from a layout designer window
2021-06-09 20:45:20 +10:00
Nyall Dawson
84669887b6 Partially revert https://github.com/qgis/QGIS/pull/42365, and make
the new panel sizing behavior opt-in
2021-06-09 18:28:23 +10:00
Ivan Ivanov
cd6e0cebe0
Load the default relation editor if the relation editor type setting is not set (#43591)
* Load the default relation editor if the relation editor type setting is missing

* Add setDefaultWidgetType and defaultWidgetType to the relation editor registry

* Use the new defaultWidgetType() when relation editor type setting is missing
2021-06-07 21:46:25 +02:00
Denis Rouzaud
092527398d
remove read-only line edit in QgsRelationReferenceWidget (#43509)
keep the read-only config and make the drop-down read-only instead

fixes #42813
2021-06-02 17:06:52 +02:00
Denis Rouzaud
bb1693b314 add extra enum NoButton to avoid saving an empty string when using qgsFlagsValueToKeys
fixes #43123
2021-06-01 07:33:13 +02:00
Denis Rouzaud
e7ccf1fcc6 also do non scoped enums 2021-05-31 09:36:21 +02: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
68e7cd6609 Don't show symbol levels actions in renderer widgets for renderers
which are subrenderers for other renderers

Symbol layers have no effect in this situation (e.g. when a categorized
renderer is used as a subrenderer for point displacement renderer), so
don't show the option in the GUI
2021-05-26 11:50:44 +10:00
Nyall Dawson
f7f43e08c6 Fix memory leaks in renderer widgets 2021-05-26 11:50:44 +10:00
Nyall Dawson
f3f4c17c5f Use a safer approach to update renderers after symbol levels are changed
Instead of directly changing the renderer in place in the symbol levels
widget, we delegate responsibility for handling the changes to symbol
levels to the parent QgsRendererWidget subclass. This allows us to
implement different logic in the various subclasses which correctly
handle how that particular widget subclass should update any internal
symbol references and ultimately update the renderer.

Fixes instability and crashes after editing symbol levels.

Fixes #42671
2021-05-26 11:50:44 +10:00
Nyall Dawson
c3e01e5725 Add destructors to permit forward declaration 2021-05-26 08:14:13 +10:00
Harrissou Sant-anna
b8fe026de3
Merge pull request #43368 from DelazJ/temporalTypos
Fix typos in temporal docs
2021-05-25 10:50:07 +02:00
Nyall Dawson
aba8ddaa48 Make QgsMapCanvas a QgsExpressionContextGenerator 2021-05-25 11:45:14 +10:00
Nyall Dawson
7bf85a0ccc Disambiguate use of QgsMapCanvas::fullExtent and
QgsMapCanvas::zoomToFullExtent

In 3.18 these methods changed their meaning from the "full extent
of all layers visible in the canvas" to "the full extent of the
associated project".

These are actually two different, equally valid use cases, so
disambiguate by adding new explicit methods projectExtent()
and zoomToProjectExtent(), and revert fullExtent() and
zoomToFullExtent() to their pre-3.18 behavior.

Fixes #43303
2021-05-21 18:12:21 +10:00
Nyall Dawson
b61dc7c48a Sipify 2021-05-18 16:59:22 +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
Damiano
40988a8901
Avoid endless sub-RelationEditorWidget creation fix #42952 (#43246)
* Avoid endless sub-RelationEditorWidget creation fix 42952

* Added missing docstring
2021-05-17 12:53:04 +02:00
Nyall Dawson
eaf70803b0
Cleanup auto generated sip files and remove orphaned files (#43240) 2021-05-17 08:09:27 +02:00
Damiano
a570a10bd9 IdentiyResults dialog show JSON data as a tree view 2021-05-14 15:02:17 +02:00
Matthias Kuhn
32af8100e5
Merge pull request #43164 from domi4484/jsonEdit
[FEATURE] Json edit widget
2021-05-14 09:04:42 +02:00
Mathieu Pellerin
e3cb3e5a01
Merge pull request #43193 from nirvn/auth_imex
[authentication] Add a pair of APIs to export and import configurations to/from XML
2021-05-13 12:55:06 +07:00
Denis Rouzaud
ef14092f2a
Merge pull request #43195 from domi4484/relationEditorWidgetLabelTitle
Relation editor widget label implementation moved to attribute form
2021-05-13 07:31:30 +02:00
nirvn
ad1c94c227 Address review, export config string map as DOM element (eases editability) 2021-05-13 08:58:22 +07:00
Damiano
7a4f2e83e0 Fix warnings and update sip file 2021-05-12 16:29:51 +02:00
Damiano
d8aa6ddfd6 Moved label implementation of relation editor widget to attribute form 2021-05-12 16:02:45 +02:00
nirvn
1bbd477d4f Implement import/export UI 2021-05-12 17:51:46 +07:00
Damiano Lombardi
5759564f86 Updated sip file 2021-05-11 22:45:34 +02:00
Nyall Dawson
b81ece4514 Don't show crs accuracy warnings when saving a vector/raster layer
from an ensemble based crs to another crs with the same ensemble datum
2021-05-12 06:09:48 +10:00
Nyall Dawson
a2e369feb3 Fix typo 2021-05-12 06:09:48 +10:00
Nyall Dawson
7724b37f79 Rename API for flexibility 2021-05-12 06:09:48 +10:00
Nyall Dawson
e66d75a000 [needs-docs] Show a warning in the projection selection widget when
a CRS based on a datum ensemble is selected, warning the user that
there's an inherent lack of accuracy in the selected CRS

Requires PROJ 8+
2021-05-12 06:09:48 +10:00
Denis Rouzaud
c8c534df3a avoid adding unclear API 2021-05-11 11:15:58 +02:00
Denis Rouzaud
58dcd2420f better wording and dox 2021-05-11 11:15:56 +02:00
Denis Rouzaud
700c16ed36 use public method instead of protected member 2021-05-11 11:15:56 +02:00
Denis Rouzaud
6817d9416a [FEATURE] supports dynamic SVGs in layouts
also fix a UX bug where you couldn't switch between raster and SVG radios if the data defined property was active (unreported in tracker)
2021-05-11 11:15:55 +02:00
Denis Rouzaud
c1b8d4a524 adapt QgsSvgSelectorWidget to support other images:
* source line edit can be switched to image
* SVG specific components can be hidden
2021-05-11 11:15:55 +02:00
Denis Rouzaud
ab6c969c5e add QgsSvgOrImageSourceLineEdit to dynamically switch between SVG and Image line edit 2021-05-11 11:15:17 +02:00
Damiano Lombardi
9fdcda41fa Added test for QgsJsonEditWidget 2021-05-10 22:54:44 +02:00
nirvn
d3fa9cb15b Add missing documentation 2021-05-09 16:27:04 +07:00