Skip to content
Permalink
Browse files

[sextante] removed actions from toolbox, as they can be confusing. Th…

…e toolbox should contain only algorithms
  • Loading branch information
volaya committed Apr 19, 2013
1 parent 7feb1af commit d4d26257b77a8d41ba2a91e62b5e68d9bfde270d
@@ -56,7 +56,6 @@
from sextante.parameters.ParameterCrs import ParameterCrs
from sextante.parameters.ParameterString import ParameterString

from sextante.outputs.OutputHTML import OutputHTML
from sextante.outputs.OutputRaster import OutputRaster
from sextante.outputs.OutputTable import OutputTable
from sextante.outputs.OutputVector import OutputVector
@@ -168,12 +167,6 @@ def initGUI(self):
self.verticalLayout.addStretch(1000)
self.setLayout(self.verticalLayout)

#=======================================================================
# for param in self.alg.parameters:
# if isinstance(param, ParameterExtent):
# self.widgets[param.name].useMinCovering()
#=======================================================================

def showAdvancedParametersClicked(self):
self.showAdvanced = not self.showAdvanced
if self.showAdvanced:
@@ -42,7 +42,7 @@ class ModelerAlgorithmProvider(AlgorithmProvider):

def __init__(self):
AlgorithmProvider.__init__(self)
self.actions = [CreateNewModelAction()]
#self.actions = [CreateNewModelAction()]
self.contextMenuActions = [EditModelAction(), DeleteModelAction(), SaveAsPythonScriptAction()]

def initializeSettings(self):
@@ -56,7 +56,7 @@ def modelsFolder(self):
return ModelerUtils.modelsFolder()

def getDescription(self):
return "Modeler"
return "Models"

def getName(self):
return "model"
@@ -43,7 +43,7 @@ class RAlgorithmProvider(AlgorithmProvider):
def __init__(self):
AlgorithmProvider.__init__(self)
self.activate = False
self.actions.append(CreateNewRScriptAction())
#self.actions.append(CreateNewRScriptAction())
self.contextMenuActions = [EditRScriptAction(), DeleteRScriptAction()]

def initializeSettings(self):
@@ -41,7 +41,7 @@ class ScriptAlgorithmProvider(AlgorithmProvider):

def __init__(self):
AlgorithmProvider.__init__(self)
self.actions.append(CreateNewScriptAction())
#self.actions.append(CreateNewScriptAction())
self.contextMenuActions = [EditScriptAction(), DeleteScriptAction()]

def initializeSettings(self):

0 comments on commit d4d2625

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