Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] enabled create new script action
  • Loading branch information
volaya committed Sep 24, 2013
1 parent 75ba3be commit bb63eb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/r/RAlgorithmProvider.py
Expand Up @@ -24,7 +24,6 @@
__revision__ = '$Format:%H$'

import os.path

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from processing.core.ProcessingConfig import ProcessingConfig, Setting
Expand All @@ -44,7 +43,7 @@ class RAlgorithmProvider(AlgorithmProvider):
def __init__(self):
AlgorithmProvider.__init__(self)
self.activate = False
#self.actions.append(CreateNewScriptAction("Create new R script", CreateNewScriptAction.SCRIPT_R))
self.actions.append(CreateNewScriptAction("Create new R script", CreateNewScriptAction.SCRIPT_R))
self.contextMenuActions = [EditScriptAction(EditScriptAction.SCRIPT_R),
DeleteScriptAction(DeleteScriptAction.SCRIPT_R)
]
Expand Down
7 changes: 1 addition & 6 deletions python/plugins/processing/script/ScriptAlgorithmProvider.py
Expand Up @@ -24,29 +24,24 @@
__revision__ = '$Format:%H$'

import os.path

from PyQt4.QtCore import *
from PyQt4.QtGui import *

from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.core.ProcessingLog import ProcessingLog
from processing.core.AlgorithmProvider import AlgorithmProvider

from processing.gui.EditScriptAction import EditScriptAction
from processing.gui.DeleteScriptAction import DeleteScriptAction
from processing.gui.CreateNewScriptAction import CreateNewScriptAction

from processing.script.ScriptAlgorithm import ScriptAlgorithm
from processing.script.ScriptUtils import ScriptUtils
from processing.script.WrongScriptException import WrongScriptException

import processing.resources_rc

class ScriptAlgorithmProvider(AlgorithmProvider):

def __init__(self):
AlgorithmProvider.__init__(self)
#self.actions.append(CreateNewScriptAction("Create new script", CreateNewScriptAction.SCRIPT_PYTHON))
self.actions.append(CreateNewScriptAction("Create new script", CreateNewScriptAction.SCRIPT_PYTHON))
self.contextMenuActions = [EditScriptAction(EditScriptAction.SCRIPT_PYTHON),
DeleteScriptAction(DeleteScriptAction.SCRIPT_PYTHON)
]
Expand Down

0 comments on commit bb63eb1

Please sign in to comment.