2829 Commits

Author SHA1 Message Date
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
Belgacem
f363877dfa unify 2D and 3D identify results conversion 2021-01-13 15:47:40 +01:00
Denis Rouzaud
dcd3c32458 fix sipify 2021-01-12 13:02:56 +01:00
Nyall Dawson
ad944156c8 [feature][layouts] Add menu entry to add dynamic text labels
easily to a layout

The new "Add Item" -> "Dynamic Text" menu contains a bunch of preset
handy dynamic text expressions which users can use to insert a label
automatically containing the corresponding expression. E.g.

Add Item -> Dynamic Text -> Layout Name

will insert a label containing the expression [% @layout_name %].

This raises discoverability and user-friendliness of inserting
dynamic labels
2021-01-12 04:32:19 +10:00
Matthias Kuhn
60b884d4f4
Merge pull request #34988 from mrylov/hana-provider
[FEATURE] HANA database provider
2021-01-10 09:45:42 +01:00
Denis Rouzaud
0fc4aee612
Merge pull request #40721 from suricactus/relregistry
Support multiple relation editors via relation widget registry
2021-01-08 21:39:39 +01:00
Ivan Ivanov
770856959b Fix breaking tests 2021-01-08 14:12:08 +02:00
Ivan Ivanov
ebddedd955 Fix wrong usage of mFeatureSelectionMgr in the abstract class 2021-01-08 13:58:11 +02:00
Denis Rouzaud
0120e0f775
Merge pull request #40892 from 3nids/svg-dyn-gui
GUI for dynamic SVGs
2021-01-08 09:19:26 +01:00
Nyall Dawson
0d785c8a84 Add method to retrieve QgsVertexMarker center point in map coordinates 2021-01-08 10:37:30 +10:00
Ivan Ivanov
5d47b5d8f9 Convert cpp type to python type 2021-01-07 17:06:57 +02:00
Denis Rouzaud
defb091c48 add missing dox 2021-01-07 15:52:23 +01:00
Denis Rouzaud
9161a8c8b5 gui for dynamic SVGs 2021-01-07 15:02:26 +01:00
Ivan Ivanov
bb7f411304 Rename to Abstract prefix 2021-01-07 15:42:21 +02:00
Stefan Uhrig
cf5180a051 Merge branch 'master' of https://github.com/qgis/QGIS into hana-provider 2021-01-07 12:18:53 +01:00
Ivan Ivanov
891c89ae2a rename QgsBasicRelationWidget--> QgsRelationEditorWidget 2021-01-06 16:01:39 +02:00
Ivan Ivanov
472698583c Single QgsBasicRelationWidget file 2021-01-06 16:00:45 +02:00
Ivan Ivanov
8f4bf3e325 SIP convert 2021-01-06 14:40:30 +02:00
Nyall Dawson
cf3bee384e Cleanups 2021-01-06 07:56:51 +10:00
TurboGraphxBeige
69154c2bb8 Code cleanup 2021-01-06 07:56:51 +10:00
Stefan Uhrig
a2c96c975a Merge branch 'master' of https://github.com/qgis/QGIS into hana-provider 2021-01-04 17:25:48 +01:00
Nyall Dawson
7fba697bf3 [FEATURE] New "Merged feature" renderer for polygon and line layers
This renderer merges (or unions/dissolves) the line or polygon features
from a layer prior to rendering them. It's useful for rendering
a polygon layer with overlapping features as one single "coverage" feature,
or a line layer consisting of many smaller component line features
using a regularly spaced marker line or similar.

Internally, this just moves the guts of the existing inverted polygons
renderer to a new base class, as that renderer already had an option
to merge features prior to rendering. Basically it just exposes a new
renderer to users which is the inverted polygon renderer without
the inversion step!
2021-01-04 13:52:18 +10:00
NEDJIMAbelgacem
61ee203283 Initial implementation of selection tool for point cloud 2021-01-04 10:20:04 +10:00
Nyall Dawson
0d33fe4c99 Documentation improvements, add SIP_DEPRECATED annotations 2021-01-02 15:48:54 +10:00
TurboGraphxBeige
e25d857a50 Re-add actionZoomToLayer 2021-01-02 07:04:48 +10:00
Ivan Ivanov
b1dad1d3ef Added SIP_DEPRECATED and added forgotten \since docs 2020-12-30 04:46:51 +02:00
Ivan Ivanov
51cd712c76 Add relation widget registry 2020-12-30 04:46:51 +02:00
Maxim Rylov
61fbdcf5ff Merge branch 'master' into hana-provider 2020-12-28 16:08:26 +01:00
Nyall Dawson
16f9083562 Spelling 2020-12-26 09:51:34 +10:00
Nyall Dawson
e32c5cdd1a Add source widget for XYZ layers, allowing users to change properties
like the min/max zoom levels and authentication settings for any
XYZ layer in a project on a layer-by-layer basis
2020-12-26 09:51:34 +10:00
Nyall Dawson
d5c3b4b8a5 Add API to allow creation of widgets for customising a layer's source
This adds api in the provider gui to allow a provider to create a custom
widget which exposes options to customise and change the layer's source.

E.g. a file based layer provider could expose a widget for selecting
a new file path, and an online one could expose widgets for changing
the host, authentication, etc.
2020-12-26 09:51:34 +10:00
Nyall Dawson
890491976c Replace ArcGIS REST data source manager list with a view based on the browser model
This has MANY benefits:
- Shows the merged feature service/map service view we use in browser
- Avoids the HUGE main thread ui hang when connecting to servers with
many layers (could be 20 mins+ for some services)
- Avoids bombing out and showing incomplete lists when a server reports
an error when connecting to any of the services it advertises (happens
often)
2020-12-23 16:10:05 +10:00
Juergen E. Fischer
b28d820b0c fix typos 2020-12-22 00:03:34 +01:00
Nyall Dawson
da59316fb5 Use /TransferBack/ instead of /Factory/ in layout registry factory methods
For same reason as we do in Processing registry:

(from the comments included in this commit)
"
While it seems like /Factory/ would be the correct annotations here, that's not
the case.
As per Phil Thomson's advice on https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html:

"
/Factory/ is used when the instance returned is guaranteed to be new to Python.
In this case it isn't because it has already been seen when being returned by QgsProcessingAlgorithm::createInstance()
(However for a different sub-class implemented in C++ then it would be the first time it was seen
by Python so the /Factory/ on create() would be correct.)

You might try using /TransferBack/ on create() instead - that might be the best compromise.
"
2020-12-22 06:27:17 +10:00
Nyall Dawson
787f62fee2 Add a widget for customizing color ramp legend settings 2020-12-18 12:03:26 +10:00
nirvn
e1933c85c0 [FEATURE][map overview] Support zooming in/out by scrolling mouse wheel over map overview panel 2020-12-10 16:47:36 +07:00