65 Commits

Author SHA1 Message Date
Ivan Ivanov
d32369f5ce Translate qgis::fieldcalculator to C++ (simplistic UI) 2020-09-11 10:55:12 +03:00
Nyall Dawson
c92354640c [processing] Use an editable combobox with current project layout names
when editing a model which uses the print layout parameter type

Instead of a plain text edit with no hints as to the current project's layouts
2020-06-29 11:50:34 +10:00
Martin Dobias
49f832a24d Added widget wrapper, added two separate algorithms (xyz + mbtiles) 2020-05-08 12:55:08 +02:00
Martin Dobias
04941ab512 Initial work on Processing alg for vector tile writing 2020-05-08 12:55:08 +02:00
Nyall Dawson
60f40f066a [processing] Fix crashes when running algs in "in place" mode
Fixes #35844
2020-04-20 12:01:46 +10:00
Alexander Bruy
997cebab1a [processing] enable multiple types selection for vector, feature source
and map layer parameters
2020-04-05 05:23:29 +10:00
Alexander Bruy
91229e366a [processing] port map layer parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
4c4c2e34b7 [processing] port range parameter defintion widget to C++ and expose
missed number type and min/max options
2020-04-05 05:23:29 +10:00
Alexander Bruy
abe12c4cd4 [processing] port distance parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
ffd21f3ceb [processing] port scale parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
bae6d214d8 [processing] port number parameter definition widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
7330ca8e37 [processing] port vector layer and feature source parameter definition
widgets to C++
2020-04-05 05:23:29 +10:00
Alexander Bruy
6f84358a9f [processing] port multiple layers parameter defintion widget to C++ 2020-04-05 05:23:29 +10:00
Alexander Bruy
ebd0a72025 [processing] port field parameter definition widget to C++, expose
defaultToAll option to modeler parameter definition dialog
2020-04-05 05:23:29 +10:00
Alexander Bruy
a2ed502cf5 [processing] port band parameter definition widget to C++, expose
option to define multiple bands parameter in modeler parameter defintion
dialog
2020-04-05 05:23:29 +10:00
Nyall Dawson
a80bdc47e5 [processing] Add API and interfaces so that widget wrappers can retrieve the
current set of parameters for other parameters when required
2020-04-04 17:58:55 +10:00
Nyall Dawson
c98cd8d1a8 Partial port of destination wrappers to c++ API 2020-04-02 02:29:54 +10:00
Nyall Dawson
e386573c0c [FEATURE][processing] Port multi-layer input parameter widget to new API
Allows
- expression based inputs
- rearrangement of inputs for multi-layer parameters in models, to set
specific layer orders
2020-03-31 01:06:48 +10:00
Nyall Dawson
a682405ccb [processing] Partial port of Multi Input parameter widget (standard and batch) 2020-03-31 01:06:48 +10:00
Nyall Dawson
8bca81838e [processing] Port Raster Band parameter to new widget wrapper API 2020-03-31 01:06:48 +10:00
Nyall Dawson
d40990e155 [feature][processing] Port Feature Source, Raster, Vector and Mesh Layer parameters to new API 2020-03-29 05:56:23 +10:00
Nyall Dawson
7269d682b3 [FEATURE][processing] Port map layer widget wrapper to new c++ api
This is a test run, after merged I'll port the other similar map layer
parameters (feature source, raster layer, vector layer, etc)
2020-03-28 12:04:43 +10:00
Alexander Bruy
72404a9038 [processing] use native matrix parameter definition widget 2020-03-27 07:08:42 +10:00
Alexander Bruy
87eefa325e [processing] use native enum parameter definition widget 2020-03-27 07:08:42 +10:00
Nyall Dawson
1915a16bf3 Port extent parameter to new c++ API widget wrapper 2020-03-25 19:25:40 +10:00
Alexander Bruy
16b4ef8e32 [processing] port expression parameter definition widget to C++ 2020-03-19 11:49:13 +02:00
Alexander Bruy
972223b55e [processing] port point parameter definition widget to C++ 2020-03-19 11:49:13 +02:00
Alexander Bruy
f4e4adbef8 [processing] port CRS parameter defintion widget to C++ 2020-03-19 11:49:13 +02:00
Nyall Dawson
55845ee702 Widget wrapper for database table parameter 2020-03-14 16:57:14 +10:00
Nyall Dawson
71a90aa8f0 Widget wrapper for schema param 2020-03-14 16:57:14 +10:00
Nyall Dawson
6997c18287 Add widget wrapper for provider connection parameter 2020-03-10 19:10:52 +10:00
Nyall Dawson
bdd951aa6b Add widget wrapper for datetime parameters 2020-02-24 17:23:41 +10:00
Nyall Dawson
bbc9f7bc00 [processing] Add parameter definition config widget for map theme parameters 2020-01-05 20:50:05 +10:00
Nyall Dawson
35e7fc7746 Add widget wrapper for processing map theme parameter type 2020-01-05 20:50:05 +10:00
Nyall Dawson
223dfafb15 [processing] Port field parameter widget to new API 2020-01-05 08:59:38 +10:00
Alexander Bruy
b5d71d39ac [processing] add "not set" support for range parameter (fix #29374, refs #29269) 2020-01-02 08:36:54 +02:00
Nyall Dawson
90f3abfcad [processing] Add gui widget wrappers for coordinate operation parameter 2019-12-21 05:07:39 +10:00
Nyall Dawson
5a7105af7d [FEATURE][processing] Allow file filter and default value to be set
for file/folder inputs in models
2019-07-08 15:07:42 +10:00
Nyall Dawson
e05572a11d Port file parameter definition widget to new APi 2019-07-08 15:07:42 +10:00
Nyall Dawson
b9c9ad05bc [processing][needs-docs] Allow string parameters in models to be multi-line input style 2019-07-03 05:11:06 +10:00
Nyall Dawson
8e3287a7ee Add modeler parameter config for color parameters 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
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
Nyall Dawson
719a225bca [processing] Port point widget wrapper to new API
And switch to a snapping canvas tool when selecting points from canvas
2019-03-17 16:19:40 +10:00
Nyall Dawson
32fbf0a92b [processing][FEATURE] New parameter type for map scales
This adds a new parameter type specifically for map scales,
QgsProcessingParameterScale. The values are evaluated using
self.parameterAsDouble, which returns the map scale
denominator (matching the standard in other parts of the
QGIS API).

Scale parameters are displayed to users using the standard
QgsScaleWidget, which includes the combo box of predefined
scales and a shortcut button to match the current map scale.
2019-03-13 16:52:29 +10:00
Nyall Dawson
021d1ef237 [FEATURE][processing] New parameter types for layouts and layout items
Allows processing algorithms which operate on a specific layout
and layout item selection
2019-03-12 08:16:52 +10:00
Nyall Dawson
cccf974211 [processing] Port enum widget wrapper to new API
Fixes:
- enum parameters set to "allow multiple" only allow a single
value selection when used in modeler
- optional enum parameters cannot be set to no value when
used outside of modeler

Fixes #20406
2019-03-08 15:46:59 +10:00