3064 Commits

Author SHA1 Message Date
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
Alessandro Pasotti
27d35a2495
Merge pull request #42384 from domi4484/missingNmRelationQgsAbstractRelationEditorConfigWidget
Set missing nm relation for QgsAbstractRelationEditorConfigWidget
2021-03-23 20:32:21 +01:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Damiano
a6ac61bc05 Fix doc and remove QOverload 2021-03-22 21:02:34 +01:00
Matthias Kuhn
c0633e8734
Merge pull request #42296 from domi4484/fixNmRelationMissing
Fix QgsAbstractRelationEditorWidget inconsistency NmRelation / NmRelationId
2021-03-22 16:08:13 +01:00
Damiano
c087063356 Set missing nm relation for QgsAbstractRelationEditorConfigWidget
This is needed to let QgsAbstractRelationEditorConfigWidget
implementations know which nm cardinality is choosen if any.
2021-03-22 15:27:57 +01:00
Denis Rouzaud
959d68a1e7
Merge pull request #42326 from 3nids/filter-svg
Add filtering capabilities to SVG selector widget
2021-03-22 09:11:38 +01:00
Nyall Dawson
70b1dce456 Don't allow temporal dock to be shrunk shorter than its contents 2021-03-22 14:10:01 +10:00
Denis Rouzaud
aa23d009a4 create a sort filter proxy model 2021-03-19 11:52:20 +01:00
Denis Rouzaud
4cd1b5b975
fix open form button not always enabled in relation reference widget (#42144)
* fix open form button not always enabled in relation reference widget

when the underlying model has more feature than what the model fetches by default (100),
the feature is not fetched yet when the combobox has its index changed

the new signal allows to be aware when the feature is ready to be used
2021-03-18 20:37:09 +01:00
Damiano
fad9d75a71 Fix QgsAbstractRelationEditorWidget redondancy mNmRelation/nNmRelationId
mNmRelation and nNmRelationId represent the same QgsRelation instance
but it was possible to set them to different values.
Also added method nmRelation() to access the nmRelation directly.
2021-03-17 20:55:20 +01:00
Nyall Dawson
5bceda82fe Don't show label hover highlights while a map redraw is in progress,
because these will show for outdated label positions
2021-03-16 04:02:49 +10:00
Alessandro Pasotti
5dc202831f
Merge pull request #42193 from elpaso/raster-legend-add-option-to-use-separate-items
Add option to use the old legend style
2021-03-12 18:12:52 +01:00
Nyall Dawson
bffa42ae74 Implement undo logic for streamed digitizing mode
When the backspace key is held down, points will be repeatedly
removed from streamed digitized sections, right up till the start
of the streaming section. Then the point removal will temporarily
pause until the user releases and re-holds down the backspace key.

This allows users to selectively remove portions of the geometry
captured with the streaming mode by holding down the undo key,
without risking accidental undo of non-streamed portions.
2021-03-11 20:02:44 +10:00
Nyall Dawson
7234d89303 [feature] Add streaming digitizing mode
When active, points are automatically added following the mouse
cursor movement.

Refs Natural resources Canada Contract: 3000720707
2021-03-11 20:02:44 +10:00
Alessandro Pasotti
83f3ad65c2 Add option to use the old legend style 2021-03-11 10:45:42 +01:00
Mathieu Pellerin
53928bdbcc
[locators] Add a bounding box property to the abstract geocoder locator filter base class (#42133) 2021-03-10 08:24:44 +07:00
Julien Cabieces
13c3f5b0b0 Fix doxygen 2021-03-09 08:34:33 +10:00
Julien Cabieces
da66679464 Update widget state when scale locked state is changed from API 2021-03-09 08:34:33 +10:00
Nyall Dawson
5245430461 Add widget for Embedded Symbols renderer
Allows users to control the default symbol used for features without
embedded styles
2021-03-06 16:37:46 +10:00
Nyall Dawson
c6370c7f52
Speed up QGIS compilation by removing all Qt Module-wide includes
Refs https://www.kdab.com/beware-of-qt-module-wide-includes/
2021-03-05 11:23:15 +10:00
Nyall Dawson
aed7645b9e Make API more generic 2021-03-05 04:28:53 +10:00
Nyall Dawson
f51e38b117 Switch line endpoint snap to a distinct vertex marker (inverted
triangle)

And minor cleanup/optimisation to QgsVertexMarker code
2021-03-04 12:20:39 +10:00
nirvn
a5f001e135 [gdal][ui] Fix opening of gdal rasters within ZIP containers in the data source manager dialog 2021-02-28 16:52:18 +07:00
Nyall Dawson
ccaca736c3 [api] Add option for setting a line symbol to use when rendering
a QgsRubberBand
2021-02-24 15:07:18 +10:00
Nyall Dawson
ad56216f14 A horizontal mouse wheel scroll over the canvas "scrubs" the temporal
range slider back or forward
2021-02-24 13:21:32 +10:00
Nyall Dawson
7b37f32b4f Add mechanism to defer updates of rubber bands when adding multiple
geometries

GREATLY speeds up rubber band creation for many geometries, resulting
in consequent speed ups to the move features tool, rotate features tool,
....
2021-02-23 05:20:00 +10:00
Nyall Dawson
c8d61499ff [processing] Instead of a hidden parameter for verbose model logging,
add an explicit log level getter/setter to QgsProcessingContext which
algorithms can use to determine an appropriate level of feedback
to push to users.

Initially the verbose log only triggers the full verbose output
of model executions (which is also used when running models through
the model designer), but the intention is that more algorithms
will fine tune their output based on the logging level.

qgis_process also gains a new --verbose switch to enable verbose
log output.
2021-02-20 05:04:00 +10:00
Alessandro Pasotti
7b2fc4c1f8 More doxy nonsense, pt 2 2021-02-19 08:15:29 +10:00
Samweli
fd9ddcedd8 rebased on master and addressed review comments 2021-02-17 07:17:16 +10:00
Samweli
a3883761cf add support for plugin dialogs raster layer properties 2021-02-17 07:17:16 +10:00
Nyall Dawson
fd657bee96 Fix misleading error message when an attribute form fails to
save changes

Regardless of the reason why the saving failed, a message about
invalid JSON was always shown... which is totally confusing for
users when a table has NO json fields or values (ノ`Д´)ノ
2021-02-16 09:42:19 +10:00
Luigi Pirelli
2f7d6defee Added sanity check of links between graphicitems showing error in dialog. Fixes #40724 #39260 2021-02-11 11:47:28 +10:00
Nyall Dawson
cc5cbabaa3 Avoid API break 2021-02-09 20:12:37 +10:00
Harrissou Sant-anna
3a952a6981 Remove Add ArcGIS map service button
after it's merged with feature service

(cherry picked from commit 82797ac8d28e50a03c2190d7a8df1d740f688c5f)
2021-02-09 20:12:37 +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
249d6815bf Move 3d options tab up to a more natural position 2021-01-30 06:51:13 +10:00
Nyall Dawson
7b28cc6b0c Fix paper-cut when selecting projection from widget where it looks
like the user has made a selection, but they've only selected one
of the projection category headings and so when they click OK they
see no change.

Now instead we disable the OK button in this dialog whenever the
user has a non-crs list item selected.
2021-01-29 11:25:06 +10:00
Stefan Uhrig
ca98f882b9 Improve documentation of QgsMapTool class members 2021-01-28 12:18:42 +10:00
Denis Rouzaud
57c5a6fc26 make virtual methods protected so they can be overidden in Python 2021-01-25 20:43:34 +01:00
Ivan Ivanov
df17603ce8 Added docs for the virtual private methods in QgsAbstractRelationEditorWidget 2021-01-25 20:43:34 +01:00
Denis Rouzaud
30db6fa1c8 add method to get relation in QgsAbstractRelationEditorWidget 2021-01-25 20:43:34 +01:00
Denis Rouzaud
375764d8df
make QgsAbstractRelationEditorWidget private virtual methods available in bindings (#41159) 2021-01-25 14:27:01 +01:00
Matthias Kuhn
a84f2a2065
Merge pull request #41009 from suricactus/dms_gui
Document management system a.k.a. polymorphic relations GUI
2021-01-22 08:39:35 +01:00
Nyall Dawson
9cba2489bc Use parent symbol type instead of layer geometry type to decide
which line symbol layer settings to show

Fixes fill symbol only related properties (like ring filters) show
for line symbols in some contexts.

Fixes #33398
Fixes #24131
2021-01-20 06:01:25 +10:00
Ivan Ivanov
ecd616b51b Add sip convert for QgsMapToolDigitizeFeature 2021-01-19 17:11:31 +02:00
Nyall Dawson
814b65ba1c Cleaner approach -- create expression contexts in modeler parameter
definition dialogs using expression context and processing context
generators
2021-01-14 16:15:06 +10:00
roya0045
6ea2ff55e1 Fixes #39137 2021-01-14 16:15:06 +10:00
Martin Dobias
1ed818e264 Add mapRefreshCanceled() signal to QgsMapCanvas
This is useful when one wants to follow what exactly is happening
with map canvas rendering. We already have renderStarting() signal
when a job is started and mapCanvasRefreshed() signal when a job
has finished, but there was no notification if the pending job
got cancelled (for example because used moved/zoomed the map).
2021-01-14 05:23:43 +10:00
Belgacem
fa7e3d4f7d fix sip and add Nyall suggestions 2021-01-13 15:47:40 +01:00