56208 Commits

Author SHA1 Message Date
Nyall Dawson
b8e53dc012 Add missing visual links between layout and layout item parameters in models 2019-07-01 17:01:34 +10:00
Nyall Dawson
a9788339ea Port an item type which has a parent parameter choice (layout items) for reference 2019-07-01 17:01:34 +10:00
Nyall Dawson
d83997c490 Port string parameter to new config widget 2019-07-01 17:01:34 +10:00
Nyall Dawson
477d3b1f1a Port boolean widget config dialog to new API 2019-07-01 17:01:34 +10:00
Nyall Dawson
10d6a8a122 [processing][API] Add API to QgsProcessingGuiRegistry and QgsProcessingParameterWidgetFactoryInterface
to handle creation of parameter definition widgets

Previously, these configuration widgets were all hardcoded into the Python modeler
dialog. This prevented 3rd party, plugin provided, parameters from ever being full
first class citizens in QGIS, as there was no way to allow their use as inputs to
user created models to be customised.

Now, the registry is responsible for creating the configuration widget, allowing
for 3rd party parameter types to provide their own customised configuration
widgets.

Refs #26493
2019-07-01 17:01:34 +10:00
Nyall Dawson
b0d7c2927e Expose contentAsString to QgsNetworkContentFetcherTask 2019-07-01 15:38:45 +10:00
Nyall Dawson
bb9fb49887 Add auth support to QgsNetworkContextFetcher 2019-07-01 15:38:45 +10:00
Harrissou Sant-anna
62e8a9b726 Add a bunch of automatic geometry restoration
and remove some dedicated methods
2019-07-01 08:51:51 +10:00
Juergen E. Fischer
165b5c2bfb font symbol: add preview in selected font, revert line edit to default font and single character replacement. Insert only with Ctrl or if there is already more than one character selected (followup 46eeaa0b) 2019-06-30 22:55:14 +02:00
Nyall Dawson
d96c7386b1 Allow creation of color parameters with no opacity control 2019-07-01 06:32:21 +10:00
Nyall Dawson
8fc63bff88 Remove unnecessary translation 2019-07-01 06:32:21 +10:00
Nyall Dawson
38bb5fb260 [FEATURE][processing] New parameter type for colors
Allows for algorithms which require a color value as an input
2019-07-01 06:32:21 +10:00
Juergen E. Fischer
897198f374 create geopackage on the fly when saving projects to it and fix misleading error message when project name has been edited 2019-06-30 18:02:01 +02:00
Juergen E. Fischer
46eeaa0b72 font symbol: show line edit in symbol font and insert clicked symbols instead of replacing 2019-06-30 17:18:23 +02:00
Juergen E. Fischer
c1bcda4635 processing: save splitter position of base dialog 2019-06-30 14:38:18 +02:00
Juergen E. Fischer
d9de9ab9f6 translation fixes 2019-06-30 14:38:18 +02:00
Martin Dobias
b1794ee88b [ows] Remove dead GUI-related data items code 2019-06-30 00:10:30 +02:00
Martin Dobias
58a01ba62d [geonode] Move GUI related code to new files, remove legacy data items calls 2019-06-30 00:10:30 +02:00
Martin Dobias
9dfb7db3a4 [delimitedtext] Move GUI-related code to a separate file 2019-06-30 00:10:30 +02:00
Martin Dobias
0514d79b49 [db2] Move gui related stuff to new files + port legacy data item calls 2019-06-30 00:10:30 +02:00
Martin Dobias
55c70c9626 [arcgisrest] Move QgsDataItem::actions() implementations to gui providers 2019-06-30 00:10:30 +02:00
Martin Dobias
dbccb421b4 [arcgisrest] Move existing data item gui providers to new files 2019-06-30 00:10:30 +02:00
Martin Dobias
18970c6d12 [arcgisrest] Move gui part of providers to new files 2019-06-30 00:10:30 +02:00
Panos Mavrogiorgos
d8b0cdacb7 Make setting "Grass7AlgorithProvider.activateSetting" optional.
This change makes it easier to subclass `Grass7AlgorithProvider` which
allows e.g. to expose GRASS Addons as QGIS plugins.

Disclaimer: `Grass7AlgorithProvider` is a private API and it may change
            without warning. 3rd parties that rely on this should expect
            that their code will break in future releases.
            For more info please check the comments at #30252

Nevertheless, it currently is possible to subclass with something like this:

    class CustomGrassBasedProvider(Grass7AlgorithmProvider):
        # Set descriptionFolder to our own description directory
        descriptionFolder = os.path.join(os.path.dirname(__file__), 'description')

        # 3rd party plugins don't need an activation/deactivation setting
        activateSetting = None

        # define the rest of the methods that are needed (e.g. name(), id() etc)
        # ...

