60 Commits

Author SHA1 Message Date
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
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
dab4a04309 [processing] Draw arrows connected to selected/hovered components
slightly darker

Makes it easier to track connections in a complex model
2019-03-01 15:39:49 +10:00
Nyall Dawson
2178e1a71a [processing] Pre-highlight model components on hover 2019-03-01 15:39:49 +10:00
Nyall Dawson
93de4d15a6 [processing] Show tooltips in modeler when hovering over model component 2019-03-01 15:39:49 +10:00
Mathieu Pellerin
6957009f8b [themes] Fix the processing modeler's rendering on dark backgrounds 2019-01-15 12:24:50 +07:00
arnaud.morvan@camptocamp.com
81dabd185c [processing] Finish default values in model for destination parameters 2018-05-14 22:12:32 +10:00
Nyall Dawson
1a45a79719 [processing][model] Fix handling of mandatory checkbox in output definitions 2018-05-14 22:12:32 +10:00
arnaud.morvan@camptocamp.com
4ccd4446fe [processing] Add default values in model for destination parameters 2018-05-14 22:12:32 +10:00
nirvn
08db66fb03 [processing] draw vector icons when available in modeler 2018-04-30 13:04:20 +07:00
Matthias Kuhn
e6ef7639cb [processing] Allow algorithms to provide additional configuration widgets 2018-04-09 13:10:46 +02:00
Matthias Kuhn
4a14a36034 Remove leftover method getCustomModelerParametersDialog 2018-04-09 09:15:15 +02:00
Matthias Kuhn
eeb6f44df7 Some addition error case info 2018-03-07 09:00:33 +11:00
Matthias Kuhn
8b784400f7 Avoid catchall exception 2018-03-01 08:12:41 -05:00
Matthias Kuhn
3d626b716a Fix file mode 2017-12-14 09:04:07 +01:00
Nyall Dawson
4a974eab18 Cleanup model algorithm parameter definition dialog 2017-09-12 17:12:13 +10:00
Nyall Dawson
370b26798f Fix wrapped c++ object has been deleted error when editing model parameters
Fixes #16858
2017-08-19 03:24:28 +10:00
Nyall Dawson
e0fbe3409a Use ellipsis for isolated strings in plugins too 2017-08-11 04:33:18 +10:00
Nyall Dawson
f49b603443 Split QgsProcessingModelAlgorithm into separate components
The cpp/h file was getting too large, so split off the individual
subcomponents into their own h/cpp files to keep code
maintainable.
2017-07-08 20:49:17 +10:00
Nyall Dawson
37cc8fc5f1 Don't allow removal of model parameters on which other parameters
depend
2017-07-03 11:02:45 +10:00
Nyall Dawson
f9f98593e0 Draw links between dependent parameters in graphical modeler
Fix #12907
2017-07-03 10:27:03 +10:00
Nyall Dawson
9c47e1b148 Fix errors when edit model help 2017-06-24 07:35:56 +10:00
Nyall Dawson
24eb6fd780 Fix loss of output names in graphical modeler 2017-06-23 13:32:31 +10:00
Nyall Dawson
c36169a0ba Fix some errors in graphical modeler 2017-06-22 06:45:21 +10:00
Nyall Dawson
d3a2f7cd65 Models can now be saved and restored 2017-06-20 19:23:21 +10:00
Nyall Dawson
179a377da0 Port more model to c++ 2017-06-20 15:31:53 +10:00
Nyall Dawson
1a4a654f8b Port more model API across to c++ 2017-06-20 14:45:13 +10:00
Nyall Dawson
f6358b2118 Begin port of modeler algorithm to c++ 2017-06-20 14:45:13 +10:00
Nyall Dawson
efe8bba006 Work on resurrecting modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
5d8f2d99ab Fix working with inputs in modeler 2017-06-20 14:45:13 +10:00
Nyall Dawson
189f804714 Adapt more code to c++ API 2017-06-06 07:41:19 +10:00
Nyall Dawson
6987d7b37c Port handling of algorithm names to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Nyall Dawson
faa8a653b2 Move algorithm icon handling to QgsProcessingAlgorithm 2017-04-03 21:17:45 +10:00
Juergen E. Fischer
c77172ed3d fix more flake8 warnings 2017-03-05 10:21:24 +01:00
Nyall Dawson
47683fca4f [needs-docs] Rename Outline and Border -> Stroke
This change is being driven by:

- need for consistent terminology in the api. Currently there's
a confusing mix of border/outline used
- need for consistent terminology in the gui - we have a mix
of "border"/"outline"/"pen"
- bringing QGIS into line with the standard terminology used
in other graphic editing programs
2017-02-22 19:22:45 +10:00
Nyall Dawson
0bdc99000c Cosmetic improvements to procesing modeller
- always use a 1px outline around items, regardless of zoom
- don't change text color for selected items (too hard to read),
instead change outline/box color
2017-01-04 07:50:33 +10:00
nirvn
f54476cdda [FEATURE] Export processing models as PDF/SVG 2017-01-02 11:47:54 +07:00
nirvn
4603eb0f3d [processing] update color scheme and position of modeler elements 2017-01-02 09:30:17 +07:00
nirvn
d01e3feafc [processing] convert modeler icons to pictures to kill pixels when zoomed 2017-01-02 08:47:11 +07:00
nirvn
8849e94208 [processing] vectorize basic modeler images 2016-12-31 11:59:53 +07:00
nirvn
b48d20220e [processing] resurrect editing of modeler item on double-click 2016-10-31 11:18:22 +07:00
nirvn
bd7149ce16 [processing] fix broken modeler under pyqt5/python3 (fixes #15734) 2016-10-21 10:11:22 +07:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Matthias Kuhn
b956886e81 [processing] Initialize icons before first usage 2016-02-04 13:35:16 +01:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
radosuav
2a260edba8 [processing] [fixes #13034] Fix exception when editing model 2015-09-14 21:11:24 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
HenningJagd
8c624a3452 [processing] fix folding in the model
Earlier commit broke the update of lines when folding  parameters in the
modeler. This one fixes it again.
2015-05-22 23:14:46 +02:00
HenningJagd
4e6394e213 [processing] fixed disappearing lines in modeler
Moved the updating of paths of arrows/lines in the modeler out of the
paint method, fixing various rendering problems.
2015-05-22 14:20:23 +02:00