eric7/Tools/TrayStarter.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 8312
800c432b34c8
child 8318
962bce857696
equal deleted inserted replaced
8313:dac33c7fce07 8314:e3642a6a1e71
23 from UI.Info import Version, Program 23 from UI.Info import Version, Program
24 24
25 import Utilities 25 import Utilities
26 import Preferences 26 import Preferences
27 27
28 from eric6config import getConfig 28 from eric7config import getConfig
29 29
30 30
31 class TrayStarter(QSystemTrayIcon): 31 class TrayStarter(QSystemTrayIcon):
32 """ 32 """
33 Class implementing a starter for the system tray. 33 Class implementing a starter for the system tray.
288 288
289 def __startMiniEditor(self): 289 def __startMiniEditor(self):
290 """ 290 """
291 Private slot to start the eric Mini Editor. 291 Private slot to start the eric Mini Editor.
292 """ 292 """
293 self.__startProc("eric6_editor.py") 293 self.__startProc("eric7_editor.py")
294 294
295 def __startEric(self): 295 def __startEric(self):
296 """ 296 """
297 Private slot to start the eric IDE. 297 Private slot to start the eric IDE.
298 """ 298 """
299 self.__startProc("eric6.py") 299 self.__startProc("eric7.py")
300 300
301 def __startPreferences(self): 301 def __startPreferences(self):
302 """ 302 """
303 Private slot to start the eric configuration dialog. 303 Private slot to start the eric configuration dialog.
304 """ 304 """
305 self.__startProc("eric6_configure.py") 305 self.__startProc("eric7_configure.py")
306 306
307 def __startPluginInstall(self): 307 def __startPluginInstall(self):
308 """ 308 """
309 Private slot to start the eric plugin installation dialog. 309 Private slot to start the eric plugin installation dialog.
310 """ 310 """
311 self.__startProc("eric6_plugininstall.py") 311 self.__startProc("eric7_plugininstall.py")
312 312
313 def __startPluginUninstall(self): 313 def __startPluginUninstall(self):
314 """ 314 """
315 Private slot to start the eric plugin uninstallation dialog. 315 Private slot to start the eric plugin uninstallation dialog.
316 """ 316 """
317 self.__startProc("eric6_pluginuninstall.py") 317 self.__startProc("eric7_pluginuninstall.py")
318 318
319 def __startPluginRepository(self): 319 def __startPluginRepository(self):
320 """ 320 """
321 Private slot to start the eric plugin repository dialog. 321 Private slot to start the eric plugin repository dialog.
322 """ 322 """
323 self.__startProc("eric6_pluginrepository.py") 323 self.__startProc("eric7_pluginrepository.py")
324 324
325 def __startWebBrowser(self): 325 def __startWebBrowser(self):
326 """ 326 """
327 Private slot to start the eric web browser. 327 Private slot to start the eric web browser.
328 """ 328 """
329 variant = Globals.getWebBrowserSupport() 329 variant = Globals.getWebBrowserSupport()
330 if variant == "QtWebEngine": 330 if variant == "QtWebEngine":
331 self.__startProc("eric6_browser.py") 331 self.__startProc("eric7_browser.py")
332 332
333 def __startWebBrowserQtHelp(self): 333 def __startWebBrowserQtHelp(self):
334 """ 334 """
335 Private slot to start the eric web browser with QtHelp support. 335 Private slot to start the eric web browser with QtHelp support.
336 """ 336 """
337 variant = Globals.getWebBrowserSupport() 337 variant = Globals.getWebBrowserSupport()
338 if variant == "QtWebEngine": 338 if variant == "QtWebEngine":
339 self.__startProc("eric6_browser.py", "--qthelp") 339 self.__startProc("eric7_browser.py", "--qthelp")
340 340
341 def __startWebBrowserPrivate(self): 341 def __startWebBrowserPrivate(self):
342 """ 342 """
343 Private slot to start the eric web browser in private mode. 343 Private slot to start the eric web browser in private mode.
344 """ 344 """
345 variant = Globals.getWebBrowserSupport() 345 variant = Globals.getWebBrowserSupport()
346 if variant == "QtWebEngine": 346 if variant == "QtWebEngine":
347 self.__startProc("eric6_browser.py", "--private") 347 self.__startProc("eric7_browser.py", "--private")
348 348
349 def __startUIPreviewer(self): 349 def __startUIPreviewer(self):
350 """ 350 """
351 Private slot to start the eric UI previewer. 351 Private slot to start the eric UI previewer.
352 """ 352 """
353 self.__startProc("eric6_uipreviewer.py") 353 self.__startProc("eric7_uipreviewer.py")
354 354
355 def __startTRPreviewer(self): 355 def __startTRPreviewer(self):
356 """ 356 """
357 Private slot to start the eric translations previewer. 357 Private slot to start the eric translations previewer.
358 """ 358 """
359 self.__startProc("eric6_trpreviewer.py") 359 self.__startProc("eric7_trpreviewer.py")
360 360
361 def __startUnittest(self): 361 def __startUnittest(self):
362 """ 362 """
363 Private slot to start the eric unittest dialog. 363 Private slot to start the eric unittest dialog.
364 """ 364 """
365 self.__startProc("eric6_unittest.py") 365 self.__startProc("eric7_unittest.py")
366 366
367 def __startDiff(self): 367 def __startDiff(self):
368 """ 368 """
369 Private slot to start the eric diff dialog. 369 Private slot to start the eric diff dialog.
370 """ 370 """
371 self.__startProc("eric6_diff.py") 371 self.__startProc("eric7_diff.py")
372 372
373 def __startCompare(self): 373 def __startCompare(self):
374 """ 374 """
375 Private slot to start the eric compare dialog. 375 Private slot to start the eric compare dialog.
376 """ 376 """
377 self.__startProc("eric6_compare.py") 377 self.__startProc("eric7_compare.py")
378 378
379 def __startSqlBrowser(self): 379 def __startSqlBrowser(self):
380 """ 380 """
381 Private slot to start the eric sql browser dialog. 381 Private slot to start the eric sql browser dialog.
382 """ 382 """
383 self.__startProc("eric6_sqlbrowser.py") 383 self.__startProc("eric7_sqlbrowser.py")
384 384
385 def __startIconEditor(self): 385 def __startIconEditor(self):
386 """ 386 """
387 Private slot to start the eric icon editor dialog. 387 Private slot to start the eric icon editor dialog.
388 """ 388 """
389 self.__startProc("eric6_iconeditor.py") 389 self.__startProc("eric7_iconeditor.py")
390 390
391 def __startSnapshot(self): 391 def __startSnapshot(self):
392 """ 392 """
393 Private slot to start the eric snapshot dialog. 393 Private slot to start the eric snapshot dialog.
394 """ 394 """
395 self.__startProc("eric6_snap.py") 395 self.__startProc("eric7_snap.py")
396 396
397 def __startQRegularExpression(self): 397 def __startQRegularExpression(self):
398 """ 398 """
399 Private slot to start the eric QRegularExpression editor dialog. 399 Private slot to start the eric QRegularExpression editor dialog.
400 """ 400 """
401 self.__startProc("eric6_qregularexpression.py") 401 self.__startProc("eric7_qregularexpression.py")
402 402
403 def __startPyRe(self): 403 def __startPyRe(self):
404 """ 404 """
405 Private slot to start the eric Python re editor dialog. 405 Private slot to start the eric Python re editor dialog.
406 """ 406 """
407 self.__startProc("eric6_re.py") 407 self.__startProc("eric7_re.py")
408 408
409 def __startHexEditor(self): 409 def __startHexEditor(self):
410 """ 410 """
411 Private slot to start the eric hex editor dialog. 411 Private slot to start the eric hex editor dialog.
412 """ 412 """
413 self.__startProc("eric6_hexeditor.py") 413 self.__startProc("eric7_hexeditor.py")
414 414
415 def __startShell(self): 415 def __startShell(self):
416 """ 416 """
417 Private slot to start the eric Shell window. 417 Private slot to start the eric Shell window.
418 """ 418 """
419 self.__startProc("eric6_shell.py") 419 self.__startProc("eric7_shell.py")
420 420
421 def __showRecentProjectsMenu(self): 421 def __showRecentProjectsMenu(self):
422 """ 422 """
423 Private method to set up the recent projects menu. 423 Private method to set up the recent projects menu.
424 """ 424 """
477 @param act reference to the action that triggered (QAction) 477 @param act reference to the action that triggered (QAction)
478 """ 478 """
479 filename = act.data() 479 filename = act.data()
480 if filename: 480 if filename:
481 self.__startProc( 481 self.__startProc(
482 "eric6.py", 482 "eric7.py",
483 filename) 483 filename)
484 484
485 def __showPreferences(self): 485 def __showPreferences(self):
486 """ 486 """
487 Private slot to set the preferences. 487 Private slot to set the preferences.

eric ide

mercurial