Fixes #30241
Continues #9202
2019-06-29 09:51:13 +10:00
Panos Mavrogiorgos
03f1ae9576 Stop hardcoding activation setting name in Grass7AlgorithmProvider 2019-06-29 09:51:13 +10:00
Nyall Dawson
19909be2d3 Implement a more robust approach for blocking canvas redraws when
we don't want/need them

This prevents a bunch of unwanted redraws being triggered mid-way
through operations like loading projects, which sometimes can
result in crashes.

Fixes #29506, #30169, possibly other crash reports
2019-06-29 09:34:24 +10:00
Juergen E. Fischer
02bc9c9dd2 typo fix 2019-06-28 22:31:10 +02:00
Martin Dobias
95ee338686 [postgres] Port data items' drag'n'drop and layer deletion to the new api 2019-06-28 22:19:52 +02:00
Martin Dobias
b6a0a2424c [postgres] Move actions() of data items to a QgsDataItemGuiProvider subclass 2019-06-28 22:19:52 +02:00
Martin Dobias
fe3d6fb352 [postgres] Move gui related code to a separate file 2019-06-28 22:19:52 +02:00
Martin Dobias
58eed76bc4 [spatialite] Move GUI part of data items to a QgsDataItemGuiProvider subclass
Also fixes deletetion of layers using the new API + fix for geopackage layer deletion
2019-06-28 22:19:52 +02:00
Martin Dobias
3a4d0395c9 [spatialite] Move gui related provider code to a new file 2019-06-28 22:19:52 +02:00
Blottiere Paul
ee6642477e
Merge pull request #30071 from lbartoletti/wms_tile_buffer
[server]New parameter for WMS service: tile_buffer
2019-06-28 16:22:05 +02:00
rldhont
169de69332
Merge pull request #10034 from rldhont/server-feature-id-primary-keys-revival
[Server] Use primary keys to build feature id
2019-06-28 12:08:12 +02:00
Alessandro Pasotti
e51c110eff
Merge pull request #30451 from elpaso/show-json-in-identify
Fix json(b) representation on feature identify
2019-06-28 08:10:42 +02:00
nirvn
ea27d55905 [arcgisrest] Only show 'all layers' item for the AMS provider 2019-06-28 11:46:46 +07:00
Nyall Dawson
fcd0615cf3 Fix incorrect expression error when using a function with all optional parameters and none are specified 2019-06-28 13:14:17 +10:00
Nyall Dawson
018ca7c447 [FEATURE] New expression function "attributes"
Returns a map containing all attributes from a feature, with field
names as map keys. We've got featureful, robust support for working
with maps in expressions now, so this allows rapid conversion
of all feature attributes to a map to use with these handy
functions.
2019-06-28 13:14:17 +10:00
Nyall Dawson
99d6524407 Dox++ 2019-06-28 09:45:48 +10:00
Nyall Dawson
ca1f255973 Remove remaining atom/nucleon references 2019-06-28 09:45:48 +10:00
Nyall Dawson
03af890132 Address review comments 2019-06-28 09:45:48 +10:00
Nyall Dawson
27f9bf66d6 Spelling 2019-06-28 09:45:48 +10:00
Nyall Dawson
a750507fd1 Replace composition converter reference images -- new legend rendering code has superior results to reference images 2019-06-28 09:45:48 +10:00
Nyall Dawson
995f29f8e7 Further legend positioning fixes 2019-06-28 09:45:48 +10:00
Nyall Dawson
81ea3f3744 Tweak grid arrangement 2019-06-28 09:45:48 +10:00
Nyall Dawson
142e5f2f01 [FEATURE][layouts] Expose setting to control margin under legend group and subgroup headings
Allows tweaking of the spacing applied under group/subgroup headings... so you can get
your layout legend looking pixel-perfect!
2019-06-28 09:45:48 +10:00
Nyall Dawson
6aeedfe20b [FEATURE][layouts] Expose choice of arrangement of legends (i.e.
symbols to the left OR symbols to the right of legend text), and
alignment for group/subgroup/item text

Allows creation of right-to-left locale friendly legends. Additionally,
we default to this right-to-left style alignment when creating new
legends under a RTL based locale.
2019-06-28 09:45:48 +10:00
Nyall Dawson
640283f700 Add new reusable combo box widget for alignment choices
QgsAlignmentComboBox presents users with a (filterable) selection
of horizontal alignment choices, e.g. left/right/center
2019-06-28 09:45:48 +10:00
Nyall Dawson
ec86fcef8d Address review comments 2019-06-28 08:28:55 +10:00
Nyall Dawson
da79b6f0e6 [FEATURE][labels] New text "background" setting for marker symbol backgrounds
Allows for rendering a marker symbol in the background of labels
(complementing the existing shapes/SVG choices). This allows use
of QGIS marker symbology as a background symbol behind labels (e.g.
for highway shield labels)
2019-06-28 08:28:55 +10:00