2247 Commits

Author SHA1 Message Date
Alessandro Pasotti
a8c0e4cbf6 User expressions followup
- renamed the group to "User"
- added help text for the group
- added QgsSettings Expressions namespace
- reworded tooltips for store/remove actions
2019-12-18 14:24:02 +01:00
Alessandro Pasotti
89cacd7180
Merge pull request #33437 from elpaso/stored-expressions
[feature] Stored expressions
2019-12-17 20:13:32 +01:00
Alessandro Pasotti
fd6075e80b Renamed stored expressions to user expressions 2019-12-17 17:10:43 +01:00
Alessandro Pasotti
6b232414f2 Added new files header 2019-12-17 15:00:48 +01:00
signedav
4cbd9a1ee3
Merge pull request #33197 from signedav/searchtags_functions
Search tags on expression functions
2019-12-17 09:28:26 +00:00
Alessandro Pasotti
e4b4459af0 Use QStringLiteral 2019-12-17 10:19:16 +01:00
nirvn
3404dff67e [labelling] Fix masked symbol layers loss when
- opening layer properties window; or
- changing label settings in style dock
2019-12-17 15:15:49 +07:00
Alessandro Pasotti
09345b5130 Add QgsExpressionStoreDialog 2019-12-16 17:29:30 +01:00
Alessandro Pasotti
2ab794bcc5 Add tests and utility methods 2019-12-16 17:29:30 +01:00
Alessandro Pasotti
e8d76e2a92 Stored expressions initial implementation 2019-12-16 17:29:30 +01:00
Matthias Kuhn
b42a31ec2f
Merge pull request #32472 from troopa81/feature_selectionwidget_in_featureselectiondialog
Selection widget in feature selection dialog
2019-12-16 11:32:25 +01:00
Alessandro Pasotti
7464290ae3
Merge pull request #33379 from elpaso/widget-dependencies-move-to-formatter
Move layerDependencies to formatter
2019-12-14 09:00:08 +01:00
Julien Cabieces
80a362375c gather protected instructions 2019-12-13 18:00:16 +01:00
Julien Cabieces
d224a7ce99 [FEATURE][needs-docs] Add feature filtering and selection actions in feature selection
dialog
2019-12-13 17:33:40 +01:00
Alessandro Pasotti
4ad62aa6ff Move layerDependencies to formatter
... from the widget
2019-12-13 11:54:25 +01:00
Nyall Dawson
d3da0e0281 Also move labeling gui files to dedicated subdirectory 2019-12-11 14:05:44 +10:00
Nyall Dawson
99c8afe4e9 [FEATURE] Show the total pan distance and bearing in the status bar during
canvas pan operations

