144 UI.PixmapCache.getIcon("configure"), |
144 UI.PixmapCache.getIcon("configure"), |
145 self.tr('Preferences'), self.__startPreferences) |
145 self.tr('Preferences'), self.__startPreferences) |
146 self.__menu.addSeparator() |
146 self.__menu.addSeparator() |
147 |
147 |
148 self.__menu.addAction( |
148 self.__menu.addAction( |
149 UI.PixmapCache.getIcon("erict"), |
|
150 self.tr("eric6 IDE"), self.__startEric) |
|
151 self.__menu.addAction( |
|
152 UI.PixmapCache.getIcon("editor"), |
149 UI.PixmapCache.getIcon("editor"), |
153 self.tr("eric6 Mini Editor"), self.__startMiniEditor) |
150 self.tr("eric Mini Editor"), self.__startMiniEditor) |
154 self.__menu.addAction( |
151 self.__menu.addAction( |
155 UI.PixmapCache.getIcon("hexEditor"), |
152 UI.PixmapCache.getIcon("hexEditor"), |
156 self.tr("eric6 Hex Editor"), self.__startHexEditor) |
153 self.tr("eric Hex Editor"), self.__startHexEditor) |
|
154 self.__menu.addAction( |
|
155 UI.PixmapCache.getIcon("shell"), |
|
156 self.tr("eric Shell Window"), self.__startShell) |
|
157 self.__menu.addSeparator() |
|
158 |
157 self.__menu.addAction( |
159 self.__menu.addAction( |
158 UI.PixmapCache.getIcon("ericWeb"), |
160 UI.PixmapCache.getIcon("ericWeb"), |
159 self.tr("eric6 Web Browser"), self.__startHelpViewer) |
161 self.tr("eric Web Browser"), self.__startWebBrowser) |
160 self.__menu.addAction( |
162 self.__menu.addAction( |
161 UI.PixmapCache.getIcon("shell"), |
163 UI.PixmapCache.getIcon("ericWeb"), |
162 self.tr("eric6 Shell Window"), self.__startShell) |
164 self.tr("eric Web Browser (with QtHelp)"), |
163 self.__menu.addSeparator() |
165 self.__startWebBrowserQtHelp) |
164 |
166 self.__menu.addAction( |
165 self.__menu.addAction( |
167 UI.PixmapCache.getIcon("ericWeb"), |
166 UI.PixmapCache.getIcon("configure"), |
168 self.tr("eric Web Browser (Private Mode)"), |
167 self.tr('Configure Tray Starter'), self.__showPreferences) |
169 self.__startWebBrowserPrivate) |
168 self.__menu.addSeparator() |
170 self.__menu.addSeparator() |
169 |
171 |
170 # recent files |
172 # recent files |
171 self.menuRecentFilesAct = self.__menu.addMenu(self.recentFilesMenu) |
173 self.menuRecentFilesAct = self.__menu.addMenu(self.recentFilesMenu) |
172 # recent multi projects |
174 # recent multi projects |
273 ).format(applPath), |
285 ).format(applPath), |
274 self.tr('OK')) |
286 self.tr('OK')) |
275 |
287 |
276 def __startMiniEditor(self): |
288 def __startMiniEditor(self): |
277 """ |
289 """ |
278 Private slot to start the eric6 Mini Editor. |
290 Private slot to start the eric Mini Editor. |
279 """ |
291 """ |
280 self.__startProc("eric6_editor.py") |
292 self.__startProc("eric6_editor.py") |
281 |
293 |
282 def __startEric(self): |
294 def __startEric(self): |
283 """ |
295 """ |
284 Private slot to start the eric6 IDE. |
296 Private slot to start the eric IDE. |
285 """ |
297 """ |
286 self.__startProc("eric6.py") |
298 self.__startProc("eric6.py") |
287 |
299 |
288 def __startPreferences(self): |
300 def __startPreferences(self): |
289 """ |
301 """ |
290 Private slot to start the eric6 configuration dialog. |
302 Private slot to start the eric configuration dialog. |
291 """ |
303 """ |
292 self.__startProc("eric6_configure.py") |
304 self.__startProc("eric6_configure.py") |
293 |
305 |
294 def __startPluginInstall(self): |
306 def __startPluginInstall(self): |
295 """ |
307 """ |
296 Private slot to start the eric6 plugin installation dialog. |
308 Private slot to start the eric plugin installation dialog. |
297 """ |
309 """ |
298 self.__startProc("eric6_plugininstall.py") |
310 self.__startProc("eric6_plugininstall.py") |
299 |
311 |
300 def __startPluginUninstall(self): |
312 def __startPluginUninstall(self): |
301 """ |
313 """ |
302 Private slot to start the eric6 plugin uninstallation dialog. |
314 Private slot to start the eric plugin uninstallation dialog. |
303 """ |
315 """ |
304 self.__startProc("eric6_pluginuninstall.py") |
316 self.__startProc("eric6_pluginuninstall.py") |
305 |
317 |
306 def __startPluginRepository(self): |
318 def __startPluginRepository(self): |
307 """ |
319 """ |
308 Private slot to start the eric6 plugin repository dialog. |
320 Private slot to start the eric plugin repository dialog. |
309 """ |
321 """ |
310 self.__startProc("eric6_pluginrepository.py") |
322 self.__startProc("eric6_pluginrepository.py") |
311 |
323 |
312 def __startHelpViewer(self): |
324 def __startWebBrowser(self): |
313 """ |
325 """ |
314 Private slot to start the eric6 web browser. |
326 Private slot to start the eric web browser. |
315 """ |
327 """ |
316 variant = Globals.getWebBrowserSupport() |
328 variant = Globals.getWebBrowserSupport() |
317 if variant == "QtWebEngine": |
329 if variant == "QtWebEngine": |
318 self.__startProc("eric6_browser.py") |
330 self.__startProc("eric6_browser.py") |
319 |
331 |
|
332 def __startWebBrowserQtHelp(self): |
|
333 """ |
|
334 Private slot to start the eric web browser with QtHelp support. |
|
335 """ |
|
336 variant = Globals.getWebBrowserSupport() |
|
337 if variant == "QtWebEngine": |
|
338 self.__startProc("eric6_browser.py", "--qthelp") |
|
339 |
|
340 def __startWebBrowserPrivate(self): |
|
341 """ |
|
342 Private slot to start the eric web browser in private mode. |
|
343 """ |
|
344 variant = Globals.getWebBrowserSupport() |
|
345 if variant == "QtWebEngine": |
|
346 self.__startProc("eric6_browser.py", "--private") |
|
347 |
320 def __startUIPreviewer(self): |
348 def __startUIPreviewer(self): |
321 """ |
349 """ |
322 Private slot to start the eric6 UI previewer. |
350 Private slot to start the eric UI previewer. |
323 """ |
351 """ |
324 self.__startProc("eric6_uipreviewer.py") |
352 self.__startProc("eric6_uipreviewer.py") |
325 |
353 |
326 def __startTRPreviewer(self): |
354 def __startTRPreviewer(self): |
327 """ |
355 """ |
328 Private slot to start the eric6 translations previewer. |
356 Private slot to start the eric translations previewer. |
329 """ |
357 """ |
330 self.__startProc("eric6_trpreviewer.py") |
358 self.__startProc("eric6_trpreviewer.py") |
331 |
359 |
332 def __startUnittest(self): |
360 def __startUnittest(self): |
333 """ |
361 """ |
334 Private slot to start the eric6 unittest dialog. |
362 Private slot to start the eric unittest dialog. |
335 """ |
363 """ |
336 self.__startProc("eric6_unittest.py") |
364 self.__startProc("eric6_unittest.py") |
337 |
365 |
338 def __startDiff(self): |
366 def __startDiff(self): |
339 """ |
367 """ |
340 Private slot to start the eric6 diff dialog. |
368 Private slot to start the eric diff dialog. |
341 """ |
369 """ |
342 self.__startProc("eric6_diff.py") |
370 self.__startProc("eric6_diff.py") |
343 |
371 |
344 def __startCompare(self): |
372 def __startCompare(self): |
345 """ |
373 """ |
346 Private slot to start the eric6 compare dialog. |
374 Private slot to start the eric compare dialog. |
347 """ |
375 """ |
348 self.__startProc("eric6_compare.py") |
376 self.__startProc("eric6_compare.py") |
349 |
377 |
350 def __startSqlBrowser(self): |
378 def __startSqlBrowser(self): |
351 """ |
379 """ |
352 Private slot to start the eric6 sql browser dialog. |
380 Private slot to start the eric sql browser dialog. |
353 """ |
381 """ |
354 self.__startProc("eric6_sqlbrowser.py") |
382 self.__startProc("eric6_sqlbrowser.py") |
355 |
383 |
356 def __startIconEditor(self): |
384 def __startIconEditor(self): |
357 """ |
385 """ |
358 Private slot to start the eric6 icon editor dialog. |
386 Private slot to start the eric icon editor dialog. |
359 """ |
387 """ |
360 self.__startProc("eric6_iconeditor.py") |
388 self.__startProc("eric6_iconeditor.py") |
361 |
389 |
362 def __startSnapshot(self): |
390 def __startSnapshot(self): |
363 """ |
391 """ |
364 Private slot to start the eric6 snapshot dialog. |
392 Private slot to start the eric snapshot dialog. |
365 """ |
393 """ |
366 self.__startProc("eric6_snap.py") |
394 self.__startProc("eric6_snap.py") |
367 |
395 |
368 def __startQRegularExpression(self): |
396 def __startQRegularExpression(self): |
369 """ |
397 """ |
370 Private slot to start the eric6 QRegularExpression editor dialog. |
398 Private slot to start the eric QRegularExpression editor dialog. |
371 """ |
399 """ |
372 self.__startProc("eric6_qregularexpression.py") |
400 self.__startProc("eric6_qregularexpression.py") |
373 |
401 |
374 def __startPyRe(self): |
402 def __startPyRe(self): |
375 """ |
403 """ |
376 Private slot to start the eric6 Python re editor dialog. |
404 Private slot to start the eric Python re editor dialog. |
377 """ |
405 """ |
378 self.__startProc("eric6_re.py") |
406 self.__startProc("eric6_re.py") |
379 |
407 |
380 def __startHexEditor(self): |
408 def __startHexEditor(self): |
381 """ |
409 """ |
382 Private slot to start the eric6 hex editor dialog. |
410 Private slot to start the eric hex editor dialog. |
383 """ |
411 """ |
384 self.__startProc("eric6_hexeditor.py") |
412 self.__startProc("eric6_hexeditor.py") |
385 |
413 |
386 def __startShell(self): |
414 def __startShell(self): |
387 """ |
415 """ |
388 Private slot to start the eric6 Shell window. |
416 Private slot to start the eric Shell window. |
389 """ |
417 """ |
390 self.__startProc("eric6_shell.py") |
418 self.__startProc("eric6_shell.py") |
391 |
419 |
392 def __showRecentProjectsMenu(self): |
420 def __showRecentProjectsMenu(self): |
393 """ |
421 """ |