Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] change icon of core algs
- Loading branch information
|
@@ -173,10 +173,11 @@ def __init__(self): |
|
|
|
|
|
folder = os.path.join(os.path.dirname(__file__), 'scripts') |
|
|
scripts = ScriptUtils.loadFromFolder(folder) |
|
|
for script in scripts: |
|
|
script._icon = self._icon |
|
|
for script in scripts: |
|
|
script.allowEdit = False |
|
|
self.alglist.extend(scripts) |
|
|
for alg in self.alglist: |
|
|
alg._icon = self._icon |
|
|
|
|
|
def initializeSettings(self): |
|
|
AlgorithmProvider.initializeSettings(self) |
|
|
|
@@ -53,6 +53,8 @@ |
|
|
|
|
|
|
|
|
class GeoAlgorithm: |
|
|
|
|
|
_icon = QtGui.QIcon(os.path.dirname(__file__) + '/../images/alg.png') |
|
|
|
|
|
def __init__(self): |
|
|
# Parameters needed by the algorithm |
|
@@ -104,11 +106,11 @@ def getCopy(self): |
|
|
# methods to overwrite when creating a custom geoalgorithm |
|
|
|
|
|
def getIcon(self): |
|
|
return QtGui.QIcon(os.path.dirname(__file__) + '/../images/alg.png') |
|
|
return self._icon |
|
|
|
|
|
@staticmethod |
|
|
def getDefaultIcon(): |
|
|
return QtGui.QIcon(os.path.dirname(__file__) + '/../images/alg.png') |
|
|
return GeoAlgorithm._icon |
|
|
|
|
|
def help(self): |
|
|
"""Returns the help with the description of this algorithm. |
|
|