Allows users to know exactly how far (and in what direction) they've dragged
the map.
2019-12-06 04:50:17 +10:00
Denis Rouzaud
d147a8dffa
Merge pull request #33233 from 3nids/class_method_params
Option to filter negative values in logarithmic classification method
2019-12-05 14:59:04 +01:00
David Signer
153a5ff1bc tags instead of searchTags 2019-12-05 10:05:42 +01:00
Denis Rouzaud
aec68661ca update python bindings 2019-12-04 22:20:26 +01:00
Julien Cabieces
ba925bb36d Create child feature with geometry from the relation editor (#32528)
* [FEATURE][needs-docs] Create geometric child feature from relation editor
2019-12-04 14:46:32 +01:00
Nyall Dawson
b4bc7cbffd iface.newProject() should return False if a new project could not
be created (e.g. if the user opts to cancel when prompted to save the
current project)
2019-12-04 19:02:46 +10:00
Nyall Dawson
66456a30e7 [labeling] When a layer is set to "blocking" mode, expose the obstacle
settings widget to allow users to tweak the obstacle behavior

Previously these settings were stuck inside the disabled label settings
widget, which meant that to edit them you had to temporarily enable simple
labels, tweak the setting, and then set back to obstacle mode... woot.
2019-12-04 14:47:36 +10:00
Nyall Dawson
d63714ae63 Fix spelling 2019-12-04 14:47:36 +10:00
Nyall Dawson
02fffdc64b [needs-docs] Move label obstacle settings to "placement" tab
and show detailed settings in a stacked panel widget

Because:

1. The settings belong next to the placement settings, because they
affect label placement directly (and are closely associated with the
label priority setting in this tab)

2. The label settings widget is ridiculously complex and overwhelming
even for experienced QGIS users. By moving detailed settings into
stacked panels we can avoid the initial complexity of the label settings
whilst also allowing us more flexibility to expose additional settings
in future without adding to the mess. So in future, I propose we move
all detailed settings to sub panels, and leave only the initial "enable"
setting at the top level (e.g. [x] "Repeat levels" -> click settings -> see
all repeat settings).
2019-12-04 14:47:36 +10:00
Nyall Dawson
ed93ebd91c Add QgsLabelObstacleSettingsWidget widget for customising label obstacle settings 2019-12-04 14:47:36 +10:00
Nyall Dawson
de2b60d7ef Hookup data defined properties support for QgsLabelSettingsWidgetBase 2019-12-04 14:47:36 +10:00
Nyall Dawson
060cfb4eeb [api] New class QgsLabelSettingsWidgetBase
Base class for widgets which allow customisation of label engine properties,
such as label placement settings.
2019-12-04 14:47:36 +10:00
David Signer
161af6ad26 search tags in expression function to look up the functionality in the expression builder 2019-11-28 16:47:48 +01:00
Alessandro Pasotti
d89745aec6
Merge pull request #33103 from elpaso/relation-reference-restore
Relation-reference widget: load dependencies
2019-11-28 10:25:55 +01:00
Nyall Dawson
2800798fef [FEATURE][layouts] Allow drag and drop of pictures onto layouts
E.g. drag an svg from a file explorer onto the layout to create a
new picture item containing that svg image.

Convenience++!
2019-11-28 18:38:31 +10:00
Alessandro Pasotti
37c42c3665 Relation-reference widget: load dependencies
Same behavior of value-relation widget.

Funded by: ARPA Piemonte
2019-11-27 17:54:16 +01:00
Alessandro Pasotti
bcdbc3a85d Attribute table pass fid on ctx menu signals
instead of passing an index that could belong to
one of the (three) models that live in the dual
view.

This hopefully makes the code a bit less error
prone and readable.

Fixes #32952
2019-11-21 05:00:27 +10:00
Nyall Dawson
9a2e015158 Move QObject declaration to header 2019-11-20 10:08:13 +10:00
Matthias Kuhn
be121984bf Apparently sip doesn't like double QObject inheritance
If a list of objects (QList<QgsMapCanvasItem *>) is converted to a list of python objects, sip fails if items inherit from QObject.
Fix #32700
2019-11-11 04:12:47 +10:00
Matthias Kuhn
cb688cbbcc Revert "Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker"
This reverts commit 4b014e6e84093fc59ce9ee085657161b56be189c.
2019-11-11 04:12:47 +10:00
Nyall Dawson
4b014e6e84 Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker
These conversions just crash sip (woo. sip. yay. good times.). I can't find
any alternative approach which avoids this crash, so just remove the cast
to avoid the crash.

Fixes #32700
2019-11-09 13:43:37 +10:00
Hugo Mercier
845894b313
[FEATURE] Selective masking (#30747)
* [FEATURE] Selective masking

Advanced rendering feature that allows the definition of 'masks' areas around labels or with a new typ of symbol layer. These masks will "un-draw" symbol layers of other layers underneath.
It modifies the rendering process by adding an optional second pass.
2019-11-07 08:17:25 +01:00
Alessandro Pasotti
696c4075da
Merge pull request #32487 from elpaso/value-relation-restore
[feature] Value relation restore missing layers from DBs
2019-11-04 12:03:40 +01:00
Matthias Kuhn
4294dda083 Resipify 2019-11-03 21:05:34 +01:00
Alessandro Pasotti
64949dc227 Check vector layer widget broken dependencies 2019-10-30 14:41:34 +01:00
Matthias Kuhn
f96e1922ca [FEATURE] Parallelize snap index build 2019-10-30 09:32:28 +01:00
Nyall Dawson
351970e1c2 Dox, spelling 2019-10-28 14:34:30 +10:00
Nyall Dawson
b5e92d41f5 [FEATURE] Random marker fill symbol layer type
This commit adds a new fill symbol layer type "Random marker fill". It
allows polygon features to be rendered using a marker symbol placed
at random locations within the polygon boundary.

Options include:
- number of marker symbols to render for the polygon
- whether markers rendered near the edges of polygons should be clipped
to the polygon boundary or not
- an optional random number seed, to give consistent placement
of markers whenever maps are refreshed (also allows random placement
to play nice with QGIS server and tile-based rendering)

Sponsored by the SLYR project
2019-10-28 14:34:30 +10:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Even Rouault
6d47b5d847 [OAPIF] Rename WFS_VERSION_API_FEATURES to WFS_VERSION_API_FEATURES_1_0 2019-10-26 06:47:59 +10:00
Even Rouault
681229a48a [OAPIF provider] Integrate provider within WFS provider GUI
Funded by Planet
2019-10-26 06:47:59 +10:00
Julien Cabieces
e4da0ac8c9 Revert "Merge pull request #31374 from troopa81/parallelize_snap_caching"
This reverts commit 87b1aa9a5d6efb279693aea68dc2dcb5b51b3e86
2019-10-18 14:50:33 +10:00
Denis Rouzaud
2406837650
replace deprecated in by deprecated since (#32260) 2019-10-15 15:56:54 +02:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00