66 from .LogView import LogViewer |
66 from .LogView import LogViewer |
67 from .FindFileDialog import FindFileDialog |
67 from .FindFileDialog import FindFileDialog |
68 from .FindFileNameDialog import FindFileNameDialog |
68 from .FindFileNameDialog import FindFileNameDialog |
69 from .AuthenticationDialog import AuthenticationDialog |
69 from .AuthenticationDialog import AuthenticationDialog |
70 |
70 |
71 from E4Gui.E4SingleApplication import E4SingleApplicationServer |
71 from E5Gui.E5SingleApplication import E5SingleApplicationServer |
72 from E4Gui.E4Action import E4Action, createActionGroup |
72 from E5Gui.E5Action import E5Action, createActionGroup |
73 from E4Gui.E4ToolBarManager import E4ToolBarManager |
73 from E5Gui.E5ToolBarManager import E5ToolBarManager |
74 from E4Gui.E4ToolBarDialog import E4ToolBarDialog |
74 from E5Gui.E5ToolBarDialog import E5ToolBarDialog |
75 from E4Gui.E4SqueezeLabels import E4SqueezeLabelPath |
75 from E5Gui.E5SqueezeLabels import E5SqueezeLabelPath |
76 from E4Gui.E4ToolBox import E4VerticalToolBox, E4HorizontalToolBox |
76 from E5Gui.E5ToolBox import E5VerticalToolBox, E5HorizontalToolBox |
77 from E4Gui.E4SideBar import E4SideBar |
77 from E5Gui.E5SideBar import E5SideBar |
78 from E4Gui.E4TabWidget import E4TabWidget |
78 from E5Gui.E5TabWidget import E5TabWidget |
79 |
79 |
80 from VCS.StatusMonitorLed import StatusMonitorLed |
80 from VCS.StatusMonitorLed import StatusMonitorLed |
81 |
81 |
82 import Preferences |
82 import Preferences |
83 import ViewManager |
83 import ViewManager |
830 |
830 |
831 @param debugServer reference to the debug server object |
831 @param debugServer reference to the debug server object |
832 """ |
832 """ |
833 # Create the vertical toolbox |
833 # Create the vertical toolbox |
834 self.vToolboxDock = self.__createDockWindow("vToolboxDock") |
834 self.vToolboxDock = self.__createDockWindow("vToolboxDock") |
835 self.vToolbox = E4VerticalToolBox(self.vToolboxDock) |
835 self.vToolbox = E5VerticalToolBox(self.vToolboxDock) |
836 self.__setupDockWindow(self.vToolboxDock, Qt.LeftDockWidgetArea, |
836 self.__setupDockWindow(self.vToolboxDock, Qt.LeftDockWidgetArea, |
837 self.vToolbox, self.trUtf8("Vertical Toolbox")) |
837 self.vToolbox, self.trUtf8("Vertical Toolbox")) |
838 |
838 |
839 # Create the horizontal toolbox |
839 # Create the horizontal toolbox |
840 self.hToolboxDock = self.__createDockWindow("hToolboxDock") |
840 self.hToolboxDock = self.__createDockWindow("hToolboxDock") |
841 self.hToolbox = E4HorizontalToolBox(self.hToolboxDock) |
841 self.hToolbox = E5HorizontalToolBox(self.hToolboxDock) |
842 self.__setupDockWindow(self.hToolboxDock, Qt.BottomDockWidgetArea, |
842 self.__setupDockWindow(self.hToolboxDock, Qt.BottomDockWidgetArea, |
843 self.hToolbox, self.trUtf8("Horizontal Toolbox")) |
843 self.hToolbox, self.trUtf8("Horizontal Toolbox")) |
844 |
844 |
845 # Create the project browser |
845 # Create the project browser |
846 self.projectBrowser = ProjectBrowser(self.project, None, |
846 self.projectBrowser = ProjectBrowser(self.project, None, |
1296 """ "View Profile Configuration" dialog.</p>""" |
1296 """ "View Profile Configuration" dialog.</p>""" |
1297 )) |
1297 )) |
1298 self.connect(self.setDebugProfileAct, SIGNAL('triggered()'), self.setDebugProfile) |
1298 self.connect(self.setDebugProfileAct, SIGNAL('triggered()'), self.setDebugProfile) |
1299 self.actions.append(self.setDebugProfileAct) |
1299 self.actions.append(self.setDebugProfileAct) |
1300 |
1300 |
1301 self.pbAct = E4Action(self.trUtf8('Project-Viewer'), |
1301 self.pbAct = E5Action(self.trUtf8('Project-Viewer'), |
1302 self.trUtf8('&Project-Viewer'), 0, 0, self, 'project_viewer', True) |
1302 self.trUtf8('&Project-Viewer'), 0, 0, self, 'project_viewer', True) |
1303 self.pbAct.setStatusTip(self.trUtf8('Toggle the Project-Viewer window')) |
1303 self.pbAct.setStatusTip(self.trUtf8('Toggle the Project-Viewer window')) |
1304 self.pbAct.setWhatsThis(self.trUtf8( |
1304 self.pbAct.setWhatsThis(self.trUtf8( |
1305 """<b>Toggle the Project-Viewer window</b>""" |
1305 """<b>Toggle the Project-Viewer window</b>""" |
1306 """<p>If the Project-Viewer window is hidden then display it.""" |
1306 """<p>If the Project-Viewer window is hidden then display it.""" |
1307 """ If it is displayed then close it.</p>""" |
1307 """ If it is displayed then close it.</p>""" |
1308 )) |
1308 )) |
1309 self.connect(self.pbAct, SIGNAL('triggered()'), self.__toggleProjectBrowser) |
1309 self.connect(self.pbAct, SIGNAL('triggered()'), self.__toggleProjectBrowser) |
1310 self.actions.append(self.pbAct) |
1310 self.actions.append(self.pbAct) |
1311 |
1311 |
1312 self.pbActivateAct = E4Action(self.trUtf8('Activate Project-Viewer'), |
1312 self.pbActivateAct = E5Action(self.trUtf8('Activate Project-Viewer'), |
1313 self.trUtf8('Activate Project-Viewer'), |
1313 self.trUtf8('Activate Project-Viewer'), |
1314 QKeySequence(self.trUtf8("Alt+Shift+P")), |
1314 QKeySequence(self.trUtf8("Alt+Shift+P")), |
1315 0, self, |
1315 0, self, |
1316 'project_viewer_activate', True) |
1316 'project_viewer_activate', True) |
1317 self.connect(self.pbActivateAct, SIGNAL('triggered()'), |
1317 self.connect(self.pbActivateAct, SIGNAL('triggered()'), |
1318 self.__activateProjectBrowser) |
1318 self.__activateProjectBrowser) |
1319 self.actions.append(self.pbActivateAct) |
1319 self.actions.append(self.pbActivateAct) |
1320 self.addAction(self.pbActivateAct) |
1320 self.addAction(self.pbActivateAct) |
1321 |
1321 |
1322 self.mpbAct = E4Action(self.trUtf8('Multiproject-Viewer'), |
1322 self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'), |
1323 self.trUtf8('&Multiproject-Viewer'), 0, 0, self, |
1323 self.trUtf8('&Multiproject-Viewer'), 0, 0, self, |
1324 'multi_project_viewer', True) |
1324 'multi_project_viewer', True) |
1325 self.mpbAct.setStatusTip(self.trUtf8('Toggle the Multiproject-Viewer window')) |
1325 self.mpbAct.setStatusTip(self.trUtf8('Toggle the Multiproject-Viewer window')) |
1326 self.mpbAct.setWhatsThis(self.trUtf8( |
1326 self.mpbAct.setWhatsThis(self.trUtf8( |
1327 """<b>Toggle the Multiproject-Viewer window</b>""" |
1327 """<b>Toggle the Multiproject-Viewer window</b>""" |
1329 """ If it is displayed then close it.</p>""" |
1329 """ If it is displayed then close it.</p>""" |
1330 )) |
1330 )) |
1331 self.connect(self.mpbAct, SIGNAL('triggered()'), self.__toggleMultiProjectBrowser) |
1331 self.connect(self.mpbAct, SIGNAL('triggered()'), self.__toggleMultiProjectBrowser) |
1332 self.actions.append(self.mpbAct) |
1332 self.actions.append(self.mpbAct) |
1333 |
1333 |
1334 self.mpbActivateAct = E4Action(self.trUtf8('Activate Multiproject-Viewer'), |
1334 self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'), |
1335 self.trUtf8('Activate Multiproject-Viewer'), |
1335 self.trUtf8('Activate Multiproject-Viewer'), |
1336 QKeySequence(self.trUtf8("Alt+Shift+M")), |
1336 QKeySequence(self.trUtf8("Alt+Shift+M")), |
1337 0, self, |
1337 0, self, |
1338 'multi_project_viewer_activate', True) |
1338 'multi_project_viewer_activate', True) |
1339 self.connect(self.mpbActivateAct, SIGNAL('triggered()'), |
1339 self.connect(self.mpbActivateAct, SIGNAL('triggered()'), |
1340 self.__activateMultiProjectBrowser) |
1340 self.__activateMultiProjectBrowser) |
1341 self.actions.append(self.mpbActivateAct) |
1341 self.actions.append(self.mpbActivateAct) |
1342 self.addAction(self.mpbActivateAct) |
1342 self.addAction(self.mpbActivateAct) |
1343 |
1343 |
1344 self.debugViewerAct = E4Action(self.trUtf8('Debug-Viewer'), |
1344 self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'), |
1345 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) |
1345 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) |
1346 self.debugViewerAct.setStatusTip(self.trUtf8('Toggle the Debug-Viewer window')) |
1346 self.debugViewerAct.setStatusTip(self.trUtf8('Toggle the Debug-Viewer window')) |
1347 self.debugViewerAct.setWhatsThis(self.trUtf8( |
1347 self.debugViewerAct.setWhatsThis(self.trUtf8( |
1348 """<b>Toggle the Debug-Viewer window</b>""" |
1348 """<b>Toggle the Debug-Viewer window</b>""" |
1349 """<p>If the Debug-Viewer window is hidden then display it.""" |
1349 """<p>If the Debug-Viewer window is hidden then display it.""" |
1350 """ If it is displayed then close it.</p>""" |
1350 """ If it is displayed then close it.</p>""" |
1351 )) |
1351 )) |
1352 self.connect(self.debugViewerAct, SIGNAL('triggered()'), self.__toggleDebugViewer) |
1352 self.connect(self.debugViewerAct, SIGNAL('triggered()'), self.__toggleDebugViewer) |
1353 self.actions.append(self.debugViewerAct) |
1353 self.actions.append(self.debugViewerAct) |
1354 |
1354 |
1355 self.debugViewerActivateAct = E4Action(self.trUtf8('Activate Debug-Viewer'), |
1355 self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'), |
1356 self.trUtf8('Activate Debug-Viewer'), |
1356 self.trUtf8('Activate Debug-Viewer'), |
1357 QKeySequence(self.trUtf8("Alt+Shift+D")), |
1357 QKeySequence(self.trUtf8("Alt+Shift+D")), |
1358 0, self, |
1358 0, self, |
1359 'debug_viewer_activate', True) |
1359 'debug_viewer_activate', True) |
1360 self.connect(self.debugViewerActivateAct, SIGNAL('triggered()'), |
1360 self.connect(self.debugViewerActivateAct, SIGNAL('triggered()'), |
1361 self.__activateDebugViewer) |
1361 self.__activateDebugViewer) |
1362 self.actions.append(self.debugViewerActivateAct) |
1362 self.actions.append(self.debugViewerActivateAct) |
1363 self.addAction(self.debugViewerActivateAct) |
1363 self.addAction(self.debugViewerActivateAct) |
1364 |
1364 |
1365 self.shellAct = E4Action(self.trUtf8('Shell'), |
1365 self.shellAct = E5Action(self.trUtf8('Shell'), |
1366 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) |
1366 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) |
1367 self.shellAct.setStatusTip(self.trUtf8('Toggle the Shell window')) |
1367 self.shellAct.setStatusTip(self.trUtf8('Toggle the Shell window')) |
1368 self.shellAct.setWhatsThis(self.trUtf8( |
1368 self.shellAct.setWhatsThis(self.trUtf8( |
1369 """<b>Toggle the Shell window</b>""" |
1369 """<b>Toggle the Shell window</b>""" |
1370 """<p>If the Shell window is hidden then display it.""" |
1370 """<p>If the Shell window is hidden then display it.""" |
1372 )) |
1372 )) |
1373 if not self.embeddedShell: |
1373 if not self.embeddedShell: |
1374 self.connect(self.shellAct, SIGNAL('triggered()'), self.__toggleShell) |
1374 self.connect(self.shellAct, SIGNAL('triggered()'), self.__toggleShell) |
1375 self.actions.append(self.shellAct) |
1375 self.actions.append(self.shellAct) |
1376 |
1376 |
1377 self.shellActivateAct = E4Action(self.trUtf8('Activate Shell'), |
1377 self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'), |
1378 self.trUtf8('Activate Shell'), |
1378 self.trUtf8('Activate Shell'), |
1379 QKeySequence(self.trUtf8("Alt+Shift+S")), |
1379 QKeySequence(self.trUtf8("Alt+Shift+S")), |
1380 0, self, |
1380 0, self, |
1381 'interprter_shell_activate', True) |
1381 'interprter_shell_activate', True) |
1382 self.connect(self.shellActivateAct, SIGNAL('triggered()'), self.__activateShell) |
1382 self.connect(self.shellActivateAct, SIGNAL('triggered()'), self.__activateShell) |
1383 self.actions.append(self.shellActivateAct) |
1383 self.actions.append(self.shellActivateAct) |
1384 self.addAction(self.shellActivateAct) |
1384 self.addAction(self.shellActivateAct) |
1385 |
1385 |
1386 self.terminalAct = E4Action(self.trUtf8('Terminal'), |
1386 self.terminalAct = E5Action(self.trUtf8('Terminal'), |
1387 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) |
1387 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) |
1388 self.terminalAct.setStatusTip(self.trUtf8('Toggle the Terminal window')) |
1388 self.terminalAct.setStatusTip(self.trUtf8('Toggle the Terminal window')) |
1389 self.terminalAct.setWhatsThis(self.trUtf8( |
1389 self.terminalAct.setWhatsThis(self.trUtf8( |
1390 """<b>Toggle the Terminal window</b>""" |
1390 """<b>Toggle the Terminal window</b>""" |
1391 """<p>If the Terminal window is hidden then display it.""" |
1391 """<p>If the Terminal window is hidden then display it.""" |
1392 """ If it is displayed then close it.</p>""" |
1392 """ If it is displayed then close it.</p>""" |
1393 )) |
1393 )) |
1394 self.connect(self.terminalAct, SIGNAL('triggered()'), self.__toggleTerminal) |
1394 self.connect(self.terminalAct, SIGNAL('triggered()'), self.__toggleTerminal) |
1395 self.actions.append(self.terminalAct) |
1395 self.actions.append(self.terminalAct) |
1396 |
1396 |
1397 self.terminalActivateAct = E4Action(self.trUtf8('Activate Terminal'), |
1397 self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'), |
1398 self.trUtf8('Activate Terminal'), |
1398 self.trUtf8('Activate Terminal'), |
1399 QKeySequence(self.trUtf8("Alt+Shift+R")), |
1399 QKeySequence(self.trUtf8("Alt+Shift+R")), |
1400 0, self, |
1400 0, self, |
1401 'terminal_activate', True) |
1401 'terminal_activate', True) |
1402 self.connect(self.terminalActivateAct, SIGNAL('triggered()'), |
1402 self.connect(self.terminalActivateAct, SIGNAL('triggered()'), |
1403 self.__activateTerminal) |
1403 self.__activateTerminal) |
1404 self.actions.append(self.terminalActivateAct) |
1404 self.actions.append(self.terminalActivateAct) |
1405 self.addAction(self.terminalActivateAct) |
1405 self.addAction(self.terminalActivateAct) |
1406 |
1406 |
1407 self.browserAct = E4Action(self.trUtf8('File-Browser'), |
1407 self.browserAct = E5Action(self.trUtf8('File-Browser'), |
1408 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) |
1408 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) |
1409 self.browserAct.setStatusTip(self.trUtf8('Toggle the File-Browser window')) |
1409 self.browserAct.setStatusTip(self.trUtf8('Toggle the File-Browser window')) |
1410 self.browserAct.setWhatsThis(self.trUtf8( |
1410 self.browserAct.setWhatsThis(self.trUtf8( |
1411 """<b>Toggle the File-Browser window</b>""" |
1411 """<b>Toggle the File-Browser window</b>""" |
1412 """<p>If the File-Browser window is hidden then display it.""" |
1412 """<p>If the File-Browser window is hidden then display it.""" |
1414 )) |
1414 )) |
1415 if not self.embeddedFileBrowser: |
1415 if not self.embeddedFileBrowser: |
1416 self.connect(self.browserAct, SIGNAL('triggered()'), self.__toggleBrowser) |
1416 self.connect(self.browserAct, SIGNAL('triggered()'), self.__toggleBrowser) |
1417 self.actions.append(self.browserAct) |
1417 self.actions.append(self.browserAct) |
1418 |
1418 |
1419 self.browserActivateAct = E4Action(self.trUtf8('Activate File-Browser'), |
1419 self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'), |
1420 self.trUtf8('Activate File-Browser'), |
1420 self.trUtf8('Activate File-Browser'), |
1421 QKeySequence(self.trUtf8("Alt+Shift+F")), |
1421 QKeySequence(self.trUtf8("Alt+Shift+F")), |
1422 0, self, |
1422 0, self, |
1423 'file_browser_activate', True) |
1423 'file_browser_activate', True) |
1424 self.connect(self.browserActivateAct, SIGNAL('triggered()'), |
1424 self.connect(self.browserActivateAct, SIGNAL('triggered()'), |
1425 self.__activateBrowser) |
1425 self.__activateBrowser) |
1426 self.actions.append(self.browserActivateAct) |
1426 self.actions.append(self.browserActivateAct) |
1427 self.addAction(self.browserActivateAct) |
1427 self.addAction(self.browserActivateAct) |
1428 |
1428 |
1429 self.logViewerAct = E4Action(self.trUtf8('Log-Viewer'), |
1429 self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'), |
1430 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) |
1430 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) |
1431 self.logViewerAct.setStatusTip(self.trUtf8('Toggle the Log-Viewer window')) |
1431 self.logViewerAct.setStatusTip(self.trUtf8('Toggle the Log-Viewer window')) |
1432 self.logViewerAct.setWhatsThis(self.trUtf8( |
1432 self.logViewerAct.setWhatsThis(self.trUtf8( |
1433 """<b>Toggle the Log-Viewer window</b>""" |
1433 """<b>Toggle the Log-Viewer window</b>""" |
1434 """<p>If the Log-Viewer window is hidden then display it.""" |
1434 """<p>If the Log-Viewer window is hidden then display it.""" |
1435 """ If it is displayed then close it.</p>""" |
1435 """ If it is displayed then close it.</p>""" |
1436 )) |
1436 )) |
1437 self.connect(self.logViewerAct, SIGNAL('triggered()'), self.__toggleLogViewer) |
1437 self.connect(self.logViewerAct, SIGNAL('triggered()'), self.__toggleLogViewer) |
1438 self.actions.append(self.logViewerAct) |
1438 self.actions.append(self.logViewerAct) |
1439 |
1439 |
1440 self.logViewerActivateAct = E4Action(self.trUtf8('Activate Log-Viewer'), |
1440 self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'), |
1441 self.trUtf8('Activate Log-Viewer'), |
1441 self.trUtf8('Activate Log-Viewer'), |
1442 QKeySequence(self.trUtf8("Alt+Shift+G")), |
1442 QKeySequence(self.trUtf8("Alt+Shift+G")), |
1443 0, self, |
1443 0, self, |
1444 'log_viewer_activate', True) |
1444 'log_viewer_activate', True) |
1445 self.connect(self.logViewerActivateAct, SIGNAL('triggered()'), |
1445 self.connect(self.logViewerActivateAct, SIGNAL('triggered()'), |
1446 self.__activateLogViewer) |
1446 self.__activateLogViewer) |
1447 self.actions.append(self.logViewerActivateAct) |
1447 self.actions.append(self.logViewerActivateAct) |
1448 self.addAction(self.logViewerActivateAct) |
1448 self.addAction(self.logViewerActivateAct) |
1449 |
1449 |
1450 self.taskViewerAct = E4Action(self.trUtf8('Task-Viewer'), |
1450 self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'), |
1451 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) |
1451 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) |
1452 self.taskViewerAct.setStatusTip(self.trUtf8('Toggle the Task-Viewer window')) |
1452 self.taskViewerAct.setStatusTip(self.trUtf8('Toggle the Task-Viewer window')) |
1453 self.taskViewerAct.setWhatsThis(self.trUtf8( |
1453 self.taskViewerAct.setWhatsThis(self.trUtf8( |
1454 """<b>Toggle the Task-Viewer window</b>""" |
1454 """<b>Toggle the Task-Viewer window</b>""" |
1455 """<p>If the Task-Viewer window is hidden then display it.""" |
1455 """<p>If the Task-Viewer window is hidden then display it.""" |
1456 """ If it is displayed then close it.</p>""" |
1456 """ If it is displayed then close it.</p>""" |
1457 )) |
1457 )) |
1458 self.connect(self.taskViewerAct, SIGNAL('triggered()'), self.__toggleTaskViewer) |
1458 self.connect(self.taskViewerAct, SIGNAL('triggered()'), self.__toggleTaskViewer) |
1459 self.actions.append(self.taskViewerAct) |
1459 self.actions.append(self.taskViewerAct) |
1460 |
1460 |
1461 self.taskViewerActivateAct = E4Action(self.trUtf8('Activate Task-Viewer'), |
1461 self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'), |
1462 self.trUtf8('Activate Task-Viewer'), |
1462 self.trUtf8('Activate Task-Viewer'), |
1463 QKeySequence(self.trUtf8("Alt+Shift+T")), |
1463 QKeySequence(self.trUtf8("Alt+Shift+T")), |
1464 0, self, |
1464 0, self, |
1465 'task_viewer_activate',1) |
1465 'task_viewer_activate',1) |
1466 self.connect(self.taskViewerActivateAct, SIGNAL('triggered()'), |
1466 self.connect(self.taskViewerActivateAct, SIGNAL('triggered()'), |
1467 self.__activateTaskViewer) |
1467 self.__activateTaskViewer) |
1468 self.actions.append(self.taskViewerActivateAct) |
1468 self.actions.append(self.taskViewerActivateAct) |
1469 self.addAction(self.taskViewerActivateAct) |
1469 self.addAction(self.taskViewerActivateAct) |
1470 |
1470 |
1471 self.templateViewerAct = E4Action(self.trUtf8('Template-Viewer'), |
1471 self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), |
1472 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) |
1472 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) |
1473 self.templateViewerAct.setStatusTip(\ |
1473 self.templateViewerAct.setStatusTip(\ |
1474 self.trUtf8('Toggle the Template-Viewer window')) |
1474 self.trUtf8('Toggle the Template-Viewer window')) |
1475 self.templateViewerAct.setWhatsThis(self.trUtf8( |
1475 self.templateViewerAct.setWhatsThis(self.trUtf8( |
1476 """<b>Toggle the Template-Viewer window</b>""" |
1476 """<b>Toggle the Template-Viewer window</b>""" |
1479 )) |
1479 )) |
1480 self.connect(self.templateViewerAct, SIGNAL('triggered()'), |
1480 self.connect(self.templateViewerAct, SIGNAL('triggered()'), |
1481 self.__toggleTemplateViewer) |
1481 self.__toggleTemplateViewer) |
1482 self.actions.append(self.templateViewerAct) |
1482 self.actions.append(self.templateViewerAct) |
1483 |
1483 |
1484 self.templateViewerActivateAct = E4Action(self.trUtf8('Activate Template-Viewer'), |
1484 self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'), |
1485 self.trUtf8('Activate Template-Viewer'), |
1485 self.trUtf8('Activate Template-Viewer'), |
1486 QKeySequence(self.trUtf8("Alt+Shift+A")), |
1486 QKeySequence(self.trUtf8("Alt+Shift+A")), |
1487 0, self, |
1487 0, self, |
1488 'template_viewer_activate',1) |
1488 'template_viewer_activate',1) |
1489 self.connect(self.templateViewerActivateAct, SIGNAL('triggered()'), |
1489 self.connect(self.templateViewerActivateAct, SIGNAL('triggered()'), |
1490 self.__activateTemplateViewer) |
1490 self.__activateTemplateViewer) |
1491 self.actions.append(self.templateViewerActivateAct) |
1491 self.actions.append(self.templateViewerActivateAct) |
1492 self.addAction(self.templateViewerActivateAct) |
1492 self.addAction(self.templateViewerActivateAct) |
1493 |
1493 |
1494 self.vtAct = E4Action(self.trUtf8('Vertical Toolbox'), |
1494 self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'), |
1495 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) |
1495 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) |
1496 self.vtAct.setStatusTip(self.trUtf8('Toggle the Vertical Toolbox window')) |
1496 self.vtAct.setStatusTip(self.trUtf8('Toggle the Vertical Toolbox window')) |
1497 self.vtAct.setWhatsThis(self.trUtf8( |
1497 self.vtAct.setWhatsThis(self.trUtf8( |
1498 """<b>Toggle the Vertical Toolbox window</b>""" |
1498 """<b>Toggle the Vertical Toolbox window</b>""" |
1499 """<p>If the Vertical Toolbox window is hidden then display it.""" |
1499 """<p>If the Vertical Toolbox window is hidden then display it.""" |
1500 """ If it is displayed then close it.</p>""" |
1500 """ If it is displayed then close it.</p>""" |
1501 )) |
1501 )) |
1502 self.connect(self.vtAct, SIGNAL('triggered()'), self.__toggleVerticalToolbox) |
1502 self.connect(self.vtAct, SIGNAL('triggered()'), self.__toggleVerticalToolbox) |
1503 self.actions.append(self.vtAct) |
1503 self.actions.append(self.vtAct) |
1504 |
1504 |
1505 self.htAct = E4Action(self.trUtf8('Horizontal Toolbox'), |
1505 self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'), |
1506 self.trUtf8('&Horizontal Toolbox'), 0, 0, self, |
1506 self.trUtf8('&Horizontal Toolbox'), 0, 0, self, |
1507 'horizontal_toolbox', True) |
1507 'horizontal_toolbox', True) |
1508 self.htAct.setStatusTip(self.trUtf8('Toggle the Horizontal Toolbox window')) |
1508 self.htAct.setStatusTip(self.trUtf8('Toggle the Horizontal Toolbox window')) |
1509 self.htAct.setWhatsThis(self.trUtf8( |
1509 self.htAct.setWhatsThis(self.trUtf8( |
1510 """<b>Toggle the Horizontal Toolbox window</b>""" |
1510 """<b>Toggle the Horizontal Toolbox window</b>""" |
1512 """ If it is displayed then close it.</p>""" |
1512 """ If it is displayed then close it.</p>""" |
1513 )) |
1513 )) |
1514 self.connect(self.htAct, SIGNAL('triggered()'), self.__toggleHorizontalToolbox) |
1514 self.connect(self.htAct, SIGNAL('triggered()'), self.__toggleHorizontalToolbox) |
1515 self.actions.append(self.htAct) |
1515 self.actions.append(self.htAct) |
1516 |
1516 |
1517 self.lsbAct = E4Action(self.trUtf8('Left Sidebar'), |
1517 self.lsbAct = E5Action(self.trUtf8('Left Sidebar'), |
1518 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) |
1518 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) |
1519 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) |
1519 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) |
1520 self.lsbAct.setWhatsThis(self.trUtf8( |
1520 self.lsbAct.setWhatsThis(self.trUtf8( |
1521 """<b>Toggle the left sidebar window</b>""" |
1521 """<b>Toggle the left sidebar window</b>""" |
1522 """<p>If the left sidebar window is hidden then display it.""" |
1522 """<p>If the left sidebar window is hidden then display it.""" |
1523 """ If it is displayed then close it.</p>""" |
1523 """ If it is displayed then close it.</p>""" |
1524 )) |
1524 )) |
1525 self.connect(self.lsbAct, SIGNAL('triggered()'), self.__toggleLeftSidebar) |
1525 self.connect(self.lsbAct, SIGNAL('triggered()'), self.__toggleLeftSidebar) |
1526 self.actions.append(self.lsbAct) |
1526 self.actions.append(self.lsbAct) |
1527 |
1527 |
1528 self.bsbAct = E4Action(self.trUtf8('Bottom Sidebar'), |
1528 self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'), |
1529 self.trUtf8('&Bottom Sidebar'), 0, 0, self, |
1529 self.trUtf8('&Bottom Sidebar'), 0, 0, self, |
1530 'bottom_sidebar', True) |
1530 'bottom_sidebar', True) |
1531 self.bsbAct.setStatusTip(self.trUtf8('Toggle the bottom sidebar window')) |
1531 self.bsbAct.setStatusTip(self.trUtf8('Toggle the bottom sidebar window')) |
1532 self.bsbAct.setWhatsThis(self.trUtf8( |
1532 self.bsbAct.setWhatsThis(self.trUtf8( |
1533 """<b>Toggle the bottom sidebar window</b>""" |
1533 """<b>Toggle the bottom sidebar window</b>""" |
1575 self.__initQtDocActions() |
1575 self.__initQtDocActions() |
1576 self.__initPythonDocAction() |
1576 self.__initPythonDocAction() |
1577 self.__initEricDocAction() |
1577 self.__initEricDocAction() |
1578 self.__initPySideDocActions() |
1578 self.__initPySideDocActions() |
1579 |
1579 |
1580 self.versionAct = E4Action(self.trUtf8('Show Versions'), |
1580 self.versionAct = E5Action(self.trUtf8('Show Versions'), |
1581 self.trUtf8('Show &Versions'), 0, 0, self, 'show_versions') |
1581 self.trUtf8('Show &Versions'), 0, 0, self, 'show_versions') |
1582 self.versionAct.setStatusTip(self.trUtf8('Display version information')) |
1582 self.versionAct.setStatusTip(self.trUtf8('Display version information')) |
1583 self.versionAct.setWhatsThis(self.trUtf8( |
1583 self.versionAct.setWhatsThis(self.trUtf8( |
1584 """<b>Show Versions</b>""" |
1584 """<b>Show Versions</b>""" |
1585 """<p>Display version information.</p>""" |
1585 """<p>Display version information.</p>""" |
1586 )) |
1586 )) |
1587 self.connect(self.versionAct, SIGNAL('triggered()'), self.__showVersions) |
1587 self.connect(self.versionAct, SIGNAL('triggered()'), self.__showVersions) |
1588 self.actions.append(self.versionAct) |
1588 self.actions.append(self.versionAct) |
1589 |
1589 |
1590 self.checkUpdateAct = E4Action(self.trUtf8('Check for Updates'), |
1590 self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'), |
1591 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') |
1591 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') |
1592 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) |
1592 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) |
1593 self.checkUpdateAct.setWhatsThis(self.trUtf8( |
1593 self.checkUpdateAct.setWhatsThis(self.trUtf8( |
1594 """<b>Check for Updates...</b>""" |
1594 """<b>Check for Updates...</b>""" |
1595 """<p>Checks the internet for updates of eric5.</p>""" |
1595 """<p>Checks the internet for updates of eric5.</p>""" |
1596 )) |
1596 )) |
1597 self.connect(self.checkUpdateAct, SIGNAL('triggered()'), self.performVersionCheck) |
1597 self.connect(self.checkUpdateAct, SIGNAL('triggered()'), self.performVersionCheck) |
1598 self.actions.append(self.checkUpdateAct) |
1598 self.actions.append(self.checkUpdateAct) |
1599 |
1599 |
1600 self.showVersionsAct = E4Action(self.trUtf8('Show downloadable versions'), |
1600 self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), |
1601 self.trUtf8('Show &downloadable versions...'), |
1601 self.trUtf8('Show &downloadable versions...'), |
1602 0, 0, self, 'show_downloadable_versions') |
1602 0, 0, self, 'show_downloadable_versions') |
1603 self.showVersionsAct.setStatusTip(\ |
1603 self.showVersionsAct.setStatusTip(\ |
1604 self.trUtf8('Show the versions available for download')) |
1604 self.trUtf8('Show the versions available for download')) |
1605 self.showVersionsAct.setWhatsThis(self.trUtf8( |
1605 self.showVersionsAct.setWhatsThis(self.trUtf8( |
1609 )) |
1609 )) |
1610 self.connect(self.showVersionsAct, SIGNAL('triggered()'), |
1610 self.connect(self.showVersionsAct, SIGNAL('triggered()'), |
1611 self.showAvailableVersionsInfo) |
1611 self.showAvailableVersionsInfo) |
1612 self.actions.append(self.showVersionsAct) |
1612 self.actions.append(self.showVersionsAct) |
1613 |
1613 |
1614 self.reportBugAct = E4Action(self.trUtf8('Report Bug'), |
1614 self.reportBugAct = E5Action(self.trUtf8('Report Bug'), |
1615 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') |
1615 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') |
1616 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) |
1616 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) |
1617 self.reportBugAct.setWhatsThis(self.trUtf8( |
1617 self.reportBugAct.setWhatsThis(self.trUtf8( |
1618 """<b>Report Bug...</b>""" |
1618 """<b>Report Bug...</b>""" |
1619 """<p>Opens a dialog to report a bug.</p>""" |
1619 """<p>Opens a dialog to report a bug.</p>""" |
1620 )) |
1620 )) |
1621 self.connect(self.reportBugAct, SIGNAL('triggered()'), self.__reportBug) |
1621 self.connect(self.reportBugAct, SIGNAL('triggered()'), self.__reportBug) |
1622 self.actions.append(self.reportBugAct) |
1622 self.actions.append(self.reportBugAct) |
1623 |
1623 |
1624 self.requestFeatureAct = E4Action(self.trUtf8('Request Feature'), |
1624 self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'), |
1625 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') |
1625 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') |
1626 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) |
1626 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) |
1627 self.requestFeatureAct.setWhatsThis(self.trUtf8( |
1627 self.requestFeatureAct.setWhatsThis(self.trUtf8( |
1628 """<b>Request Feature...</b>""" |
1628 """<b>Request Feature...</b>""" |
1629 """<p>Opens a dialog to send a feature request.</p>""" |
1629 """<p>Opens a dialog to send a feature request.</p>""" |
1718 self.connect(self.linguist4Act, SIGNAL('triggered()'), self.__linguist4) |
1718 self.connect(self.linguist4Act, SIGNAL('triggered()'), self.__linguist4) |
1719 self.actions.append(self.linguist4Act) |
1719 self.actions.append(self.linguist4Act) |
1720 else: |
1720 else: |
1721 self.linguist4Act = None |
1721 self.linguist4Act = None |
1722 |
1722 |
1723 self.uipreviewerAct = E4Action(self.trUtf8('UI Previewer'), |
1723 self.uipreviewerAct = E5Action(self.trUtf8('UI Previewer'), |
1724 UI.PixmapCache.getIcon("uiPreviewer.png"), |
1724 UI.PixmapCache.getIcon("uiPreviewer.png"), |
1725 self.trUtf8('&UI Previewer...'), 0, 0, self, 'ui_previewer') |
1725 self.trUtf8('&UI Previewer...'), 0, 0, self, 'ui_previewer') |
1726 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) |
1726 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) |
1727 self.uipreviewerAct.setWhatsThis(self.trUtf8( |
1727 self.uipreviewerAct.setWhatsThis(self.trUtf8( |
1728 """<b>UI Previewer</b>""" |
1728 """<b>UI Previewer</b>""" |
1729 """<p>Start the UI Previewer.</p>""" |
1729 """<p>Start the UI Previewer.</p>""" |
1730 )) |
1730 )) |
1731 self.connect(self.uipreviewerAct, SIGNAL('triggered()'), self.__UIPreviewer) |
1731 self.connect(self.uipreviewerAct, SIGNAL('triggered()'), self.__UIPreviewer) |
1732 self.actions.append(self.uipreviewerAct) |
1732 self.actions.append(self.uipreviewerAct) |
1733 |
1733 |
1734 self.trpreviewerAct = E4Action(self.trUtf8('Translations Previewer'), |
1734 self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'), |
1735 UI.PixmapCache.getIcon("trPreviewer.png"), |
1735 UI.PixmapCache.getIcon("trPreviewer.png"), |
1736 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') |
1736 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') |
1737 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) |
1737 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) |
1738 self.trpreviewerAct.setWhatsThis(self.trUtf8( |
1738 self.trpreviewerAct.setWhatsThis(self.trUtf8( |
1739 """<b>Translations Previewer</b>""" |
1739 """<b>Translations Previewer</b>""" |
1740 """<p>Start the Translations Previewer.</p>""" |
1740 """<p>Start the Translations Previewer.</p>""" |
1741 )) |
1741 )) |
1742 self.connect(self.trpreviewerAct, SIGNAL('triggered()'), self.__TRPreviewer) |
1742 self.connect(self.trpreviewerAct, SIGNAL('triggered()'), self.__TRPreviewer) |
1743 self.actions.append(self.trpreviewerAct) |
1743 self.actions.append(self.trpreviewerAct) |
1744 |
1744 |
1745 self.diffAct = E4Action(self.trUtf8('Compare Files'), |
1745 self.diffAct = E5Action(self.trUtf8('Compare Files'), |
1746 UI.PixmapCache.getIcon("diffFiles.png"), |
1746 UI.PixmapCache.getIcon("diffFiles.png"), |
1747 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') |
1747 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') |
1748 self.diffAct.setStatusTip(self.trUtf8('Compare two files')) |
1748 self.diffAct.setStatusTip(self.trUtf8('Compare two files')) |
1749 self.diffAct.setWhatsThis(self.trUtf8( |
1749 self.diffAct.setWhatsThis(self.trUtf8( |
1750 """<b>Compare Files</b>""" |
1750 """<b>Compare Files</b>""" |
1751 """<p>Open a dialog to compare two files.</p>""" |
1751 """<p>Open a dialog to compare two files.</p>""" |
1752 )) |
1752 )) |
1753 self.connect(self.diffAct, SIGNAL('triggered()'), self.__compareFiles) |
1753 self.connect(self.diffAct, SIGNAL('triggered()'), self.__compareFiles) |
1754 self.actions.append(self.diffAct) |
1754 self.actions.append(self.diffAct) |
1755 |
1755 |
1756 self.compareAct = E4Action(self.trUtf8('Compare Files side by side'), |
1756 self.compareAct = E5Action(self.trUtf8('Compare Files side by side'), |
1757 UI.PixmapCache.getIcon("compareFiles.png"), |
1757 UI.PixmapCache.getIcon("compareFiles.png"), |
1758 self.trUtf8('Compare Files &side by side...'), |
1758 self.trUtf8('Compare Files &side by side...'), |
1759 0, 0, self, 'compare_files') |
1759 0, 0, self, 'compare_files') |
1760 self.compareAct.setStatusTip(self.trUtf8('Compare two files')) |
1760 self.compareAct.setStatusTip(self.trUtf8('Compare two files')) |
1761 self.compareAct.setWhatsThis(self.trUtf8( |
1761 self.compareAct.setWhatsThis(self.trUtf8( |
1824 """ with your prefered values.</p>""" |
1824 """ with your prefered values.</p>""" |
1825 )) |
1825 )) |
1826 self.connect(self.prefAct, SIGNAL('triggered()'), self.showPreferences) |
1826 self.connect(self.prefAct, SIGNAL('triggered()'), self.showPreferences) |
1827 self.actions.append(self.prefAct) |
1827 self.actions.append(self.prefAct) |
1828 |
1828 |
1829 self.prefExportAct = E4Action(self.trUtf8('Export Preferences'), |
1829 self.prefExportAct = E5Action(self.trUtf8('Export Preferences'), |
1830 UI.PixmapCache.getIcon("configureExport.png"), |
1830 UI.PixmapCache.getIcon("configureExport.png"), |
1831 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') |
1831 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') |
1832 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) |
1832 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) |
1833 self.prefExportAct.setWhatsThis(self.trUtf8( |
1833 self.prefExportAct.setWhatsThis(self.trUtf8( |
1834 """<b>Export Preferences</b>""" |
1834 """<b>Export Preferences</b>""" |
1835 """<p>Export the current configuration to a file.</p>""" |
1835 """<p>Export the current configuration to a file.</p>""" |
1836 )) |
1836 )) |
1837 self.connect(self.prefExportAct, SIGNAL('triggered()'), self.__exportPreferences) |
1837 self.connect(self.prefExportAct, SIGNAL('triggered()'), self.__exportPreferences) |
1838 self.actions.append(self.prefExportAct) |
1838 self.actions.append(self.prefExportAct) |
1839 |
1839 |
1840 self.prefImportAct = E4Action(self.trUtf8('Import Preferences'), |
1840 self.prefImportAct = E5Action(self.trUtf8('Import Preferences'), |
1841 UI.PixmapCache.getIcon("configureImport.png"), |
1841 UI.PixmapCache.getIcon("configureImport.png"), |
1842 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') |
1842 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') |
1843 self.prefImportAct.setStatusTip(self.trUtf8( |
1843 self.prefImportAct.setStatusTip(self.trUtf8( |
1844 'Import a previously exported configuration')) |
1844 'Import a previously exported configuration')) |
1845 self.prefImportAct.setWhatsThis(self.trUtf8( |
1845 self.prefImportAct.setWhatsThis(self.trUtf8( |
1847 """<p>Import a previously exported configuration.</p>""" |
1847 """<p>Import a previously exported configuration.</p>""" |
1848 )) |
1848 )) |
1849 self.connect(self.prefImportAct, SIGNAL('triggered()'), self.__importPreferences) |
1849 self.connect(self.prefImportAct, SIGNAL('triggered()'), self.__importPreferences) |
1850 self.actions.append(self.prefImportAct) |
1850 self.actions.append(self.prefImportAct) |
1851 |
1851 |
1852 self.reloadAPIsAct = E4Action(self.trUtf8('Reload APIs'), |
1852 self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'), |
1853 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') |
1853 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') |
1854 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) |
1854 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) |
1855 self.reloadAPIsAct.setWhatsThis(self.trUtf8( |
1855 self.reloadAPIsAct.setWhatsThis(self.trUtf8( |
1856 """<b>Reload APIs</b>""" |
1856 """<b>Reload APIs</b>""" |
1857 """<p>Reload the API information.</p>""" |
1857 """<p>Reload the API information.</p>""" |
1858 )) |
1858 )) |
1859 self.connect(self.reloadAPIsAct, SIGNAL('triggered()'), self.__reloadAPIs) |
1859 self.connect(self.reloadAPIsAct, SIGNAL('triggered()'), self.__reloadAPIs) |
1860 self.actions.append(self.reloadAPIsAct) |
1860 self.actions.append(self.reloadAPIsAct) |
1861 |
1861 |
1862 self.showExternalToolsAct = E4Action(self.trUtf8('Show external tools'), |
1862 self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'), |
1863 UI.PixmapCache.getIcon("showPrograms.png"), |
1863 UI.PixmapCache.getIcon("showPrograms.png"), |
1864 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') |
1864 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') |
1865 self.showExternalToolsAct.setStatusTip(self.trUtf8('Reload the API information')) |
1865 self.showExternalToolsAct.setStatusTip(self.trUtf8('Reload the API information')) |
1866 self.showExternalToolsAct.setWhatsThis(self.trUtf8( |
1866 self.showExternalToolsAct.setWhatsThis(self.trUtf8( |
1867 """<b>Show external tools</b>""" |
1867 """<b>Show external tools</b>""" |
1935 )) |
1935 )) |
1936 self.connect(self.importShortcutsAct, SIGNAL('triggered()'), |
1936 self.connect(self.importShortcutsAct, SIGNAL('triggered()'), |
1937 self.__importShortcuts) |
1937 self.__importShortcuts) |
1938 self.actions.append(self.importShortcutsAct) |
1938 self.actions.append(self.importShortcutsAct) |
1939 |
1939 |
1940 self.viewmanagerActivateAct = E4Action(self.trUtf8('Activate current editor'), |
1940 self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'), |
1941 self.trUtf8('Activate current editor'), |
1941 self.trUtf8('Activate current editor'), |
1942 QKeySequence(self.trUtf8("Alt+Shift+E")), |
1942 QKeySequence(self.trUtf8("Alt+Shift+E")), |
1943 0, self, |
1943 0, self, |
1944 'viewmanager_activate',1) |
1944 'viewmanager_activate',1) |
1945 self.connect(self.viewmanagerActivateAct, SIGNAL('triggered()'), |
1945 self.connect(self.viewmanagerActivateAct, SIGNAL('triggered()'), |
1946 self.__activateViewmanager) |
1946 self.__activateViewmanager) |
1947 self.actions.append(self.viewmanagerActivateAct) |
1947 self.actions.append(self.viewmanagerActivateAct) |
1948 self.addAction(self.viewmanagerActivateAct) |
1948 self.addAction(self.viewmanagerActivateAct) |
1949 |
1949 |
1950 self.nextTabAct = E4Action(self.trUtf8('Show next'), |
1950 self.nextTabAct = E5Action(self.trUtf8('Show next'), |
1951 self.trUtf8('Show next'), |
1951 self.trUtf8('Show next'), |
1952 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
1952 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
1953 self, 'view_next_tab') |
1953 self, 'view_next_tab') |
1954 self.connect(self.nextTabAct, SIGNAL('triggered()'), self.__showNext) |
1954 self.connect(self.nextTabAct, SIGNAL('triggered()'), self.__showNext) |
1955 self.actions.append(self.nextTabAct) |
1955 self.actions.append(self.nextTabAct) |
1956 self.addAction(self.nextTabAct) |
1956 self.addAction(self.nextTabAct) |
1957 |
1957 |
1958 self.prevTabAct = E4Action(self.trUtf8('Show previous'), |
1958 self.prevTabAct = E5Action(self.trUtf8('Show previous'), |
1959 self.trUtf8('Show previous'), |
1959 self.trUtf8('Show previous'), |
1960 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
1960 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
1961 self, 'view_previous_tab') |
1961 self, 'view_previous_tab') |
1962 self.connect(self.prevTabAct, SIGNAL('triggered()'), self.__showPrevious) |
1962 self.connect(self.prevTabAct, SIGNAL('triggered()'), self.__showPrevious) |
1963 self.actions.append(self.prevTabAct) |
1963 self.actions.append(self.prevTabAct) |
1964 self.addAction(self.prevTabAct) |
1964 self.addAction(self.prevTabAct) |
1965 |
1965 |
1966 self.switchTabAct = E4Action(self.trUtf8('Switch between tabs'), |
1966 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
1967 self.trUtf8('Switch between tabs'), |
1967 self.trUtf8('Switch between tabs'), |
1968 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
1968 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
1969 self, 'switch_tabs') |
1969 self, 'switch_tabs') |
1970 self.connect(self.switchTabAct, SIGNAL('triggered()'), self.__switchTab) |
1970 self.connect(self.switchTabAct, SIGNAL('triggered()'), self.__switchTab) |
1971 self.actions.append(self.switchTabAct) |
1971 self.actions.append(self.switchTabAct) |
1972 self.addAction(self.switchTabAct) |
1972 self.addAction(self.switchTabAct) |
1973 |
1973 |
1974 self.pluginInfoAct = E4Action(self.trUtf8('Plugin Infos'), |
1974 self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'), |
1975 UI.PixmapCache.getIcon("plugin.png"), |
1975 UI.PixmapCache.getIcon("plugin.png"), |
1976 self.trUtf8('&Plugin Infos...'), 0, 0, self, 'plugin_infos') |
1976 self.trUtf8('&Plugin Infos...'), 0, 0, self, 'plugin_infos') |
1977 self.pluginInfoAct.setStatusTip(self.trUtf8('Show Plugin Infos')) |
1977 self.pluginInfoAct.setStatusTip(self.trUtf8('Show Plugin Infos')) |
1978 self.pluginInfoAct.setWhatsThis(self.trUtf8( |
1978 self.pluginInfoAct.setWhatsThis(self.trUtf8( |
1979 """<b>Plugin Infos...</b>""" |
1979 """<b>Plugin Infos...</b>""" |
1981 """ loaded plugins.</p>""" |
1981 """ loaded plugins.</p>""" |
1982 )) |
1982 )) |
1983 self.connect(self.pluginInfoAct, SIGNAL('triggered()'), self.__showPluginInfo) |
1983 self.connect(self.pluginInfoAct, SIGNAL('triggered()'), self.__showPluginInfo) |
1984 self.actions.append(self.pluginInfoAct) |
1984 self.actions.append(self.pluginInfoAct) |
1985 |
1985 |
1986 self.pluginInstallAct = E4Action(self.trUtf8('Install Plugins'), |
1986 self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'), |
1987 UI.PixmapCache.getIcon("pluginInstall.png"), |
1987 UI.PixmapCache.getIcon("pluginInstall.png"), |
1988 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') |
1988 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') |
1989 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) |
1989 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) |
1990 self.pluginInstallAct.setWhatsThis(self.trUtf8( |
1990 self.pluginInstallAct.setWhatsThis(self.trUtf8( |
1991 """<b>Install Plugins...</b>""" |
1991 """<b>Install Plugins...</b>""" |
1992 """<p>This opens a dialog to install or update plugins.</p>""" |
1992 """<p>This opens a dialog to install or update plugins.</p>""" |
1993 )) |
1993 )) |
1994 self.connect(self.pluginInstallAct, SIGNAL('triggered()'), self.__installPlugins) |
1994 self.connect(self.pluginInstallAct, SIGNAL('triggered()'), self.__installPlugins) |
1995 self.actions.append(self.pluginInstallAct) |
1995 self.actions.append(self.pluginInstallAct) |
1996 |
1996 |
1997 self.pluginDeinstallAct = E4Action(self.trUtf8('Uninstall Plugin'), |
1997 self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'), |
1998 UI.PixmapCache.getIcon("pluginUninstall.png"), |
1998 UI.PixmapCache.getIcon("pluginUninstall.png"), |
1999 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') |
1999 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') |
2000 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) |
2000 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) |
2001 self.pluginDeinstallAct.setWhatsThis(self.trUtf8( |
2001 self.pluginDeinstallAct.setWhatsThis(self.trUtf8( |
2002 """<b>Uninstall Plugin...</b>""" |
2002 """<b>Uninstall Plugin...</b>""" |
2751 Private slot to show a mini editor window. |
2751 Private slot to show a mini editor window. |
2752 """ |
2752 """ |
2753 editor = MiniEditor(parent = self) |
2753 editor = MiniEditor(parent = self) |
2754 editor.show() |
2754 editor.show() |
2755 |
2755 |
2756 def addE4Actions(self, actions, type): |
2756 def addE5Actions(self, actions, type): |
2757 """ |
2757 """ |
2758 Public method to add actions to the list of actions. |
2758 Public method to add actions to the list of actions. |
2759 |
2759 |
2760 @param type string denoting the action set to get. |
2760 @param type string denoting the action set to get. |
2761 It must be one of "ui" or "wizards". |
2761 It must be one of "ui" or "wizards". |
2762 @param actions list of actions to be added (list of E4Action) |
2762 @param actions list of actions to be added (list of E5Action) |
2763 """ |
2763 """ |
2764 if type == 'ui': |
2764 if type == 'ui': |
2765 self.actions.extend(actions) |
2765 self.actions.extend(actions) |
2766 elif type == 'wizards': |
2766 elif type == 'wizards': |
2767 self.wizardsActions.extend(actions) |
2767 self.wizardsActions.extend(actions) |
2768 |
2768 |
2769 def removeE4Actions(self, actions, type = 'ui'): |
2769 def removeE5Actions(self, actions, type = 'ui'): |
2770 """ |
2770 """ |
2771 Public method to remove actions from the list of actions. |
2771 Public method to remove actions from the list of actions. |
2772 |
2772 |
2773 @param type string denoting the action set to get. |
2773 @param type string denoting the action set to get. |
2774 It must be one of "ui" or "wizards". |
2774 It must be one of "ui" or "wizards". |
2775 @param actions list of actions (list of E4Action) |
2775 @param actions list of actions (list of E5Action) |
2776 """ |
2776 """ |
2777 for act in actions: |
2777 for act in actions: |
2778 try: |
2778 try: |
2779 if type == 'ui': |
2779 if type == 'ui': |
2780 self.actions.remove(act) |
2780 self.actions.remove(act) |