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
534844f999
Add function to return variables available for child algorithms during
...
model execution
And use this function to determine in advance dependencies between
child algorithm parameters with expression based values and
which other child algorithms they depend upon.
2017-07-07 11:35:31 +10:00
Nyall Dawson
3f9cfe0ce7
Fix setting number parameters to expressions
2017-07-07 11:35:31 +10:00
Nyall Dawson
82ef7d2a89
Create specific expression context scope for child algorithms
...
Contains variables for model parameters, algorithm results for
other child algorithms which are not dependent on the
algorithm.
Allows removal of final pieces of ModelerAlgorithm code
2017-07-07 11:35:31 +10:00
Nyall Dawson
d8086e549d
Use c++ method for available sources
2017-07-07 11:35:31 +10:00
Nyall Dawson
e0c7daa2d8
Rename QgsProcessingAlgorithm::clone to ::create
...
Since it better describes what the function does. It returns a new
pristine copy of the algorithm, not a clone of its current state
2017-07-07 09:27:35 +10:00
Nyall Dawson
6d7b0a3bbc
Fix re-saving already saved models
2017-07-07 09:26:17 +10:00
Nyall Dawson
9156933c9e
Add a pure virtual clone method for algorithms
...
This is required for safely executing the algorithm in a background
thread.
2017-07-07 09:26: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
f4d703bd38
Fix processing modeler joins are drawn doubled
...
OCD fix: joins are actually being drawn with two lines going
in both directions. This is totally 100% unacceptable, so
this commit fixes it so they are correctly drawn only with one line.
2017-07-03 10:25:40 +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
0a32add69e
Port exporting model as python code to c++
2017-06-27 08:33:13 +10:00
Nyall Dawson
178a415c9f
Port parameter conversion to script code to c++
2017-06-27 08:33:13 +10:00
Nyall Dawson
e2331c913c
Fix error when deleting models
2017-06-24 13:49:19 +10:00
Nyall Dawson
5822ef9f46
Refresh model algorithms when providers are added
...
Since algorithms which models are dependent upon may now be
available, we need to rebuild them to ensure that they
will operate correctly.
2017-06-24 13:47:34 +10:00
Nyall Dawson
ab9470dada
More .model -> .model3 updates
2017-06-24 13:34:14 +10:00
Nyall Dawson
5e7fbf44be
Make QgsAlgorithm::setProvider() public
...
Turns out there's valid use cases for calling this from outside
code.
2017-06-24 13:33:44 +10:00
Nyall Dawson
8f586ef020
Move groups from QGIS (and QGIS native) provider to top level items
...
in processing toolbox
Helps aid in user discoverability of these algorithms, and
indicates to users that these should generally be the
preferred algorithm choices if duplicates exist from other
providers.
2017-06-24 12:01:16 +10:00
Nyall Dawson
a8b364e2e2
Port another member to c++
2017-06-24 07:36:46 +10:00
Nyall Dawson
8e88276ab5
Remove another member from ModelerAlgorithm
2017-06-24 07:36:25 +10:00
Nyall Dawson
10aeba2e72
Move more modelling code to c++
2017-06-24 07:36:13 +10:00
Nyall Dawson
e7f13f5bd8
Port model help code to c++
2017-06-24 07:36:07 +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
df07772a56
Fix error when adding parameter
2017-06-22 12:21:25 +10:00
Nyall Dawson
d1ed7d158e
Steps towards executing models
2017-06-22 06:47:11 +10:00
Nyall Dawson
1df9f6b6f0
Start on executing models
2017-06-22 06:47:11 +10:00
Nyall Dawson
c36169a0ba
Fix some errors in graphical modeler
2017-06-22 06:45:21 +10:00
Nyall Dawson
0da3652257
Rename some parameter classes for consistency
2017-06-21 22:13:16 +10:00
Nyall Dawson
d3a2f7cd65
Models can now be saved and restored
2017-06-20 19:23:21 +10:00
Nyall Dawson
9a2f14b931
First steps to model/save restore in c++
...
Models now save to QVariantMap, using QgsXmlUtils to save to
an xml based format (with extension .model3)
2017-06-20 17:26:57 +10:00
Nyall Dawson
179a377da0
Port more model to c++
2017-06-20 15:31:53 +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
Nyall Dawson
5d8f2d99ab
Fix working with inputs in modeler
2017-06-20 14:45:13 +10:00
Nyall Dawson
63611b1d8f
Port script code functions to c++ classes
...
Restore logging executed algorithms
2017-06-12 15:59:56 +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
Alexander Bruy
a137a7c0f3
[processing] open help in the default webbrowser to be consistent with
...
the rest of QGIS dialogs
2017-06-06 10:51:22 +03:00
Nyall Dawson
ea2e477d91
Fix failing tests, temporarily disable some processing tests during
...
refactoring
2017-06-06 07:41:20 +10:00
Nyall Dawson
0c3ad14c79
Adapt more python code to new API
2017-06-06 07:41:19 +10: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
4cb7d18b1c
Push parameters into processAlgorithm and related functions
2017-06-06 07:41:19 +10:00