Skip to content

Commit 8c80a60

Browse files
authoredApr 24, 2017
Merge pull request #4385 from volaya/remove_processing_commander
[FEATURE][processing] remove processing commander
2 parents 347934f + 414772b commit 8c80a60

File tree

2 files changed

+0
-260
lines changed

2 files changed

+0
-260
lines changed
 

‎python/plugins/processing/ProcessingPlugin.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
from processing.gui.HistoryDialog import HistoryDialog
4343
from processing.gui.ConfigDialog import ConfigOptionsPage
4444
from processing.gui.ResultsDock import ResultsDock
45-
from processing.gui.CommanderWindow import CommanderWindow
4645
from processing.modeler.ModelerDialog import ModelerDialog
4746
from processing.tools.system import tempFolder
4847
from processing.gui.menus import removeMenus, initializeMenus, createMenus
@@ -75,7 +74,6 @@ def __init__(self, iface):
7574
Processing.initialize()
7675

7776
def initGui(self):
78-
self.commander = None
7977
self.toolbox = ProcessingToolbox()
8078
self.iface.addDockWidget(Qt.RightDockWidgetArea, self.toolbox)
8179
self.toolbox.hide()
@@ -126,15 +124,6 @@ def initGui(self):
126124
menuBar.insertMenu(
127125
self.iface.firstRightStandardMenu().menuAction(), self.menu)
128126

129-
self.commanderAction = QAction(
130-
QIcon(os.path.join(cmd_folder, 'images', 'commander.svg')),
131-
self.tr('&Commander'), self.iface.mainWindow())
132-
self.commanderAction.setObjectName('commanderAction')
133-
self.commanderAction.triggered.connect(self.openCommander)
134-
self.menu.addAction(self.commanderAction)
135-
self.iface.registerMainWindowAction(self.commanderAction,
136-
self.tr('Ctrl+Alt+D'))
137-
138127
self.menu.addSeparator()
139128

140129
initializeMenus()
@@ -158,21 +147,12 @@ def unload(self):
158147
self.iface.unregisterMainWindowAction(self.modelerAction)
159148
self.iface.unregisterMainWindowAction(self.historyAction)
160149
self.iface.unregisterMainWindowAction(self.resultsAction)
161-
self.iface.unregisterMainWindowAction(self.commanderAction)
162150

163151
self.iface.unregisterOptionsWidgetFactory(self.options_factory)
164152

165153
removeMenus()
166154
Processing.deinitialize()
167155

168-
def openCommander(self):
169-
if self.commander is None:
170-
self.commander = CommanderWindow(
171-
self.iface.mainWindow(),
172-
self.iface.mapCanvas())
173-
self.commander.prepareGui()
174-
self.commander.show()
175-
176156
def openToolbox(self):
177157
if self.toolbox.isVisible():
178158
self.toolbox.hide()

‎python/plugins/processing/gui/CommanderWindow.py

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.