@@ -61,11 +61,13 @@ def initGui(self):
61
61
self .toolbox .hide ()
62
62
#Processing.addAlgListListener(self.toolbox)
63
63
64
- self .menu = QMenu (interface .iface .mainWindow ())
64
+ self .menu = QMenu (interface .iface .mainWindow ().menuBar ())
65
+ self .menu .setObjectName ( 'processing' )
65
66
self .menu .setTitle (QCoreApplication .translate ('Processing' ,
66
67
'Processing' ))
67
68
68
69
self .toolboxAction = self .toolbox .toggleViewAction ()
70
+ self .toolboxAction .setObjectName ( 'toolboxAction' )
69
71
self .toolboxAction .setIcon (QIcon (':/processing/images/alg.png' ))
70
72
self .toolboxAction .setText (QCoreApplication .translate ('Processing' ,
71
73
'Toolbox' ))
@@ -75,27 +77,31 @@ def initGui(self):
75
77
QCoreApplication .translate ('Processing' ,
76
78
'Graphical modeler' ),
77
79
interface .iface .mainWindow ())
80
+ self .modelerAction .setObjectName ( 'modelerAction' )
78
81
self .modelerAction .triggered .connect (self .openModeler )
79
82
self .menu .addAction (self .modelerAction )
80
83
81
84
self .historyAction = QAction (QIcon (':/processing/images/history.gif' ),
82
85
QCoreApplication .translate ('Processing' ,
83
86
'History and log' ),
84
87
interface .iface .mainWindow ())
88
+ self .historyAction .setObjectName ( 'historyAction' )
85
89
self .historyAction .triggered .connect (self .openHistory )
86
90
self .menu .addAction (self .historyAction )
87
91
88
92
self .configAction = QAction (QIcon (':/processing/images/config.png' ),
89
93
QCoreApplication .translate ('Processing' ,
90
94
'Options and configuration' ),
91
95
interface .iface .mainWindow ())
96
+ self .configAction .setObjectName ( 'configAction' )
92
97
self .configAction .triggered .connect (self .openConfig )
93
98
self .menu .addAction (self .configAction )
94
99
95
100
self .resultsAction = QAction (QIcon (':/processing/images/results.png' ),
96
101
QCoreApplication .translate ('Processing' ,
97
102
'&Results viewer' ),
98
103
interface .iface .mainWindow ())
104
+ self .resultsAction .setObjectName ( 'resultsAction' )
99
105
self .resultsAction .triggered .connect (self .openResults )
100
106
self .menu .addAction (self .resultsAction )
101
107
@@ -107,6 +113,7 @@ def initGui(self):
107
113
QIcon (':/processing/images/commander.png' ),
108
114
QCoreApplication .translate ('Processing' , '&Commander' ),
109
115
interface .iface .mainWindow ())
116
+ self .commanderAction .setObjectName ( 'commanderAction' )
110
117
self .commanderAction .triggered .connect (self .openCommander )
111
118
self .menu .addAction (self .commanderAction )
112
119
interface .iface .registerMainWindowAction (self .commanderAction ,
0 commit comments