42
42
from processing .gui .HistoryDialog import HistoryDialog
43
43
from processing .gui .ConfigDialog import ConfigOptionsPage
44
44
from processing .gui .ResultsDock import ResultsDock
45
- from processing .gui .CommanderWindow import CommanderWindow
46
45
from processing .modeler .ModelerDialog import ModelerDialog
47
46
from processing .tools .system import tempFolder
48
47
from processing .gui .menus import removeMenus , initializeMenus , createMenus
@@ -75,7 +74,6 @@ def __init__(self, iface):
75
74
Processing .initialize ()
76
75
77
76
def initGui (self ):
78
- self .commander = None
79
77
self .toolbox = ProcessingToolbox ()
80
78
self .iface .addDockWidget (Qt .RightDockWidgetArea , self .toolbox )
81
79
self .toolbox .hide ()
@@ -126,15 +124,6 @@ def initGui(self):
126
124
menuBar .insertMenu (
127
125
self .iface .firstRightStandardMenu ().menuAction (), self .menu )
128
126
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
-
138
127
self .menu .addSeparator ()
139
128
140
129
initializeMenus ()
@@ -158,21 +147,12 @@ def unload(self):
158
147
self .iface .unregisterMainWindowAction (self .modelerAction )
159
148
self .iface .unregisterMainWindowAction (self .historyAction )
160
149
self .iface .unregisterMainWindowAction (self .resultsAction )
161
- self .iface .unregisterMainWindowAction (self .commanderAction )
162
150
163
151
self .iface .unregisterOptionsWidgetFactory (self .options_factory )
164
152
165
153
removeMenus ()
166
154
Processing .deinitialize ()
167
155
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
-
176
156
def openToolbox (self ):
177
157
if self .toolbox .isVisible ():
178
158
self .toolbox .hide ()
0 commit comments