@@ -198,19 +198,21 @@ def initGui(self):
198
198
199
199
self .modelerAction = QAction (
200
200
QgsApplication .getThemeIcon ("/processingModel.svg" ),
201
- self .tr ('Graphical &Modeler... ' ), self .iface .mainWindow ())
201
+ self .tr ('Graphical &Modeler' ), self .iface .mainWindow ())
202
202
self .modelerAction .setObjectName ('modelerAction' )
203
203
self .modelerAction .triggered .connect (self .openModeler )
204
204
self .iface .registerMainWindowAction (self .modelerAction , 'Ctrl+Alt+M' )
205
205
self .menu .addAction (self .modelerAction )
206
+ self .toolbox .processingToolbar .addAction (self .modelerAction )
206
207
207
208
self .historyAction = QAction (
208
209
QIcon (os .path .join (cmd_folder , 'images' , 'history.svg' )),
209
- self .tr ('&History... ' ), self .iface .mainWindow ())
210
+ self .tr ('&History' ), self .iface .mainWindow ())
210
211
self .historyAction .setObjectName ('historyAction' )
211
212
self .historyAction .triggered .connect (self .openHistory )
212
213
self .iface .registerMainWindowAction (self .historyAction , 'Ctrl+Alt+H' )
213
214
self .menu .addAction (self .historyAction )
215
+ self .toolbox .processingToolbar .addAction (self .historyAction )
214
216
215
217
self .resultsAction = self .resultsDock .toggleViewAction ()
216
218
self .resultsAction .setObjectName ('resultsAction' )
@@ -219,6 +221,14 @@ def initGui(self):
219
221
self .resultsAction .setText (self .tr ('&Results Viewer' ))
220
222
self .iface .registerMainWindowAction (self .resultsAction , 'Ctrl+Alt+R' )
221
223
self .menu .addAction (self .resultsAction )
224
+ self .toolbox .processingToolbar .addAction (self .resultsAction )
225
+
226
+ self .optionsAction = QAction (
227
+ QgsApplication .getThemeIcon ("/processingAlgorithm.svg" ),
228
+ self .tr ('Options' ), self .iface .mainWindow ())
229
+ self .optionsAction .setObjectName ('optionsAction' )
230
+ self .optionsAction .triggered .connect (self .openProcessingOptions )
231
+ self .toolbox .processingToolbar .addAction (self .optionsAction )
222
232
223
233
menuBar = self .iface .mainWindow ().menuBar ()
224
234
menuBar .insertMenu (
@@ -229,6 +239,9 @@ def initGui(self):
229
239
initializeMenus ()
230
240
createMenus ()
231
241
242
+ def openProcessingOptions (self ):
243
+ self .iface .showOptionsDialog (self .iface .mainWindow (), currentPage = 'processingOptions' )
244
+
232
245
def unload (self ):
233
246
self .toolbox .setVisible (False )
234
247
self .iface .removeDockWidget (self .toolbox )
0 commit comments