2913 Commits

Author SHA1 Message Date
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
nirvn
b3218aa033 [editor widgets] Fix external resource's image not cleared when browsing from one feature to another 2021-05-09 12:51:47 +07:00
vcloarec
89c069f695 address review 2021-05-05 09:03:13 +02:00
vcloarec
9a3ad85533 interpolated line symbol layer 2021-05-05 09:03:13 +02:00
Loïc Bartoletti
a6d554d233 Apply paul's suggestions:wq 2021-04-30 16:20:40 +02:00
Loïc Bartoletti
405d0dd46d remove mention about 2.5d geometries and add a missing since 2021-04-30 16:20:40 +02:00
Loïc Bartoletti
d8e91acedf sipify 2021-04-30 16:19:36 +02:00
Nyall Dawson
5fa48420d7 Make widget more qgis-esque 2021-04-21 14:41:09 +10:00
Nyall Dawson
7ad31ca1df Create QgsRichTextEditor widget, as a straightforward port from
https://github.com/Anchakor/MRichTextEditor, with some QGIS
formatting and practices applied
2021-04-21 14:41:09 +10:00
Nyall Dawson
ffa99b7b64 Fix doxygen blocks which don't use the * prefix on all lines, which
prevents the auto format and sipify scripts from doing their full
formatting magic
2021-04-19 12:54:13 +10:00
Nyall Dawson
352856f972 Slightly better worded QgsVectorFileWriter description 2021-04-19 12:54:13 +10:00
fiddlersfan
84c2ab436e
Update documentation for new timeout behavior in 3.18 (#42744)
* update documentation for new timeout behavior in 3.18

* fix tests

* fix indentation test

* Revert "fix indentation test"

This reverts commit a2dd63920e864de78a3bf36efc5d2f657a217403.

* fix all tests
2021-04-15 13:23:36 +02:00
Ivan Ivanov
27883030c6
Update python/gui/auto_generated/qgisinterface.sip.in
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2021-04-07 11:15:34 +03:00
Ivan Ivanov
294b01a6f1 Added docstring describing the page argument of showLayerProperties
One can get a list of page names by executing the following command:
grep \"mOptsPage ./build/src/ui/ui_qgs*layerpropertiesbase.h
2021-04-07 10:51:31 +03:00
Ivan Ivanov
3057966086 Open a specific page in the layer properties dialog using the iface instance 2021-04-06 19:37:10 +03:00
Nyall Dawson
615b63e76d [processing] When configurating a field calculator algorithm in a model,
ensure that the correct expression context is set for the widget

Otherwise we don't see any of the available variables ready for
use in the calculation.

We need to do this manually after creating the widget, because the
context generator isn't set till after the widget is created, and
this particular widget configuration doesn't fetch the expression
context on demand.
2021-04-02 06:30:27 +10:00
Denis Rouzaud
22dc611995
make methods of QgsMapLayerAction virtual so the canRunUsingLayer can be fine tuned (#42613) 2021-04-01 15:39:34 +02:00
Nyall Dawson
f0aafd2081 [api] Allow the text and icon for the 'empty layer' option in QgsMapLayerComboBox to
be customised
2021-03-30 11:51:32 +10:00
Nyall Dawson
34735aa9ef [api] Add a public method to clear the rubber band for the
QgsMapToolExtent

Otherwise plugins have no way to remove this from the canvas
2021-03-29 11:57:32 +10:00
Nyall Dawson
d68cd295db Allow drawing QgsRubberBand polygons using a fill symbol 2021-03-29 11:57:22 +10:00
Nyall Dawson
9b07d954f5 Don't force users to hit apply to setup static wms-t settings
after toggling dynamic temporal control

Not the nicest code approach, but I honestly can't think of any
other way to handle this...
2021-03-25 14:56:46 +10:00
Nyall Dawson
ef94191d70 Dox 2021-03-25 04:48:31 +10:00
Nyall Dawson
207be1dd66 Add mechanism for QgsMapLayerConfigWidgetFactory to create sub widgets
which are embedded into the raster layer temporal properties widget
2021-03-25 04:48:31 +10:00
Nyall Dawson
4faceaf0d7 Add api to indicate that a QgsMapLayerConfigWidgetFactory factory
creates sub-components of a standard page instead of a top-level
page on its own
2021-03-25 04:48:31 +10:00
Nyall Dawson
8c0b98d095 Add a mechanism for data providers to supply QgsMapLayerConfigWidgetFactory
via their GUI metadata

Allows providers to create layer properties pages, giving us a nice
way to keep provider-specific logic out of the layer properties
classes.
2021-03-25 04:48:31 +10:00