Skip to content
Permalink
Browse files
Merge pull request #4385 from volaya/remove_processing_commander
[FEATURE][processing] remove processing commander
  • Loading branch information
alexbruy committed Apr 24, 2017
2 parents 347934f + 414772b commit 8c80a60c3362042abc2da9e361293f42fdb56d3c
Showing with 0 additions and 260 deletions.
  1. +0 −20 python/plugins/processing/ProcessingPlugin.py
  2. +0 −240 python/plugins/processing/gui/CommanderWindow.py
@@ -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
@@ -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()
@@ -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()
@@ -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()

This file was deleted.

0 comments on commit 8c80a60

Please sign in to comment.