Skip to content

Commit

Permalink
Merge pull request #4385 from volaya/remove_processing_commander
Browse files Browse the repository at this point in the history
[FEATURE][processing] remove processing commander
  • Loading branch information
alexbruy authored Apr 24, 2017
2 parents 347934f + 414772b commit 8c80a60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 260 deletions.
20 changes: 0 additions & 20 deletions python/plugins/processing/ProcessingPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
from processing.gui.HistoryDialog import HistoryDialog
from processing.gui.ConfigDialog import ConfigOptionsPage
from processing.gui.ResultsDock import ResultsDock
from processing.gui.CommanderWindow import CommanderWindow
from processing.modeler.ModelerDialog import ModelerDialog
from processing.tools.system import tempFolder
from processing.gui.menus import removeMenus, initializeMenus, createMenus
Expand Down Expand Up @@ -75,7 +74,6 @@ def __init__(self, iface):
Processing.initialize()

def initGui(self):
self.commander = None
self.toolbox = ProcessingToolbox()
self.iface.addDockWidget(Qt.RightDockWidgetArea, self.toolbox)
self.toolbox.hide()
Expand Down Expand Up @@ -126,15 +124,6 @@ def initGui(self):
menuBar.insertMenu(
self.iface.firstRightStandardMenu().menuAction(), self.menu)

self.commanderAction = QAction(
QIcon(os.path.join(cmd_folder, 'images', 'commander.svg')),
self.tr('&Commander'), self.iface.mainWindow())
self.commanderAction.setObjectName('commanderAction')
self.commanderAction.triggered.connect(self.openCommander)
self.menu.addAction(self.commanderAction)
self.iface.registerMainWindowAction(self.commanderAction,
self.tr('Ctrl+Alt+D'))

self.menu.addSeparator()

initializeMenus()
Expand All @@ -158,21 +147,12 @@ def unload(self):
self.iface.unregisterMainWindowAction(self.modelerAction)
self.iface.unregisterMainWindowAction(self.historyAction)
self.iface.unregisterMainWindowAction(self.resultsAction)
self.iface.unregisterMainWindowAction(self.commanderAction)

self.iface.unregisterOptionsWidgetFactory(self.options_factory)

removeMenus()
Processing.deinitialize()

def openCommander(self):
if self.commander is None:
self.commander = CommanderWindow(
self.iface.mainWindow(),
self.iface.mapCanvas())
self.commander.prepareGui()
self.commander.show()

def openToolbox(self):
if self.toolbox.isVisible():
self.toolbox.hide()
Expand Down
240 changes: 0 additions & 240 deletions python/plugins/processing/gui/CommanderWindow.py

This file was deleted.

0 comments on commit 8c80a60

Please sign in to comment.