1372 """<b>Quit the IDE</b>""" |
1372 """<b>Quit the IDE</b>""" |
1373 """<p>This quits the IDE. Any unsaved changes may be saved first.""" |
1373 """<p>This quits the IDE. Any unsaved changes may be saved first.""" |
1374 """ Any Python program being debugged will be stopped and the""" |
1374 """ Any Python program being debugged will be stopped and the""" |
1375 """ preferences will be written to disc.</p>""" |
1375 """ preferences will be written to disc.</p>""" |
1376 )) |
1376 )) |
1377 self.exitAct.triggered.connect(self.__quit) |
1377 self.exitAct.triggered[()].connect(self.__quit) |
1378 self.actions.append(self.exitAct) |
1378 self.actions.append(self.exitAct) |
1379 |
1379 |
1380 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) |
1380 self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) |
1381 |
1381 |
1382 self.setEditProfileAct = E5Action(self.trUtf8('Edit Profile'), |
1382 self.setEditProfileAct = E5Action(self.trUtf8('Edit Profile'), |
1389 """<b>Edit Profile</b>""" |
1389 """<b>Edit Profile</b>""" |
1390 """<p>Activate the "Edit View Profile". Windows being shown,""" |
1390 """<p>Activate the "Edit View Profile". Windows being shown,""" |
1391 """ if this profile is active, may be configured with the""" |
1391 """ if this profile is active, may be configured with the""" |
1392 """ "View Profile Configuration" dialog.</p>""" |
1392 """ "View Profile Configuration" dialog.</p>""" |
1393 )) |
1393 )) |
1394 self.setEditProfileAct.triggered.connect(self.__setEditProfile) |
1394 self.setEditProfileAct.triggered[()].connect(self.__setEditProfile) |
1395 self.actions.append(self.setEditProfileAct) |
1395 self.actions.append(self.setEditProfileAct) |
1396 |
1396 |
1397 self.setDebugProfileAct = E5Action(self.trUtf8('Debug Profile'), |
1397 self.setDebugProfileAct = E5Action(self.trUtf8('Debug Profile'), |
1398 UI.PixmapCache.getIcon("viewProfileDebug.png"), |
1398 UI.PixmapCache.getIcon("viewProfileDebug.png"), |
1399 self.trUtf8('Debug Profile'), |
1399 self.trUtf8('Debug Profile'), |
1405 """<b>Debug Profile</b>""" |
1405 """<b>Debug Profile</b>""" |
1406 """<p>Activate the "Debug View Profile". Windows being shown,""" |
1406 """<p>Activate the "Debug View Profile". Windows being shown,""" |
1407 """ if this profile is active, may be configured with the""" |
1407 """ if this profile is active, may be configured with the""" |
1408 """ "View Profile Configuration" dialog.</p>""" |
1408 """ "View Profile Configuration" dialog.</p>""" |
1409 )) |
1409 )) |
1410 self.setDebugProfileAct.triggered.connect(self.setDebugProfile) |
1410 self.setDebugProfileAct.triggered[()].connect(self.setDebugProfile) |
1411 self.actions.append(self.setDebugProfileAct) |
1411 self.actions.append(self.setDebugProfileAct) |
1412 |
1412 |
1413 self.pbAct = E5Action(self.trUtf8('Project-Viewer'), |
1413 self.pbAct = E5Action(self.trUtf8('Project-Viewer'), |
1414 self.trUtf8('&Project-Viewer'), 0, 0, self, 'project_viewer', True) |
1414 self.trUtf8('&Project-Viewer'), 0, 0, self, 'project_viewer', True) |
1415 self.pbAct.setStatusTip(self.trUtf8('Toggle the Project-Viewer window')) |
1415 self.pbAct.setStatusTip(self.trUtf8('Toggle the Project-Viewer window')) |
1416 self.pbAct.setWhatsThis(self.trUtf8( |
1416 self.pbAct.setWhatsThis(self.trUtf8( |
1417 """<b>Toggle the Project-Viewer window</b>""" |
1417 """<b>Toggle the Project-Viewer window</b>""" |
1418 """<p>If the Project-Viewer window is hidden then display it.""" |
1418 """<p>If the Project-Viewer window is hidden then display it.""" |
1419 """ If it is displayed then close it.</p>""" |
1419 """ If it is displayed then close it.</p>""" |
1420 )) |
1420 )) |
1421 self.pbAct.triggered.connect(self.__toggleProjectBrowser) |
1421 self.pbAct.triggered[()].connect(self.__toggleProjectBrowser) |
1422 self.actions.append(self.pbAct) |
1422 self.actions.append(self.pbAct) |
1423 |
1423 |
1424 self.pbActivateAct = E5Action(self.trUtf8('Activate Project-Viewer'), |
1424 self.pbActivateAct = E5Action(self.trUtf8('Activate Project-Viewer'), |
1425 self.trUtf8('Activate Project-Viewer'), |
1425 self.trUtf8('Activate Project-Viewer'), |
1426 QKeySequence(self.trUtf8("Alt+Shift+P")), |
1426 QKeySequence(self.trUtf8("Alt+Shift+P")), |
1427 0, self, |
1427 0, self, |
1428 'project_viewer_activate', True) |
1428 'project_viewer_activate', True) |
1429 self.pbActivateAct.triggered.connect(self.__activateProjectBrowser) |
1429 self.pbActivateAct.triggered[()].connect(self.__activateProjectBrowser) |
1430 self.actions.append(self.pbActivateAct) |
1430 self.actions.append(self.pbActivateAct) |
1431 self.addAction(self.pbActivateAct) |
1431 self.addAction(self.pbActivateAct) |
1432 |
1432 |
1433 self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'), |
1433 self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'), |
1434 self.trUtf8('&Multiproject-Viewer'), 0, 0, self, |
1434 self.trUtf8('&Multiproject-Viewer'), 0, 0, self, |
1437 self.mpbAct.setWhatsThis(self.trUtf8( |
1437 self.mpbAct.setWhatsThis(self.trUtf8( |
1438 """<b>Toggle the Multiproject-Viewer window</b>""" |
1438 """<b>Toggle the Multiproject-Viewer window</b>""" |
1439 """<p>If the Multiproject-Viewer window is hidden then display it.""" |
1439 """<p>If the Multiproject-Viewer window is hidden then display it.""" |
1440 """ If it is displayed then close it.</p>""" |
1440 """ If it is displayed then close it.</p>""" |
1441 )) |
1441 )) |
1442 self.mpbAct.triggered.connect(self.__toggleMultiProjectBrowser) |
1442 self.mpbAct.triggered[()].connect(self.__toggleMultiProjectBrowser) |
1443 self.actions.append(self.mpbAct) |
1443 self.actions.append(self.mpbAct) |
1444 |
1444 |
1445 self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'), |
1445 self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'), |
1446 self.trUtf8('Activate Multiproject-Viewer'), |
1446 self.trUtf8('Activate Multiproject-Viewer'), |
1447 QKeySequence(self.trUtf8("Alt+Shift+M")), |
1447 QKeySequence(self.trUtf8("Alt+Shift+M")), |
1448 0, self, |
1448 0, self, |
1449 'multi_project_viewer_activate', True) |
1449 'multi_project_viewer_activate', True) |
1450 self.mpbActivateAct.triggered.connect(self.__activateMultiProjectBrowser) |
1450 self.mpbActivateAct.triggered[()].connect(self.__activateMultiProjectBrowser) |
1451 self.actions.append(self.mpbActivateAct) |
1451 self.actions.append(self.mpbActivateAct) |
1452 self.addAction(self.mpbActivateAct) |
1452 self.addAction(self.mpbActivateAct) |
1453 |
1453 |
1454 self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'), |
1454 self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'), |
1455 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) |
1455 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) |
1457 self.debugViewerAct.setWhatsThis(self.trUtf8( |
1457 self.debugViewerAct.setWhatsThis(self.trUtf8( |
1458 """<b>Toggle the Debug-Viewer window</b>""" |
1458 """<b>Toggle the Debug-Viewer window</b>""" |
1459 """<p>If the Debug-Viewer window is hidden then display it.""" |
1459 """<p>If the Debug-Viewer window is hidden then display it.""" |
1460 """ If it is displayed then close it.</p>""" |
1460 """ If it is displayed then close it.</p>""" |
1461 )) |
1461 )) |
1462 self.debugViewerAct.triggered.connect(self.__toggleDebugViewer) |
1462 self.debugViewerAct.triggered[()].connect(self.__toggleDebugViewer) |
1463 self.actions.append(self.debugViewerAct) |
1463 self.actions.append(self.debugViewerAct) |
1464 |
1464 |
1465 self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'), |
1465 self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'), |
1466 self.trUtf8('Activate Debug-Viewer'), |
1466 self.trUtf8('Activate Debug-Viewer'), |
1467 QKeySequence(self.trUtf8("Alt+Shift+D")), |
1467 QKeySequence(self.trUtf8("Alt+Shift+D")), |
1468 0, self, |
1468 0, self, |
1469 'debug_viewer_activate', True) |
1469 'debug_viewer_activate', True) |
1470 self.debugViewerActivateAct.triggered.connect(self.__activateDebugViewer) |
1470 self.debugViewerActivateAct.triggered[()].connect(self.__activateDebugViewer) |
1471 self.actions.append(self.debugViewerActivateAct) |
1471 self.actions.append(self.debugViewerActivateAct) |
1472 self.addAction(self.debugViewerActivateAct) |
1472 self.addAction(self.debugViewerActivateAct) |
1473 |
1473 |
1474 self.shellAct = E5Action(self.trUtf8('Shell'), |
1474 self.shellAct = E5Action(self.trUtf8('Shell'), |
1475 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) |
1475 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) |
1478 """<b>Toggle the Shell window</b>""" |
1478 """<b>Toggle the Shell window</b>""" |
1479 """<p>If the Shell window is hidden then display it.""" |
1479 """<p>If the Shell window is hidden then display it.""" |
1480 """ If it is displayed then close it.</p>""" |
1480 """ If it is displayed then close it.</p>""" |
1481 )) |
1481 )) |
1482 if not self.embeddedShell: |
1482 if not self.embeddedShell: |
1483 self.shellAct.triggered.connect(self.__toggleShell) |
1483 self.shellAct.triggered[()].connect(self.__toggleShell) |
1484 self.actions.append(self.shellAct) |
1484 self.actions.append(self.shellAct) |
1485 |
1485 |
1486 self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'), |
1486 self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'), |
1487 self.trUtf8('Activate Shell'), |
1487 self.trUtf8('Activate Shell'), |
1488 QKeySequence(self.trUtf8("Alt+Shift+S")), |
1488 QKeySequence(self.trUtf8("Alt+Shift+S")), |
1489 0, self, |
1489 0, self, |
1490 'interprter_shell_activate', True) |
1490 'interprter_shell_activate', True) |
1491 self.shellActivateAct.triggered.connect(self.__activateShell) |
1491 self.shellActivateAct.triggered[()].connect(self.__activateShell) |
1492 self.actions.append(self.shellActivateAct) |
1492 self.actions.append(self.shellActivateAct) |
1493 self.addAction(self.shellActivateAct) |
1493 self.addAction(self.shellActivateAct) |
1494 |
1494 |
1495 self.terminalAct = E5Action(self.trUtf8('Terminal'), |
1495 self.terminalAct = E5Action(self.trUtf8('Terminal'), |
1496 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) |
1496 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) |
1498 self.terminalAct.setWhatsThis(self.trUtf8( |
1498 self.terminalAct.setWhatsThis(self.trUtf8( |
1499 """<b>Toggle the Terminal window</b>""" |
1499 """<b>Toggle the Terminal window</b>""" |
1500 """<p>If the Terminal window is hidden then display it.""" |
1500 """<p>If the Terminal window is hidden then display it.""" |
1501 """ If it is displayed then close it.</p>""" |
1501 """ If it is displayed then close it.</p>""" |
1502 )) |
1502 )) |
1503 self.terminalAct.triggered.connect(self.__toggleTerminal) |
1503 self.terminalAct.triggered[()].connect(self.__toggleTerminal) |
1504 self.actions.append(self.terminalAct) |
1504 self.actions.append(self.terminalAct) |
1505 |
1505 |
1506 self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'), |
1506 self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'), |
1507 self.trUtf8('Activate Terminal'), |
1507 self.trUtf8('Activate Terminal'), |
1508 QKeySequence(self.trUtf8("Alt+Shift+R")), |
1508 QKeySequence(self.trUtf8("Alt+Shift+R")), |
1509 0, self, |
1509 0, self, |
1510 'terminal_activate', True) |
1510 'terminal_activate', True) |
1511 self.terminalActivateAct.triggered.connect(self.__activateTerminal) |
1511 self.terminalActivateAct.triggered[()].connect(self.__activateTerminal) |
1512 self.actions.append(self.terminalActivateAct) |
1512 self.actions.append(self.terminalActivateAct) |
1513 self.addAction(self.terminalActivateAct) |
1513 self.addAction(self.terminalActivateAct) |
1514 |
1514 |
1515 self.browserAct = E5Action(self.trUtf8('File-Browser'), |
1515 self.browserAct = E5Action(self.trUtf8('File-Browser'), |
1516 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) |
1516 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) |
1519 """<b>Toggle the File-Browser window</b>""" |
1519 """<b>Toggle the File-Browser window</b>""" |
1520 """<p>If the File-Browser window is hidden then display it.""" |
1520 """<p>If the File-Browser window is hidden then display it.""" |
1521 """ If it is displayed then close it.</p>""" |
1521 """ If it is displayed then close it.</p>""" |
1522 )) |
1522 )) |
1523 if not self.embeddedFileBrowser: |
1523 if not self.embeddedFileBrowser: |
1524 self.browserAct.triggered.connect(self.__toggleBrowser) |
1524 self.browserAct.triggered[()].connect(self.__toggleBrowser) |
1525 self.actions.append(self.browserAct) |
1525 self.actions.append(self.browserAct) |
1526 |
1526 |
1527 self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'), |
1527 self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'), |
1528 self.trUtf8('Activate File-Browser'), |
1528 self.trUtf8('Activate File-Browser'), |
1529 QKeySequence(self.trUtf8("Alt+Shift+F")), |
1529 QKeySequence(self.trUtf8("Alt+Shift+F")), |
1530 0, self, |
1530 0, self, |
1531 'file_browser_activate', True) |
1531 'file_browser_activate', True) |
1532 self.browserActivateAct.triggered.connect(self.__activateBrowser) |
1532 self.browserActivateAct.triggered[()].connect(self.__activateBrowser) |
1533 self.actions.append(self.browserActivateAct) |
1533 self.actions.append(self.browserActivateAct) |
1534 self.addAction(self.browserActivateAct) |
1534 self.addAction(self.browserActivateAct) |
1535 |
1535 |
1536 self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'), |
1536 self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'), |
1537 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) |
1537 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) |
1539 self.logViewerAct.setWhatsThis(self.trUtf8( |
1539 self.logViewerAct.setWhatsThis(self.trUtf8( |
1540 """<b>Toggle the Log-Viewer window</b>""" |
1540 """<b>Toggle the Log-Viewer window</b>""" |
1541 """<p>If the Log-Viewer window is hidden then display it.""" |
1541 """<p>If the Log-Viewer window is hidden then display it.""" |
1542 """ If it is displayed then close it.</p>""" |
1542 """ If it is displayed then close it.</p>""" |
1543 )) |
1543 )) |
1544 self.logViewerAct.triggered.connect(self.__toggleLogViewer) |
1544 self.logViewerAct.triggered[()].connect(self.__toggleLogViewer) |
1545 self.actions.append(self.logViewerAct) |
1545 self.actions.append(self.logViewerAct) |
1546 |
1546 |
1547 self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'), |
1547 self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'), |
1548 self.trUtf8('Activate Log-Viewer'), |
1548 self.trUtf8('Activate Log-Viewer'), |
1549 QKeySequence(self.trUtf8("Alt+Shift+G")), |
1549 QKeySequence(self.trUtf8("Alt+Shift+G")), |
1550 0, self, |
1550 0, self, |
1551 'log_viewer_activate', True) |
1551 'log_viewer_activate', True) |
1552 self.logViewerActivateAct.triggered.connect(self.__activateLogViewer) |
1552 self.logViewerActivateAct.triggered[()].connect(self.__activateLogViewer) |
1553 self.actions.append(self.logViewerActivateAct) |
1553 self.actions.append(self.logViewerActivateAct) |
1554 self.addAction(self.logViewerActivateAct) |
1554 self.addAction(self.logViewerActivateAct) |
1555 |
1555 |
1556 self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'), |
1556 self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'), |
1557 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) |
1557 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) |
1559 self.taskViewerAct.setWhatsThis(self.trUtf8( |
1559 self.taskViewerAct.setWhatsThis(self.trUtf8( |
1560 """<b>Toggle the Task-Viewer window</b>""" |
1560 """<b>Toggle the Task-Viewer window</b>""" |
1561 """<p>If the Task-Viewer window is hidden then display it.""" |
1561 """<p>If the Task-Viewer window is hidden then display it.""" |
1562 """ If it is displayed then close it.</p>""" |
1562 """ If it is displayed then close it.</p>""" |
1563 )) |
1563 )) |
1564 self.taskViewerAct.triggered.connect(self.__toggleTaskViewer) |
1564 self.taskViewerAct.triggered[()].connect(self.__toggleTaskViewer) |
1565 self.actions.append(self.taskViewerAct) |
1565 self.actions.append(self.taskViewerAct) |
1566 |
1566 |
1567 self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'), |
1567 self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'), |
1568 self.trUtf8('Activate Task-Viewer'), |
1568 self.trUtf8('Activate Task-Viewer'), |
1569 QKeySequence(self.trUtf8("Alt+Shift+T")), |
1569 QKeySequence(self.trUtf8("Alt+Shift+T")), |
1570 0, self, |
1570 0, self, |
1571 'task_viewer_activate',1) |
1571 'task_viewer_activate',1) |
1572 self.taskViewerActivateAct.triggered.connect(self.__activateTaskViewer) |
1572 self.taskViewerActivateAct.triggered[()].connect(self.__activateTaskViewer) |
1573 self.actions.append(self.taskViewerActivateAct) |
1573 self.actions.append(self.taskViewerActivateAct) |
1574 self.addAction(self.taskViewerActivateAct) |
1574 self.addAction(self.taskViewerActivateAct) |
1575 |
1575 |
1576 self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), |
1576 self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), |
1577 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) |
1577 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) |
1580 self.templateViewerAct.setWhatsThis(self.trUtf8( |
1580 self.templateViewerAct.setWhatsThis(self.trUtf8( |
1581 """<b>Toggle the Template-Viewer window</b>""" |
1581 """<b>Toggle the Template-Viewer window</b>""" |
1582 """<p>If the Template-Viewer window is hidden then display it.""" |
1582 """<p>If the Template-Viewer window is hidden then display it.""" |
1583 """ If it is displayed then close it.</p>""" |
1583 """ If it is displayed then close it.</p>""" |
1584 )) |
1584 )) |
1585 self.templateViewerAct.triggered.connect(self.__toggleTemplateViewer) |
1585 self.templateViewerAct.triggered[()].connect(self.__toggleTemplateViewer) |
1586 self.actions.append(self.templateViewerAct) |
1586 self.actions.append(self.templateViewerAct) |
1587 |
1587 |
1588 self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'), |
1588 self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'), |
1589 self.trUtf8('Activate Template-Viewer'), |
1589 self.trUtf8('Activate Template-Viewer'), |
1590 QKeySequence(self.trUtf8("Alt+Shift+A")), |
1590 QKeySequence(self.trUtf8("Alt+Shift+A")), |
1591 0, self, |
1591 0, self, |
1592 'template_viewer_activate',1) |
1592 'template_viewer_activate',1) |
1593 self.templateViewerActivateAct.triggered.connect(self.__activateTemplateViewer) |
1593 self.templateViewerActivateAct.triggered[()].connect(self.__activateTemplateViewer) |
1594 self.actions.append(self.templateViewerActivateAct) |
1594 self.actions.append(self.templateViewerActivateAct) |
1595 self.addAction(self.templateViewerActivateAct) |
1595 self.addAction(self.templateViewerActivateAct) |
1596 |
1596 |
1597 self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'), |
1597 self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'), |
1598 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) |
1598 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) |
1600 self.vtAct.setWhatsThis(self.trUtf8( |
1600 self.vtAct.setWhatsThis(self.trUtf8( |
1601 """<b>Toggle the Vertical Toolbox window</b>""" |
1601 """<b>Toggle the Vertical Toolbox window</b>""" |
1602 """<p>If the Vertical Toolbox window is hidden then display it.""" |
1602 """<p>If the Vertical Toolbox window is hidden then display it.""" |
1603 """ If it is displayed then close it.</p>""" |
1603 """ If it is displayed then close it.</p>""" |
1604 )) |
1604 )) |
1605 self.vtAct.triggered.connect(self.__toggleVerticalToolbox) |
1605 self.vtAct.triggered[()].connect(self.__toggleVerticalToolbox) |
1606 self.actions.append(self.vtAct) |
1606 self.actions.append(self.vtAct) |
1607 |
1607 |
1608 self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'), |
1608 self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'), |
1609 self.trUtf8('&Horizontal Toolbox'), 0, 0, self, |
1609 self.trUtf8('&Horizontal Toolbox'), 0, 0, self, |
1610 'horizontal_toolbox', True) |
1610 'horizontal_toolbox', True) |
1612 self.htAct.setWhatsThis(self.trUtf8( |
1612 self.htAct.setWhatsThis(self.trUtf8( |
1613 """<b>Toggle the Horizontal Toolbox window</b>""" |
1613 """<b>Toggle the Horizontal Toolbox window</b>""" |
1614 """<p>If the Horizontal Toolbox window is hidden then display it.""" |
1614 """<p>If the Horizontal Toolbox window is hidden then display it.""" |
1615 """ If it is displayed then close it.</p>""" |
1615 """ If it is displayed then close it.</p>""" |
1616 )) |
1616 )) |
1617 self.htAct.triggered.connect(self.__toggleHorizontalToolbox) |
1617 self.htAct.triggered[()].connect(self.__toggleHorizontalToolbox) |
1618 self.actions.append(self.htAct) |
1618 self.actions.append(self.htAct) |
1619 |
1619 |
1620 self.lsbAct = E5Action(self.trUtf8('Left Sidebar'), |
1620 self.lsbAct = E5Action(self.trUtf8('Left Sidebar'), |
1621 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) |
1621 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) |
1622 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) |
1622 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) |
1623 self.lsbAct.setWhatsThis(self.trUtf8( |
1623 self.lsbAct.setWhatsThis(self.trUtf8( |
1624 """<b>Toggle the left sidebar window</b>""" |
1624 """<b>Toggle the left sidebar window</b>""" |
1625 """<p>If the left sidebar window is hidden then display it.""" |
1625 """<p>If the left sidebar window is hidden then display it.""" |
1626 """ If it is displayed then close it.</p>""" |
1626 """ If it is displayed then close it.</p>""" |
1627 )) |
1627 )) |
1628 self.lsbAct.triggered.connect(self.__toggleLeftSidebar) |
1628 self.lsbAct.triggered[()].connect(self.__toggleLeftSidebar) |
1629 self.actions.append(self.lsbAct) |
1629 self.actions.append(self.lsbAct) |
1630 |
1630 |
1631 self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'), |
1631 self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'), |
1632 self.trUtf8('&Bottom Sidebar'), 0, 0, self, |
1632 self.trUtf8('&Bottom Sidebar'), 0, 0, self, |
1633 'bottom_sidebar', True) |
1633 'bottom_sidebar', True) |
1635 self.bsbAct.setWhatsThis(self.trUtf8( |
1635 self.bsbAct.setWhatsThis(self.trUtf8( |
1636 """<b>Toggle the bottom sidebar window</b>""" |
1636 """<b>Toggle the bottom sidebar window</b>""" |
1637 """<p>If the bottom sidebar window is hidden then display it.""" |
1637 """<p>If the bottom sidebar window is hidden then display it.""" |
1638 """ If it is displayed then close it.</p>""" |
1638 """ If it is displayed then close it.</p>""" |
1639 )) |
1639 )) |
1640 self.bsbAct.triggered.connect(self.__toggleBottomSidebar) |
1640 self.bsbAct.triggered[()].connect(self.__toggleBottomSidebar) |
1641 self.actions.append(self.bsbAct) |
1641 self.actions.append(self.bsbAct) |
1642 |
1642 |
1643 self.cooperationViewerAct = E5Action(self.trUtf8('Cooperation'), |
1643 self.cooperationViewerAct = E5Action(self.trUtf8('Cooperation'), |
1644 self.trUtf8('&Cooperation'), 0, 0, self, 'cooperation_viewer', True) |
1644 self.trUtf8('&Cooperation'), 0, 0, self, 'cooperation_viewer', True) |
1645 self.cooperationViewerAct.setStatusTip(self.trUtf8( |
1645 self.cooperationViewerAct.setStatusTip(self.trUtf8( |
1647 self.cooperationViewerAct.setWhatsThis(self.trUtf8( |
1647 self.cooperationViewerAct.setWhatsThis(self.trUtf8( |
1648 """<b>Toggle the Cooperation window</b>""" |
1648 """<b>Toggle the Cooperation window</b>""" |
1649 """<p>If the Cooperation window is hidden then display it.""" |
1649 """<p>If the Cooperation window is hidden then display it.""" |
1650 """ If it is displayed then close it.</p>""" |
1650 """ If it is displayed then close it.</p>""" |
1651 )) |
1651 )) |
1652 self.cooperationViewerAct.triggered.connect(self.__toggleCooperationViewer) |
1652 self.cooperationViewerAct.triggered[()].connect(self.__toggleCooperationViewer) |
1653 self.actions.append(self.cooperationViewerAct) |
1653 self.actions.append(self.cooperationViewerAct) |
1654 |
1654 |
1655 self.cooperationViewerActivateAct = E5Action( |
1655 self.cooperationViewerActivateAct = E5Action( |
1656 self.trUtf8('Activate Cooperation-Viewer'), |
1656 self.trUtf8('Activate Cooperation-Viewer'), |
1657 self.trUtf8('Activate Cooperation-Viewer'), |
1657 self.trUtf8('Activate Cooperation-Viewer'), |
1658 QKeySequence(self.trUtf8("Alt+Shift+O")), |
1658 QKeySequence(self.trUtf8("Alt+Shift+O")), |
1659 0, self, |
1659 0, self, |
1660 'cooperation_viewer_activate', True) |
1660 'cooperation_viewer_activate', True) |
1661 self.cooperationViewerActivateAct.triggered.connect(self.__activateCooperationViewer) |
1661 self.cooperationViewerActivateAct.triggered[()].connect(self.__activateCooperationViewer) |
1662 self.actions.append(self.cooperationViewerActivateAct) |
1662 self.actions.append(self.cooperationViewerActivateAct) |
1663 self.addAction(self.cooperationViewerActivateAct) |
1663 self.addAction(self.cooperationViewerActivateAct) |
1664 |
1664 |
1665 self.symbolsViewerAct = E5Action(self.trUtf8('Symbols'), |
1665 self.symbolsViewerAct = E5Action(self.trUtf8('Symbols'), |
1666 self.trUtf8('&Symbols'), 0, 0, self, 'symbols_viewer', True) |
1666 self.trUtf8('&Symbols'), 0, 0, self, 'symbols_viewer', True) |
1669 self.symbolsViewerAct.setWhatsThis(self.trUtf8( |
1669 self.symbolsViewerAct.setWhatsThis(self.trUtf8( |
1670 """<b>Toggle the Symbols window</b>""" |
1670 """<b>Toggle the Symbols window</b>""" |
1671 """<p>If the Symbols window is hidden then display it.""" |
1671 """<p>If the Symbols window is hidden then display it.""" |
1672 """ If it is displayed then close it.</p>""" |
1672 """ If it is displayed then close it.</p>""" |
1673 )) |
1673 )) |
1674 self.symbolsViewerAct.triggered.connect(self.__toggleSymbolsViewer) |
1674 self.symbolsViewerAct.triggered[()].connect(self.__toggleSymbolsViewer) |
1675 self.actions.append(self.symbolsViewerAct) |
1675 self.actions.append(self.symbolsViewerAct) |
1676 |
1676 |
1677 self.symbolsViewerActivateAct = E5Action( |
1677 self.symbolsViewerActivateAct = E5Action( |
1678 self.trUtf8('Activate Symbols-Viewer'), |
1678 self.trUtf8('Activate Symbols-Viewer'), |
1679 self.trUtf8('Activate Symbols-Viewer'), |
1679 self.trUtf8('Activate Symbols-Viewer'), |
1680 QKeySequence(self.trUtf8("Alt+Shift+Y")), |
1680 QKeySequence(self.trUtf8("Alt+Shift+Y")), |
1681 0, self, |
1681 0, self, |
1682 'symbols_viewer_activate', True) |
1682 'symbols_viewer_activate', True) |
1683 self.symbolsViewerActivateAct.triggered.connect(self.__activateSymbolsViewer) |
1683 self.symbolsViewerActivateAct.triggered[()].connect(self.__activateSymbolsViewer) |
1684 self.actions.append(self.symbolsViewerActivateAct) |
1684 self.actions.append(self.symbolsViewerActivateAct) |
1685 self.addAction(self.symbolsViewerActivateAct) |
1685 self.addAction(self.symbolsViewerActivateAct) |
1686 |
1686 |
1687 self.numbersViewerAct = E5Action(self.trUtf8('Numbers'), |
1687 self.numbersViewerAct = E5Action(self.trUtf8('Numbers'), |
1688 self.trUtf8('&Numbers'), 0, 0, self, 'numbers_viewer', True) |
1688 self.trUtf8('&Numbers'), 0, 0, self, 'numbers_viewer', True) |
1691 self.numbersViewerAct.setWhatsThis(self.trUtf8( |
1691 self.numbersViewerAct.setWhatsThis(self.trUtf8( |
1692 """<b>Toggle the Numbers window</b>""" |
1692 """<b>Toggle the Numbers window</b>""" |
1693 """<p>If the Numbers window is hidden then display it.""" |
1693 """<p>If the Numbers window is hidden then display it.""" |
1694 """ If it is displayed then close it.</p>""" |
1694 """ If it is displayed then close it.</p>""" |
1695 )) |
1695 )) |
1696 self.numbersViewerAct.triggered.connect(self.__toggleNumbersViewer) |
1696 self.numbersViewerAct.triggered[()].connect(self.__toggleNumbersViewer) |
1697 self.actions.append(self.numbersViewerAct) |
1697 self.actions.append(self.numbersViewerAct) |
1698 |
1698 |
1699 self.numbersViewerActivateAct = E5Action( |
1699 self.numbersViewerActivateAct = E5Action( |
1700 self.trUtf8('Activate Numbers-Viewer'), |
1700 self.trUtf8('Activate Numbers-Viewer'), |
1701 self.trUtf8('Activate Numbers-Viewer'), |
1701 self.trUtf8('Activate Numbers-Viewer'), |
1702 QKeySequence(self.trUtf8("Alt+Shift+B")), |
1702 QKeySequence(self.trUtf8("Alt+Shift+B")), |
1703 0, self, |
1703 0, self, |
1704 'numbers_viewer_activate', True) |
1704 'numbers_viewer_activate', True) |
1705 self.numbersViewerActivateAct.triggered.connect(self.__activateNumbersViewer) |
1705 self.numbersViewerActivateAct.triggered[()].connect(self.__activateNumbersViewer) |
1706 self.actions.append(self.numbersViewerActivateAct) |
1706 self.actions.append(self.numbersViewerActivateAct) |
1707 self.addAction(self.numbersViewerActivateAct) |
1707 self.addAction(self.numbersViewerActivateAct) |
1708 |
1708 |
1709 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
1709 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
1710 UI.PixmapCache.getIcon("whatsThis.png"), |
1710 UI.PixmapCache.getIcon("whatsThis.png"), |
1718 """ mark, and you can click on the interface elements to get a short""" |
1718 """ mark, and you can click on the interface elements to get a short""" |
1719 """ description of what they do and how to use them. In dialogs, this""" |
1719 """ description of what they do and how to use them. In dialogs, this""" |
1720 """ feature can be accessed using the context help button in the""" |
1720 """ feature can be accessed using the context help button in the""" |
1721 """ titlebar.</p>""" |
1721 """ titlebar.</p>""" |
1722 )) |
1722 )) |
1723 self.whatsThisAct.triggered.connect(self.__whatsThis) |
1723 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
1724 self.actions.append(self.whatsThisAct) |
1724 self.actions.append(self.whatsThisAct) |
1725 |
1725 |
1726 self.helpviewerAct = E5Action(self.trUtf8('Helpviewer'), |
1726 self.helpviewerAct = E5Action(self.trUtf8('Helpviewer'), |
1727 UI.PixmapCache.getIcon("help.png"), |
1727 UI.PixmapCache.getIcon("help.png"), |
1728 self.trUtf8('&Helpviewer...'), |
1728 self.trUtf8('&Helpviewer...'), |
1736 """ capability to navigate to links, set bookmarks, print the displayed""" |
1736 """ capability to navigate to links, set bookmarks, print the displayed""" |
1737 """ help and some more features. You may use it to browse the internet""" |
1737 """ help and some more features. You may use it to browse the internet""" |
1738 """ as well</p><p>If called with a word selected, this word is search""" |
1738 """ as well</p><p>If called with a word selected, this word is search""" |
1739 """ in the Qt help collection.</p>""" |
1739 """ in the Qt help collection.</p>""" |
1740 )) |
1740 )) |
1741 self.helpviewerAct.triggered.connect(self.__helpViewer) |
1741 self.helpviewerAct.triggered[()].connect(self.__helpViewer) |
1742 self.actions.append(self.helpviewerAct) |
1742 self.actions.append(self.helpviewerAct) |
1743 |
1743 |
1744 self.__initQtDocActions() |
1744 self.__initQtDocActions() |
1745 self.__initPythonDocAction() |
1745 self.__initPythonDocAction() |
1746 self.__initEricDocAction() |
1746 self.__initEricDocAction() |
1751 self.versionAct.setStatusTip(self.trUtf8('Display version information')) |
1751 self.versionAct.setStatusTip(self.trUtf8('Display version information')) |
1752 self.versionAct.setWhatsThis(self.trUtf8( |
1752 self.versionAct.setWhatsThis(self.trUtf8( |
1753 """<b>Show Versions</b>""" |
1753 """<b>Show Versions</b>""" |
1754 """<p>Display version information.</p>""" |
1754 """<p>Display version information.</p>""" |
1755 )) |
1755 )) |
1756 self.versionAct.triggered.connect(self.__showVersions) |
1756 self.versionAct.triggered[()].connect(self.__showVersions) |
1757 self.actions.append(self.versionAct) |
1757 self.actions.append(self.versionAct) |
1758 |
1758 |
1759 self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'), |
1759 self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'), |
1760 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') |
1760 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') |
1761 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) |
1761 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) |
1762 self.checkUpdateAct.setWhatsThis(self.trUtf8( |
1762 self.checkUpdateAct.setWhatsThis(self.trUtf8( |
1763 """<b>Check for Updates...</b>""" |
1763 """<b>Check for Updates...</b>""" |
1764 """<p>Checks the internet for updates of eric5.</p>""" |
1764 """<p>Checks the internet for updates of eric5.</p>""" |
1765 )) |
1765 )) |
1766 self.checkUpdateAct.triggered.connect(self.performVersionCheck) |
1766 self.checkUpdateAct.triggered[()].connect(self.performVersionCheck) |
1767 self.actions.append(self.checkUpdateAct) |
1767 self.actions.append(self.checkUpdateAct) |
1768 |
1768 |
1769 self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), |
1769 self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), |
1770 self.trUtf8('Show &downloadable versions...'), |
1770 self.trUtf8('Show &downloadable versions...'), |
1771 0, 0, self, 'show_downloadable_versions') |
1771 0, 0, self, 'show_downloadable_versions') |
1774 self.showVersionsAct.setWhatsThis(self.trUtf8( |
1774 self.showVersionsAct.setWhatsThis(self.trUtf8( |
1775 """<b>Show downloadable versions...</b>""" |
1775 """<b>Show downloadable versions...</b>""" |
1776 """<p>Shows the eric5 versions available for download """ |
1776 """<p>Shows the eric5 versions available for download """ |
1777 """from the internet.</p>""" |
1777 """from the internet.</p>""" |
1778 )) |
1778 )) |
1779 self.showVersionsAct.triggered.connect(self.showAvailableVersionsInfo) |
1779 self.showVersionsAct.triggered[()].connect(self.showAvailableVersionsInfo) |
1780 self.actions.append(self.showVersionsAct) |
1780 self.actions.append(self.showVersionsAct) |
1781 |
1781 |
1782 self.reportBugAct = E5Action(self.trUtf8('Report Bug'), |
1782 self.reportBugAct = E5Action(self.trUtf8('Report Bug'), |
1783 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') |
1783 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') |
1784 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) |
1784 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) |
1785 self.reportBugAct.setWhatsThis(self.trUtf8( |
1785 self.reportBugAct.setWhatsThis(self.trUtf8( |
1786 """<b>Report Bug...</b>""" |
1786 """<b>Report Bug...</b>""" |
1787 """<p>Opens a dialog to report a bug.</p>""" |
1787 """<p>Opens a dialog to report a bug.</p>""" |
1788 )) |
1788 )) |
1789 self.reportBugAct.triggered.connect(self.__reportBug) |
1789 self.reportBugAct.triggered[()].connect(self.__reportBug) |
1790 self.actions.append(self.reportBugAct) |
1790 self.actions.append(self.reportBugAct) |
1791 |
1791 |
1792 self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'), |
1792 self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'), |
1793 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') |
1793 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') |
1794 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) |
1794 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) |
1795 self.requestFeatureAct.setWhatsThis(self.trUtf8( |
1795 self.requestFeatureAct.setWhatsThis(self.trUtf8( |
1796 """<b>Request Feature...</b>""" |
1796 """<b>Request Feature...</b>""" |
1797 """<p>Opens a dialog to send a feature request.</p>""" |
1797 """<p>Opens a dialog to send a feature request.</p>""" |
1798 )) |
1798 )) |
1799 self.requestFeatureAct.triggered.connect(self.__requestFeature) |
1799 self.requestFeatureAct.triggered[()].connect(self.__requestFeature) |
1800 self.actions.append(self.requestFeatureAct) |
1800 self.actions.append(self.requestFeatureAct) |
1801 |
1801 |
1802 self.utActGrp = createActionGroup(self) |
1802 self.utActGrp = createActionGroup(self) |
1803 |
1803 |
1804 self.utDialogAct = E5Action(self.trUtf8('Unittest'), |
1804 self.utDialogAct = E5Action(self.trUtf8('Unittest'), |
1809 self.utDialogAct.setWhatsThis(self.trUtf8( |
1809 self.utDialogAct.setWhatsThis(self.trUtf8( |
1810 """<b>Unittest</b>""" |
1810 """<b>Unittest</b>""" |
1811 """<p>Perform unit tests. The dialog gives you the""" |
1811 """<p>Perform unit tests. The dialog gives you the""" |
1812 """ ability to select and run a unittest suite.</p>""" |
1812 """ ability to select and run a unittest suite.</p>""" |
1813 )) |
1813 )) |
1814 self.utDialogAct.triggered.connect(self.__unittest) |
1814 self.utDialogAct.triggered[()].connect(self.__unittest) |
1815 self.actions.append(self.utDialogAct) |
1815 self.actions.append(self.utDialogAct) |
1816 |
1816 |
1817 self.utRestartAct = E5Action(self.trUtf8('Unittest Restart'), |
1817 self.utRestartAct = E5Action(self.trUtf8('Unittest Restart'), |
1818 UI.PixmapCache.getIcon("unittestRestart.png"), |
1818 UI.PixmapCache.getIcon("unittestRestart.png"), |
1819 self.trUtf8('&Restart Unittest...'), |
1819 self.trUtf8('&Restart Unittest...'), |
1821 self.utRestartAct.setStatusTip(self.trUtf8('Restart last unittest')) |
1821 self.utRestartAct.setStatusTip(self.trUtf8('Restart last unittest')) |
1822 self.utRestartAct.setWhatsThis(self.trUtf8( |
1822 self.utRestartAct.setWhatsThis(self.trUtf8( |
1823 """<b>Restart Unittest</b>""" |
1823 """<b>Restart Unittest</b>""" |
1824 """<p>Restart the unittest performed last.</p>""" |
1824 """<p>Restart the unittest performed last.</p>""" |
1825 )) |
1825 )) |
1826 self.utRestartAct.triggered.connect(self.__unittestRestart) |
1826 self.utRestartAct.triggered[()].connect(self.__unittestRestart) |
1827 self.utRestartAct.setEnabled(False) |
1827 self.utRestartAct.setEnabled(False) |
1828 self.actions.append(self.utRestartAct) |
1828 self.actions.append(self.utRestartAct) |
1829 |
1829 |
1830 self.utScriptAct = E5Action(self.trUtf8('Unittest Script'), |
1830 self.utScriptAct = E5Action(self.trUtf8('Unittest Script'), |
1831 UI.PixmapCache.getIcon("unittestScript.png"), |
1831 UI.PixmapCache.getIcon("unittestScript.png"), |
1834 self.utScriptAct.setStatusTip(self.trUtf8('Run unittest with current script')) |
1834 self.utScriptAct.setStatusTip(self.trUtf8('Run unittest with current script')) |
1835 self.utScriptAct.setWhatsThis(self.trUtf8( |
1835 self.utScriptAct.setWhatsThis(self.trUtf8( |
1836 """<b>Unittest Script</b>""" |
1836 """<b>Unittest Script</b>""" |
1837 """<p>Run unittest with current script.</p>""" |
1837 """<p>Run unittest with current script.</p>""" |
1838 )) |
1838 )) |
1839 self.utScriptAct.triggered.connect(self.__unittestScript) |
1839 self.utScriptAct.triggered[()].connect(self.__unittestScript) |
1840 self.utScriptAct.setEnabled(False) |
1840 self.utScriptAct.setEnabled(False) |
1841 self.actions.append(self.utScriptAct) |
1841 self.actions.append(self.utScriptAct) |
1842 |
1842 |
1843 self.utProjectAct = E5Action(self.trUtf8('Unittest Project'), |
1843 self.utProjectAct = E5Action(self.trUtf8('Unittest Project'), |
1844 UI.PixmapCache.getIcon("unittestProject.png"), |
1844 UI.PixmapCache.getIcon("unittestProject.png"), |
1847 self.utProjectAct.setStatusTip(self.trUtf8('Run unittest with current project')) |
1847 self.utProjectAct.setStatusTip(self.trUtf8('Run unittest with current project')) |
1848 self.utProjectAct.setWhatsThis(self.trUtf8( |
1848 self.utProjectAct.setWhatsThis(self.trUtf8( |
1849 """<b>Unittest Project</b>""" |
1849 """<b>Unittest Project</b>""" |
1850 """<p>Run unittest with current project.</p>""" |
1850 """<p>Run unittest with current project.</p>""" |
1851 )) |
1851 )) |
1852 self.utProjectAct.triggered.connect(self.__unittestProject) |
1852 self.utProjectAct.triggered[()].connect(self.__unittestProject) |
1853 self.utProjectAct.setEnabled(False) |
1853 self.utProjectAct.setEnabled(False) |
1854 self.actions.append(self.utProjectAct) |
1854 self.actions.append(self.utProjectAct) |
1855 |
1855 |
1856 # check for Qt4 designer and linguist |
1856 # check for Qt4 designer and linguist |
1857 designerExe = Utilities.isWindowsPlatform() and \ |
1857 designerExe = Utilities.isWindowsPlatform() and \ |
1894 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) |
1894 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) |
1895 self.uipreviewerAct.setWhatsThis(self.trUtf8( |
1895 self.uipreviewerAct.setWhatsThis(self.trUtf8( |
1896 """<b>UI Previewer</b>""" |
1896 """<b>UI Previewer</b>""" |
1897 """<p>Start the UI Previewer.</p>""" |
1897 """<p>Start the UI Previewer.</p>""" |
1898 )) |
1898 )) |
1899 self.uipreviewerAct.triggered.connect(self.__UIPreviewer) |
1899 self.uipreviewerAct.triggered[()].connect(self.__UIPreviewer) |
1900 self.actions.append(self.uipreviewerAct) |
1900 self.actions.append(self.uipreviewerAct) |
1901 |
1901 |
1902 self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'), |
1902 self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'), |
1903 UI.PixmapCache.getIcon("trPreviewer.png"), |
1903 UI.PixmapCache.getIcon("trPreviewer.png"), |
1904 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') |
1904 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') |
1905 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) |
1905 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) |
1906 self.trpreviewerAct.setWhatsThis(self.trUtf8( |
1906 self.trpreviewerAct.setWhatsThis(self.trUtf8( |
1907 """<b>Translations Previewer</b>""" |
1907 """<b>Translations Previewer</b>""" |
1908 """<p>Start the Translations Previewer.</p>""" |
1908 """<p>Start the Translations Previewer.</p>""" |
1909 )) |
1909 )) |
1910 self.trpreviewerAct.triggered.connect(self.__TRPreviewer) |
1910 self.trpreviewerAct.triggered[()].connect(self.__TRPreviewer) |
1911 self.actions.append(self.trpreviewerAct) |
1911 self.actions.append(self.trpreviewerAct) |
1912 |
1912 |
1913 self.diffAct = E5Action(self.trUtf8('Compare Files'), |
1913 self.diffAct = E5Action(self.trUtf8('Compare Files'), |
1914 UI.PixmapCache.getIcon("diffFiles.png"), |
1914 UI.PixmapCache.getIcon("diffFiles.png"), |
1915 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') |
1915 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') |
1916 self.diffAct.setStatusTip(self.trUtf8('Compare two files')) |
1916 self.diffAct.setStatusTip(self.trUtf8('Compare two files')) |
1917 self.diffAct.setWhatsThis(self.trUtf8( |
1917 self.diffAct.setWhatsThis(self.trUtf8( |
1918 """<b>Compare Files</b>""" |
1918 """<b>Compare Files</b>""" |
1919 """<p>Open a dialog to compare two files.</p>""" |
1919 """<p>Open a dialog to compare two files.</p>""" |
1920 )) |
1920 )) |
1921 self.diffAct.triggered.connect(self.__compareFiles) |
1921 self.diffAct.triggered[()].connect(self.__compareFiles) |
1922 self.actions.append(self.diffAct) |
1922 self.actions.append(self.diffAct) |
1923 |
1923 |
1924 self.compareAct = E5Action(self.trUtf8('Compare Files side by side'), |
1924 self.compareAct = E5Action(self.trUtf8('Compare Files side by side'), |
1925 UI.PixmapCache.getIcon("compareFiles.png"), |
1925 UI.PixmapCache.getIcon("compareFiles.png"), |
1926 self.trUtf8('Compare Files &side by side...'), |
1926 self.trUtf8('Compare Files &side by side...'), |
1929 self.compareAct.setWhatsThis(self.trUtf8( |
1929 self.compareAct.setWhatsThis(self.trUtf8( |
1930 """<b>Compare Files side by side</b>""" |
1930 """<b>Compare Files side by side</b>""" |
1931 """<p>Open a dialog to compare two files and show the result""" |
1931 """<p>Open a dialog to compare two files and show the result""" |
1932 """ side by side.</p>""" |
1932 """ side by side.</p>""" |
1933 )) |
1933 )) |
1934 self.compareAct.triggered.connect(self.__compareFilesSbs) |
1934 self.compareAct.triggered[()].connect(self.__compareFilesSbs) |
1935 self.actions.append(self.compareAct) |
1935 self.actions.append(self.compareAct) |
1936 |
1936 |
1937 self.sqlBrowserAct = E5Action(self.trUtf8('SQL Browser'), |
1937 self.sqlBrowserAct = E5Action(self.trUtf8('SQL Browser'), |
1938 UI.PixmapCache.getIcon("sqlBrowser.png"), |
1938 UI.PixmapCache.getIcon("sqlBrowser.png"), |
1939 self.trUtf8('SQL &Browser...'), |
1939 self.trUtf8('SQL &Browser...'), |
1941 self.sqlBrowserAct.setStatusTip(self.trUtf8('Browse a SQL database')) |
1941 self.sqlBrowserAct.setStatusTip(self.trUtf8('Browse a SQL database')) |
1942 self.sqlBrowserAct.setWhatsThis(self.trUtf8( |
1942 self.sqlBrowserAct.setWhatsThis(self.trUtf8( |
1943 """<b>SQL Browser</b>""" |
1943 """<b>SQL Browser</b>""" |
1944 """<p>Browse a SQL database.</p>""" |
1944 """<p>Browse a SQL database.</p>""" |
1945 )) |
1945 )) |
1946 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser) |
1946 self.sqlBrowserAct.triggered[()].connect(self.__sqlBrowser) |
1947 self.actions.append(self.sqlBrowserAct) |
1947 self.actions.append(self.sqlBrowserAct) |
1948 |
1948 |
1949 self.miniEditorAct = E5Action(self.trUtf8('Mini Editor'), |
1949 self.miniEditorAct = E5Action(self.trUtf8('Mini Editor'), |
1950 UI.PixmapCache.getIcon("editor.png"), |
1950 UI.PixmapCache.getIcon("editor.png"), |
1951 self.trUtf8('Mini &Editor...'), |
1951 self.trUtf8('Mini &Editor...'), |
1953 self.miniEditorAct.setStatusTip(self.trUtf8('Mini Editor')) |
1953 self.miniEditorAct.setStatusTip(self.trUtf8('Mini Editor')) |
1954 self.miniEditorAct.setWhatsThis(self.trUtf8( |
1954 self.miniEditorAct.setWhatsThis(self.trUtf8( |
1955 """<b>Mini Editor</b>""" |
1955 """<b>Mini Editor</b>""" |
1956 """<p>Open a dialog with a simplified editor.</p>""" |
1956 """<p>Open a dialog with a simplified editor.</p>""" |
1957 )) |
1957 )) |
1958 self.miniEditorAct.triggered.connect(self.__openMiniEditor) |
1958 self.miniEditorAct.triggered[()].connect(self.__openMiniEditor) |
1959 self.actions.append(self.miniEditorAct) |
1959 self.actions.append(self.miniEditorAct) |
1960 |
1960 |
1961 self.webBrowserAct = E5Action(self.trUtf8('Web Browser'), |
1961 self.webBrowserAct = E5Action(self.trUtf8('Web Browser'), |
1962 UI.PixmapCache.getIcon("ericWeb.png"), |
1962 UI.PixmapCache.getIcon("ericWeb.png"), |
1963 self.trUtf8('&Web Browser...'), |
1963 self.trUtf8('&Web Browser...'), |
1965 self.webBrowserAct.setStatusTip(self.trUtf8('Start the eric5 Web Browser')) |
1965 self.webBrowserAct.setStatusTip(self.trUtf8('Start the eric5 Web Browser')) |
1966 self.webBrowserAct.setWhatsThis(self.trUtf8( |
1966 self.webBrowserAct.setWhatsThis(self.trUtf8( |
1967 """<b>Web Browser</b>""" |
1967 """<b>Web Browser</b>""" |
1968 """<p>Browse the Internet with the eric5 Web Browser.</p>""" |
1968 """<p>Browse the Internet with the eric5 Web Browser.</p>""" |
1969 )) |
1969 )) |
1970 self.webBrowserAct.triggered.connect(self.__startWebBrowser) |
1970 self.webBrowserAct.triggered[()].connect(self.__startWebBrowser) |
1971 self.actions.append(self.webBrowserAct) |
1971 self.actions.append(self.webBrowserAct) |
1972 |
1972 |
1973 self.iconEditorAct = E5Action(self.trUtf8('Icon Editor'), |
1973 self.iconEditorAct = E5Action(self.trUtf8('Icon Editor'), |
1974 UI.PixmapCache.getIcon("iconEditor.png"), |
1974 UI.PixmapCache.getIcon("iconEditor.png"), |
1975 self.trUtf8('&Icon Editor...'), |
1975 self.trUtf8('&Icon Editor...'), |
1977 self.iconEditorAct.setStatusTip(self.trUtf8('Start the eric5 Icon Editor')) |
1977 self.iconEditorAct.setStatusTip(self.trUtf8('Start the eric5 Icon Editor')) |
1978 self.iconEditorAct.setWhatsThis(self.trUtf8( |
1978 self.iconEditorAct.setWhatsThis(self.trUtf8( |
1979 """<b>Icon Editor</b>""" |
1979 """<b>Icon Editor</b>""" |
1980 """<p>Starts the eric5 Icon Editor for editing simple icons.</p>""" |
1980 """<p>Starts the eric5 Icon Editor for editing simple icons.</p>""" |
1981 )) |
1981 )) |
1982 self.iconEditorAct.triggered.connect(self.__editPixmap) |
1982 self.iconEditorAct.triggered[()].connect(self.__editPixmap) |
1983 self.actions.append(self.iconEditorAct) |
1983 self.actions.append(self.iconEditorAct) |
1984 |
1984 |
1985 self.prefAct = E5Action(self.trUtf8('Preferences'), |
1985 self.prefAct = E5Action(self.trUtf8('Preferences'), |
1986 UI.PixmapCache.getIcon("configure.png"), |
1986 UI.PixmapCache.getIcon("configure.png"), |
1987 self.trUtf8('&Preferences...'), 0, 0, self, 'preferences') |
1987 self.trUtf8('&Preferences...'), 0, 0, self, 'preferences') |
1989 self.prefAct.setWhatsThis(self.trUtf8( |
1989 self.prefAct.setWhatsThis(self.trUtf8( |
1990 """<b>Preferences</b>""" |
1990 """<b>Preferences</b>""" |
1991 """<p>Set the configuration items of the application""" |
1991 """<p>Set the configuration items of the application""" |
1992 """ with your prefered values.</p>""" |
1992 """ with your prefered values.</p>""" |
1993 )) |
1993 )) |
1994 self.prefAct.triggered.connect(self.showPreferences) |
1994 self.prefAct.triggered[()].connect(self.showPreferences) |
1995 self.actions.append(self.prefAct) |
1995 self.actions.append(self.prefAct) |
1996 |
1996 |
1997 self.prefExportAct = E5Action(self.trUtf8('Export Preferences'), |
1997 self.prefExportAct = E5Action(self.trUtf8('Export Preferences'), |
1998 UI.PixmapCache.getIcon("configureExport.png"), |
1998 UI.PixmapCache.getIcon("configureExport.png"), |
1999 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') |
1999 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') |
2000 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) |
2000 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) |
2001 self.prefExportAct.setWhatsThis(self.trUtf8( |
2001 self.prefExportAct.setWhatsThis(self.trUtf8( |
2002 """<b>Export Preferences</b>""" |
2002 """<b>Export Preferences</b>""" |
2003 """<p>Export the current configuration to a file.</p>""" |
2003 """<p>Export the current configuration to a file.</p>""" |
2004 )) |
2004 )) |
2005 self.prefExportAct.triggered.connect(self.__exportPreferences) |
2005 self.prefExportAct.triggered[()].connect(self.__exportPreferences) |
2006 self.actions.append(self.prefExportAct) |
2006 self.actions.append(self.prefExportAct) |
2007 |
2007 |
2008 self.prefImportAct = E5Action(self.trUtf8('Import Preferences'), |
2008 self.prefImportAct = E5Action(self.trUtf8('Import Preferences'), |
2009 UI.PixmapCache.getIcon("configureImport.png"), |
2009 UI.PixmapCache.getIcon("configureImport.png"), |
2010 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') |
2010 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') |
2012 'Import a previously exported configuration')) |
2012 'Import a previously exported configuration')) |
2013 self.prefImportAct.setWhatsThis(self.trUtf8( |
2013 self.prefImportAct.setWhatsThis(self.trUtf8( |
2014 """<b>Import Preferences</b>""" |
2014 """<b>Import Preferences</b>""" |
2015 """<p>Import a previously exported configuration.</p>""" |
2015 """<p>Import a previously exported configuration.</p>""" |
2016 )) |
2016 )) |
2017 self.prefImportAct.triggered.connect(self.__importPreferences) |
2017 self.prefImportAct.triggered[()].connect(self.__importPreferences) |
2018 self.actions.append(self.prefImportAct) |
2018 self.actions.append(self.prefImportAct) |
2019 |
2019 |
2020 self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'), |
2020 self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'), |
2021 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') |
2021 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') |
2022 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) |
2022 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) |
2023 self.reloadAPIsAct.setWhatsThis(self.trUtf8( |
2023 self.reloadAPIsAct.setWhatsThis(self.trUtf8( |
2024 """<b>Reload APIs</b>""" |
2024 """<b>Reload APIs</b>""" |
2025 """<p>Reload the API information.</p>""" |
2025 """<p>Reload the API information.</p>""" |
2026 )) |
2026 )) |
2027 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs) |
2027 self.reloadAPIsAct.triggered[()].connect(self.__reloadAPIs) |
2028 self.actions.append(self.reloadAPIsAct) |
2028 self.actions.append(self.reloadAPIsAct) |
2029 |
2029 |
2030 self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'), |
2030 self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'), |
2031 UI.PixmapCache.getIcon("showPrograms.png"), |
2031 UI.PixmapCache.getIcon("showPrograms.png"), |
2032 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') |
2032 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') |
2034 self.showExternalToolsAct.setWhatsThis(self.trUtf8( |
2034 self.showExternalToolsAct.setWhatsThis(self.trUtf8( |
2035 """<b>Show external tools</b>""" |
2035 """<b>Show external tools</b>""" |
2036 """<p>Opens a dialog to show the path and versions of all""" |
2036 """<p>Opens a dialog to show the path and versions of all""" |
2037 """ extenal tools used by eric5.</p>""" |
2037 """ extenal tools used by eric5.</p>""" |
2038 )) |
2038 )) |
2039 self.showExternalToolsAct.triggered.connect(self.__showExternalTools) |
2039 self.showExternalToolsAct.triggered[()].connect(self.__showExternalTools) |
2040 self.actions.append(self.showExternalToolsAct) |
2040 self.actions.append(self.showExternalToolsAct) |
2041 |
2041 |
2042 self.configViewProfilesAct = E5Action(self.trUtf8('View Profiles'), |
2042 self.configViewProfilesAct = E5Action(self.trUtf8('View Profiles'), |
2043 UI.PixmapCache.getIcon("configureViewProfiles.png"), |
2043 UI.PixmapCache.getIcon("configureViewProfiles.png"), |
2044 self.trUtf8('&View Profiles...'), 0, 0, self, 'view_profiles') |
2044 self.trUtf8('&View Profiles...'), 0, 0, self, 'view_profiles') |
2047 """<b>View Profiles</b>""" |
2047 """<b>View Profiles</b>""" |
2048 """<p>Configure the view profiles. With this dialog you may""" |
2048 """<p>Configure the view profiles. With this dialog you may""" |
2049 """ set the visibility of the various windows for the predetermined""" |
2049 """ set the visibility of the various windows for the predetermined""" |
2050 """ view profiles.</p>""" |
2050 """ view profiles.</p>""" |
2051 )) |
2051 )) |
2052 self.configViewProfilesAct.triggered.connect(self.__configViewProfiles) |
2052 self.configViewProfilesAct.triggered[()].connect(self.__configViewProfiles) |
2053 self.actions.append(self.configViewProfilesAct) |
2053 self.actions.append(self.configViewProfilesAct) |
2054 |
2054 |
2055 self.configToolBarsAct = E5Action(self.trUtf8('Toolbars'), |
2055 self.configToolBarsAct = E5Action(self.trUtf8('Toolbars'), |
2056 UI.PixmapCache.getIcon("toolbarsConfigure.png"), |
2056 UI.PixmapCache.getIcon("toolbarsConfigure.png"), |
2057 self.trUtf8('Tool&bars...'), 0, 0, self, 'configure_toolbars') |
2057 self.trUtf8('Tool&bars...'), 0, 0, self, 'configure_toolbars') |
2060 """<b>Toolbars</b>""" |
2060 """<b>Toolbars</b>""" |
2061 """<p>Configure the toolbars. With this dialog you may""" |
2061 """<p>Configure the toolbars. With this dialog you may""" |
2062 """ change the actions shown on the various toolbars and""" |
2062 """ change the actions shown on the various toolbars and""" |
2063 """ define your own toolbars.</p>""" |
2063 """ define your own toolbars.</p>""" |
2064 )) |
2064 )) |
2065 self.configToolBarsAct.triggered.connect(self.__configToolBars) |
2065 self.configToolBarsAct.triggered[()].connect(self.__configToolBars) |
2066 self.actions.append(self.configToolBarsAct) |
2066 self.actions.append(self.configToolBarsAct) |
2067 |
2067 |
2068 self.shortcutsAct = E5Action(self.trUtf8('Keyboard Shortcuts'), |
2068 self.shortcutsAct = E5Action(self.trUtf8('Keyboard Shortcuts'), |
2069 UI.PixmapCache.getIcon("configureShortcuts.png"), |
2069 UI.PixmapCache.getIcon("configureShortcuts.png"), |
2070 self.trUtf8('Keyboard &Shortcuts...'), 0, 0, self, 'keyboard_shortcuts') |
2070 self.trUtf8('Keyboard &Shortcuts...'), 0, 0, self, 'keyboard_shortcuts') |
2072 self.shortcutsAct.setWhatsThis(self.trUtf8( |
2072 self.shortcutsAct.setWhatsThis(self.trUtf8( |
2073 """<b>Keyboard Shortcuts</b>""" |
2073 """<b>Keyboard Shortcuts</b>""" |
2074 """<p>Set the keyboard shortcuts of the application""" |
2074 """<p>Set the keyboard shortcuts of the application""" |
2075 """ with your prefered values.</p>""" |
2075 """ with your prefered values.</p>""" |
2076 )) |
2076 )) |
2077 self.shortcutsAct.triggered.connect(self.__configShortcuts) |
2077 self.shortcutsAct.triggered[()].connect(self.__configShortcuts) |
2078 self.actions.append(self.shortcutsAct) |
2078 self.actions.append(self.shortcutsAct) |
2079 |
2079 |
2080 self.exportShortcutsAct = E5Action(self.trUtf8('Export Keyboard Shortcuts'), |
2080 self.exportShortcutsAct = E5Action(self.trUtf8('Export Keyboard Shortcuts'), |
2081 UI.PixmapCache.getIcon("exportShortcuts.png"), |
2081 UI.PixmapCache.getIcon("exportShortcuts.png"), |
2082 self.trUtf8('&Export Keyboard Shortcuts...'), 0, 0, self, |
2082 self.trUtf8('&Export Keyboard Shortcuts...'), 0, 0, self, |
2084 self.exportShortcutsAct.setStatusTip(self.trUtf8('Export the keyboard shortcuts')) |
2084 self.exportShortcutsAct.setStatusTip(self.trUtf8('Export the keyboard shortcuts')) |
2085 self.exportShortcutsAct.setWhatsThis(self.trUtf8( |
2085 self.exportShortcutsAct.setWhatsThis(self.trUtf8( |
2086 """<b>Export Keyboard Shortcuts</b>""" |
2086 """<b>Export Keyboard Shortcuts</b>""" |
2087 """<p>Export the keyboard shortcuts of the application.</p>""" |
2087 """<p>Export the keyboard shortcuts of the application.</p>""" |
2088 )) |
2088 )) |
2089 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts) |
2089 self.exportShortcutsAct.triggered[()].connect(self.__exportShortcuts) |
2090 self.actions.append(self.exportShortcutsAct) |
2090 self.actions.append(self.exportShortcutsAct) |
2091 |
2091 |
2092 self.importShortcutsAct = E5Action(self.trUtf8('Import Keyboard Shortcuts'), |
2092 self.importShortcutsAct = E5Action(self.trUtf8('Import Keyboard Shortcuts'), |
2093 UI.PixmapCache.getIcon("importShortcuts.png"), |
2093 UI.PixmapCache.getIcon("importShortcuts.png"), |
2094 self.trUtf8('&Import Keyboard Shortcuts...'), 0, 0, self, |
2094 self.trUtf8('&Import Keyboard Shortcuts...'), 0, 0, self, |
2096 self.importShortcutsAct.setStatusTip(self.trUtf8('Import the keyboard shortcuts')) |
2096 self.importShortcutsAct.setStatusTip(self.trUtf8('Import the keyboard shortcuts')) |
2097 self.importShortcutsAct.setWhatsThis(self.trUtf8( |
2097 self.importShortcutsAct.setWhatsThis(self.trUtf8( |
2098 """<b>Import Keyboard Shortcuts</b>""" |
2098 """<b>Import Keyboard Shortcuts</b>""" |
2099 """<p>Import the keyboard shortcuts of the application.</p>""" |
2099 """<p>Import the keyboard shortcuts of the application.</p>""" |
2100 )) |
2100 )) |
2101 self.importShortcutsAct.triggered.connect(self.__importShortcuts) |
2101 self.importShortcutsAct.triggered[()].connect(self.__importShortcuts) |
2102 self.actions.append(self.importShortcutsAct) |
2102 self.actions.append(self.importShortcutsAct) |
2103 |
2103 |
2104 self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'), |
2104 self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'), |
2105 self.trUtf8('Activate current editor'), |
2105 self.trUtf8('Activate current editor'), |
2106 QKeySequence(self.trUtf8("Alt+Shift+E")), |
2106 QKeySequence(self.trUtf8("Alt+Shift+E")), |
2107 0, self, |
2107 0, self, |
2108 'viewmanager_activate',1) |
2108 'viewmanager_activate',1) |
2109 self.viewmanagerActivateAct.triggered.connect(self.__activateViewmanager) |
2109 self.viewmanagerActivateAct.triggered[()].connect(self.__activateViewmanager) |
2110 self.actions.append(self.viewmanagerActivateAct) |
2110 self.actions.append(self.viewmanagerActivateAct) |
2111 self.addAction(self.viewmanagerActivateAct) |
2111 self.addAction(self.viewmanagerActivateAct) |
2112 |
2112 |
2113 self.nextTabAct = E5Action(self.trUtf8('Show next'), |
2113 self.nextTabAct = E5Action(self.trUtf8('Show next'), |
2114 self.trUtf8('Show next'), |
2114 self.trUtf8('Show next'), |
2115 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
2115 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
2116 self, 'view_next_tab') |
2116 self, 'view_next_tab') |
2117 self.nextTabAct.triggered.connect(self.__showNext) |
2117 self.nextTabAct.triggered[()].connect(self.__showNext) |
2118 self.actions.append(self.nextTabAct) |
2118 self.actions.append(self.nextTabAct) |
2119 self.addAction(self.nextTabAct) |
2119 self.addAction(self.nextTabAct) |
2120 |
2120 |
2121 self.prevTabAct = E5Action(self.trUtf8('Show previous'), |
2121 self.prevTabAct = E5Action(self.trUtf8('Show previous'), |
2122 self.trUtf8('Show previous'), |
2122 self.trUtf8('Show previous'), |
2123 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
2123 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
2124 self, 'view_previous_tab') |
2124 self, 'view_previous_tab') |
2125 self.prevTabAct.triggered.connect(self.__showPrevious) |
2125 self.prevTabAct.triggered[()].connect(self.__showPrevious) |
2126 self.actions.append(self.prevTabAct) |
2126 self.actions.append(self.prevTabAct) |
2127 self.addAction(self.prevTabAct) |
2127 self.addAction(self.prevTabAct) |
2128 |
2128 |
2129 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
2129 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
2130 self.trUtf8('Switch between tabs'), |
2130 self.trUtf8('Switch between tabs'), |
2131 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
2131 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
2132 self, 'switch_tabs') |
2132 self, 'switch_tabs') |
2133 self.switchTabAct.triggered.connect(self.__switchTab) |
2133 self.switchTabAct.triggered[()].connect(self.__switchTab) |
2134 self.actions.append(self.switchTabAct) |
2134 self.actions.append(self.switchTabAct) |
2135 self.addAction(self.switchTabAct) |
2135 self.addAction(self.switchTabAct) |
2136 |
2136 |
2137 self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'), |
2137 self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'), |
2138 UI.PixmapCache.getIcon("plugin.png"), |
2138 UI.PixmapCache.getIcon("plugin.png"), |
2141 self.pluginInfoAct.setWhatsThis(self.trUtf8( |
2141 self.pluginInfoAct.setWhatsThis(self.trUtf8( |
2142 """<b>Plugin Infos...</b>""" |
2142 """<b>Plugin Infos...</b>""" |
2143 """<p>This opens a dialog, that show some information about""" |
2143 """<p>This opens a dialog, that show some information about""" |
2144 """ loaded plugins.</p>""" |
2144 """ loaded plugins.</p>""" |
2145 )) |
2145 )) |
2146 self.pluginInfoAct.triggered.connect(self.__showPluginInfo) |
2146 self.pluginInfoAct.triggered[()].connect(self.__showPluginInfo) |
2147 self.actions.append(self.pluginInfoAct) |
2147 self.actions.append(self.pluginInfoAct) |
2148 |
2148 |
2149 self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'), |
2149 self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'), |
2150 UI.PixmapCache.getIcon("pluginInstall.png"), |
2150 UI.PixmapCache.getIcon("pluginInstall.png"), |
2151 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') |
2151 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') |
2152 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) |
2152 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) |
2153 self.pluginInstallAct.setWhatsThis(self.trUtf8( |
2153 self.pluginInstallAct.setWhatsThis(self.trUtf8( |
2154 """<b>Install Plugins...</b>""" |
2154 """<b>Install Plugins...</b>""" |
2155 """<p>This opens a dialog to install or update plugins.</p>""" |
2155 """<p>This opens a dialog to install or update plugins.</p>""" |
2156 )) |
2156 )) |
2157 self.pluginInstallAct.triggered.connect(self.__installPlugins) |
2157 self.pluginInstallAct.triggered[()].connect(self.__installPlugins) |
2158 self.actions.append(self.pluginInstallAct) |
2158 self.actions.append(self.pluginInstallAct) |
2159 |
2159 |
2160 self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'), |
2160 self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'), |
2161 UI.PixmapCache.getIcon("pluginUninstall.png"), |
2161 UI.PixmapCache.getIcon("pluginUninstall.png"), |
2162 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') |
2162 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') |
2163 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) |
2163 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) |
2164 self.pluginDeinstallAct.setWhatsThis(self.trUtf8( |
2164 self.pluginDeinstallAct.setWhatsThis(self.trUtf8( |
2165 """<b>Uninstall Plugin...</b>""" |
2165 """<b>Uninstall Plugin...</b>""" |
2166 """<p>This opens a dialog to uninstall a plugin.</p>""" |
2166 """<p>This opens a dialog to uninstall a plugin.</p>""" |
2167 )) |
2167 )) |
2168 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin) |
2168 self.pluginDeinstallAct.triggered[()].connect(self.__deinstallPlugin) |
2169 self.actions.append(self.pluginDeinstallAct) |
2169 self.actions.append(self.pluginDeinstallAct) |
2170 |
2170 |
2171 self.pluginRepoAct = E5Action(self.trUtf8('Plugin Repository'), |
2171 self.pluginRepoAct = E5Action(self.trUtf8('Plugin Repository'), |
2172 UI.PixmapCache.getIcon("pluginRepository.png"), |
2172 UI.PixmapCache.getIcon("pluginRepository.png"), |
2173 self.trUtf8('Plugin &Repository...'), 0, 0, self, 'plugin_repository') |
2173 self.trUtf8('Plugin &Repository...'), 0, 0, self, 'plugin_repository') |
2204 """<b>Qt4 Documentation</b>""" |
2204 """<b>Qt4 Documentation</b>""" |
2205 """<p>Display the Qt4 Documentation. Dependant upon your settings, this""" |
2205 """<p>Display the Qt4 Documentation. Dependant upon your settings, this""" |
2206 """ will either show the help in Eric's internal help viewer, or execute""" |
2206 """ will either show the help in Eric's internal help viewer, or execute""" |
2207 """ a web browser or Qt Assistant. </p>""" |
2207 """ a web browser or Qt Assistant. </p>""" |
2208 )) |
2208 )) |
2209 self.qt4DocAct.triggered.connect(self.__showQt4Doc) |
2209 self.qt4DocAct.triggered[()].connect(self.__showQt4Doc) |
2210 self.actions.append(self.qt4DocAct) |
2210 self.actions.append(self.qt4DocAct) |
2211 |
2211 |
2212 self.pyqt4DocAct = E5Action(self.trUtf8('PyQt4 Documentation'), |
2212 self.pyqt4DocAct = E5Action(self.trUtf8('PyQt4 Documentation'), |
2213 self.trUtf8('P&yQt4 Documentation'), 0, 0, self, 'pyqt4_documentation') |
2213 self.trUtf8('P&yQt4 Documentation'), 0, 0, self, 'pyqt4_documentation') |
2214 self.pyqt4DocAct.setStatusTip(self.trUtf8('Open PyQt4 Documentation')) |
2214 self.pyqt4DocAct.setStatusTip(self.trUtf8('Open PyQt4 Documentation')) |
2216 """<b>PyQt4 Documentation</b>""" |
2216 """<b>PyQt4 Documentation</b>""" |
2217 """<p>Display the PyQt4 Documentation. Dependant upon your settings, this""" |
2217 """<p>Display the PyQt4 Documentation. Dependant upon your settings, this""" |
2218 """ will either show the help in Eric's internal help viewer, or execute""" |
2218 """ will either show the help in Eric's internal help viewer, or execute""" |
2219 """ a web browser or Qt Assistant. </p>""" |
2219 """ a web browser or Qt Assistant. </p>""" |
2220 )) |
2220 )) |
2221 self.pyqt4DocAct.triggered.connect(self.__showPyQt4Doc) |
2221 self.pyqt4DocAct.triggered[()].connect(self.__showPyQt4Doc) |
2222 self.actions.append(self.pyqt4DocAct) |
2222 self.actions.append(self.pyqt4DocAct) |
2223 |
2223 |
2224 def __initPythonDocAction(self): |
2224 def __initPythonDocAction(self): |
2225 """ |
2225 """ |
2226 Private slot to initilize the action to show the Python documentation. |
2226 Private slot to initilize the action to show the Python documentation. |
2679 key = "{0}@@{1}".format(toolGroup[0], tool['menutext']) |
2679 key = "{0}@@{1}".format(toolGroup[0], tool['menutext']) |
2680 if key not in groupActionKeys: |
2680 if key not in groupActionKeys: |
2681 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'], |
2681 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'], |
2682 self) |
2682 self) |
2683 act.setObjectName(key) |
2683 act.setObjectName(key) |
2684 act.triggered.connect(self.__toolActionTriggered) |
2684 act.triggered[()].connect(self.__toolActionTriggered) |
2685 self.toolGroupActions[key] = act |
2685 self.toolGroupActions[key] = act |
2686 |
2686 |
2687 self.toolbarManager.addAction(act, category) |
2687 self.toolbarManager.addAction(act, category) |
2688 |
2688 |
2689 def __showFileMenu(self): |
2689 def __showFileMenu(self): |