UI/UserInterface.py

changeset 453
a81097a85889
parent 452
0bc58cbb64b2
child 454
d28d558f7484
child 455
9a7e0b7b801e
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
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.connect(self.exitAct, SIGNAL('triggered()'), 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.connect(self.setEditProfileAct, SIGNAL('triggered()'), 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.connect(self.setDebugProfileAct, SIGNAL('triggered()'), 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.connect(self.pbAct, SIGNAL('triggered()'), 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.connect(self.pbActivateAct, SIGNAL('triggered()'), 1429 self.pbActivateAct.triggered.connect(self.__activateProjectBrowser)
1430 self.__activateProjectBrowser)
1431 self.actions.append(self.pbActivateAct) 1430 self.actions.append(self.pbActivateAct)
1432 self.addAction(self.pbActivateAct) 1431 self.addAction(self.pbActivateAct)
1433 1432
1434 self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'), 1433 self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'),
1435 self.trUtf8('&Multiproject-Viewer'), 0, 0, self, 1434 self.trUtf8('&Multiproject-Viewer'), 0, 0, self,
1438 self.mpbAct.setWhatsThis(self.trUtf8( 1437 self.mpbAct.setWhatsThis(self.trUtf8(
1439 """<b>Toggle the Multiproject-Viewer window</b>""" 1438 """<b>Toggle the Multiproject-Viewer window</b>"""
1440 """<p>If the Multiproject-Viewer window is hidden then display it.""" 1439 """<p>If the Multiproject-Viewer window is hidden then display it."""
1441 """ If it is displayed then close it.</p>""" 1440 """ If it is displayed then close it.</p>"""
1442 )) 1441 ))
1443 self.connect(self.mpbAct, SIGNAL('triggered()'), self.__toggleMultiProjectBrowser) 1442 self.mpbAct.triggered.connect(self.__toggleMultiProjectBrowser)
1444 self.actions.append(self.mpbAct) 1443 self.actions.append(self.mpbAct)
1445 1444
1446 self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'), 1445 self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'),
1447 self.trUtf8('Activate Multiproject-Viewer'), 1446 self.trUtf8('Activate Multiproject-Viewer'),
1448 QKeySequence(self.trUtf8("Alt+Shift+M")), 1447 QKeySequence(self.trUtf8("Alt+Shift+M")),
1449 0, self, 1448 0, self,
1450 'multi_project_viewer_activate', True) 1449 'multi_project_viewer_activate', True)
1451 self.connect(self.mpbActivateAct, SIGNAL('triggered()'), 1450 self.mpbActivateAct.triggered.connect(self.__activateMultiProjectBrowser)
1452 self.__activateMultiProjectBrowser)
1453 self.actions.append(self.mpbActivateAct) 1451 self.actions.append(self.mpbActivateAct)
1454 self.addAction(self.mpbActivateAct) 1452 self.addAction(self.mpbActivateAct)
1455 1453
1456 self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'), 1454 self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'),
1457 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) 1455 self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True)
1459 self.debugViewerAct.setWhatsThis(self.trUtf8( 1457 self.debugViewerAct.setWhatsThis(self.trUtf8(
1460 """<b>Toggle the Debug-Viewer window</b>""" 1458 """<b>Toggle the Debug-Viewer window</b>"""
1461 """<p>If the Debug-Viewer window is hidden then display it.""" 1459 """<p>If the Debug-Viewer window is hidden then display it."""
1462 """ If it is displayed then close it.</p>""" 1460 """ If it is displayed then close it.</p>"""
1463 )) 1461 ))
1464 self.connect(self.debugViewerAct, SIGNAL('triggered()'), self.__toggleDebugViewer) 1462 self.debugViewerAct.triggered.connect(self.__toggleDebugViewer)
1465 self.actions.append(self.debugViewerAct) 1463 self.actions.append(self.debugViewerAct)
1466 1464
1467 self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'), 1465 self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'),
1468 self.trUtf8('Activate Debug-Viewer'), 1466 self.trUtf8('Activate Debug-Viewer'),
1469 QKeySequence(self.trUtf8("Alt+Shift+D")), 1467 QKeySequence(self.trUtf8("Alt+Shift+D")),
1470 0, self, 1468 0, self,
1471 'debug_viewer_activate', True) 1469 'debug_viewer_activate', True)
1472 self.connect(self.debugViewerActivateAct, SIGNAL('triggered()'), 1470 self.debugViewerActivateAct.triggered.connect(self.__activateDebugViewer)
1473 self.__activateDebugViewer)
1474 self.actions.append(self.debugViewerActivateAct) 1471 self.actions.append(self.debugViewerActivateAct)
1475 self.addAction(self.debugViewerActivateAct) 1472 self.addAction(self.debugViewerActivateAct)
1476 1473
1477 self.shellAct = E5Action(self.trUtf8('Shell'), 1474 self.shellAct = E5Action(self.trUtf8('Shell'),
1478 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) 1475 self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True)
1481 """<b>Toggle the Shell window</b>""" 1478 """<b>Toggle the Shell window</b>"""
1482 """<p>If the Shell window is hidden then display it.""" 1479 """<p>If the Shell window is hidden then display it."""
1483 """ If it is displayed then close it.</p>""" 1480 """ If it is displayed then close it.</p>"""
1484 )) 1481 ))
1485 if not self.embeddedShell: 1482 if not self.embeddedShell:
1486 self.connect(self.shellAct, SIGNAL('triggered()'), self.__toggleShell) 1483 self.shellAct.triggered.connect(self.__toggleShell)
1487 self.actions.append(self.shellAct) 1484 self.actions.append(self.shellAct)
1488 1485
1489 self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'), 1486 self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'),
1490 self.trUtf8('Activate Shell'), 1487 self.trUtf8('Activate Shell'),
1491 QKeySequence(self.trUtf8("Alt+Shift+S")), 1488 QKeySequence(self.trUtf8("Alt+Shift+S")),
1492 0, self, 1489 0, self,
1493 'interprter_shell_activate', True) 1490 'interprter_shell_activate', True)
1494 self.connect(self.shellActivateAct, SIGNAL('triggered()'), self.__activateShell) 1491 self.shellActivateAct.triggered.connect(self.__activateShell)
1495 self.actions.append(self.shellActivateAct) 1492 self.actions.append(self.shellActivateAct)
1496 self.addAction(self.shellActivateAct) 1493 self.addAction(self.shellActivateAct)
1497 1494
1498 self.terminalAct = E5Action(self.trUtf8('Terminal'), 1495 self.terminalAct = E5Action(self.trUtf8('Terminal'),
1499 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) 1496 self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True)
1501 self.terminalAct.setWhatsThis(self.trUtf8( 1498 self.terminalAct.setWhatsThis(self.trUtf8(
1502 """<b>Toggle the Terminal window</b>""" 1499 """<b>Toggle the Terminal window</b>"""
1503 """<p>If the Terminal window is hidden then display it.""" 1500 """<p>If the Terminal window is hidden then display it."""
1504 """ If it is displayed then close it.</p>""" 1501 """ If it is displayed then close it.</p>"""
1505 )) 1502 ))
1506 self.connect(self.terminalAct, SIGNAL('triggered()'), self.__toggleTerminal) 1503 self.terminalAct.triggered.connect(self.__toggleTerminal)
1507 self.actions.append(self.terminalAct) 1504 self.actions.append(self.terminalAct)
1508 1505
1509 self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'), 1506 self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'),
1510 self.trUtf8('Activate Terminal'), 1507 self.trUtf8('Activate Terminal'),
1511 QKeySequence(self.trUtf8("Alt+Shift+R")), 1508 QKeySequence(self.trUtf8("Alt+Shift+R")),
1512 0, self, 1509 0, self,
1513 'terminal_activate', True) 1510 'terminal_activate', True)
1514 self.connect(self.terminalActivateAct, SIGNAL('triggered()'), 1511 self.terminalActivateAct.triggered.connect(self.__activateTerminal)
1515 self.__activateTerminal)
1516 self.actions.append(self.terminalActivateAct) 1512 self.actions.append(self.terminalActivateAct)
1517 self.addAction(self.terminalActivateAct) 1513 self.addAction(self.terminalActivateAct)
1518 1514
1519 self.browserAct = E5Action(self.trUtf8('File-Browser'), 1515 self.browserAct = E5Action(self.trUtf8('File-Browser'),
1520 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) 1516 self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True)
1523 """<b>Toggle the File-Browser window</b>""" 1519 """<b>Toggle the File-Browser window</b>"""
1524 """<p>If the File-Browser window is hidden then display it.""" 1520 """<p>If the File-Browser window is hidden then display it."""
1525 """ If it is displayed then close it.</p>""" 1521 """ If it is displayed then close it.</p>"""
1526 )) 1522 ))
1527 if not self.embeddedFileBrowser: 1523 if not self.embeddedFileBrowser:
1528 self.connect(self.browserAct, SIGNAL('triggered()'), self.__toggleBrowser) 1524 self.browserAct.triggered.connect(self.__toggleBrowser)
1529 self.actions.append(self.browserAct) 1525 self.actions.append(self.browserAct)
1530 1526
1531 self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'), 1527 self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'),
1532 self.trUtf8('Activate File-Browser'), 1528 self.trUtf8('Activate File-Browser'),
1533 QKeySequence(self.trUtf8("Alt+Shift+F")), 1529 QKeySequence(self.trUtf8("Alt+Shift+F")),
1534 0, self, 1530 0, self,
1535 'file_browser_activate', True) 1531 'file_browser_activate', True)
1536 self.connect(self.browserActivateAct, SIGNAL('triggered()'), 1532 self.browserActivateAct.triggered.connect(self.__activateBrowser)
1537 self.__activateBrowser)
1538 self.actions.append(self.browserActivateAct) 1533 self.actions.append(self.browserActivateAct)
1539 self.addAction(self.browserActivateAct) 1534 self.addAction(self.browserActivateAct)
1540 1535
1541 self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'), 1536 self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'),
1542 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) 1537 self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True)
1544 self.logViewerAct.setWhatsThis(self.trUtf8( 1539 self.logViewerAct.setWhatsThis(self.trUtf8(
1545 """<b>Toggle the Log-Viewer window</b>""" 1540 """<b>Toggle the Log-Viewer window</b>"""
1546 """<p>If the Log-Viewer window is hidden then display it.""" 1541 """<p>If the Log-Viewer window is hidden then display it."""
1547 """ If it is displayed then close it.</p>""" 1542 """ If it is displayed then close it.</p>"""
1548 )) 1543 ))
1549 self.connect(self.logViewerAct, SIGNAL('triggered()'), self.__toggleLogViewer) 1544 self.logViewerAct.triggered.connect(self.__toggleLogViewer)
1550 self.actions.append(self.logViewerAct) 1545 self.actions.append(self.logViewerAct)
1551 1546
1552 self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'), 1547 self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'),
1553 self.trUtf8('Activate Log-Viewer'), 1548 self.trUtf8('Activate Log-Viewer'),
1554 QKeySequence(self.trUtf8("Alt+Shift+G")), 1549 QKeySequence(self.trUtf8("Alt+Shift+G")),
1555 0, self, 1550 0, self,
1556 'log_viewer_activate', True) 1551 'log_viewer_activate', True)
1557 self.connect(self.logViewerActivateAct, SIGNAL('triggered()'), 1552 self.logViewerActivateAct.triggered.connect(self.__activateLogViewer)
1558 self.__activateLogViewer)
1559 self.actions.append(self.logViewerActivateAct) 1553 self.actions.append(self.logViewerActivateAct)
1560 self.addAction(self.logViewerActivateAct) 1554 self.addAction(self.logViewerActivateAct)
1561 1555
1562 self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'), 1556 self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'),
1563 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) 1557 self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True)
1565 self.taskViewerAct.setWhatsThis(self.trUtf8( 1559 self.taskViewerAct.setWhatsThis(self.trUtf8(
1566 """<b>Toggle the Task-Viewer window</b>""" 1560 """<b>Toggle the Task-Viewer window</b>"""
1567 """<p>If the Task-Viewer window is hidden then display it.""" 1561 """<p>If the Task-Viewer window is hidden then display it."""
1568 """ If it is displayed then close it.</p>""" 1562 """ If it is displayed then close it.</p>"""
1569 )) 1563 ))
1570 self.connect(self.taskViewerAct, SIGNAL('triggered()'), self.__toggleTaskViewer) 1564 self.taskViewerAct.triggered.connect(self.__toggleTaskViewer)
1571 self.actions.append(self.taskViewerAct) 1565 self.actions.append(self.taskViewerAct)
1572 1566
1573 self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'), 1567 self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'),
1574 self.trUtf8('Activate Task-Viewer'), 1568 self.trUtf8('Activate Task-Viewer'),
1575 QKeySequence(self.trUtf8("Alt+Shift+T")), 1569 QKeySequence(self.trUtf8("Alt+Shift+T")),
1576 0, self, 1570 0, self,
1577 'task_viewer_activate',1) 1571 'task_viewer_activate',1)
1578 self.connect(self.taskViewerActivateAct, SIGNAL('triggered()'), 1572 self.taskViewerActivateAct.triggered.connect(self.__activateTaskViewer)
1579 self.__activateTaskViewer)
1580 self.actions.append(self.taskViewerActivateAct) 1573 self.actions.append(self.taskViewerActivateAct)
1581 self.addAction(self.taskViewerActivateAct) 1574 self.addAction(self.taskViewerActivateAct)
1582 1575
1583 self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), 1576 self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'),
1584 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) 1577 self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True)
1587 self.templateViewerAct.setWhatsThis(self.trUtf8( 1580 self.templateViewerAct.setWhatsThis(self.trUtf8(
1588 """<b>Toggle the Template-Viewer window</b>""" 1581 """<b>Toggle the Template-Viewer window</b>"""
1589 """<p>If the Template-Viewer window is hidden then display it.""" 1582 """<p>If the Template-Viewer window is hidden then display it."""
1590 """ If it is displayed then close it.</p>""" 1583 """ If it is displayed then close it.</p>"""
1591 )) 1584 ))
1592 self.connect(self.templateViewerAct, SIGNAL('triggered()'), 1585 self.templateViewerAct.triggered.connect(self.__toggleTemplateViewer)
1593 self.__toggleTemplateViewer)
1594 self.actions.append(self.templateViewerAct) 1586 self.actions.append(self.templateViewerAct)
1595 1587
1596 self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'), 1588 self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'),
1597 self.trUtf8('Activate Template-Viewer'), 1589 self.trUtf8('Activate Template-Viewer'),
1598 QKeySequence(self.trUtf8("Alt+Shift+A")), 1590 QKeySequence(self.trUtf8("Alt+Shift+A")),
1599 0, self, 1591 0, self,
1600 'template_viewer_activate',1) 1592 'template_viewer_activate',1)
1601 self.connect(self.templateViewerActivateAct, SIGNAL('triggered()'), 1593 self.templateViewerActivateAct.triggered.connect(self.__activateTemplateViewer)
1602 self.__activateTemplateViewer)
1603 self.actions.append(self.templateViewerActivateAct) 1594 self.actions.append(self.templateViewerActivateAct)
1604 self.addAction(self.templateViewerActivateAct) 1595 self.addAction(self.templateViewerActivateAct)
1605 1596
1606 self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'), 1597 self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'),
1607 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) 1598 self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True)
1609 self.vtAct.setWhatsThis(self.trUtf8( 1600 self.vtAct.setWhatsThis(self.trUtf8(
1610 """<b>Toggle the Vertical Toolbox window</b>""" 1601 """<b>Toggle the Vertical Toolbox window</b>"""
1611 """<p>If the Vertical Toolbox window is hidden then display it.""" 1602 """<p>If the Vertical Toolbox window is hidden then display it."""
1612 """ If it is displayed then close it.</p>""" 1603 """ If it is displayed then close it.</p>"""
1613 )) 1604 ))
1614 self.connect(self.vtAct, SIGNAL('triggered()'), self.__toggleVerticalToolbox) 1605 self.vtAct.triggered.connect(self.__toggleVerticalToolbox)
1615 self.actions.append(self.vtAct) 1606 self.actions.append(self.vtAct)
1616 1607
1617 self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'), 1608 self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'),
1618 self.trUtf8('&Horizontal Toolbox'), 0, 0, self, 1609 self.trUtf8('&Horizontal Toolbox'), 0, 0, self,
1619 'horizontal_toolbox', True) 1610 'horizontal_toolbox', True)
1621 self.htAct.setWhatsThis(self.trUtf8( 1612 self.htAct.setWhatsThis(self.trUtf8(
1622 """<b>Toggle the Horizontal Toolbox window</b>""" 1613 """<b>Toggle the Horizontal Toolbox window</b>"""
1623 """<p>If the Horizontal Toolbox window is hidden then display it.""" 1614 """<p>If the Horizontal Toolbox window is hidden then display it."""
1624 """ If it is displayed then close it.</p>""" 1615 """ If it is displayed then close it.</p>"""
1625 )) 1616 ))
1626 self.connect(self.htAct, SIGNAL('triggered()'), self.__toggleHorizontalToolbox) 1617 self.htAct.triggered.connect(self.__toggleHorizontalToolbox)
1627 self.actions.append(self.htAct) 1618 self.actions.append(self.htAct)
1628 1619
1629 self.lsbAct = E5Action(self.trUtf8('Left Sidebar'), 1620 self.lsbAct = E5Action(self.trUtf8('Left Sidebar'),
1630 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) 1621 self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True)
1631 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) 1622 self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window'))
1632 self.lsbAct.setWhatsThis(self.trUtf8( 1623 self.lsbAct.setWhatsThis(self.trUtf8(
1633 """<b>Toggle the left sidebar window</b>""" 1624 """<b>Toggle the left sidebar window</b>"""
1634 """<p>If the left sidebar window is hidden then display it.""" 1625 """<p>If the left sidebar window is hidden then display it."""
1635 """ If it is displayed then close it.</p>""" 1626 """ If it is displayed then close it.</p>"""
1636 )) 1627 ))
1637 self.connect(self.lsbAct, SIGNAL('triggered()'), self.__toggleLeftSidebar) 1628 self.lsbAct.triggered.connect(self.__toggleLeftSidebar)
1638 self.actions.append(self.lsbAct) 1629 self.actions.append(self.lsbAct)
1639 1630
1640 self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'), 1631 self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'),
1641 self.trUtf8('&Bottom Sidebar'), 0, 0, self, 1632 self.trUtf8('&Bottom Sidebar'), 0, 0, self,
1642 'bottom_sidebar', True) 1633 'bottom_sidebar', True)
1644 self.bsbAct.setWhatsThis(self.trUtf8( 1635 self.bsbAct.setWhatsThis(self.trUtf8(
1645 """<b>Toggle the bottom sidebar window</b>""" 1636 """<b>Toggle the bottom sidebar window</b>"""
1646 """<p>If the bottom sidebar window is hidden then display it.""" 1637 """<p>If the bottom sidebar window is hidden then display it."""
1647 """ If it is displayed then close it.</p>""" 1638 """ If it is displayed then close it.</p>"""
1648 )) 1639 ))
1649 self.connect(self.bsbAct, SIGNAL('triggered()'), self.__toggleBottomSidebar) 1640 self.bsbAct.triggered.connect(self.__toggleBottomSidebar)
1650 self.actions.append(self.bsbAct) 1641 self.actions.append(self.bsbAct)
1651 1642
1652 self.cooperationViewerAct = E5Action(self.trUtf8('Cooperation'), 1643 self.cooperationViewerAct = E5Action(self.trUtf8('Cooperation'),
1653 self.trUtf8('&Cooperation'), 0, 0, self, 'cooperation_viewer', True) 1644 self.trUtf8('&Cooperation'), 0, 0, self, 'cooperation_viewer', True)
1654 self.cooperationViewerAct.setStatusTip(self.trUtf8( 1645 self.cooperationViewerAct.setStatusTip(self.trUtf8(
1656 self.cooperationViewerAct.setWhatsThis(self.trUtf8( 1647 self.cooperationViewerAct.setWhatsThis(self.trUtf8(
1657 """<b>Toggle the Cooperation window</b>""" 1648 """<b>Toggle the Cooperation window</b>"""
1658 """<p>If the Cooperation window is hidden then display it.""" 1649 """<p>If the Cooperation window is hidden then display it."""
1659 """ If it is displayed then close it.</p>""" 1650 """ If it is displayed then close it.</p>"""
1660 )) 1651 ))
1661 self.connect(self.cooperationViewerAct, SIGNAL('triggered()'), 1652 self.cooperationViewerAct.triggered.connect(self.__toggleCooperationViewer)
1662 self.__toggleCooperationViewer)
1663 self.actions.append(self.cooperationViewerAct) 1653 self.actions.append(self.cooperationViewerAct)
1664 1654
1665 self.cooperationViewerActivateAct = E5Action( 1655 self.cooperationViewerActivateAct = E5Action(
1666 self.trUtf8('Activate Cooperation-Viewer'), 1656 self.trUtf8('Activate Cooperation-Viewer'),
1667 self.trUtf8('Activate Cooperation-Viewer'), 1657 self.trUtf8('Activate Cooperation-Viewer'),
1668 QKeySequence(self.trUtf8("Alt+Shift+O")), 1658 QKeySequence(self.trUtf8("Alt+Shift+O")),
1669 0, self, 1659 0, self,
1670 'cooperation_viewer_activate', True) 1660 'cooperation_viewer_activate', True)
1671 self.connect(self.cooperationViewerActivateAct, SIGNAL('triggered()'), 1661 self.cooperationViewerActivateAct.triggered.connect(self.__activateCooperationViewer)
1672 self.__activateCooperationViewer)
1673 self.actions.append(self.cooperationViewerActivateAct) 1662 self.actions.append(self.cooperationViewerActivateAct)
1674 self.addAction(self.cooperationViewerActivateAct) 1663 self.addAction(self.cooperationViewerActivateAct)
1675 1664
1676 self.symbolsViewerAct = E5Action(self.trUtf8('Symbols'), 1665 self.symbolsViewerAct = E5Action(self.trUtf8('Symbols'),
1677 self.trUtf8('&Symbols'), 0, 0, self, 'symbols_viewer', True) 1666 self.trUtf8('&Symbols'), 0, 0, self, 'symbols_viewer', True)
1680 self.symbolsViewerAct.setWhatsThis(self.trUtf8( 1669 self.symbolsViewerAct.setWhatsThis(self.trUtf8(
1681 """<b>Toggle the Symbols window</b>""" 1670 """<b>Toggle the Symbols window</b>"""
1682 """<p>If the Symbols window is hidden then display it.""" 1671 """<p>If the Symbols window is hidden then display it."""
1683 """ If it is displayed then close it.</p>""" 1672 """ If it is displayed then close it.</p>"""
1684 )) 1673 ))
1685 self.connect(self.symbolsViewerAct, SIGNAL('triggered()'), 1674 self.symbolsViewerAct.triggered.connect(self.__toggleSymbolsViewer)
1686 self.__toggleSymbolsViewer)
1687 self.actions.append(self.symbolsViewerAct) 1675 self.actions.append(self.symbolsViewerAct)
1688 1676
1689 self.symbolsViewerActivateAct = E5Action( 1677 self.symbolsViewerActivateAct = E5Action(
1690 self.trUtf8('Activate Symbols-Viewer'), 1678 self.trUtf8('Activate Symbols-Viewer'),
1691 self.trUtf8('Activate Symbols-Viewer'), 1679 self.trUtf8('Activate Symbols-Viewer'),
1692 QKeySequence(self.trUtf8("Alt+Shift+Y")), 1680 QKeySequence(self.trUtf8("Alt+Shift+Y")),
1693 0, self, 1681 0, self,
1694 'symbols_viewer_activate', True) 1682 'symbols_viewer_activate', True)
1695 self.connect(self.symbolsViewerActivateAct, SIGNAL('triggered()'), 1683 self.symbolsViewerActivateAct.triggered.connect(self.__activateSymbolsViewer)
1696 self.__activateSymbolsViewer)
1697 self.actions.append(self.symbolsViewerActivateAct) 1684 self.actions.append(self.symbolsViewerActivateAct)
1698 self.addAction(self.symbolsViewerActivateAct) 1685 self.addAction(self.symbolsViewerActivateAct)
1699 1686
1700 self.numbersViewerAct = E5Action(self.trUtf8('Numbers'), 1687 self.numbersViewerAct = E5Action(self.trUtf8('Numbers'),
1701 self.trUtf8('&Numbers'), 0, 0, self, 'numbers_viewer', True) 1688 self.trUtf8('&Numbers'), 0, 0, self, 'numbers_viewer', True)
1704 self.numbersViewerAct.setWhatsThis(self.trUtf8( 1691 self.numbersViewerAct.setWhatsThis(self.trUtf8(
1705 """<b>Toggle the Numbers window</b>""" 1692 """<b>Toggle the Numbers window</b>"""
1706 """<p>If the Numbers window is hidden then display it.""" 1693 """<p>If the Numbers window is hidden then display it."""
1707 """ If it is displayed then close it.</p>""" 1694 """ If it is displayed then close it.</p>"""
1708 )) 1695 ))
1709 self.connect(self.numbersViewerAct, SIGNAL('triggered()'), 1696 self.numbersViewerAct.triggered.connect(self.__toggleNumbersViewer)
1710 self.__toggleNumbersViewer)
1711 self.actions.append(self.numbersViewerAct) 1697 self.actions.append(self.numbersViewerAct)
1712 1698
1713 self.numbersViewerActivateAct = E5Action( 1699 self.numbersViewerActivateAct = E5Action(
1714 self.trUtf8('Activate Numbers-Viewer'), 1700 self.trUtf8('Activate Numbers-Viewer'),
1715 self.trUtf8('Activate Numbers-Viewer'), 1701 self.trUtf8('Activate Numbers-Viewer'),
1716 QKeySequence(self.trUtf8("Alt+Shift+B")), 1702 QKeySequence(self.trUtf8("Alt+Shift+B")),
1717 0, self, 1703 0, self,
1718 'numbers_viewer_activate', True) 1704 'numbers_viewer_activate', True)
1719 self.connect(self.numbersViewerActivateAct, SIGNAL('triggered()'), 1705 self.numbersViewerActivateAct.triggered.connect(self.__activateNumbersViewer)
1720 self.__activateNumbersViewer)
1721 self.actions.append(self.numbersViewerActivateAct) 1706 self.actions.append(self.numbersViewerActivateAct)
1722 self.addAction(self.numbersViewerActivateAct) 1707 self.addAction(self.numbersViewerActivateAct)
1723 1708
1724 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), 1709 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'),
1725 UI.PixmapCache.getIcon("whatsThis.png"), 1710 UI.PixmapCache.getIcon("whatsThis.png"),
1733 """ 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"""
1734 """ 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"""
1735 """ feature can be accessed using the context help button in the""" 1720 """ feature can be accessed using the context help button in the"""
1736 """ titlebar.</p>""" 1721 """ titlebar.</p>"""
1737 )) 1722 ))
1738 self.connect(self.whatsThisAct, SIGNAL('triggered()'), self.__whatsThis) 1723 self.whatsThisAct.triggered.connect(self.__whatsThis)
1739 self.actions.append(self.whatsThisAct) 1724 self.actions.append(self.whatsThisAct)
1740 1725
1741 self.helpviewerAct = E5Action(self.trUtf8('Helpviewer'), 1726 self.helpviewerAct = E5Action(self.trUtf8('Helpviewer'),
1742 UI.PixmapCache.getIcon("help.png"), 1727 UI.PixmapCache.getIcon("help.png"),
1743 self.trUtf8('&Helpviewer...'), 1728 self.trUtf8('&Helpviewer...'),
1751 """ capability to navigate to links, set bookmarks, print the displayed""" 1736 """ capability to navigate to links, set bookmarks, print the displayed"""
1752 """ 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"""
1753 """ 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"""
1754 """ in the Qt help collection.</p>""" 1739 """ in the Qt help collection.</p>"""
1755 )) 1740 ))
1756 self.connect(self.helpviewerAct, SIGNAL('triggered()'), self.__helpViewer) 1741 self.helpviewerAct.triggered.connect(self.__helpViewer)
1757 self.actions.append(self.helpviewerAct) 1742 self.actions.append(self.helpviewerAct)
1758 1743
1759 self.__initQtDocActions() 1744 self.__initQtDocActions()
1760 self.__initPythonDocAction() 1745 self.__initPythonDocAction()
1761 self.__initEricDocAction() 1746 self.__initEricDocAction()
1766 self.versionAct.setStatusTip(self.trUtf8('Display version information')) 1751 self.versionAct.setStatusTip(self.trUtf8('Display version information'))
1767 self.versionAct.setWhatsThis(self.trUtf8( 1752 self.versionAct.setWhatsThis(self.trUtf8(
1768 """<b>Show Versions</b>""" 1753 """<b>Show Versions</b>"""
1769 """<p>Display version information.</p>""" 1754 """<p>Display version information.</p>"""
1770 )) 1755 ))
1771 self.connect(self.versionAct, SIGNAL('triggered()'), self.__showVersions) 1756 self.versionAct.triggered.connect(self.__showVersions)
1772 self.actions.append(self.versionAct) 1757 self.actions.append(self.versionAct)
1773 1758
1774 self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'), 1759 self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'),
1775 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') 1760 self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates')
1776 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) 1761 self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates'))
1777 self.checkUpdateAct.setWhatsThis(self.trUtf8( 1762 self.checkUpdateAct.setWhatsThis(self.trUtf8(
1778 """<b>Check for Updates...</b>""" 1763 """<b>Check for Updates...</b>"""
1779 """<p>Checks the internet for updates of eric5.</p>""" 1764 """<p>Checks the internet for updates of eric5.</p>"""
1780 )) 1765 ))
1781 self.connect(self.checkUpdateAct, SIGNAL('triggered()'), self.performVersionCheck) 1766 self.checkUpdateAct.triggered.connect(self.performVersionCheck)
1782 self.actions.append(self.checkUpdateAct) 1767 self.actions.append(self.checkUpdateAct)
1783 1768
1784 self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), 1769 self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'),
1785 self.trUtf8('Show &downloadable versions...'), 1770 self.trUtf8('Show &downloadable versions...'),
1786 0, 0, self, 'show_downloadable_versions') 1771 0, 0, self, 'show_downloadable_versions')
1789 self.showVersionsAct.setWhatsThis(self.trUtf8( 1774 self.showVersionsAct.setWhatsThis(self.trUtf8(
1790 """<b>Show downloadable versions...</b>""" 1775 """<b>Show downloadable versions...</b>"""
1791 """<p>Shows the eric5 versions available for download """ 1776 """<p>Shows the eric5 versions available for download """
1792 """from the internet.</p>""" 1777 """from the internet.</p>"""
1793 )) 1778 ))
1794 self.connect(self.showVersionsAct, SIGNAL('triggered()'), 1779 self.showVersionsAct.triggered.connect(self.showAvailableVersionsInfo)
1795 self.showAvailableVersionsInfo)
1796 self.actions.append(self.showVersionsAct) 1780 self.actions.append(self.showVersionsAct)
1797 1781
1798 self.reportBugAct = E5Action(self.trUtf8('Report Bug'), 1782 self.reportBugAct = E5Action(self.trUtf8('Report Bug'),
1799 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') 1783 self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug')
1800 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) 1784 self.reportBugAct.setStatusTip(self.trUtf8('Report a bug'))
1801 self.reportBugAct.setWhatsThis(self.trUtf8( 1785 self.reportBugAct.setWhatsThis(self.trUtf8(
1802 """<b>Report Bug...</b>""" 1786 """<b>Report Bug...</b>"""
1803 """<p>Opens a dialog to report a bug.</p>""" 1787 """<p>Opens a dialog to report a bug.</p>"""
1804 )) 1788 ))
1805 self.connect(self.reportBugAct, SIGNAL('triggered()'), self.__reportBug) 1789 self.reportBugAct.triggered.connect(self.__reportBug)
1806 self.actions.append(self.reportBugAct) 1790 self.actions.append(self.reportBugAct)
1807 1791
1808 self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'), 1792 self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'),
1809 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') 1793 self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature')
1810 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) 1794 self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request'))
1811 self.requestFeatureAct.setWhatsThis(self.trUtf8( 1795 self.requestFeatureAct.setWhatsThis(self.trUtf8(
1812 """<b>Request Feature...</b>""" 1796 """<b>Request Feature...</b>"""
1813 """<p>Opens a dialog to send a feature request.</p>""" 1797 """<p>Opens a dialog to send a feature request.</p>"""
1814 )) 1798 ))
1815 self.connect(self.requestFeatureAct, SIGNAL('triggered()'), self.__requestFeature) 1799 self.requestFeatureAct.triggered.connect(self.__requestFeature)
1816 self.actions.append(self.requestFeatureAct) 1800 self.actions.append(self.requestFeatureAct)
1817 1801
1818 self.utActGrp = createActionGroup(self) 1802 self.utActGrp = createActionGroup(self)
1819 1803
1820 self.utDialogAct = E5Action(self.trUtf8('Unittest'), 1804 self.utDialogAct = E5Action(self.trUtf8('Unittest'),
1825 self.utDialogAct.setWhatsThis(self.trUtf8( 1809 self.utDialogAct.setWhatsThis(self.trUtf8(
1826 """<b>Unittest</b>""" 1810 """<b>Unittest</b>"""
1827 """<p>Perform unit tests. The dialog gives you the""" 1811 """<p>Perform unit tests. The dialog gives you the"""
1828 """ ability to select and run a unittest suite.</p>""" 1812 """ ability to select and run a unittest suite.</p>"""
1829 )) 1813 ))
1830 self.connect(self.utDialogAct, SIGNAL('triggered()'), self.__unittest) 1814 self.utDialogAct.triggered.connect(self.__unittest)
1831 self.actions.append(self.utDialogAct) 1815 self.actions.append(self.utDialogAct)
1832 1816
1833 self.utRestartAct = E5Action(self.trUtf8('Unittest Restart'), 1817 self.utRestartAct = E5Action(self.trUtf8('Unittest Restart'),
1834 UI.PixmapCache.getIcon("unittestRestart.png"), 1818 UI.PixmapCache.getIcon("unittestRestart.png"),
1835 self.trUtf8('&Restart Unittest...'), 1819 self.trUtf8('&Restart Unittest...'),
1837 self.utRestartAct.setStatusTip(self.trUtf8('Restart last unittest')) 1821 self.utRestartAct.setStatusTip(self.trUtf8('Restart last unittest'))
1838 self.utRestartAct.setWhatsThis(self.trUtf8( 1822 self.utRestartAct.setWhatsThis(self.trUtf8(
1839 """<b>Restart Unittest</b>""" 1823 """<b>Restart Unittest</b>"""
1840 """<p>Restart the unittest performed last.</p>""" 1824 """<p>Restart the unittest performed last.</p>"""
1841 )) 1825 ))
1842 self.connect(self.utRestartAct, SIGNAL('triggered()'), self.__unittestRestart) 1826 self.utRestartAct.triggered.connect(self.__unittestRestart)
1843 self.utRestartAct.setEnabled(False) 1827 self.utRestartAct.setEnabled(False)
1844 self.actions.append(self.utRestartAct) 1828 self.actions.append(self.utRestartAct)
1845 1829
1846 self.utScriptAct = E5Action(self.trUtf8('Unittest Script'), 1830 self.utScriptAct = E5Action(self.trUtf8('Unittest Script'),
1847 UI.PixmapCache.getIcon("unittestScript.png"), 1831 UI.PixmapCache.getIcon("unittestScript.png"),
1850 self.utScriptAct.setStatusTip(self.trUtf8('Run unittest with current script')) 1834 self.utScriptAct.setStatusTip(self.trUtf8('Run unittest with current script'))
1851 self.utScriptAct.setWhatsThis(self.trUtf8( 1835 self.utScriptAct.setWhatsThis(self.trUtf8(
1852 """<b>Unittest Script</b>""" 1836 """<b>Unittest Script</b>"""
1853 """<p>Run unittest with current script.</p>""" 1837 """<p>Run unittest with current script.</p>"""
1854 )) 1838 ))
1855 self.connect(self.utScriptAct, SIGNAL('triggered()'), self.__unittestScript) 1839 self.utScriptAct.triggered.connect(self.__unittestScript)
1856 self.utScriptAct.setEnabled(False) 1840 self.utScriptAct.setEnabled(False)
1857 self.actions.append(self.utScriptAct) 1841 self.actions.append(self.utScriptAct)
1858 1842
1859 self.utProjectAct = E5Action(self.trUtf8('Unittest Project'), 1843 self.utProjectAct = E5Action(self.trUtf8('Unittest Project'),
1860 UI.PixmapCache.getIcon("unittestProject.png"), 1844 UI.PixmapCache.getIcon("unittestProject.png"),
1863 self.utProjectAct.setStatusTip(self.trUtf8('Run unittest with current project')) 1847 self.utProjectAct.setStatusTip(self.trUtf8('Run unittest with current project'))
1864 self.utProjectAct.setWhatsThis(self.trUtf8( 1848 self.utProjectAct.setWhatsThis(self.trUtf8(
1865 """<b>Unittest Project</b>""" 1849 """<b>Unittest Project</b>"""
1866 """<p>Run unittest with current project.</p>""" 1850 """<p>Run unittest with current project.</p>"""
1867 )) 1851 ))
1868 self.connect(self.utProjectAct, SIGNAL('triggered()'), self.__unittestProject) 1852 self.utProjectAct.triggered.connect(self.__unittestProject)
1869 self.utProjectAct.setEnabled(False) 1853 self.utProjectAct.setEnabled(False)
1870 self.actions.append(self.utProjectAct) 1854 self.actions.append(self.utProjectAct)
1871 1855
1872 # check for Qt4 designer and linguist 1856 # check for Qt4 designer and linguist
1873 designerExe = Utilities.isWindowsPlatform() and \ 1857 designerExe = Utilities.isWindowsPlatform() and \
1880 self.designer4Act.setStatusTip(self.trUtf8('Start Qt-Designer 4')) 1864 self.designer4Act.setStatusTip(self.trUtf8('Start Qt-Designer 4'))
1881 self.designer4Act.setWhatsThis(self.trUtf8( 1865 self.designer4Act.setWhatsThis(self.trUtf8(
1882 """<b>Qt-Designer 4</b>""" 1866 """<b>Qt-Designer 4</b>"""
1883 """<p>Start Qt-Designer 4.</p>""" 1867 """<p>Start Qt-Designer 4.</p>"""
1884 )) 1868 ))
1885 self.connect(self.designer4Act, SIGNAL('triggered()'), self.__designer4) 1869 self.designer4Act.triggered.connect(self.__designer4)
1886 self.actions.append(self.designer4Act) 1870 self.actions.append(self.designer4Act)
1887 else: 1871 else:
1888 self.designer4Act = None 1872 self.designer4Act = None
1889 1873
1890 linguistExe = Utilities.isWindowsPlatform() and \ 1874 linguistExe = Utilities.isWindowsPlatform() and \
1897 self.linguist4Act.setStatusTip(self.trUtf8('Start Qt-Linguist 4')) 1881 self.linguist4Act.setStatusTip(self.trUtf8('Start Qt-Linguist 4'))
1898 self.linguist4Act.setWhatsThis(self.trUtf8( 1882 self.linguist4Act.setWhatsThis(self.trUtf8(
1899 """<b>Qt-Linguist 4</b>""" 1883 """<b>Qt-Linguist 4</b>"""
1900 """<p>Start Qt-Linguist 4.</p>""" 1884 """<p>Start Qt-Linguist 4.</p>"""
1901 )) 1885 ))
1902 self.connect(self.linguist4Act, SIGNAL('triggered()'), self.__linguist4) 1886 self.linguist4Act.triggered.connect(self.__linguist4)
1903 self.actions.append(self.linguist4Act) 1887 self.actions.append(self.linguist4Act)
1904 else: 1888 else:
1905 self.linguist4Act = None 1889 self.linguist4Act = None
1906 1890
1907 self.uipreviewerAct = E5Action(self.trUtf8('UI Previewer'), 1891 self.uipreviewerAct = E5Action(self.trUtf8('UI Previewer'),
1910 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) 1894 self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer'))
1911 self.uipreviewerAct.setWhatsThis(self.trUtf8( 1895 self.uipreviewerAct.setWhatsThis(self.trUtf8(
1912 """<b>UI Previewer</b>""" 1896 """<b>UI Previewer</b>"""
1913 """<p>Start the UI Previewer.</p>""" 1897 """<p>Start the UI Previewer.</p>"""
1914 )) 1898 ))
1915 self.connect(self.uipreviewerAct, SIGNAL('triggered()'), self.__UIPreviewer) 1899 self.uipreviewerAct.triggered.connect(self.__UIPreviewer)
1916 self.actions.append(self.uipreviewerAct) 1900 self.actions.append(self.uipreviewerAct)
1917 1901
1918 self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'), 1902 self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'),
1919 UI.PixmapCache.getIcon("trPreviewer.png"), 1903 UI.PixmapCache.getIcon("trPreviewer.png"),
1920 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') 1904 self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer')
1921 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) 1905 self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer'))
1922 self.trpreviewerAct.setWhatsThis(self.trUtf8( 1906 self.trpreviewerAct.setWhatsThis(self.trUtf8(
1923 """<b>Translations Previewer</b>""" 1907 """<b>Translations Previewer</b>"""
1924 """<p>Start the Translations Previewer.</p>""" 1908 """<p>Start the Translations Previewer.</p>"""
1925 )) 1909 ))
1926 self.connect(self.trpreviewerAct, SIGNAL('triggered()'), self.__TRPreviewer) 1910 self.trpreviewerAct.triggered.connect(self.__TRPreviewer)
1927 self.actions.append(self.trpreviewerAct) 1911 self.actions.append(self.trpreviewerAct)
1928 1912
1929 self.diffAct = E5Action(self.trUtf8('Compare Files'), 1913 self.diffAct = E5Action(self.trUtf8('Compare Files'),
1930 UI.PixmapCache.getIcon("diffFiles.png"), 1914 UI.PixmapCache.getIcon("diffFiles.png"),
1931 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') 1915 self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files')
1932 self.diffAct.setStatusTip(self.trUtf8('Compare two files')) 1916 self.diffAct.setStatusTip(self.trUtf8('Compare two files'))
1933 self.diffAct.setWhatsThis(self.trUtf8( 1917 self.diffAct.setWhatsThis(self.trUtf8(
1934 """<b>Compare Files</b>""" 1918 """<b>Compare Files</b>"""
1935 """<p>Open a dialog to compare two files.</p>""" 1919 """<p>Open a dialog to compare two files.</p>"""
1936 )) 1920 ))
1937 self.connect(self.diffAct, SIGNAL('triggered()'), self.__compareFiles) 1921 self.diffAct.triggered.connect(self.__compareFiles)
1938 self.actions.append(self.diffAct) 1922 self.actions.append(self.diffAct)
1939 1923
1940 self.compareAct = E5Action(self.trUtf8('Compare Files side by side'), 1924 self.compareAct = E5Action(self.trUtf8('Compare Files side by side'),
1941 UI.PixmapCache.getIcon("compareFiles.png"), 1925 UI.PixmapCache.getIcon("compareFiles.png"),
1942 self.trUtf8('Compare Files &side by side...'), 1926 self.trUtf8('Compare Files &side by side...'),
1945 self.compareAct.setWhatsThis(self.trUtf8( 1929 self.compareAct.setWhatsThis(self.trUtf8(
1946 """<b>Compare Files side by side</b>""" 1930 """<b>Compare Files side by side</b>"""
1947 """<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"""
1948 """ side by side.</p>""" 1932 """ side by side.</p>"""
1949 )) 1933 ))
1950 self.connect(self.compareAct, SIGNAL('triggered()'), self.__compareFilesSbs) 1934 self.compareAct.triggered.connect(self.__compareFilesSbs)
1951 self.actions.append(self.compareAct) 1935 self.actions.append(self.compareAct)
1952 1936
1953 self.sqlBrowserAct = E5Action(self.trUtf8('SQL Browser'), 1937 self.sqlBrowserAct = E5Action(self.trUtf8('SQL Browser'),
1954 UI.PixmapCache.getIcon("sqlBrowser.png"), 1938 UI.PixmapCache.getIcon("sqlBrowser.png"),
1955 self.trUtf8('SQL &Browser...'), 1939 self.trUtf8('SQL &Browser...'),
1957 self.sqlBrowserAct.setStatusTip(self.trUtf8('Browse a SQL database')) 1941 self.sqlBrowserAct.setStatusTip(self.trUtf8('Browse a SQL database'))
1958 self.sqlBrowserAct.setWhatsThis(self.trUtf8( 1942 self.sqlBrowserAct.setWhatsThis(self.trUtf8(
1959 """<b>SQL Browser</b>""" 1943 """<b>SQL Browser</b>"""
1960 """<p>Browse a SQL database.</p>""" 1944 """<p>Browse a SQL database.</p>"""
1961 )) 1945 ))
1962 self.connect(self.sqlBrowserAct, SIGNAL('triggered()'), self.__sqlBrowser) 1946 self.sqlBrowserAct.triggered.connect(self.__sqlBrowser)
1963 self.actions.append(self.sqlBrowserAct) 1947 self.actions.append(self.sqlBrowserAct)
1964 1948
1965 self.miniEditorAct = E5Action(self.trUtf8('Mini Editor'), 1949 self.miniEditorAct = E5Action(self.trUtf8('Mini Editor'),
1966 UI.PixmapCache.getIcon("editor.png"), 1950 UI.PixmapCache.getIcon("editor.png"),
1967 self.trUtf8('Mini &Editor...'), 1951 self.trUtf8('Mini &Editor...'),
1969 self.miniEditorAct.setStatusTip(self.trUtf8('Mini Editor')) 1953 self.miniEditorAct.setStatusTip(self.trUtf8('Mini Editor'))
1970 self.miniEditorAct.setWhatsThis(self.trUtf8( 1954 self.miniEditorAct.setWhatsThis(self.trUtf8(
1971 """<b>Mini Editor</b>""" 1955 """<b>Mini Editor</b>"""
1972 """<p>Open a dialog with a simplified editor.</p>""" 1956 """<p>Open a dialog with a simplified editor.</p>"""
1973 )) 1957 ))
1974 self.connect(self.miniEditorAct, SIGNAL('triggered()'), self.__openMiniEditor) 1958 self.miniEditorAct.triggered.connect(self.__openMiniEditor)
1975 self.actions.append(self.miniEditorAct) 1959 self.actions.append(self.miniEditorAct)
1976 1960
1977 self.webBrowserAct = E5Action(self.trUtf8('Web Browser'), 1961 self.webBrowserAct = E5Action(self.trUtf8('Web Browser'),
1978 UI.PixmapCache.getIcon("ericWeb.png"), 1962 UI.PixmapCache.getIcon("ericWeb.png"),
1979 self.trUtf8('&Web Browser...'), 1963 self.trUtf8('&Web Browser...'),
1981 self.webBrowserAct.setStatusTip(self.trUtf8('Start the eric5 Web Browser')) 1965 self.webBrowserAct.setStatusTip(self.trUtf8('Start the eric5 Web Browser'))
1982 self.webBrowserAct.setWhatsThis(self.trUtf8( 1966 self.webBrowserAct.setWhatsThis(self.trUtf8(
1983 """<b>Web Browser</b>""" 1967 """<b>Web Browser</b>"""
1984 """<p>Browse the Internet with the eric5 Web Browser.</p>""" 1968 """<p>Browse the Internet with the eric5 Web Browser.</p>"""
1985 )) 1969 ))
1986 self.connect(self.webBrowserAct, SIGNAL('triggered()'), self.__startWebBrowser) 1970 self.webBrowserAct.triggered.connect(self.__startWebBrowser)
1987 self.actions.append(self.webBrowserAct) 1971 self.actions.append(self.webBrowserAct)
1988 1972
1989 self.iconEditorAct = E5Action(self.trUtf8('Icon Editor'), 1973 self.iconEditorAct = E5Action(self.trUtf8('Icon Editor'),
1990 UI.PixmapCache.getIcon("iconEditor.png"), 1974 UI.PixmapCache.getIcon("iconEditor.png"),
1991 self.trUtf8('&Icon Editor...'), 1975 self.trUtf8('&Icon Editor...'),
1993 self.iconEditorAct.setStatusTip(self.trUtf8('Start the eric5 Icon Editor')) 1977 self.iconEditorAct.setStatusTip(self.trUtf8('Start the eric5 Icon Editor'))
1994 self.iconEditorAct.setWhatsThis(self.trUtf8( 1978 self.iconEditorAct.setWhatsThis(self.trUtf8(
1995 """<b>Icon Editor</b>""" 1979 """<b>Icon Editor</b>"""
1996 """<p>Starts the eric5 Icon Editor for editing simple icons.</p>""" 1980 """<p>Starts the eric5 Icon Editor for editing simple icons.</p>"""
1997 )) 1981 ))
1998 self.connect(self.iconEditorAct, SIGNAL('triggered()'), self.__editPixmap) 1982 self.iconEditorAct.triggered.connect(self.__editPixmap)
1999 self.actions.append(self.iconEditorAct) 1983 self.actions.append(self.iconEditorAct)
2000 1984
2001 self.prefAct = E5Action(self.trUtf8('Preferences'), 1985 self.prefAct = E5Action(self.trUtf8('Preferences'),
2002 UI.PixmapCache.getIcon("configure.png"), 1986 UI.PixmapCache.getIcon("configure.png"),
2003 self.trUtf8('&Preferences...'), 0, 0, self, 'preferences') 1987 self.trUtf8('&Preferences...'), 0, 0, self, 'preferences')
2005 self.prefAct.setWhatsThis(self.trUtf8( 1989 self.prefAct.setWhatsThis(self.trUtf8(
2006 """<b>Preferences</b>""" 1990 """<b>Preferences</b>"""
2007 """<p>Set the configuration items of the application""" 1991 """<p>Set the configuration items of the application"""
2008 """ with your prefered values.</p>""" 1992 """ with your prefered values.</p>"""
2009 )) 1993 ))
2010 self.connect(self.prefAct, SIGNAL('triggered()'), self.showPreferences) 1994 self.prefAct.triggered.connect(self.showPreferences)
2011 self.actions.append(self.prefAct) 1995 self.actions.append(self.prefAct)
2012 1996
2013 self.prefExportAct = E5Action(self.trUtf8('Export Preferences'), 1997 self.prefExportAct = E5Action(self.trUtf8('Export Preferences'),
2014 UI.PixmapCache.getIcon("configureExport.png"), 1998 UI.PixmapCache.getIcon("configureExport.png"),
2015 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') 1999 self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences')
2016 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) 2000 self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration'))
2017 self.prefExportAct.setWhatsThis(self.trUtf8( 2001 self.prefExportAct.setWhatsThis(self.trUtf8(
2018 """<b>Export Preferences</b>""" 2002 """<b>Export Preferences</b>"""
2019 """<p>Export the current configuration to a file.</p>""" 2003 """<p>Export the current configuration to a file.</p>"""
2020 )) 2004 ))
2021 self.connect(self.prefExportAct, SIGNAL('triggered()'), self.__exportPreferences) 2005 self.prefExportAct.triggered.connect(self.__exportPreferences)
2022 self.actions.append(self.prefExportAct) 2006 self.actions.append(self.prefExportAct)
2023 2007
2024 self.prefImportAct = E5Action(self.trUtf8('Import Preferences'), 2008 self.prefImportAct = E5Action(self.trUtf8('Import Preferences'),
2025 UI.PixmapCache.getIcon("configureImport.png"), 2009 UI.PixmapCache.getIcon("configureImport.png"),
2026 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') 2010 self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences')
2028 'Import a previously exported configuration')) 2012 'Import a previously exported configuration'))
2029 self.prefImportAct.setWhatsThis(self.trUtf8( 2013 self.prefImportAct.setWhatsThis(self.trUtf8(
2030 """<b>Import Preferences</b>""" 2014 """<b>Import Preferences</b>"""
2031 """<p>Import a previously exported configuration.</p>""" 2015 """<p>Import a previously exported configuration.</p>"""
2032 )) 2016 ))
2033 self.connect(self.prefImportAct, SIGNAL('triggered()'), self.__importPreferences) 2017 self.prefImportAct.triggered.connect(self.__importPreferences)
2034 self.actions.append(self.prefImportAct) 2018 self.actions.append(self.prefImportAct)
2035 2019
2036 self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'), 2020 self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'),
2037 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') 2021 self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis')
2038 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) 2022 self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information'))
2039 self.reloadAPIsAct.setWhatsThis(self.trUtf8( 2023 self.reloadAPIsAct.setWhatsThis(self.trUtf8(
2040 """<b>Reload APIs</b>""" 2024 """<b>Reload APIs</b>"""
2041 """<p>Reload the API information.</p>""" 2025 """<p>Reload the API information.</p>"""
2042 )) 2026 ))
2043 self.connect(self.reloadAPIsAct, SIGNAL('triggered()'), self.__reloadAPIs) 2027 self.reloadAPIsAct.triggered.connect(self.__reloadAPIs)
2044 self.actions.append(self.reloadAPIsAct) 2028 self.actions.append(self.reloadAPIsAct)
2045 2029
2046 self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'), 2030 self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'),
2047 UI.PixmapCache.getIcon("showPrograms.png"), 2031 UI.PixmapCache.getIcon("showPrograms.png"),
2048 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') 2032 self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools')
2050 self.showExternalToolsAct.setWhatsThis(self.trUtf8( 2034 self.showExternalToolsAct.setWhatsThis(self.trUtf8(
2051 """<b>Show external tools</b>""" 2035 """<b>Show external tools</b>"""
2052 """<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"""
2053 """ extenal tools used by eric5.</p>""" 2037 """ extenal tools used by eric5.</p>"""
2054 )) 2038 ))
2055 self.connect(self.showExternalToolsAct, SIGNAL('triggered()'), 2039 self.showExternalToolsAct.triggered.connect(self.__showExternalTools)
2056 self.__showExternalTools)
2057 self.actions.append(self.showExternalToolsAct) 2040 self.actions.append(self.showExternalToolsAct)
2058 2041
2059 self.configViewProfilesAct = E5Action(self.trUtf8('View Profiles'), 2042 self.configViewProfilesAct = E5Action(self.trUtf8('View Profiles'),
2060 UI.PixmapCache.getIcon("configureViewProfiles.png"), 2043 UI.PixmapCache.getIcon("configureViewProfiles.png"),
2061 self.trUtf8('&View Profiles...'), 0, 0, self, 'view_profiles') 2044 self.trUtf8('&View Profiles...'), 0, 0, self, 'view_profiles')
2064 """<b>View Profiles</b>""" 2047 """<b>View Profiles</b>"""
2065 """<p>Configure the view profiles. With this dialog you may""" 2048 """<p>Configure the view profiles. With this dialog you may"""
2066 """ set the visibility of the various windows for the predetermined""" 2049 """ set the visibility of the various windows for the predetermined"""
2067 """ view profiles.</p>""" 2050 """ view profiles.</p>"""
2068 )) 2051 ))
2069 self.connect(self.configViewProfilesAct, SIGNAL('triggered()'), 2052 self.configViewProfilesAct.triggered.connect(self.__configViewProfiles)
2070 self.__configViewProfiles)
2071 self.actions.append(self.configViewProfilesAct) 2053 self.actions.append(self.configViewProfilesAct)
2072 2054
2073 self.configToolBarsAct = E5Action(self.trUtf8('Toolbars'), 2055 self.configToolBarsAct = E5Action(self.trUtf8('Toolbars'),
2074 UI.PixmapCache.getIcon("toolbarsConfigure.png"), 2056 UI.PixmapCache.getIcon("toolbarsConfigure.png"),
2075 self.trUtf8('Tool&bars...'), 0, 0, self, 'configure_toolbars') 2057 self.trUtf8('Tool&bars...'), 0, 0, self, 'configure_toolbars')
2078 """<b>Toolbars</b>""" 2060 """<b>Toolbars</b>"""
2079 """<p>Configure the toolbars. With this dialog you may""" 2061 """<p>Configure the toolbars. With this dialog you may"""
2080 """ change the actions shown on the various toolbars and""" 2062 """ change the actions shown on the various toolbars and"""
2081 """ define your own toolbars.</p>""" 2063 """ define your own toolbars.</p>"""
2082 )) 2064 ))
2083 self.connect(self.configToolBarsAct, SIGNAL('triggered()'), self.__configToolBars) 2065 self.configToolBarsAct.triggered.connect(self.__configToolBars)
2084 self.actions.append(self.configToolBarsAct) 2066 self.actions.append(self.configToolBarsAct)
2085 2067
2086 self.shortcutsAct = E5Action(self.trUtf8('Keyboard Shortcuts'), 2068 self.shortcutsAct = E5Action(self.trUtf8('Keyboard Shortcuts'),
2087 UI.PixmapCache.getIcon("configureShortcuts.png"), 2069 UI.PixmapCache.getIcon("configureShortcuts.png"),
2088 self.trUtf8('Keyboard &Shortcuts...'), 0, 0, self, 'keyboard_shortcuts') 2070 self.trUtf8('Keyboard &Shortcuts...'), 0, 0, self, 'keyboard_shortcuts')
2090 self.shortcutsAct.setWhatsThis(self.trUtf8( 2072 self.shortcutsAct.setWhatsThis(self.trUtf8(
2091 """<b>Keyboard Shortcuts</b>""" 2073 """<b>Keyboard Shortcuts</b>"""
2092 """<p>Set the keyboard shortcuts of the application""" 2074 """<p>Set the keyboard shortcuts of the application"""
2093 """ with your prefered values.</p>""" 2075 """ with your prefered values.</p>"""
2094 )) 2076 ))
2095 self.connect(self.shortcutsAct, SIGNAL('triggered()'), self.__configShortcuts) 2077 self.shortcutsAct.triggered.connect(self.__configShortcuts)
2096 self.actions.append(self.shortcutsAct) 2078 self.actions.append(self.shortcutsAct)
2097 2079
2098 self.exportShortcutsAct = E5Action(self.trUtf8('Export Keyboard Shortcuts'), 2080 self.exportShortcutsAct = E5Action(self.trUtf8('Export Keyboard Shortcuts'),
2099 UI.PixmapCache.getIcon("exportShortcuts.png"), 2081 UI.PixmapCache.getIcon("exportShortcuts.png"),
2100 self.trUtf8('&Export Keyboard Shortcuts...'), 0, 0, self, 2082 self.trUtf8('&Export Keyboard Shortcuts...'), 0, 0, self,
2102 self.exportShortcutsAct.setStatusTip(self.trUtf8('Export the keyboard shortcuts')) 2084 self.exportShortcutsAct.setStatusTip(self.trUtf8('Export the keyboard shortcuts'))
2103 self.exportShortcutsAct.setWhatsThis(self.trUtf8( 2085 self.exportShortcutsAct.setWhatsThis(self.trUtf8(
2104 """<b>Export Keyboard Shortcuts</b>""" 2086 """<b>Export Keyboard Shortcuts</b>"""
2105 """<p>Export the keyboard shortcuts of the application.</p>""" 2087 """<p>Export the keyboard shortcuts of the application.</p>"""
2106 )) 2088 ))
2107 self.connect(self.exportShortcutsAct, SIGNAL('triggered()'), 2089 self.exportShortcutsAct.triggered.connect(self.__exportShortcuts)
2108 self.__exportShortcuts)
2109 self.actions.append(self.exportShortcutsAct) 2090 self.actions.append(self.exportShortcutsAct)
2110 2091
2111 self.importShortcutsAct = E5Action(self.trUtf8('Import Keyboard Shortcuts'), 2092 self.importShortcutsAct = E5Action(self.trUtf8('Import Keyboard Shortcuts'),
2112 UI.PixmapCache.getIcon("importShortcuts.png"), 2093 UI.PixmapCache.getIcon("importShortcuts.png"),
2113 self.trUtf8('&Import Keyboard Shortcuts...'), 0, 0, self, 2094 self.trUtf8('&Import Keyboard Shortcuts...'), 0, 0, self,
2115 self.importShortcutsAct.setStatusTip(self.trUtf8('Import the keyboard shortcuts')) 2096 self.importShortcutsAct.setStatusTip(self.trUtf8('Import the keyboard shortcuts'))
2116 self.importShortcutsAct.setWhatsThis(self.trUtf8( 2097 self.importShortcutsAct.setWhatsThis(self.trUtf8(
2117 """<b>Import Keyboard Shortcuts</b>""" 2098 """<b>Import Keyboard Shortcuts</b>"""
2118 """<p>Import the keyboard shortcuts of the application.</p>""" 2099 """<p>Import the keyboard shortcuts of the application.</p>"""
2119 )) 2100 ))
2120 self.connect(self.importShortcutsAct, SIGNAL('triggered()'), 2101 self.importShortcutsAct.triggered.connect(self.__importShortcuts)
2121 self.__importShortcuts)
2122 self.actions.append(self.importShortcutsAct) 2102 self.actions.append(self.importShortcutsAct)
2123 2103
2124 self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'), 2104 self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'),
2125 self.trUtf8('Activate current editor'), 2105 self.trUtf8('Activate current editor'),
2126 QKeySequence(self.trUtf8("Alt+Shift+E")), 2106 QKeySequence(self.trUtf8("Alt+Shift+E")),
2127 0, self, 2107 0, self,
2128 'viewmanager_activate',1) 2108 'viewmanager_activate',1)
2129 self.connect(self.viewmanagerActivateAct, SIGNAL('triggered()'), 2109 self.viewmanagerActivateAct.triggered.connect(self.__activateViewmanager)
2130 self.__activateViewmanager)
2131 self.actions.append(self.viewmanagerActivateAct) 2110 self.actions.append(self.viewmanagerActivateAct)
2132 self.addAction(self.viewmanagerActivateAct) 2111 self.addAction(self.viewmanagerActivateAct)
2133 2112
2134 self.nextTabAct = E5Action(self.trUtf8('Show next'), 2113 self.nextTabAct = E5Action(self.trUtf8('Show next'),
2135 self.trUtf8('Show next'), 2114 self.trUtf8('Show next'),
2136 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, 2115 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0,
2137 self, 'view_next_tab') 2116 self, 'view_next_tab')
2138 self.connect(self.nextTabAct, SIGNAL('triggered()'), self.__showNext) 2117 self.nextTabAct.triggered.connect(self.__showNext)
2139 self.actions.append(self.nextTabAct) 2118 self.actions.append(self.nextTabAct)
2140 self.addAction(self.nextTabAct) 2119 self.addAction(self.nextTabAct)
2141 2120
2142 self.prevTabAct = E5Action(self.trUtf8('Show previous'), 2121 self.prevTabAct = E5Action(self.trUtf8('Show previous'),
2143 self.trUtf8('Show previous'), 2122 self.trUtf8('Show previous'),
2144 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, 2123 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0,
2145 self, 'view_previous_tab') 2124 self, 'view_previous_tab')
2146 self.connect(self.prevTabAct, SIGNAL('triggered()'), self.__showPrevious) 2125 self.prevTabAct.triggered.connect(self.__showPrevious)
2147 self.actions.append(self.prevTabAct) 2126 self.actions.append(self.prevTabAct)
2148 self.addAction(self.prevTabAct) 2127 self.addAction(self.prevTabAct)
2149 2128
2150 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), 2129 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'),
2151 self.trUtf8('Switch between tabs'), 2130 self.trUtf8('Switch between tabs'),
2152 QKeySequence(self.trUtf8('Ctrl+1')), 0, 2131 QKeySequence(self.trUtf8('Ctrl+1')), 0,
2153 self, 'switch_tabs') 2132 self, 'switch_tabs')
2154 self.connect(self.switchTabAct, SIGNAL('triggered()'), self.__switchTab) 2133 self.switchTabAct.triggered.connect(self.__switchTab)
2155 self.actions.append(self.switchTabAct) 2134 self.actions.append(self.switchTabAct)
2156 self.addAction(self.switchTabAct) 2135 self.addAction(self.switchTabAct)
2157 2136
2158 self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'), 2137 self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'),
2159 UI.PixmapCache.getIcon("plugin.png"), 2138 UI.PixmapCache.getIcon("plugin.png"),
2162 self.pluginInfoAct.setWhatsThis(self.trUtf8( 2141 self.pluginInfoAct.setWhatsThis(self.trUtf8(
2163 """<b>Plugin Infos...</b>""" 2142 """<b>Plugin Infos...</b>"""
2164 """<p>This opens a dialog, that show some information about""" 2143 """<p>This opens a dialog, that show some information about"""
2165 """ loaded plugins.</p>""" 2144 """ loaded plugins.</p>"""
2166 )) 2145 ))
2167 self.connect(self.pluginInfoAct, SIGNAL('triggered()'), self.__showPluginInfo) 2146 self.pluginInfoAct.triggered.connect(self.__showPluginInfo)
2168 self.actions.append(self.pluginInfoAct) 2147 self.actions.append(self.pluginInfoAct)
2169 2148
2170 self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'), 2149 self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'),
2171 UI.PixmapCache.getIcon("pluginInstall.png"), 2150 UI.PixmapCache.getIcon("pluginInstall.png"),
2172 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') 2151 self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install')
2173 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) 2152 self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins'))
2174 self.pluginInstallAct.setWhatsThis(self.trUtf8( 2153 self.pluginInstallAct.setWhatsThis(self.trUtf8(
2175 """<b>Install Plugins...</b>""" 2154 """<b>Install Plugins...</b>"""
2176 """<p>This opens a dialog to install or update plugins.</p>""" 2155 """<p>This opens a dialog to install or update plugins.</p>"""
2177 )) 2156 ))
2178 self.connect(self.pluginInstallAct, SIGNAL('triggered()'), self.__installPlugins) 2157 self.pluginInstallAct.triggered.connect(self.__installPlugins)
2179 self.actions.append(self.pluginInstallAct) 2158 self.actions.append(self.pluginInstallAct)
2180 2159
2181 self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'), 2160 self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'),
2182 UI.PixmapCache.getIcon("pluginUninstall.png"), 2161 UI.PixmapCache.getIcon("pluginUninstall.png"),
2183 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') 2162 self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall')
2184 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) 2163 self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin'))
2185 self.pluginDeinstallAct.setWhatsThis(self.trUtf8( 2164 self.pluginDeinstallAct.setWhatsThis(self.trUtf8(
2186 """<b>Uninstall Plugin...</b>""" 2165 """<b>Uninstall Plugin...</b>"""
2187 """<p>This opens a dialog to uninstall a plugin.</p>""" 2166 """<p>This opens a dialog to uninstall a plugin.</p>"""
2188 )) 2167 ))
2189 self.connect(self.pluginDeinstallAct, SIGNAL('triggered()'), 2168 self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin)
2190 self.__deinstallPlugin)
2191 self.actions.append(self.pluginDeinstallAct) 2169 self.actions.append(self.pluginDeinstallAct)
2192 2170
2193 self.pluginRepoAct = E5Action(self.trUtf8('Plugin Repository'), 2171 self.pluginRepoAct = E5Action(self.trUtf8('Plugin Repository'),
2194 UI.PixmapCache.getIcon("pluginRepository.png"), 2172 UI.PixmapCache.getIcon("pluginRepository.png"),
2195 self.trUtf8('Plugin &Repository...'), 0, 0, self, 'plugin_repository') 2173 self.trUtf8('Plugin &Repository...'), 0, 0, self, 'plugin_repository')
2198 self.pluginRepoAct.setWhatsThis(self.trUtf8( 2176 self.pluginRepoAct.setWhatsThis(self.trUtf8(
2199 """<b>Plugin Repository...</b>""" 2177 """<b>Plugin Repository...</b>"""
2200 """<p>This opens a dialog, that shows a list of plugins """ 2178 """<p>This opens a dialog, that shows a list of plugins """
2201 """available on the Internet.</p>""" 2179 """available on the Internet.</p>"""
2202 )) 2180 ))
2203 self.connect(self.pluginRepoAct, SIGNAL('triggered()'), 2181 self.pluginRepoAct.triggered.connect(self.__showPluginsAvailable)
2204 self.__showPluginsAvailable)
2205 self.actions.append(self.pluginRepoAct) 2182 self.actions.append(self.pluginRepoAct)
2206 2183
2207 # initialize viewmanager actions 2184 # initialize viewmanager actions
2208 self.viewmanager.initActions() 2185 self.viewmanager.initActions()
2209 2186
2227 """<b>Qt4 Documentation</b>""" 2204 """<b>Qt4 Documentation</b>"""
2228 """<p>Display the Qt4 Documentation. Dependant upon your settings, this""" 2205 """<p>Display the Qt4 Documentation. Dependant upon your settings, this"""
2229 """ 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"""
2230 """ a web browser or Qt Assistant. </p>""" 2207 """ a web browser or Qt Assistant. </p>"""
2231 )) 2208 ))
2232 self.connect(self.qt4DocAct, SIGNAL('triggered()'), self.__showQt4Doc) 2209 self.qt4DocAct.triggered.connect(self.__showQt4Doc)
2233 self.actions.append(self.qt4DocAct) 2210 self.actions.append(self.qt4DocAct)
2234 2211
2235 self.pyqt4DocAct = E5Action(self.trUtf8('PyQt4 Documentation'), 2212 self.pyqt4DocAct = E5Action(self.trUtf8('PyQt4 Documentation'),
2236 self.trUtf8('P&yQt4 Documentation'), 0, 0, self, 'pyqt4_documentation') 2213 self.trUtf8('P&yQt4 Documentation'), 0, 0, self, 'pyqt4_documentation')
2237 self.pyqt4DocAct.setStatusTip(self.trUtf8('Open PyQt4 Documentation')) 2214 self.pyqt4DocAct.setStatusTip(self.trUtf8('Open PyQt4 Documentation'))
2239 """<b>PyQt4 Documentation</b>""" 2216 """<b>PyQt4 Documentation</b>"""
2240 """<p>Display the PyQt4 Documentation. Dependant upon your settings, this""" 2217 """<p>Display the PyQt4 Documentation. Dependant upon your settings, this"""
2241 """ 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"""
2242 """ a web browser or Qt Assistant. </p>""" 2219 """ a web browser or Qt Assistant. </p>"""
2243 )) 2220 ))
2244 self.connect(self.pyqt4DocAct, SIGNAL('triggered()'), self.__showPyQt4Doc) 2221 self.pyqt4DocAct.triggered.connect(self.__showPyQt4Doc)
2245 self.actions.append(self.pyqt4DocAct) 2222 self.actions.append(self.pyqt4DocAct)
2246 2223
2247 def __initPythonDocAction(self): 2224 def __initPythonDocAction(self):
2248 """ 2225 """
2249 Private slot to initilize the action to show the Python documentation. 2226 Private slot to initilize the action to show the Python documentation.
2258 """ the location of the python documentation is assumed to be the doc""" 2235 """ the location of the python documentation is assumed to be the doc"""
2259 """ directory underneath the location of the python executable on""" 2236 """ directory underneath the location of the python executable on"""
2260 """ Windows and <i>/usr/share/doc/packages/python/html</i> on Unix.""" 2237 """ Windows and <i>/usr/share/doc/packages/python/html</i> on Unix."""
2261 """ Set PYTHONDOCDIR in your environment to override this. </p>""" 2238 """ Set PYTHONDOCDIR in your environment to override this. </p>"""
2262 )) 2239 ))
2263 self.connect(self.pythonDocAct, SIGNAL('triggered()'), self.__showPythonDoc) 2240 self.pythonDocAct.triggered.connect(self.__showPythonDoc)
2264 self.actions.append(self.pythonDocAct) 2241 self.actions.append(self.pythonDocAct)
2265 2242
2266 def __initEricDocAction(self): 2243 def __initEricDocAction(self):
2267 """ 2244 """
2268 Private slot to initialize the action to show the eric5 documentation. 2245 Private slot to initialize the action to show the eric5 documentation.
2274 """<b>Eric API Documentation</b>""" 2251 """<b>Eric API Documentation</b>"""
2275 """<p>Display the Eric API documentation.""" 2252 """<p>Display the Eric API documentation."""
2276 """ The location for the documentation is the Documentation/Source""" 2253 """ The location for the documentation is the Documentation/Source"""
2277 """ subdirectory of the eric5 installation directory.</p>""" 2254 """ subdirectory of the eric5 installation directory.</p>"""
2278 )) 2255 ))
2279 self.connect(self.ericDocAct, SIGNAL('triggered()'), self.__showEricDoc) 2256 self.ericDocAct.triggered.connect(self.__showEricDoc)
2280 self.actions.append(self.ericDocAct) 2257 self.actions.append(self.ericDocAct)
2281 2258
2282 def __initPySideDocActions(self): 2259 def __initPySideDocActions(self):
2283 """ 2260 """
2284 Private slot to initilize the action to show the PySide documentation. 2261 Private slot to initilize the action to show the PySide documentation.
2292 """<b>PySide Documentation</b>""" 2269 """<b>PySide Documentation</b>"""
2293 """<p>Display the PySide Documentation. Dependant upon your settings, """ 2270 """<p>Display the PySide Documentation. Dependant upon your settings, """
2294 """this will either show the help in Eric's internal help viewer, or """ 2271 """this will either show the help in Eric's internal help viewer, or """
2295 """execute a web browser or Qt Assistant. </p>""" 2272 """execute a web browser or Qt Assistant. </p>"""
2296 )) 2273 ))
2297 self.connect(self.pysideDocAct, SIGNAL('triggered()'), self.__showPySideDoc) 2274 self.pysideDocAct.triggered.connect(self.__showPySideDoc)
2298 self.actions.append(self.pysideDocAct) 2275 self.actions.append(self.pysideDocAct)
2299 del PySide 2276 del PySide
2300 except ImportError: 2277 except ImportError:
2301 self.pysideDocAct = None 2278 self.pysideDocAct = None
2302 2279
2662 if tool['menutext'] != '--': 2639 if tool['menutext'] != '--':
2663 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'], 2640 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'],
2664 self) 2641 self)
2665 act.setObjectName("{0}@@{1}".format(toolGroup[0], 2642 act.setObjectName("{0}@@{1}".format(toolGroup[0],
2666 tool['menutext'])) 2643 tool['menutext']))
2667 self.connect(act, SIGNAL("triggered()"), self.__toolActionTriggered) 2644 act.triggered.connect(self.__toolActionTriggered)
2668 self.toolGroupActions[act.objectName()] = act 2645 self.toolGroupActions[act.objectName()] = act
2669 2646
2670 self.toolbarManager.addAction(act, category) 2647 self.toolbarManager.addAction(act, category)
2671 2648
2672 def __updateExternalToolsActions(self): 2649 def __updateExternalToolsActions(self):
2689 2666
2690 # step 3: remove all actions not configured any more 2667 # step 3: remove all actions not configured any more
2691 for key in groupActionKeys: 2668 for key in groupActionKeys:
2692 if key not in ckeys: 2669 if key not in ckeys:
2693 self.toolbarManager.removeAction(self.toolGroupActions[key]) 2670 self.toolbarManager.removeAction(self.toolGroupActions[key])
2694 self.disconnect(self.toolGroupActions[key], SIGNAL("triggered()"), 2671 self.toolGroupActions[key].triggered.disconnect(self.__toolActionTriggered)
2695 self.__toolActionTriggered)
2696 del self.toolGroupActions[key] 2672 del self.toolGroupActions[key]
2697 2673
2698 # step 4: add all newly configured tools 2674 # step 4: add all newly configured tools
2699 category = self.trUtf8("External Tools/{0}").format(toolGroup[0]) 2675 category = self.trUtf8("External Tools/{0}").format(toolGroup[0])
2700 for tool in toolGroup[1]: 2676 for tool in toolGroup[1]:
2702 key = "{0}@@{1}".format(toolGroup[0], tool['menutext']) 2678 key = "{0}@@{1}".format(toolGroup[0], tool['menutext'])
2703 if key not in groupActionKeys: 2679 if key not in groupActionKeys:
2704 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'], 2680 act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'],
2705 self) 2681 self)
2706 act.setObjectName(key) 2682 act.setObjectName(key)
2707 self.connect(act, SIGNAL("triggered()"), self.__toolActionTriggered) 2683 act.triggered.connect(self.__toolActionTriggered)
2708 self.toolGroupActions[key] = act 2684 self.toolGroupActions[key] = act
2709 2685
2710 self.toolbarManager.addAction(act, category) 2686 self.toolbarManager.addAction(act, category)
2711 2687
2712 def __showFileMenu(self): 2688 def __showFileMenu(self):

eric ide

mercurial