Skip to content
Permalink
Browse files

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.
  • Loading branch information
nyalldawson committed Jul 8, 2017
1 parent cfa1803 commit f49b603443f3bf8fef1e5441ea7b7843c2874342
Showing with 3,022 additions and 1,767 deletions.
  1. +1 −0 python/CMakeLists.txt
  2. +6 −1 python/core/core_auto.sip
  3. +379 −0 python/core/processing/models/qgsprocessingmodelalgorithm.sip
  4. +236 −0 python/core/processing/models/qgsprocessingmodelchildalgorithm.sip
  5. +192 −0 python/core/processing/models/qgsprocessingmodelchildparametersource.sip
  6. +85 −0 python/core/processing/models/qgsprocessingmodelcomponent.sip
  7. +92 −0 python/core/processing/models/qgsprocessingmodeloutput.sip
  8. +70 −0 python/core/processing/models/qgsprocessingmodelparameter.sip
  9. +8 −8 python/plugins/processing/gui/NumberInputPanel.py
  10. +6 −4 python/plugins/processing/modeler/ModelerArrowItem.py
  11. +2 −1 python/plugins/processing/modeler/ModelerDialog.py
  12. +26 −23 python/plugins/processing/modeler/ModelerGraphicItem.py
  13. +13 −10 python/plugins/processing/modeler/ModelerParametersDialog.py
  14. +5 −5 python/plugins/processing/modeler/ModelerScene.py
  15. +6 −9 python/plugins/processing/tests/ModelerTest.py
  16. +13 −2 src/core/CMakeLists.txt
  17. +88 −543 src/core/processing/{ → models}/qgsprocessingmodelalgorithm.cpp
  18. +405 −0 src/core/processing/models/qgsprocessingmodelalgorithm.h
  19. +181 −0 src/core/processing/models/qgsprocessingmodelchildalgorithm.cpp
  20. +254 −0 src/core/processing/models/qgsprocessingmodelchildalgorithm.h
  21. +149 −0 src/core/processing/models/qgsprocessingmodelchildparametersource.cpp
  22. +198 −0 src/core/processing/models/qgsprocessingmodelchildparametersource.h
  23. +62 −0 src/core/processing/models/qgsprocessingmodelcomponent.cpp
  24. +94 −0 src/core/processing/models/qgsprocessingmodelcomponent.h
  25. +47 −0 src/core/processing/models/qgsprocessingmodeloutput.cpp
  26. +98 −0 src/core/processing/models/qgsprocessingmodeloutput.h
  27. +44 −0 src/core/processing/models/qgsprocessingmodelparameter.cpp
  28. +77 −0 src/core/processing/models/qgsprocessingmodelparameter.h
  29. +0 −977 src/core/processing/qgsprocessingmodelalgorithm.h
  30. +2 −2 src/core/processing/qgsprocessingparameters.cpp
  31. +1 −0 tests/src/core/CMakeLists.txt
  32. +182 −182 tests/src/core/testqgsprocessing.cpp
@@ -117,6 +117,7 @@ INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/core/layout
${CMAKE_SOURCE_DIR}/src/core/metadata
${CMAKE_SOURCE_DIR}/src/core/processing
${CMAKE_SOURCE_DIR}/src/core/processing/models
${CMAKE_SOURCE_DIR}/src/core/providers
${CMAKE_SOURCE_DIR}/src/core/providers/memory
${CMAKE_SOURCE_DIR}/src/core/raster
@@ -164,10 +164,15 @@
%Include processing/qgsprocessing.sip
%Include processing/qgsprocessingalgorithm.sip
%Include processing/qgsprocessingcontext.sip
%Include processing/qgsprocessingmodelalgorithm.sip
%Include processing/qgsprocessingoutputs.sip
%Include processing/qgsprocessingparameters.sip
%Include processing/qgsprocessingutils.sip
%Include processing/models/qgsprocessingmodelalgorithm.sip
%Include processing/models/qgsprocessingmodelchildalgorithm.sip
%Include processing/models/qgsprocessingmodelchildparametersource.sip
%Include processing/models/qgsprocessingmodelcomponent.sip
%Include processing/models/qgsprocessingmodeloutput.sip
%Include processing/models/qgsprocessingmodelparameter.sip
%Include providers/memory/qgsmemoryproviderutils.sip
%Include raster/qgsbilinearrasterresampler.sip
%Include raster/qgsbrightnesscontrastfilter.sip

0 comments on commit f49b603

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