Matthias Kuhn
d7b75d1e99
Immediately apply configuration after change
2018-04-09 13:10:49 +02:00
Matthias Kuhn
dbced352b8
Fix use before assign
2018-04-09 13:10:48 +02:00
Matthias Kuhn
eb39d2379c
Move processing algorithm configuration code to gui lib
2018-04-09 13:10:47 +02:00
Matthias Kuhn
3be4324d60
Move processing algorithm configuration widget to gui library
...
This way we can also use all the fancy widgets like a QgsExpressionLineEdit.
2018-04-09 13:10:47 +02:00
Matthias Kuhn
e6ef7639cb
[processing] Allow algorithms to provide additional configuration widgets
2018-04-09 13:10:46 +02:00
Matthias Kuhn
4e4c189820
Remove unrequired cast
2018-04-05 22:50:13 +02:00
Matthias Kuhn
6eabb45043
Fix type hints in ModelerParametersDialog attributes
2018-04-05 22:47:23 +02:00
Matthias Kuhn
7c191a46c2
Make modeler text translatable
2018-04-05 22:47:12 +02:00
Rashad Kanavath
3408e02c46
[processing] create and manage label in WidgetWrapper
...
ModelerParametersDialog and ParametersPanel have to keep list of
wrappers only. widget and label( if needed) are created through
WidgetWrapper.createLabel()
2018-04-03 06:09:44 +10:00
Alexander Bruy
a54192cb72
[processing][help] use new anchor style also for modeler
2018-02-25 12:23:57 +02:00
Nyall Dawson
206f22b9c7
[processing] Fix algorithm help link in modeler
...
Fixes #18147
2018-02-20 10:03:27 +11:00
Nyall Dawson
2d1e9188f1
[processing] Allow providers to return a different helpId() vs
...
their unique id()
This is used when generating the QgsHelp url for algorithms
attached to the providers.
Implement helpId overrides for the native and 3d providers so
that they return 'qgis' helpIds, meaning that all QGIS processing
algorithm documentation can be kept within the same url path
regardless of which QGIS provider library it sits within.
This also allows us to freely move algorithms from the Python
'qgis' provider to c++ 'native' provider in future releases
without breaking the help URLs.
Fixes #17231
2018-02-09 11:26:03 +10:00
Denis Rouzaud
3dc3d9d1b2
unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
...
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Nyall Dawson
097a437af8
[processing] Fix missing outputs in modeler for grass algs ( fixes #17703 )
2018-01-24 19:00:58 +11:00
Alexander Bruy
a0ce648175
[processing] use groupId when constructing help URL
2017-12-15 12:11:46 +02:00
Matthias Kuhn
3d626b716a
Fix file mode
2017-12-14 09:04:07 +01:00
Alexander Bruy
3d4a59bb8b
[processing] cleanup files from unused code and remove some files
2017-11-28 12:27:45 +02:00
Alexander Bruy
0059b2b692
[processing] remove Python 2 compatibility layer
2017-11-28 12:27:45 +02:00
Alexander Bruy
3a576d80b2
[processing] restore Help button functionality in modeler ( fix #17483 )
2017-11-23 16:16:08 +02:00
Nyall Dawson
4a974eab18
Cleanup model algorithm parameter definition dialog
2017-09-12 17:12:13 +10:00
Nyall Dawson
451a3fab26
Reformat code
2017-08-23 02:14:29 +10:00
Nyall Dawson
cdbb57d65f
Don't throw python exception when modeler algorithm is missing inputs
...
Instead use nicer messagebar for feedback. Also fix untranslatable
strings.
Refs #17028
2017-08-23 02:14:24 +10:00
Nyall Dawson
b318aff6ff
Fix multi layer parameters in models not giving all options for inputs
2017-08-17 05:12:11 +10:00
arnaud.morvan@camptocamp.com
b26e6812d4
[processing] Check all parameter's values in ModelerParametersDialog
...
Check that all parameter's values pass the validity check,
even if not returned as QgsProcessingModelChildParameterSource.
In case of list, tests that it is really a QgsProcessingModelChildParameterSource list,
and create a QgsProcessingModelChildParameterSource from the list if it is not the case
(useful for custom parameters that return lists as ParameterFieldsMapping).
2017-08-14 13:48:50 +02: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
7db1a9dfd3
Save and restore window geometry for modeler dialogs
2017-07-08 20:49:17 +10:00
Nyall Dawson
3665e462c8
Use a filter line edit for outputs
2017-07-08 20:49:17 +10:00
Nyall Dawson
0836c60712
Make model editor dialog more robust while loading models
2017-07-08 20:49:17 +10:00
Nyall Dawson
9d04f87249
Rename "output" style parameters for clarity
...
The previous naming was too easily confused with processing outputs.
Rename them to QgsProcessingParameterFileDestination, etc... to
make it clearer what they are used for.
2017-07-08 20:49:17 +10:00
Nyall Dawson
d8086e549d
Use c++ method for available sources
2017-07-07 11:35:31 +10:00
Nyall Dawson
77588b9b61
Convert model child algorithm parameter sources to a list
...
So that multiple input type parameters are correctly handled,
allowing models with child algorithms like merge to correctly
use any combination of static layers/model inputs/child outputs
as their input parameter
2017-06-30 12:50:38 +10:00
Nyall Dawson
11d35821c0
Fix setting number inputs to algorithms in modeler
2017-06-27 08:33:13 +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
459244126f
Indentation
2017-06-20 14:45:13 +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
Alexander Bruy
ffac4f9648
[processing] simplify modeler algorithm dialog and use new help in it
...
too
2017-06-06 10:51:22 +03:00
Nyall Dawson
189f804714
Adapt more code to c++ API
2017-06-06 07:41:19 +10:00
Nyall Dawson
ef59d0c454
Port parameter checking to c++
2017-06-06 07:41:19 +10:00
Nyall Dawson
9997ab6e1e
Partially port wrappers to QgsProcessingParameterDefinition
...
And create a new WidgetWrapperFactory for creating a suitable wrapper
corresponding to a parameter
2017-06-06 07:41:19 +10:00
Nyall Dawson
2a1a71574a
Move algorithm id (previously commandLineName) to QgsProcessingAlgorithm
2017-04-07 13:21:28 +10:00
Nyall Dawson
6987d7b37c
Port handling of algorithm names to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
8e6d792710
Swap all QScrollAreas to QgsScrollAreas
2017-03-21 08:46:41 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +01:00
arnaud.morvan@camptocamp.com
7bffef7044
[processing] Fix ModelerParametersDialog when len(widget) == 0
2017-02-10 11:01:41 +01:00
Nyall Dawson
9124100fb6
Python formatting updates
2017-01-23 12:25:19 +10:00