Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3105 from volaya/processing_cleanup
[processing] cleanup and improvements
- Loading branch information
Showing
38 changed files
with
376 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
python/plugins/processing/algs/examplescripts/ProcessingExampleScriptsPlugin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
18 changes: 18 additions & 0 deletions
18
python/plugins/processing/algs/examplescripts/metadata.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
3 changes: 3 additions & 0 deletions
3
python/plugins/processing/algs/examplescripts/scripts/examplescript.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
##text=string | ||
|
||
print text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.