Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #3105 from volaya/processing_cleanup
[processing] cleanup and improvements
- Loading branch information
Showing
with
376 additions
and 704 deletions.
- +3 −3 python/plugins/processing/ProcessingPlugin.py
- +38 −0 python/plugins/processing/algs/examplescripts/ProcessingExampleScriptsPlugin.py
- +31 −0 python/plugins/processing/algs/examplescripts/__init__.py
- +18 −0 python/plugins/processing/algs/examplescripts/metadata.txt
- +3 −0 python/plugins/processing/algs/examplescripts/scripts/examplescript.py
- +2 −0 python/plugins/processing/algs/grass/GrassUtils.py
- +3 −1 python/plugins/processing/algs/qgis/QGISAlgorithmProvider.py
- +6 −0 python/plugins/processing/core/GeoAlgorithm.py
- +54 −115 python/plugins/processing/core/Processing.py
- +79 −0 python/plugins/processing/core/alglist.py
- +33 −0 python/plugins/processing/core/defaultproviders.py
- +0 −80 python/plugins/processing/gui/AlgorithmClassification.py
- +1 −2 python/plugins/processing/gui/AlgorithmDialogBase.py
- +3 −4 python/plugins/processing/gui/CommanderWindow.py
- +0 −8 python/plugins/processing/gui/ContextAction.py
- +3 −2 python/plugins/processing/gui/CreateNewScriptAction.py
- +3 −3 python/plugins/processing/gui/DeleteScriptAction.py
- +3 −3 python/plugins/processing/gui/EditScriptAction.py
- +7 −7 python/plugins/processing/gui/GetScriptsAndModels.py
- +13 −13 python/plugins/processing/gui/ProcessingToolbox.py
- +5 −6 python/plugins/processing/gui/ScriptEditorDialog.py
- +0 −396 python/plugins/processing/gui/algclasssification.txt
- +5 −4 python/plugins/processing/gui/menus.py
- +2 −1 python/plugins/processing/modeler/AddModelFromFileAction.py
- +2 −1 python/plugins/processing/modeler/CreateNewModelAction.py
- +2 −2 python/plugins/processing/modeler/DeleteModelAction.py
- +2 −2 python/plugins/processing/modeler/EditModelAction.py
- +13 −12 python/plugins/processing/modeler/ModelerAlgorithm.py
- +0 −3 python/plugins/processing/modeler/ModelerAlgorithmProvider.py
- +15 −18 python/plugins/processing/modeler/ModelerDialog.py
- +0 −9 python/plugins/processing/modeler/ModelerUtils.py
- +2 −2 python/plugins/processing/preconfigured/DeletePreconfiguredAlgorithmAction.py
- +2 −2 python/plugins/processing/preconfigured/PreconfiguredAlgorithm.py
- +4 −1 python/plugins/processing/preconfigured/PreconfiguredAlgorithmDialog.py
- +2 −1 python/plugins/processing/script/AddScriptFromFileAction.py
- +14 −0 python/plugins/processing/tests/AlgorithmsTestBase.py
- +1 −1 python/plugins/processing/tools/general.py
- +2 −2 python/plugins/processing/tools/translation.py
@@ -0,0 +1,38 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
__init__.py | ||
--------------------- | ||
Date : May 2016 | ||
Copyright : (C) 2016 by Victor Olaya | ||
Email : volayaf at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
|
||
__author__ = 'Victor Olaya' | ||
__date__ = 'May 2016' | ||
__copyright__ = '(C) 2016, Victor Olaya' | ||
|
||
# This will get replaced with a git SHA1 when you do a git archive | ||
|
||
__revision__ = '$Format:%H$' | ||
|
||
import os | ||
|
||
from processing.core.Processing import Processing | ||
|
||
class ProcessingExampleScriptsPlugin: | ||
|
||
def initGui(self): | ||
Processing.addScripts(os.path.join(os.path.dirname(__file__), "scripts")) | ||
|
||
def unload(self): | ||
Processing.removeScripts(os.path.join(os.path.dirname(__file__), "scripts")) |
@@ -0,0 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
*************************************************************************** | ||
__init__.py | ||
--------------------- | ||
Date : July 2013 | ||
Copyright : (C) 2013 by Victor Olaya | ||
Email : volayaf at gmail dot com | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
*************************************************************************** | ||
""" | ||
from .ProcessingExampleScriptsPlugin import ProcessingExampleScriptsPlugin | ||
|
||
__author__ = 'Victor Olaya' | ||
__date__ = 'July 2013' | ||
__copyright__ = '(C) 2013, Victor Olaya' | ||
|
||
# This will get replaced with a git SHA1 when you do a git archive | ||
|
||
__revision__ = '$Format:%H$' | ||
|
||
|
||
def classFactory(iface): | ||
return ProcessingExampleScriptsPlugin() |
@@ -0,0 +1,18 @@ | ||
[general] | ||
name=Processing Example Scripts | ||
description=An example plugin that adds algorithms to Processing as plugins | ||
category=Analysis | ||
version=1.0 | ||
qgisMinimumVersion=2.0 | ||
|
||
author=Victor Olaya | ||
email=volayaf@gmail.com | ||
|
||
tags=analysis,processing | ||
|
||
homepage= | ||
tracker= | ||
repository= | ||
|
||
experimental=False | ||
deprecated=False |
@@ -0,0 +1,3 @@ | ||
##text=string | ||
|
||
print text |
Oops, something went wrong.