146 self.openUIAct.setStatusTip(self.trUtf8('Open UI files for display')) |
146 self.openUIAct.setStatusTip(self.trUtf8('Open UI files for display')) |
147 self.openUIAct.setWhatsThis(self.trUtf8( |
147 self.openUIAct.setWhatsThis(self.trUtf8( |
148 """<b>Open UI Files</b>""" |
148 """<b>Open UI Files</b>""" |
149 """<p>This opens some UI files for display.</p>""" |
149 """<p>This opens some UI files for display.</p>""" |
150 )) |
150 )) |
151 self.openUIAct.triggered.connect(self.__openWidget) |
151 self.openUIAct.triggered[()].connect(self.__openWidget) |
152 |
152 |
153 self.openQMAct = QAction(UI.PixmapCache.getIcon("openQM.png"), |
153 self.openQMAct = QAction(UI.PixmapCache.getIcon("openQM.png"), |
154 self.trUtf8('Open &Translation Files...'), self) |
154 self.trUtf8('Open &Translation Files...'), self) |
155 self.openQMAct.setStatusTip(self.trUtf8('Open Translation files for display')) |
155 self.openQMAct.setStatusTip(self.trUtf8('Open Translation files for display')) |
156 self.openQMAct.setWhatsThis(self.trUtf8( |
156 self.openQMAct.setWhatsThis(self.trUtf8( |
157 """<b>Open Translation Files</b>""" |
157 """<b>Open Translation Files</b>""" |
158 """<p>This opens some translation files for display.</p>""" |
158 """<p>This opens some translation files for display.</p>""" |
159 )) |
159 )) |
160 self.openQMAct.triggered.connect(self.__openTranslation) |
160 self.openQMAct.triggered[()].connect(self.__openTranslation) |
161 |
161 |
162 self.reloadAct = QAction(UI.PixmapCache.getIcon("reload.png"), |
162 self.reloadAct = QAction(UI.PixmapCache.getIcon("reload.png"), |
163 self.trUtf8('&Reload Translations'), self) |
163 self.trUtf8('&Reload Translations'), self) |
164 self.reloadAct.setStatusTip(self.trUtf8('Reload the loaded translations')) |
164 self.reloadAct.setStatusTip(self.trUtf8('Reload the loaded translations')) |
165 self.reloadAct.setWhatsThis(self.trUtf8( |
165 self.reloadAct.setWhatsThis(self.trUtf8( |
166 """<b>Reload Translations</b>""" |
166 """<b>Reload Translations</b>""" |
167 """<p>This reloads the translations for the loaded languages.</p>""" |
167 """<p>This reloads the translations for the loaded languages.</p>""" |
168 )) |
168 )) |
169 self.reloadAct.triggered.connect(self.translations.reload) |
169 self.reloadAct.triggered[()].connect(self.translations.reload) |
170 |
170 |
171 self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), |
171 self.exitAct = QAction(UI.PixmapCache.getIcon("exit.png"), |
172 self.trUtf8('&Quit'), self) |
172 self.trUtf8('&Quit'), self) |
173 self.exitAct.setShortcut(QKeySequence(self.trUtf8("Ctrl+Q","File|Quit"))) |
173 self.exitAct.setShortcut(QKeySequence(self.trUtf8("Ctrl+Q","File|Quit"))) |
174 self.exitAct.setStatusTip(self.trUtf8('Quit the application')) |
174 self.exitAct.setStatusTip(self.trUtf8('Quit the application')) |
188 """ question mark, and you can click on the interface elements to get""" |
188 """ question mark, and you can click on the interface elements to get""" |
189 """ a short description of what they do and how to use them. In""" |
189 """ a short description of what they do and how to use them. In""" |
190 """ dialogs, this feature can be accessed using the context help""" |
190 """ dialogs, this feature can be accessed using the context help""" |
191 """ button in the titlebar.</p>""" |
191 """ button in the titlebar.</p>""" |
192 )) |
192 )) |
193 self.whatsThisAct.triggered.connect(self.__whatsThis) |
193 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
194 |
194 |
195 self.aboutAct = QAction(self.trUtf8('&About'), self) |
195 self.aboutAct = QAction(self.trUtf8('&About'), self) |
196 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
196 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
197 self.aboutAct.setWhatsThis(self.trUtf8( |
197 self.aboutAct.setWhatsThis(self.trUtf8( |
198 """<b>About</b>""" |
198 """<b>About</b>""" |
199 """<p>Display some information about this software.</p>""" |
199 """<p>Display some information about this software.</p>""" |
200 )) |
200 )) |
201 self.aboutAct.triggered.connect(self.__about) |
201 self.aboutAct.triggered[()].connect(self.__about) |
202 |
202 |
203 self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) |
203 self.aboutQtAct = QAction(self.trUtf8('About &Qt'), self) |
204 self.aboutQtAct.setStatusTip(\ |
204 self.aboutQtAct.setStatusTip(\ |
205 self.trUtf8('Display information about the Qt toolkit')) |
205 self.trUtf8('Display information about the Qt toolkit')) |
206 self.aboutQtAct.setWhatsThis(self.trUtf8( |
206 self.aboutQtAct.setWhatsThis(self.trUtf8( |
207 """<b>About Qt</b>""" |
207 """<b>About Qt</b>""" |
208 """<p>Display some information about the Qt toolkit.</p>""" |
208 """<p>Display some information about the Qt toolkit.</p>""" |
209 )) |
209 )) |
210 self.aboutQtAct.triggered.connect(self.__aboutQt) |
210 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
211 |
211 |
212 self.tileAct = QAction(self.trUtf8('&Tile'), self) |
212 self.tileAct = QAction(self.trUtf8('&Tile'), self) |
213 self.tileAct.setStatusTip(self.trUtf8('Tile the windows')) |
213 self.tileAct.setStatusTip(self.trUtf8('Tile the windows')) |
214 self.tileAct.setWhatsThis(self.trUtf8( |
214 self.tileAct.setWhatsThis(self.trUtf8( |
215 """<b>Tile the windows</b>""" |
215 """<b>Tile the windows</b>""" |
216 """<p>Rearrange and resize the windows so that they are tiled.</p>""" |
216 """<p>Rearrange and resize the windows so that they are tiled.</p>""" |
217 )) |
217 )) |
218 self.tileAct.triggered.connect(self.preview.tile) |
218 self.tileAct.triggered[()].connect(self.preview.tile) |
219 |
219 |
220 self.cascadeAct = QAction(self.trUtf8('&Cascade'), self) |
220 self.cascadeAct = QAction(self.trUtf8('&Cascade'), self) |
221 self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows')) |
221 self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows')) |
222 self.cascadeAct.setWhatsThis(self.trUtf8( |
222 self.cascadeAct.setWhatsThis(self.trUtf8( |
223 """<b>Cascade the windows</b>""" |
223 """<b>Cascade the windows</b>""" |
224 """<p>Rearrange and resize the windows so that they are cascaded.</p>""" |
224 """<p>Rearrange and resize the windows so that they are cascaded.</p>""" |
225 )) |
225 )) |
226 self.cascadeAct.triggered.connect(self.preview.cascade) |
226 self.cascadeAct.triggered[()].connect(self.preview.cascade) |
227 |
227 |
228 self.closeAct = QAction(UI.PixmapCache.getIcon("close.png"), |
228 self.closeAct = QAction(UI.PixmapCache.getIcon("close.png"), |
229 self.trUtf8('&Close'), self) |
229 self.trUtf8('&Close'), self) |
230 self.closeAct.setShortcut(QKeySequence(self.trUtf8("Ctrl+W","File|Close"))) |
230 self.closeAct.setShortcut(QKeySequence(self.trUtf8("Ctrl+W","File|Close"))) |
231 self.closeAct.setStatusTip(self.trUtf8('Close the current window')) |
231 self.closeAct.setStatusTip(self.trUtf8('Close the current window')) |
232 self.closeAct.setWhatsThis(self.trUtf8( |
232 self.closeAct.setWhatsThis(self.trUtf8( |
233 """<b>Close Window</b>""" |
233 """<b>Close Window</b>""" |
234 """<p>Close the current window.</p>""" |
234 """<p>Close the current window.</p>""" |
235 )) |
235 )) |
236 self.closeAct.triggered.connect(self.preview.closeWidget) |
236 self.closeAct.triggered[()].connect(self.preview.closeWidget) |
237 |
237 |
238 self.closeAllAct = QAction(self.trUtf8('Clos&e All'), self) |
238 self.closeAllAct = QAction(self.trUtf8('Clos&e All'), self) |
239 self.closeAllAct.setStatusTip(self.trUtf8('Close all windows')) |
239 self.closeAllAct.setStatusTip(self.trUtf8('Close all windows')) |
240 self.closeAllAct.setWhatsThis(self.trUtf8( |
240 self.closeAllAct.setWhatsThis(self.trUtf8( |
241 """<b>Close All Windows</b>""" |
241 """<b>Close All Windows</b>""" |
242 """<p>Close all windows.</p>""" |
242 """<p>Close all windows.</p>""" |
243 )) |
243 )) |
244 self.closeAllAct.triggered.connect(self.preview.closeAllWidgets) |
244 self.closeAllAct.triggered[()].connect(self.preview.closeAllWidgets) |
245 |
245 |
246 def __initMenus(self): |
246 def __initMenus(self): |
247 """ |
247 """ |
248 Private method to create the menus. |
248 Private method to create the menus. |
249 """ |
249 """ |