Skip to content
Permalink
Browse files

Merge pull request #4729 from nyalldawson/processing_model_c++

Porting processing model algorithm to C++, pt 1
  • Loading branch information
nyalldawson committed Jun 20, 2017
2 parents 8b98db0 + d3a2f7c commit 3615a7d7d6636bdd5b809c820a67572489c9d5ea
Showing with 3,994 additions and 845 deletions.
  1. +1 −0 python/core/core.sip
  2. +6 −0 python/core/processing/qgsprocessingalgorithm.sip
  3. +755 −0 python/core/processing/qgsprocessingmodelalgorithm.sip
  4. +84 −0 python/core/processing/qgsprocessingparameters.sip
  5. +1 −0 python/plugins/processing/gui/BatchAlgorithmDialog.py
  6. +16 −13 python/plugins/processing/gui/NumberInputPanel.py
  7. +17 −45 python/plugins/processing/gui/Postprocessing.py
  8. +32 −27 python/plugins/processing/gui/wrappers.py
  9. +4 −10 python/plugins/processing/modeler/AddModelFromFileAction.py
  10. +57 −388 python/plugins/processing/modeler/ModelerAlgorithm.py
  11. +11 −6 python/plugins/processing/modeler/ModelerAlgorithmProvider.py
  12. +2 −2 python/plugins/processing/modeler/ModelerArrowItem.py
  13. +64 −65 python/plugins/processing/modeler/ModelerDialog.py
  14. +95 −62 python/plugins/processing/modeler/ModelerGraphicItem.py
  15. +86 −85 python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
  16. +116 −79 python/plugins/processing/modeler/ModelerParametersDialog.py
  17. +44 −42 python/plugins/processing/modeler/ModelerScene.py
  18. +0 −21 python/plugins/processing/tests/ModelerTest.py
  19. +2 −0 src/core/CMakeLists.txt
  20. +10 −0 src/core/processing/qgsprocessingalgorithm.cpp
  21. +7 −0 src/core/processing/qgsprocessingalgorithm.h
  22. +780 −0 src/core/processing/qgsprocessingmodelalgorithm.cpp
  23. +769 −0 src/core/processing/qgsprocessingmodelalgorithm.h
  24. +272 −0 src/core/processing/qgsprocessingparameters.cpp
  25. +57 −0 src/core/processing/qgsprocessingparameters.h
  26. +24 −0 src/core/qgsxmlutils.cpp
  27. +682 −0 tests/src/core/testqgsprocessing.cpp
@@ -288,6 +288,7 @@
%Include processing/qgsprocessingalgrunnertask.sip
%Include processing/qgsprocessingcontext.sip
%Include processing/qgsprocessingfeedback.sip
%Include processing/qgsprocessingmodelalgorithm.sip
%Include processing/qgsprocessingoutputs.sip
%Include processing/qgsprocessingparameters.sip
%Include processing/qgsprocessingprovider.sip
@@ -276,6 +276,12 @@ class QgsProcessingAlgorithm
:rtype: bool
%End

void removeParameter( const QString &name );
%Docstring
Removes the parameter with matching ``name`` from the algorithm, and deletes any existing
definition.
%End

bool addOutput( QgsProcessingOutputDefinition *outputDefinition /Transfer/ );
%Docstring
Adds an output ``definition`` to the algorithm. Ownership of the definition is transferred to the algorithm.

0 comments on commit 3615a7d

Please sign in to comment.
You can’t perform that action at this time.