1214 Commits

Author SHA1 Message Date
Alessandro Pasotti
7460e4f777 Doxy 2021-07-06 21:00:55 +02:00
Alessandro Pasotti
f1a5014121 Catch SQL filter dialog connection errors (never seen in the wild) 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
357fa9c4d8 Add progress bar and minor UX changes 2021-07-06 21:00:54 +02:00
Alessandro Pasotti
927669df2b Move target to 3.22 2021-07-06 20:59:58 +02:00
Alessandro Pasotti
dfc5648204 Remove method and fix widget hiding 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
27eb5743ad Provider QSCI APIs for sqlite and PG 2021-07-06 20:58:36 +02:00
Alessandro Pasotti
cf260226a3 Create SQL layer and widget config based on enum 2021-07-06 20:56:07 +02:00
Alessandro Pasotti
af44d35d74 Doxy 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
9adbdfa8bf Fix crash QsciAPIs is destroyed while worker running 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
4201942bdd Rebase 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
1a94b07454 Better error handling/reporting 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
9fc81ffb0f Move to thread the first phase of the query (before the iterator) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
b988ca87e2 SQL results widget: add query layers support (initial) 2021-07-06 20:53:59 +02:00
Alessandro Pasotti
cc709a0d02 Query result widget files and tests 2021-07-06 20:52:19 +02:00
Alessandro Pasotti
079264ebc4 Message bar and other improvements: working! 2021-07-06 20:52:19 +02:00
Alessandro Pasotti
d914a50b63 QgsQueryResultWidget 2021-07-06 20:52:19 +02:00
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
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