@@ -203,6 +203,7 @@ def initGui(self):
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' )),
@@ -211,6 +212,7 @@ def initGui(self):
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,16 @@ 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 ("/mActionOptions.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 )
232
+
233
+ self .toolbox .processingToolbar .setIconSize (self .iface .iconSize (True ))
222
234
223
235
menuBar = self .iface .mainWindow ().menuBar ()
224
236
menuBar .insertMenu (
@@ -229,6 +241,9 @@ def initGui(self):
229
241
initializeMenus ()
230
242
createMenus ()
231
243
244
+ def openProcessingOptions (self ):
245
+ self .iface .showOptionsDialog (self .iface .mainWindow (), currentPage = 'processingOptions' )
246
+
232
247
def unload (self ):
233
248
self .toolbox .setVisible (False )
234
249
self .iface .removeDockWidget (self .toolbox )
0 commit comments