425 """ |
435 """ |
426 # list of all actions |
436 # list of all actions |
427 self.__actions = [] |
437 self.__actions = [] |
428 |
438 |
429 self.newTabAct = E5Action( |
439 self.newTabAct = E5Action( |
430 self.trUtf8('New Tab'), |
440 self.tr('New Tab'), |
431 UI.PixmapCache.getIcon("tabNew.png"), |
441 UI.PixmapCache.getIcon("tabNew.png"), |
432 self.trUtf8('&New Tab'), |
442 self.tr('&New Tab'), |
433 QKeySequence(self.trUtf8("Ctrl+T", "File|New Tab")), |
443 QKeySequence(self.tr("Ctrl+T", "File|New Tab")), |
434 0, self, 'help_file_new_tab') |
444 0, self, 'help_file_new_tab') |
435 self.newTabAct.setStatusTip(self.trUtf8('Open a new help window tab')) |
445 self.newTabAct.setStatusTip(self.tr('Open a new help window tab')) |
436 self.newTabAct.setWhatsThis(self.trUtf8( |
446 self.newTabAct.setWhatsThis(self.tr( |
437 """<b>New Tab</b>""" |
447 """<b>New Tab</b>""" |
438 """<p>This opens a new help window tab.</p>""" |
448 """<p>This opens a new help window tab.</p>""" |
439 )) |
449 )) |
440 if not self.initShortcutsOnly: |
450 if not self.initShortcutsOnly: |
441 self.newTabAct.triggered[()].connect(self.newTab) |
451 self.newTabAct.triggered.connect(self.newTab) |
442 self.__actions.append(self.newTabAct) |
452 self.__actions.append(self.newTabAct) |
443 |
453 |
444 self.newAct = E5Action( |
454 self.newAct = E5Action( |
445 self.trUtf8('New Window'), |
455 self.tr('New Window'), |
446 UI.PixmapCache.getIcon("newWindow.png"), |
456 UI.PixmapCache.getIcon("newWindow.png"), |
447 self.trUtf8('New &Window'), |
457 self.tr('New &Window'), |
448 QKeySequence(self.trUtf8("Ctrl+N", "File|New Window")), |
458 QKeySequence(self.tr("Ctrl+N", "File|New Window")), |
449 0, self, 'help_file_new_window') |
459 0, self, 'help_file_new_window') |
450 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
460 self.newAct.setStatusTip(self.tr('Open a new help browser window')) |
451 self.newAct.setWhatsThis(self.trUtf8( |
461 self.newAct.setWhatsThis(self.tr( |
452 """<b>New Window</b>""" |
462 """<b>New Window</b>""" |
453 """<p>This opens a new help browser window.</p>""" |
463 """<p>This opens a new help browser window.</p>""" |
454 )) |
464 )) |
455 if not self.initShortcutsOnly: |
465 if not self.initShortcutsOnly: |
456 self.newAct.triggered[()].connect(self.newWindow) |
466 self.newAct.triggered.connect(self.newWindow) |
457 self.__actions.append(self.newAct) |
467 self.__actions.append(self.newAct) |
458 |
468 |
459 self.openAct = E5Action( |
469 self.openAct = E5Action( |
460 self.trUtf8('Open File'), |
470 self.tr('Open File'), |
461 UI.PixmapCache.getIcon("open.png"), |
471 UI.PixmapCache.getIcon("open.png"), |
462 self.trUtf8('&Open File'), |
472 self.tr('&Open File'), |
463 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
473 QKeySequence(self.tr("Ctrl+O", "File|Open")), |
464 0, self, 'help_file_open') |
474 0, self, 'help_file_open') |
465 self.openAct.setStatusTip(self.trUtf8('Open a help file for display')) |
475 self.openAct.setStatusTip(self.tr('Open a help file for display')) |
466 self.openAct.setWhatsThis(self.trUtf8( |
476 self.openAct.setWhatsThis(self.tr( |
467 """<b>Open File</b>""" |
477 """<b>Open File</b>""" |
468 """<p>This opens a new help file for display.""" |
478 """<p>This opens a new help file for display.""" |
469 """ It pops up a file selection dialog.</p>""" |
479 """ It pops up a file selection dialog.</p>""" |
470 )) |
480 )) |
471 if not self.initShortcutsOnly: |
481 if not self.initShortcutsOnly: |
472 self.openAct.triggered[()].connect(self.__openFile) |
482 self.openAct.triggered.connect(self.__openFile) |
473 self.__actions.append(self.openAct) |
483 self.__actions.append(self.openAct) |
474 |
484 |
475 self.openTabAct = E5Action( |
485 self.openTabAct = E5Action( |
476 self.trUtf8('Open File in New Tab'), |
486 self.tr('Open File in New Tab'), |
477 UI.PixmapCache.getIcon("openNewTab.png"), |
487 UI.PixmapCache.getIcon("openNewTab.png"), |
478 self.trUtf8('Open File in New &Tab'), |
488 self.tr('Open File in New &Tab'), |
479 QKeySequence(self.trUtf8("Shift+Ctrl+O", "File|Open in new tab")), |
489 QKeySequence(self.tr("Shift+Ctrl+O", "File|Open in new tab")), |
480 0, self, 'help_file_open_tab') |
490 0, self, 'help_file_open_tab') |
481 self.openTabAct.setStatusTip( |
491 self.openTabAct.setStatusTip( |
482 self.trUtf8('Open a help file for display in a new tab')) |
492 self.tr('Open a help file for display in a new tab')) |
483 self.openTabAct.setWhatsThis(self.trUtf8( |
493 self.openTabAct.setWhatsThis(self.tr( |
484 """<b>Open File in New Tab</b>""" |
494 """<b>Open File in New Tab</b>""" |
485 """<p>This opens a new help file for display in a new tab.""" |
495 """<p>This opens a new help file for display in a new tab.""" |
486 """ It pops up a file selection dialog.</p>""" |
496 """ It pops up a file selection dialog.</p>""" |
487 )) |
497 )) |
488 if not self.initShortcutsOnly: |
498 if not self.initShortcutsOnly: |
489 self.openTabAct.triggered[()].connect(self.__openFileNewTab) |
499 self.openTabAct.triggered.connect(self.__openFileNewTab) |
490 self.__actions.append(self.openTabAct) |
500 self.__actions.append(self.openTabAct) |
491 |
501 |
492 self.saveAsAct = E5Action( |
502 self.saveAsAct = E5Action( |
493 self.trUtf8('Save As'), |
503 self.tr('Save As'), |
494 UI.PixmapCache.getIcon("fileSaveAs.png"), |
504 UI.PixmapCache.getIcon("fileSaveAs.png"), |
495 self.trUtf8('&Save As...'), |
505 self.tr('&Save As...'), |
496 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
506 QKeySequence(self.tr("Shift+Ctrl+S", "File|Save As")), |
497 0, self, 'help_file_save_as') |
507 0, self, 'help_file_save_as') |
498 self.saveAsAct.setStatusTip( |
508 self.saveAsAct.setStatusTip( |
499 self.trUtf8('Save the current page to disk')) |
509 self.tr('Save the current page to disk')) |
500 self.saveAsAct.setWhatsThis(self.trUtf8( |
510 self.saveAsAct.setWhatsThis(self.tr( |
501 """<b>Save As...</b>""" |
511 """<b>Save As...</b>""" |
502 """<p>Saves the current page to disk.</p>""" |
512 """<p>Saves the current page to disk.</p>""" |
503 )) |
513 )) |
504 if not self.initShortcutsOnly: |
514 if not self.initShortcutsOnly: |
505 self.saveAsAct.triggered[()].connect(self.__savePageAs) |
515 self.saveAsAct.triggered.connect(self.__savePageAs) |
506 self.__actions.append(self.saveAsAct) |
516 self.__actions.append(self.saveAsAct) |
507 |
517 |
508 self.savePageScreenAct = E5Action( |
518 self.savePageScreenAct = E5Action( |
509 self.trUtf8('Save Page Screen'), |
519 self.tr('Save Page Screen'), |
510 UI.PixmapCache.getIcon("fileSavePixmap.png"), |
520 UI.PixmapCache.getIcon("fileSavePixmap.png"), |
511 self.trUtf8('Save Page Screen...'), |
521 self.tr('Save Page Screen...'), |
512 0, 0, self, 'help_file_save_page_screen') |
522 0, 0, self, 'help_file_save_page_screen') |
513 self.savePageScreenAct.setStatusTip( |
523 self.savePageScreenAct.setStatusTip( |
514 self.trUtf8('Save the current page as a screen shot')) |
524 self.tr('Save the current page as a screen shot')) |
515 self.savePageScreenAct.setWhatsThis(self.trUtf8( |
525 self.savePageScreenAct.setWhatsThis(self.tr( |
516 """<b>Save Page Screen...</b>""" |
526 """<b>Save Page Screen...</b>""" |
517 """<p>Saves the current page as a screen shot.</p>""" |
527 """<p>Saves the current page as a screen shot.</p>""" |
518 )) |
528 )) |
519 if not self.initShortcutsOnly: |
529 if not self.initShortcutsOnly: |
520 self.savePageScreenAct.triggered[()].connect(self.__savePageScreen) |
530 self.savePageScreenAct.triggered.connect(self.__savePageScreen) |
521 self.__actions.append(self.savePageScreenAct) |
531 self.__actions.append(self.savePageScreenAct) |
522 |
532 |
523 self.saveVisiblePageScreenAct = E5Action( |
533 self.saveVisiblePageScreenAct = E5Action( |
524 self.trUtf8('Save Visible Page Screen'), |
534 self.tr('Save Visible Page Screen'), |
525 UI.PixmapCache.getIcon("fileSaveVisiblePixmap.png"), |
535 UI.PixmapCache.getIcon("fileSaveVisiblePixmap.png"), |
526 self.trUtf8('Save Visible Page Screen...'), |
536 self.tr('Save Visible Page Screen...'), |
527 0, 0, self, 'help_file_save_visible_page_screen') |
537 0, 0, self, 'help_file_save_visible_page_screen') |
528 self.saveVisiblePageScreenAct.setStatusTip( |
538 self.saveVisiblePageScreenAct.setStatusTip( |
529 self.trUtf8('Save the visible part of the current page as a' |
539 self.tr('Save the visible part of the current page as a' |
530 ' screen shot')) |
540 ' screen shot')) |
531 self.saveVisiblePageScreenAct.setWhatsThis(self.trUtf8( |
541 self.saveVisiblePageScreenAct.setWhatsThis(self.tr( |
532 """<b>Save Visible Page Screen...</b>""" |
542 """<b>Save Visible Page Screen...</b>""" |
533 """<p>Saves the visible part of the current page as a""" |
543 """<p>Saves the visible part of the current page as a""" |
534 """ screen shot.</p>""" |
544 """ screen shot.</p>""" |
535 )) |
545 )) |
536 if not self.initShortcutsOnly: |
546 if not self.initShortcutsOnly: |
537 self.saveVisiblePageScreenAct.triggered[()].connect( |
547 self.saveVisiblePageScreenAct.triggered.connect( |
538 self.__saveVisiblePageScreen) |
548 self.__saveVisiblePageScreen) |
539 self.__actions.append(self.saveVisiblePageScreenAct) |
549 self.__actions.append(self.saveVisiblePageScreenAct) |
540 |
550 |
541 bookmarksManager = self.bookmarksManager() |
551 bookmarksManager = self.bookmarksManager() |
542 self.importBookmarksAct = E5Action( |
552 self.importBookmarksAct = E5Action( |
543 self.trUtf8('Import Bookmarks'), |
553 self.tr('Import Bookmarks'), |
544 self.trUtf8('&Import Bookmarks...'), |
554 self.tr('&Import Bookmarks...'), |
545 0, 0, self, 'help_file_import_bookmarks') |
555 0, 0, self, 'help_file_import_bookmarks') |
546 self.importBookmarksAct.setStatusTip( |
556 self.importBookmarksAct.setStatusTip( |
547 self.trUtf8('Import bookmarks from other browsers')) |
557 self.tr('Import bookmarks from other browsers')) |
548 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
558 self.importBookmarksAct.setWhatsThis(self.tr( |
549 """<b>Import Bookmarks</b>""" |
559 """<b>Import Bookmarks</b>""" |
550 """<p>Import bookmarks from other browsers.</p>""" |
560 """<p>Import bookmarks from other browsers.</p>""" |
551 )) |
561 )) |
552 if not self.initShortcutsOnly: |
562 if not self.initShortcutsOnly: |
553 self.importBookmarksAct.triggered[()].connect( |
563 self.importBookmarksAct.triggered.connect( |
554 bookmarksManager.importBookmarks) |
564 bookmarksManager.importBookmarks) |
555 self.__actions.append(self.importBookmarksAct) |
565 self.__actions.append(self.importBookmarksAct) |
556 |
566 |
557 self.exportBookmarksAct = E5Action( |
567 self.exportBookmarksAct = E5Action( |
558 self.trUtf8('Export Bookmarks'), |
568 self.tr('Export Bookmarks'), |
559 self.trUtf8('&Export Bookmarks...'), |
569 self.tr('&Export Bookmarks...'), |
560 0, 0, self, 'help_file_export_bookmarks') |
570 0, 0, self, 'help_file_export_bookmarks') |
561 self.exportBookmarksAct.setStatusTip( |
571 self.exportBookmarksAct.setStatusTip( |
562 self.trUtf8('Export the bookmarks into a file')) |
572 self.tr('Export the bookmarks into a file')) |
563 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
573 self.exportBookmarksAct.setWhatsThis(self.tr( |
564 """<b>Export Bookmarks</b>""" |
574 """<b>Export Bookmarks</b>""" |
565 """<p>Export the bookmarks into a file.</p>""" |
575 """<p>Export the bookmarks into a file.</p>""" |
566 )) |
576 )) |
567 if not self.initShortcutsOnly: |
577 if not self.initShortcutsOnly: |
568 self.exportBookmarksAct.triggered[()].connect( |
578 self.exportBookmarksAct.triggered.connect( |
569 bookmarksManager.exportBookmarks) |
579 bookmarksManager.exportBookmarks) |
570 self.__actions.append(self.exportBookmarksAct) |
580 self.__actions.append(self.exportBookmarksAct) |
571 |
581 |
572 self.printAct = E5Action( |
582 self.printAct = E5Action( |
573 self.trUtf8('Print'), |
583 self.tr('Print'), |
574 UI.PixmapCache.getIcon("print.png"), |
584 UI.PixmapCache.getIcon("print.png"), |
575 self.trUtf8('&Print'), |
585 self.tr('&Print'), |
576 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
586 QKeySequence(self.tr("Ctrl+P", "File|Print")), |
577 0, self, 'help_file_print') |
587 0, self, 'help_file_print') |
578 self.printAct.setStatusTip(self.trUtf8('Print the displayed help')) |
588 self.printAct.setStatusTip(self.tr('Print the displayed help')) |
579 self.printAct.setWhatsThis(self.trUtf8( |
589 self.printAct.setWhatsThis(self.tr( |
580 """<b>Print</b>""" |
590 """<b>Print</b>""" |
581 """<p>Print the displayed help text.</p>""" |
591 """<p>Print the displayed help text.</p>""" |
582 )) |
592 )) |
583 if not self.initShortcutsOnly: |
593 if not self.initShortcutsOnly: |
584 self.printAct.triggered[()].connect(self.tabWidget.printBrowser) |
594 self.printAct.triggered.connect(self.tabWidget.printBrowser) |
585 self.__actions.append(self.printAct) |
595 self.__actions.append(self.printAct) |
586 |
596 |
587 self.printPdfAct = E5Action( |
597 self.printPdfAct = E5Action( |
588 self.trUtf8('Print as PDF'), |
598 self.tr('Print as PDF'), |
589 UI.PixmapCache.getIcon("printPdf.png"), |
599 UI.PixmapCache.getIcon("printPdf.png"), |
590 self.trUtf8('Print as PDF'), |
600 self.tr('Print as PDF'), |
591 0, 0, self, 'help_file_print_pdf') |
601 0, 0, self, 'help_file_print_pdf') |
592 self.printPdfAct.setStatusTip(self.trUtf8( |
602 self.printPdfAct.setStatusTip(self.tr( |
593 'Print the displayed help as PDF')) |
603 'Print the displayed help as PDF')) |
594 self.printPdfAct.setWhatsThis(self.trUtf8( |
604 self.printPdfAct.setWhatsThis(self.tr( |
595 """<b>Print as PDF</b>""" |
605 """<b>Print as PDF</b>""" |
596 """<p>Print the displayed help text as a PDF file.</p>""" |
606 """<p>Print the displayed help text as a PDF file.</p>""" |
597 )) |
607 )) |
598 if not self.initShortcutsOnly: |
608 if not self.initShortcutsOnly: |
599 self.printPdfAct.triggered[()].connect( |
609 self.printPdfAct.triggered.connect( |
600 self.tabWidget.printBrowserPdf) |
610 self.tabWidget.printBrowserPdf) |
601 self.__actions.append(self.printPdfAct) |
611 self.__actions.append(self.printPdfAct) |
602 |
612 |
603 self.printPreviewAct = E5Action( |
613 self.printPreviewAct = E5Action( |
604 self.trUtf8('Print Preview'), |
614 self.tr('Print Preview'), |
605 UI.PixmapCache.getIcon("printPreview.png"), |
615 UI.PixmapCache.getIcon("printPreview.png"), |
606 self.trUtf8('Print Preview'), |
616 self.tr('Print Preview'), |
607 0, 0, self, 'help_file_print_preview') |
617 0, 0, self, 'help_file_print_preview') |
608 self.printPreviewAct.setStatusTip(self.trUtf8( |
618 self.printPreviewAct.setStatusTip(self.tr( |
609 'Print preview of the displayed help')) |
619 'Print preview of the displayed help')) |
610 self.printPreviewAct.setWhatsThis(self.trUtf8( |
620 self.printPreviewAct.setWhatsThis(self.tr( |
611 """<b>Print Preview</b>""" |
621 """<b>Print Preview</b>""" |
612 """<p>Print preview of the displayed help text.</p>""" |
622 """<p>Print preview of the displayed help text.</p>""" |
613 )) |
623 )) |
614 if not self.initShortcutsOnly: |
624 if not self.initShortcutsOnly: |
615 self.printPreviewAct.triggered[()].connect( |
625 self.printPreviewAct.triggered.connect( |
616 self.tabWidget.printPreviewBrowser) |
626 self.tabWidget.printPreviewBrowser) |
617 self.__actions.append(self.printPreviewAct) |
627 self.__actions.append(self.printPreviewAct) |
618 |
628 |
619 self.closeAct = E5Action( |
629 self.closeAct = E5Action( |
620 self.trUtf8('Close'), |
630 self.tr('Close'), |
621 UI.PixmapCache.getIcon("close.png"), |
631 UI.PixmapCache.getIcon("close.png"), |
622 self.trUtf8('&Close'), |
632 self.tr('&Close'), |
623 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), |
633 QKeySequence(self.tr("Ctrl+W", "File|Close")), |
624 0, self, 'help_file_close') |
634 0, self, 'help_file_close') |
625 self.closeAct.setStatusTip(self.trUtf8( |
635 self.closeAct.setStatusTip(self.tr( |
626 'Close the current help window')) |
636 'Close the current help window')) |
627 self.closeAct.setWhatsThis(self.trUtf8( |
637 self.closeAct.setWhatsThis(self.tr( |
628 """<b>Close</b>""" |
638 """<b>Close</b>""" |
629 """<p>Closes the current help window.</p>""" |
639 """<p>Closes the current help window.</p>""" |
630 )) |
640 )) |
631 if not self.initShortcutsOnly: |
641 if not self.initShortcutsOnly: |
632 self.closeAct.triggered[()].connect(self.tabWidget.closeBrowser) |
642 self.closeAct.triggered.connect(self.tabWidget.closeBrowser) |
633 self.__actions.append(self.closeAct) |
643 self.__actions.append(self.closeAct) |
634 |
644 |
635 self.closeAllAct = E5Action( |
645 self.closeAllAct = E5Action( |
636 self.trUtf8('Close All'), |
646 self.tr('Close All'), |
637 self.trUtf8('Close &All'), |
647 self.tr('Close &All'), |
638 0, 0, self, 'help_file_close_all') |
648 0, 0, self, 'help_file_close_all') |
639 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
649 self.closeAllAct.setStatusTip(self.tr('Close all help windows')) |
640 self.closeAllAct.setWhatsThis(self.trUtf8( |
650 self.closeAllAct.setWhatsThis(self.tr( |
641 """<b>Close All</b>""" |
651 """<b>Close All</b>""" |
642 """<p>Closes all help windows except the first one.</p>""" |
652 """<p>Closes all help windows except the first one.</p>""" |
643 )) |
653 )) |
644 if not self.initShortcutsOnly: |
654 if not self.initShortcutsOnly: |
645 self.closeAllAct.triggered[()].connect( |
655 self.closeAllAct.triggered.connect( |
646 self.tabWidget.closeAllBrowsers) |
656 self.tabWidget.closeAllBrowsers) |
647 self.__actions.append(self.closeAllAct) |
657 self.__actions.append(self.closeAllAct) |
648 |
658 |
649 self.privateBrowsingAct = E5Action( |
659 self.privateBrowsingAct = E5Action( |
650 self.trUtf8('Private Browsing'), |
660 self.tr('Private Browsing'), |
651 UI.PixmapCache.getIcon("privateBrowsing.png"), |
661 UI.PixmapCache.getIcon("privateBrowsing.png"), |
652 self.trUtf8('Private &Browsing'), |
662 self.tr('Private &Browsing'), |
653 0, 0, self, 'help_file_private_browsing') |
663 0, 0, self, 'help_file_private_browsing') |
654 self.privateBrowsingAct.setStatusTip(self.trUtf8('Private Browsing')) |
664 self.privateBrowsingAct.setStatusTip(self.tr('Private Browsing')) |
655 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
665 self.privateBrowsingAct.setWhatsThis(self.tr( |
656 """<b>Private Browsing</b>""" |
666 """<b>Private Browsing</b>""" |
657 """<p>Enables private browsing. In this mode no history is""" |
667 """<p>Enables private browsing. In this mode no history is""" |
658 """ recorded anymore.</p>""" |
668 """ recorded anymore.</p>""" |
659 )) |
669 )) |
660 if not self.initShortcutsOnly: |
670 if not self.initShortcutsOnly: |
661 self.privateBrowsingAct.triggered[()].connect( |
671 self.privateBrowsingAct.triggered.connect( |
662 self.__privateBrowsing) |
672 self.__privateBrowsing) |
663 self.privateBrowsingAct.setCheckable(True) |
673 self.privateBrowsingAct.setCheckable(True) |
664 self.__actions.append(self.privateBrowsingAct) |
674 self.__actions.append(self.privateBrowsingAct) |
665 |
675 |
666 self.exitAct = E5Action( |
676 self.exitAct = E5Action( |
667 self.trUtf8('Quit'), |
677 self.tr('Quit'), |
668 UI.PixmapCache.getIcon("exit.png"), |
678 UI.PixmapCache.getIcon("exit.png"), |
669 self.trUtf8('&Quit'), |
679 self.tr('&Quit'), |
670 QKeySequence(self.trUtf8("Ctrl+Q", "File|Quit")), |
680 QKeySequence(self.tr("Ctrl+Q", "File|Quit")), |
671 0, self, 'help_file_quit') |
681 0, self, 'help_file_quit') |
672 self.exitAct.setStatusTip(self.trUtf8('Quit the eric5 Web Browser')) |
682 self.exitAct.setStatusTip(self.tr('Quit the eric5 Web Browser')) |
673 self.exitAct.setWhatsThis(self.trUtf8( |
683 self.exitAct.setWhatsThis(self.tr( |
674 """<b>Quit</b>""" |
684 """<b>Quit</b>""" |
675 """<p>Quit the eric5 Web Browser.</p>""" |
685 """<p>Quit the eric5 Web Browser.</p>""" |
676 )) |
686 )) |
677 if not self.initShortcutsOnly: |
687 if not self.initShortcutsOnly: |
678 if self.fromEric: |
688 if self.fromEric: |
679 self.exitAct.triggered[()].connect(self.close) |
689 self.exitAct.triggered.connect(self.close) |
680 else: |
690 else: |
681 self.exitAct.triggered[()].connect(self.__closeAllWindows) |
691 self.exitAct.triggered.connect(self.__closeAllWindows) |
682 self.__actions.append(self.exitAct) |
692 self.__actions.append(self.exitAct) |
683 |
693 |
684 self.backAct = E5Action( |
694 self.backAct = E5Action( |
685 self.trUtf8('Backward'), |
695 self.tr('Backward'), |
686 UI.PixmapCache.getIcon("back.png"), |
696 UI.PixmapCache.getIcon("back.png"), |
687 self.trUtf8('&Backward'), |
697 self.tr('&Backward'), |
688 QKeySequence(self.trUtf8("Alt+Left", "Go|Backward")), |
698 QKeySequence(self.tr("Alt+Left", "Go|Backward")), |
689 QKeySequence(self.trUtf8("Backspace", "Go|Backward")), |
699 QKeySequence(self.tr("Backspace", "Go|Backward")), |
690 self, 'help_go_backward') |
700 self, 'help_go_backward') |
691 self.backAct.setStatusTip(self.trUtf8('Move one help screen backward')) |
701 self.backAct.setStatusTip(self.tr('Move one help screen backward')) |
692 self.backAct.setWhatsThis(self.trUtf8( |
702 self.backAct.setWhatsThis(self.tr( |
693 """<b>Backward</b>""" |
703 """<b>Backward</b>""" |
694 """<p>Moves one help screen backward. If none is""" |
704 """<p>Moves one help screen backward. If none is""" |
695 """ available, this action is disabled.</p>""" |
705 """ available, this action is disabled.</p>""" |
696 )) |
706 )) |
697 if not self.initShortcutsOnly: |
707 if not self.initShortcutsOnly: |
698 self.backAct.triggered[()].connect(self.__backward) |
708 self.backAct.triggered.connect(self.__backward) |
699 self.__actions.append(self.backAct) |
709 self.__actions.append(self.backAct) |
700 |
710 |
701 self.forwardAct = E5Action( |
711 self.forwardAct = E5Action( |
702 self.trUtf8('Forward'), |
712 self.tr('Forward'), |
703 UI.PixmapCache.getIcon("forward.png"), |
713 UI.PixmapCache.getIcon("forward.png"), |
704 self.trUtf8('&Forward'), |
714 self.tr('&Forward'), |
705 QKeySequence(self.trUtf8("Alt+Right", "Go|Forward")), |
715 QKeySequence(self.tr("Alt+Right", "Go|Forward")), |
706 QKeySequence(self.trUtf8("Shift+Backspace", "Go|Forward")), |
716 QKeySequence(self.tr("Shift+Backspace", "Go|Forward")), |
707 self, 'help_go_foreward') |
717 self, 'help_go_foreward') |
708 self.forwardAct.setStatusTip(self.trUtf8( |
718 self.forwardAct.setStatusTip(self.tr( |
709 'Move one help screen forward')) |
719 'Move one help screen forward')) |
710 self.forwardAct.setWhatsThis(self.trUtf8( |
720 self.forwardAct.setWhatsThis(self.tr( |
711 """<b>Forward</b>""" |
721 """<b>Forward</b>""" |
712 """<p>Moves one help screen forward. If none is""" |
722 """<p>Moves one help screen forward. If none is""" |
713 """ available, this action is disabled.</p>""" |
723 """ available, this action is disabled.</p>""" |
714 )) |
724 )) |
715 if not self.initShortcutsOnly: |
725 if not self.initShortcutsOnly: |
716 self.forwardAct.triggered[()].connect(self.__forward) |
726 self.forwardAct.triggered.connect(self.__forward) |
717 self.__actions.append(self.forwardAct) |
727 self.__actions.append(self.forwardAct) |
718 |
728 |
719 self.homeAct = E5Action( |
729 self.homeAct = E5Action( |
720 self.trUtf8('Home'), |
730 self.tr('Home'), |
721 UI.PixmapCache.getIcon("home.png"), |
731 UI.PixmapCache.getIcon("home.png"), |
722 self.trUtf8('&Home'), |
732 self.tr('&Home'), |
723 QKeySequence(self.trUtf8("Ctrl+Home", "Go|Home")), |
733 QKeySequence(self.tr("Ctrl+Home", "Go|Home")), |
724 0, self, 'help_go_home') |
734 0, self, 'help_go_home') |
725 self.homeAct.setStatusTip(self.trUtf8( |
735 self.homeAct.setStatusTip(self.tr( |
726 'Move to the initial help screen')) |
736 'Move to the initial help screen')) |
727 self.homeAct.setWhatsThis(self.trUtf8( |
737 self.homeAct.setWhatsThis(self.tr( |
728 """<b>Home</b>""" |
738 """<b>Home</b>""" |
729 """<p>Moves to the initial help screen.</p>""" |
739 """<p>Moves to the initial help screen.</p>""" |
730 )) |
740 )) |
731 if not self.initShortcutsOnly: |
741 if not self.initShortcutsOnly: |
732 self.homeAct.triggered[()].connect(self.__home) |
742 self.homeAct.triggered.connect(self.__home) |
733 self.__actions.append(self.homeAct) |
743 self.__actions.append(self.homeAct) |
734 |
744 |
735 self.reloadAct = E5Action( |
745 self.reloadAct = E5Action( |
736 self.trUtf8('Reload'), |
746 self.tr('Reload'), |
737 UI.PixmapCache.getIcon("reload.png"), |
747 UI.PixmapCache.getIcon("reload.png"), |
738 self.trUtf8('&Reload'), |
748 self.tr('&Reload'), |
739 QKeySequence(self.trUtf8("Ctrl+R", "Go|Reload")), |
749 QKeySequence(self.tr("Ctrl+R", "Go|Reload")), |
740 QKeySequence(self.trUtf8("F5", "Go|Reload")), |
750 QKeySequence(self.tr("F5", "Go|Reload")), |
741 self, 'help_go_reload') |
751 self, 'help_go_reload') |
742 self.reloadAct.setStatusTip(self.trUtf8( |
752 self.reloadAct.setStatusTip(self.tr( |
743 'Reload the current help screen')) |
753 'Reload the current help screen')) |
744 self.reloadAct.setWhatsThis(self.trUtf8( |
754 self.reloadAct.setWhatsThis(self.tr( |
745 """<b>Reload</b>""" |
755 """<b>Reload</b>""" |
746 """<p>Reloads the current help screen.</p>""" |
756 """<p>Reloads the current help screen.</p>""" |
747 )) |
757 )) |
748 if not self.initShortcutsOnly: |
758 if not self.initShortcutsOnly: |
749 self.reloadAct.triggered[()].connect(self.__reload) |
759 self.reloadAct.triggered.connect(self.__reload) |
750 self.__actions.append(self.reloadAct) |
760 self.__actions.append(self.reloadAct) |
751 |
761 |
752 self.stopAct = E5Action( |
762 self.stopAct = E5Action( |
753 self.trUtf8('Stop'), |
763 self.tr('Stop'), |
754 UI.PixmapCache.getIcon("stopLoading.png"), |
764 UI.PixmapCache.getIcon("stopLoading.png"), |
755 self.trUtf8('&Stop'), |
765 self.tr('&Stop'), |
756 QKeySequence(self.trUtf8("Ctrl+.", "Go|Stop")), |
766 QKeySequence(self.tr("Ctrl+.", "Go|Stop")), |
757 QKeySequence(self.trUtf8("Esc", "Go|Stop")), |
767 QKeySequence(self.tr("Esc", "Go|Stop")), |
758 self, 'help_go_stop') |
768 self, 'help_go_stop') |
759 self.stopAct.setStatusTip(self.trUtf8('Stop loading')) |
769 self.stopAct.setStatusTip(self.tr('Stop loading')) |
760 self.stopAct.setWhatsThis(self.trUtf8( |
770 self.stopAct.setWhatsThis(self.tr( |
761 """<b>Stop</b>""" |
771 """<b>Stop</b>""" |
762 """<p>Stops loading of the current tab.</p>""" |
772 """<p>Stops loading of the current tab.</p>""" |
763 )) |
773 )) |
764 if not self.initShortcutsOnly: |
774 if not self.initShortcutsOnly: |
765 self.stopAct.triggered[()].connect(self.__stopLoading) |
775 self.stopAct.triggered.connect(self.__stopLoading) |
766 self.__actions.append(self.stopAct) |
776 self.__actions.append(self.stopAct) |
767 |
777 |
768 self.copyAct = E5Action( |
778 self.copyAct = E5Action( |
769 self.trUtf8('Copy'), |
779 self.tr('Copy'), |
770 UI.PixmapCache.getIcon("editCopy.png"), |
780 UI.PixmapCache.getIcon("editCopy.png"), |
771 self.trUtf8('&Copy'), |
781 self.tr('&Copy'), |
772 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
782 QKeySequence(self.tr("Ctrl+C", "Edit|Copy")), |
773 0, self, 'help_edit_copy') |
783 0, self, 'help_edit_copy') |
774 self.copyAct.setStatusTip(self.trUtf8('Copy the selected text')) |
784 self.copyAct.setStatusTip(self.tr('Copy the selected text')) |
775 self.copyAct.setWhatsThis(self.trUtf8( |
785 self.copyAct.setWhatsThis(self.tr( |
776 """<b>Copy</b>""" |
786 """<b>Copy</b>""" |
777 """<p>Copy the selected text to the clipboard.</p>""" |
787 """<p>Copy the selected text to the clipboard.</p>""" |
778 )) |
788 )) |
779 if not self.initShortcutsOnly: |
789 if not self.initShortcutsOnly: |
780 self.copyAct.triggered[()].connect(self.__copy) |
790 self.copyAct.triggered.connect(self.__copy) |
781 self.__actions.append(self.copyAct) |
791 self.__actions.append(self.copyAct) |
782 |
792 |
783 self.findAct = E5Action( |
793 self.findAct = E5Action( |
784 self.trUtf8('Find...'), |
794 self.tr('Find...'), |
785 UI.PixmapCache.getIcon("find.png"), |
795 UI.PixmapCache.getIcon("find.png"), |
786 self.trUtf8('&Find...'), |
796 self.tr('&Find...'), |
787 QKeySequence(self.trUtf8("Ctrl+F", "Edit|Find")), |
797 QKeySequence(self.tr("Ctrl+F", "Edit|Find")), |
788 0, self, 'help_edit_find') |
798 0, self, 'help_edit_find') |
789 self.findAct.setStatusTip(self.trUtf8('Find text in page')) |
799 self.findAct.setStatusTip(self.tr('Find text in page')) |
790 self.findAct.setWhatsThis(self.trUtf8( |
800 self.findAct.setWhatsThis(self.tr( |
791 """<b>Find</b>""" |
801 """<b>Find</b>""" |
792 """<p>Find text in the current page.</p>""" |
802 """<p>Find text in the current page.</p>""" |
793 )) |
803 )) |
794 if not self.initShortcutsOnly: |
804 if not self.initShortcutsOnly: |
795 self.findAct.triggered[()].connect(self.__find) |
805 self.findAct.triggered.connect(self.__find) |
796 self.__actions.append(self.findAct) |
806 self.__actions.append(self.findAct) |
797 |
807 |
798 self.findNextAct = E5Action( |
808 self.findNextAct = E5Action( |
799 self.trUtf8('Find next'), |
809 self.tr('Find next'), |
800 UI.PixmapCache.getIcon("findNext.png"), |
810 UI.PixmapCache.getIcon("findNext.png"), |
801 self.trUtf8('Find &next'), |
811 self.tr('Find &next'), |
802 QKeySequence(self.trUtf8("F3", "Edit|Find next")), |
812 QKeySequence(self.tr("F3", "Edit|Find next")), |
803 0, self, 'help_edit_find_next') |
813 0, self, 'help_edit_find_next') |
804 self.findNextAct.setStatusTip(self.trUtf8( |
814 self.findNextAct.setStatusTip(self.tr( |
805 'Find next occurrence of text in page')) |
815 'Find next occurrence of text in page')) |
806 self.findNextAct.setWhatsThis(self.trUtf8( |
816 self.findNextAct.setWhatsThis(self.tr( |
807 """<b>Find next</b>""" |
817 """<b>Find next</b>""" |
808 """<p>Find the next occurrence of text in the current page.</p>""" |
818 """<p>Find the next occurrence of text in the current page.</p>""" |
809 )) |
819 )) |
810 if not self.initShortcutsOnly: |
820 if not self.initShortcutsOnly: |
811 self.findNextAct.triggered[()].connect(self.findDlg.findNext) |
821 self.findNextAct.triggered.connect(self.findDlg.findNext) |
812 self.__actions.append(self.findNextAct) |
822 self.__actions.append(self.findNextAct) |
813 |
823 |
814 self.findPrevAct = E5Action( |
824 self.findPrevAct = E5Action( |
815 self.trUtf8('Find previous'), |
825 self.tr('Find previous'), |
816 UI.PixmapCache.getIcon("findPrev.png"), |
826 UI.PixmapCache.getIcon("findPrev.png"), |
817 self.trUtf8('Find &previous'), |
827 self.tr('Find &previous'), |
818 QKeySequence(self.trUtf8("Shift+F3", "Edit|Find previous")), |
828 QKeySequence(self.tr("Shift+F3", "Edit|Find previous")), |
819 0, self, 'help_edit_find_previous') |
829 0, self, 'help_edit_find_previous') |
820 self.findPrevAct.setStatusTip( |
830 self.findPrevAct.setStatusTip( |
821 self.trUtf8('Find previous occurrence of text in page')) |
831 self.tr('Find previous occurrence of text in page')) |
822 self.findPrevAct.setWhatsThis(self.trUtf8( |
832 self.findPrevAct.setWhatsThis(self.tr( |
823 """<b>Find previous</b>""" |
833 """<b>Find previous</b>""" |
824 """<p>Find the previous occurrence of text in the current""" |
834 """<p>Find the previous occurrence of text in the current""" |
825 """ page.</p>""" |
835 """ page.</p>""" |
826 )) |
836 )) |
827 if not self.initShortcutsOnly: |
837 if not self.initShortcutsOnly: |
828 self.findPrevAct.triggered[()].connect(self.findDlg.findPrevious) |
838 self.findPrevAct.triggered.connect(self.findDlg.findPrevious) |
829 self.__actions.append(self.findPrevAct) |
839 self.__actions.append(self.findPrevAct) |
830 |
840 |
831 self.bookmarksManageAct = E5Action( |
841 self.bookmarksManageAct = E5Action( |
832 self.trUtf8('Manage Bookmarks'), |
842 self.tr('Manage Bookmarks'), |
833 self.trUtf8('&Manage Bookmarks...'), |
843 self.tr('&Manage Bookmarks...'), |
834 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
844 QKeySequence(self.tr("Ctrl+Shift+B", "Help|Manage bookmarks")), |
835 0, self, 'help_bookmarks_manage') |
845 0, self, 'help_bookmarks_manage') |
836 self.bookmarksManageAct.setStatusTip(self.trUtf8( |
846 self.bookmarksManageAct.setStatusTip(self.tr( |
837 'Open a dialog to manage the bookmarks.')) |
847 'Open a dialog to manage the bookmarks.')) |
838 self.bookmarksManageAct.setWhatsThis(self.trUtf8( |
848 self.bookmarksManageAct.setWhatsThis(self.tr( |
839 """<b>Manage Bookmarks...</b>""" |
849 """<b>Manage Bookmarks...</b>""" |
840 """<p>Open a dialog to manage the bookmarks.</p>""" |
850 """<p>Open a dialog to manage the bookmarks.</p>""" |
841 )) |
851 )) |
842 if not self.initShortcutsOnly: |
852 if not self.initShortcutsOnly: |
843 self.bookmarksManageAct.triggered[()].connect( |
853 self.bookmarksManageAct.triggered.connect( |
844 self.__showBookmarksDialog) |
854 self.__showBookmarksDialog) |
845 self.__actions.append(self.bookmarksManageAct) |
855 self.__actions.append(self.bookmarksManageAct) |
846 |
856 |
847 self.bookmarksAddAct = E5Action( |
857 self.bookmarksAddAct = E5Action( |
848 self.trUtf8('Add Bookmark'), |
858 self.tr('Add Bookmark'), |
849 UI.PixmapCache.getIcon("addBookmark.png"), |
859 UI.PixmapCache.getIcon("addBookmark.png"), |
850 self.trUtf8('Add &Bookmark...'), |
860 self.tr('Add &Bookmark...'), |
851 QKeySequence(self.trUtf8("Ctrl+D", "Help|Add bookmark")), |
861 QKeySequence(self.tr("Ctrl+D", "Help|Add bookmark")), |
852 0, self, 'help_bookmark_add') |
862 0, self, 'help_bookmark_add') |
853 self.bookmarksAddAct.setIconVisibleInMenu(False) |
863 self.bookmarksAddAct.setIconVisibleInMenu(False) |
854 self.bookmarksAddAct.setStatusTip(self.trUtf8( |
864 self.bookmarksAddAct.setStatusTip(self.tr( |
855 'Open a dialog to add a bookmark.')) |
865 'Open a dialog to add a bookmark.')) |
856 self.bookmarksAddAct.setWhatsThis(self.trUtf8( |
866 self.bookmarksAddAct.setWhatsThis(self.tr( |
857 """<b>Add Bookmark</b>""" |
867 """<b>Add Bookmark</b>""" |
858 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
868 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
859 )) |
869 )) |
860 if not self.initShortcutsOnly: |
870 if not self.initShortcutsOnly: |
861 self.bookmarksAddAct.triggered[()].connect(self.__addBookmark) |
871 self.bookmarksAddAct.triggered.connect(self.__addBookmark) |
862 self.__actions.append(self.bookmarksAddAct) |
872 self.__actions.append(self.bookmarksAddAct) |
863 |
873 |
864 self.bookmarksAddFolderAct = E5Action( |
874 self.bookmarksAddFolderAct = E5Action( |
865 self.trUtf8('Add Folder'), |
875 self.tr('Add Folder'), |
866 self.trUtf8('Add &Folder...'), |
876 self.tr('Add &Folder...'), |
867 0, 0, self, 'help_bookmark_show_all') |
877 0, 0, self, 'help_bookmark_show_all') |
868 self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( |
878 self.bookmarksAddFolderAct.setStatusTip(self.tr( |
869 'Open a dialog to add a new bookmarks folder.')) |
879 'Open a dialog to add a new bookmarks folder.')) |
870 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
880 self.bookmarksAddFolderAct.setWhatsThis(self.tr( |
871 """<b>Add Folder...</b>""" |
881 """<b>Add Folder...</b>""" |
872 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
882 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
873 )) |
883 )) |
874 if not self.initShortcutsOnly: |
884 if not self.initShortcutsOnly: |
875 self.bookmarksAddFolderAct.triggered[()].connect( |
885 self.bookmarksAddFolderAct.triggered.connect( |
876 self.__addBookmarkFolder) |
886 self.__addBookmarkFolder) |
877 self.__actions.append(self.bookmarksAddFolderAct) |
887 self.__actions.append(self.bookmarksAddFolderAct) |
878 |
888 |
879 self.bookmarksAllTabsAct = E5Action( |
889 self.bookmarksAllTabsAct = E5Action( |
880 self.trUtf8('Bookmark All Tabs'), |
890 self.tr('Bookmark All Tabs'), |
881 self.trUtf8('Bookmark All Tabs...'), |
891 self.tr('Bookmark All Tabs...'), |
882 0, 0, self, 'help_bookmark_all_tabs') |
892 0, 0, self, 'help_bookmark_all_tabs') |
883 self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( |
893 self.bookmarksAllTabsAct.setStatusTip(self.tr( |
884 'Bookmark all open tabs.')) |
894 'Bookmark all open tabs.')) |
885 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
895 self.bookmarksAllTabsAct.setWhatsThis(self.tr( |
886 """<b>Bookmark All Tabs...</b>""" |
896 """<b>Bookmark All Tabs...</b>""" |
887 """<p>Open a dialog to add a new bookmarks folder for""" |
897 """<p>Open a dialog to add a new bookmarks folder for""" |
888 """ all open tabs.</p>""" |
898 """ all open tabs.</p>""" |
889 )) |
899 )) |
890 if not self.initShortcutsOnly: |
900 if not self.initShortcutsOnly: |
891 self.bookmarksAllTabsAct.triggered[()].connect(self.bookmarkAll) |
901 self.bookmarksAllTabsAct.triggered.connect(self.bookmarkAll) |
892 self.__actions.append(self.bookmarksAllTabsAct) |
902 self.__actions.append(self.bookmarksAllTabsAct) |
893 |
903 |
894 self.whatsThisAct = E5Action( |
904 self.whatsThisAct = E5Action( |
895 self.trUtf8('What\'s This?'), |
905 self.tr('What\'s This?'), |
896 UI.PixmapCache.getIcon("whatsThis.png"), |
906 UI.PixmapCache.getIcon("whatsThis.png"), |
897 self.trUtf8('&What\'s This?'), |
907 self.tr('&What\'s This?'), |
898 QKeySequence(self.trUtf8("Shift+F1", "Help|What's This?'")), |
908 QKeySequence(self.tr("Shift+F1", "Help|What's This?'")), |
899 0, self, 'help_help_whats_this') |
909 0, self, 'help_help_whats_this') |
900 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |
910 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) |
901 self.whatsThisAct.setWhatsThis(self.trUtf8( |
911 self.whatsThisAct.setWhatsThis(self.tr( |
902 """<b>Display context sensitive help</b>""" |
912 """<b>Display context sensitive help</b>""" |
903 """<p>In What's This? mode, the mouse cursor shows an arrow""" |
913 """<p>In What's This? mode, the mouse cursor shows an arrow""" |
904 """ with a question mark, and you can click on the interface""" |
914 """ with a question mark, and you can click on the interface""" |
905 """ elements to get a short description of what they do and how""" |
915 """ elements to get a short description of what they do and how""" |
906 """ to use them. In dialogs, this feature can be accessed using""" |
916 """ to use them. In dialogs, this feature can be accessed using""" |
907 """ the context help button in the titlebar.</p>""" |
917 """ the context help button in the titlebar.</p>""" |
908 )) |
918 )) |
909 if not self.initShortcutsOnly: |
919 if not self.initShortcutsOnly: |
910 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
920 self.whatsThisAct.triggered.connect(self.__whatsThis) |
911 self.__actions.append(self.whatsThisAct) |
921 self.__actions.append(self.whatsThisAct) |
912 |
922 |
913 self.aboutAct = E5Action( |
923 self.aboutAct = E5Action( |
914 self.trUtf8('About'), |
924 self.tr('About'), |
915 self.trUtf8('&About'), |
925 self.tr('&About'), |
916 0, 0, self, 'help_help_about') |
926 0, 0, self, 'help_help_about') |
917 self.aboutAct.setStatusTip(self.trUtf8( |
927 self.aboutAct.setStatusTip(self.tr( |
918 'Display information about this software')) |
928 'Display information about this software')) |
919 self.aboutAct.setWhatsThis(self.trUtf8( |
929 self.aboutAct.setWhatsThis(self.tr( |
920 """<b>About</b>""" |
930 """<b>About</b>""" |
921 """<p>Display some information about this software.</p>""" |
931 """<p>Display some information about this software.</p>""" |
922 )) |
932 )) |
923 if not self.initShortcutsOnly: |
933 if not self.initShortcutsOnly: |
924 self.aboutAct.triggered[()].connect(self.__about) |
934 self.aboutAct.triggered.connect(self.__about) |
925 self.__actions.append(self.aboutAct) |
935 self.__actions.append(self.aboutAct) |
926 |
936 |
927 self.aboutQtAct = E5Action( |
937 self.aboutQtAct = E5Action( |
928 self.trUtf8('About Qt'), |
938 self.tr('About Qt'), |
929 self.trUtf8('About &Qt'), |
939 self.tr('About &Qt'), |
930 0, 0, self, 'help_help_about_qt') |
940 0, 0, self, 'help_help_about_qt') |
931 self.aboutQtAct.setStatusTip( |
941 self.aboutQtAct.setStatusTip( |
932 self.trUtf8('Display information about the Qt toolkit')) |
942 self.tr('Display information about the Qt toolkit')) |
933 self.aboutQtAct.setWhatsThis(self.trUtf8( |
943 self.aboutQtAct.setWhatsThis(self.tr( |
934 """<b>About Qt</b>""" |
944 """<b>About Qt</b>""" |
935 """<p>Display some information about the Qt toolkit.</p>""" |
945 """<p>Display some information about the Qt toolkit.</p>""" |
936 )) |
946 )) |
937 if not self.initShortcutsOnly: |
947 if not self.initShortcutsOnly: |
938 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
948 self.aboutQtAct.triggered.connect(self.__aboutQt) |
939 self.__actions.append(self.aboutQtAct) |
949 self.__actions.append(self.aboutQtAct) |
940 |
950 |
941 self.zoomInAct = E5Action( |
951 self.zoomInAct = E5Action( |
942 self.trUtf8('Zoom in'), |
952 self.tr('Zoom in'), |
943 UI.PixmapCache.getIcon("zoomIn.png"), |
953 UI.PixmapCache.getIcon("zoomIn.png"), |
944 self.trUtf8('Zoom &in'), |
954 self.tr('Zoom &in'), |
945 QKeySequence(self.trUtf8("Ctrl++", "View|Zoom in")), |
955 QKeySequence(self.tr("Ctrl++", "View|Zoom in")), |
946 QKeySequence(self.trUtf8("Zoom In", "View|Zoom in")), |
956 QKeySequence(self.tr("Zoom In", "View|Zoom in")), |
947 self, 'help_view_zoom_in') |
957 self, 'help_view_zoom_in') |
948 self.zoomInAct.setStatusTip(self.trUtf8('Zoom in on the text')) |
958 self.zoomInAct.setStatusTip(self.tr('Zoom in on the text')) |
949 self.zoomInAct.setWhatsThis(self.trUtf8( |
959 self.zoomInAct.setWhatsThis(self.tr( |
950 """<b>Zoom in</b>""" |
960 """<b>Zoom in</b>""" |
951 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
961 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
952 )) |
962 )) |
953 if not self.initShortcutsOnly: |
963 if not self.initShortcutsOnly: |
954 self.zoomInAct.triggered[()].connect(self.__zoomIn) |
964 self.zoomInAct.triggered.connect(self.__zoomIn) |
955 self.__actions.append(self.zoomInAct) |
965 self.__actions.append(self.zoomInAct) |
956 |
966 |
957 self.zoomOutAct = E5Action( |
967 self.zoomOutAct = E5Action( |
958 self.trUtf8('Zoom out'), |
968 self.tr('Zoom out'), |
959 UI.PixmapCache.getIcon("zoomOut.png"), |
969 UI.PixmapCache.getIcon("zoomOut.png"), |
960 self.trUtf8('Zoom &out'), |
970 self.tr('Zoom &out'), |
961 QKeySequence(self.trUtf8("Ctrl+-", "View|Zoom out")), |
971 QKeySequence(self.tr("Ctrl+-", "View|Zoom out")), |
962 QKeySequence(self.trUtf8("Zoom Out", "View|Zoom out")), |
972 QKeySequence(self.tr("Zoom Out", "View|Zoom out")), |
963 self, 'help_view_zoom_out') |
973 self, 'help_view_zoom_out') |
964 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
974 self.zoomOutAct.setStatusTip(self.tr('Zoom out on the text')) |
965 self.zoomOutAct.setWhatsThis(self.trUtf8( |
975 self.zoomOutAct.setWhatsThis(self.tr( |
966 """<b>Zoom out</b>""" |
976 """<b>Zoom out</b>""" |
967 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
977 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
968 )) |
978 )) |
969 if not self.initShortcutsOnly: |
979 if not self.initShortcutsOnly: |
970 self.zoomOutAct.triggered[()].connect(self.__zoomOut) |
980 self.zoomOutAct.triggered.connect(self.__zoomOut) |
971 self.__actions.append(self.zoomOutAct) |
981 self.__actions.append(self.zoomOutAct) |
972 |
982 |
973 self.zoomResetAct = E5Action( |
983 self.zoomResetAct = E5Action( |
974 self.trUtf8('Zoom reset'), |
984 self.tr('Zoom reset'), |
975 UI.PixmapCache.getIcon("zoomReset.png"), |
985 UI.PixmapCache.getIcon("zoomReset.png"), |
976 self.trUtf8('Zoom &reset'), |
986 self.tr('Zoom &reset'), |
977 QKeySequence(self.trUtf8("Ctrl+0", "View|Zoom reset")), |
987 QKeySequence(self.tr("Ctrl+0", "View|Zoom reset")), |
978 0, self, 'help_view_zoom_reset') |
988 0, self, 'help_view_zoom_reset') |
979 self.zoomResetAct.setStatusTip(self.trUtf8( |
989 self.zoomResetAct.setStatusTip(self.tr( |
980 'Reset the zoom of the text')) |
990 'Reset the zoom of the text')) |
981 self.zoomResetAct.setWhatsThis(self.trUtf8( |
991 self.zoomResetAct.setWhatsThis(self.tr( |
982 """<b>Zoom reset</b>""" |
992 """<b>Zoom reset</b>""" |
983 """<p>Reset the zoom of the text. """ |
993 """<p>Reset the zoom of the text. """ |
984 """This sets the zoom factor to 100%.</p>""" |
994 """This sets the zoom factor to 100%.</p>""" |
985 )) |
995 )) |
986 if not self.initShortcutsOnly: |
996 if not self.initShortcutsOnly: |
987 self.zoomResetAct.triggered[()].connect(self.__zoomReset) |
997 self.zoomResetAct.triggered.connect(self.__zoomReset) |
988 self.__actions.append(self.zoomResetAct) |
998 self.__actions.append(self.zoomResetAct) |
989 |
999 |
990 if hasattr(QWebSettings, 'ZoomTextOnly'): |
1000 if hasattr(QWebSettings, 'ZoomTextOnly'): |
991 self.zoomTextOnlyAct = E5Action( |
1001 self.zoomTextOnlyAct = E5Action( |
992 self.trUtf8('Zoom text only'), |
1002 self.tr('Zoom text only'), |
993 self.trUtf8('Zoom &text only'), |
1003 self.tr('Zoom &text only'), |
994 0, 0, self, 'help_view_zoom_text_only') |
1004 0, 0, self, 'help_view_zoom_text_only') |
995 self.zoomTextOnlyAct.setCheckable(True) |
1005 self.zoomTextOnlyAct.setCheckable(True) |
996 self.zoomTextOnlyAct.setStatusTip(self.trUtf8( |
1006 self.zoomTextOnlyAct.setStatusTip(self.tr( |
997 'Zoom text only; pictures remain constant')) |
1007 'Zoom text only; pictures remain constant')) |
998 self.zoomTextOnlyAct.setWhatsThis(self.trUtf8( |
1008 self.zoomTextOnlyAct.setWhatsThis(self.tr( |
999 """<b>Zoom text only</b>""" |
1009 """<b>Zoom text only</b>""" |
1000 """<p>Zoom text only; pictures remain constant.</p>""" |
1010 """<p>Zoom text only; pictures remain constant.</p>""" |
1001 )) |
1011 )) |
1002 if not self.initShortcutsOnly: |
1012 if not self.initShortcutsOnly: |
1003 self.zoomTextOnlyAct.triggered[bool].connect( |
1013 self.zoomTextOnlyAct.triggered[bool].connect( |
1005 self.__actions.append(self.zoomTextOnlyAct) |
1015 self.__actions.append(self.zoomTextOnlyAct) |
1006 else: |
1016 else: |
1007 self.zoomTextOnlyAct = None |
1017 self.zoomTextOnlyAct = None |
1008 |
1018 |
1009 self.pageSourceAct = E5Action( |
1019 self.pageSourceAct = E5Action( |
1010 self.trUtf8('Show page source'), |
1020 self.tr('Show page source'), |
1011 self.trUtf8('Show page source'), |
1021 self.tr('Show page source'), |
1012 QKeySequence(self.trUtf8('Ctrl+U')), 0, |
1022 QKeySequence(self.tr('Ctrl+U')), 0, |
1013 self, 'help_show_page_source') |
1023 self, 'help_show_page_source') |
1014 self.pageSourceAct.setStatusTip(self.trUtf8( |
1024 self.pageSourceAct.setStatusTip(self.tr( |
1015 'Show the page source in an editor')) |
1025 'Show the page source in an editor')) |
1016 self.pageSourceAct.setWhatsThis(self.trUtf8( |
1026 self.pageSourceAct.setWhatsThis(self.tr( |
1017 """<b>Show page source</b>""" |
1027 """<b>Show page source</b>""" |
1018 """<p>Show the page source in an editor.</p>""" |
1028 """<p>Show the page source in an editor.</p>""" |
1019 )) |
1029 )) |
1020 if not self.initShortcutsOnly: |
1030 if not self.initShortcutsOnly: |
1021 self.pageSourceAct.triggered[()].connect(self.__showPageSource) |
1031 self.pageSourceAct.triggered.connect(self.__showPageSource) |
1022 self.__actions.append(self.pageSourceAct) |
1032 self.__actions.append(self.pageSourceAct) |
1023 self.addAction(self.pageSourceAct) |
1033 self.addAction(self.pageSourceAct) |
1024 |
1034 |
1025 self.fullScreenAct = E5Action( |
1035 self.fullScreenAct = E5Action( |
1026 self.trUtf8('Full Screen'), |
1036 self.tr('Full Screen'), |
1027 UI.PixmapCache.getIcon("windowFullscreen.png"), |
1037 UI.PixmapCache.getIcon("windowFullscreen.png"), |
1028 self.trUtf8('&Full Screen'), |
1038 self.tr('&Full Screen'), |
1029 QKeySequence(self.trUtf8('F11')), 0, |
1039 QKeySequence(self.tr('F11')), 0, |
1030 self, 'help_view_full_scree') |
1040 self, 'help_view_full_scree') |
1031 if not self.initShortcutsOnly: |
1041 if not self.initShortcutsOnly: |
1032 self.fullScreenAct.triggered[()].connect(self.__viewFullScreen) |
1042 self.fullScreenAct.triggered.connect(self.__viewFullScreen) |
1033 self.__actions.append(self.fullScreenAct) |
1043 self.__actions.append(self.fullScreenAct) |
1034 self.addAction(self.fullScreenAct) |
1044 self.addAction(self.fullScreenAct) |
1035 |
1045 |
1036 self.nextTabAct = E5Action( |
1046 self.nextTabAct = E5Action( |
1037 self.trUtf8('Show next tab'), |
1047 self.tr('Show next tab'), |
1038 self.trUtf8('Show next tab'), |
1048 self.tr('Show next tab'), |
1039 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
1049 QKeySequence(self.tr('Ctrl+Alt+Tab')), 0, |
1040 self, 'help_view_next_tab') |
1050 self, 'help_view_next_tab') |
1041 if not self.initShortcutsOnly: |
1051 if not self.initShortcutsOnly: |
1042 self.nextTabAct.triggered[()].connect(self.__nextTab) |
1052 self.nextTabAct.triggered.connect(self.__nextTab) |
1043 self.__actions.append(self.nextTabAct) |
1053 self.__actions.append(self.nextTabAct) |
1044 self.addAction(self.nextTabAct) |
1054 self.addAction(self.nextTabAct) |
1045 |
1055 |
1046 self.prevTabAct = E5Action( |
1056 self.prevTabAct = E5Action( |
1047 self.trUtf8('Show previous tab'), |
1057 self.tr('Show previous tab'), |
1048 self.trUtf8('Show previous tab'), |
1058 self.tr('Show previous tab'), |
1049 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
1059 QKeySequence(self.tr('Shift+Ctrl+Alt+Tab')), 0, |
1050 self, 'help_view_previous_tab') |
1060 self, 'help_view_previous_tab') |
1051 if not self.initShortcutsOnly: |
1061 if not self.initShortcutsOnly: |
1052 self.prevTabAct.triggered[()].connect(self.__prevTab) |
1062 self.prevTabAct.triggered.connect(self.__prevTab) |
1053 self.__actions.append(self.prevTabAct) |
1063 self.__actions.append(self.prevTabAct) |
1054 self.addAction(self.prevTabAct) |
1064 self.addAction(self.prevTabAct) |
1055 |
1065 |
1056 self.switchTabAct = E5Action( |
1066 self.switchTabAct = E5Action( |
1057 self.trUtf8('Switch between tabs'), |
1067 self.tr('Switch between tabs'), |
1058 self.trUtf8('Switch between tabs'), |
1068 self.tr('Switch between tabs'), |
1059 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
1069 QKeySequence(self.tr('Ctrl+1')), 0, |
1060 self, 'help_switch_tabs') |
1070 self, 'help_switch_tabs') |
1061 if not self.initShortcutsOnly: |
1071 if not self.initShortcutsOnly: |
1062 self.switchTabAct.triggered[()].connect(self.__switchTab) |
1072 self.switchTabAct.triggered.connect(self.__switchTab) |
1063 self.__actions.append(self.switchTabAct) |
1073 self.__actions.append(self.switchTabAct) |
1064 self.addAction(self.switchTabAct) |
1074 self.addAction(self.switchTabAct) |
1065 |
1075 |
1066 self.prefAct = E5Action( |
1076 self.prefAct = E5Action( |
1067 self.trUtf8('Preferences'), |
1077 self.tr('Preferences'), |
1068 UI.PixmapCache.getIcon("configure.png"), |
1078 UI.PixmapCache.getIcon("configure.png"), |
1069 self.trUtf8('&Preferences...'), 0, 0, self, 'help_preferences') |
1079 self.tr('&Preferences...'), 0, 0, self, 'help_preferences') |
1070 self.prefAct.setStatusTip(self.trUtf8( |
1080 self.prefAct.setStatusTip(self.tr( |
1071 'Set the prefered configuration')) |
1081 'Set the prefered configuration')) |
1072 self.prefAct.setWhatsThis(self.trUtf8( |
1082 self.prefAct.setWhatsThis(self.tr( |
1073 """<b>Preferences</b>""" |
1083 """<b>Preferences</b>""" |
1074 """<p>Set the configuration items of the application""" |
1084 """<p>Set the configuration items of the application""" |
1075 """ with your prefered values.</p>""" |
1085 """ with your prefered values.</p>""" |
1076 )) |
1086 )) |
1077 if not self.initShortcutsOnly: |
1087 if not self.initShortcutsOnly: |
1078 self.prefAct.triggered[()].connect(self.__showPreferences) |
1088 self.prefAct.triggered.connect(self.__showPreferences) |
1079 self.__actions.append(self.prefAct) |
1089 self.__actions.append(self.prefAct) |
1080 |
1090 |
1081 self.acceptedLanguagesAct = E5Action( |
1091 self.acceptedLanguagesAct = E5Action( |
1082 self.trUtf8('Languages'), |
1092 self.tr('Languages'), |
1083 UI.PixmapCache.getIcon("flag.png"), |
1093 UI.PixmapCache.getIcon("flag.png"), |
1084 self.trUtf8('&Languages...'), 0, 0, |
1094 self.tr('&Languages...'), 0, 0, |
1085 self, 'help_accepted_languages') |
1095 self, 'help_accepted_languages') |
1086 self.acceptedLanguagesAct.setStatusTip(self.trUtf8( |
1096 self.acceptedLanguagesAct.setStatusTip(self.tr( |
1087 'Configure the accepted languages for web pages')) |
1097 'Configure the accepted languages for web pages')) |
1088 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
1098 self.acceptedLanguagesAct.setWhatsThis(self.tr( |
1089 """<b>Languages</b>""" |
1099 """<b>Languages</b>""" |
1090 """<p>Configure the accepted languages for web pages.</p>""" |
1100 """<p>Configure the accepted languages for web pages.</p>""" |
1091 )) |
1101 )) |
1092 if not self.initShortcutsOnly: |
1102 if not self.initShortcutsOnly: |
1093 self.acceptedLanguagesAct.triggered[()].connect( |
1103 self.acceptedLanguagesAct.triggered.connect( |
1094 self.__showAcceptedLanguages) |
1104 self.__showAcceptedLanguages) |
1095 self.__actions.append(self.acceptedLanguagesAct) |
1105 self.__actions.append(self.acceptedLanguagesAct) |
1096 |
1106 |
1097 self.cookiesAct = E5Action( |
1107 self.cookiesAct = E5Action( |
1098 self.trUtf8('Cookies'), |
1108 self.tr('Cookies'), |
1099 UI.PixmapCache.getIcon("cookie.png"), |
1109 UI.PixmapCache.getIcon("cookie.png"), |
1100 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
1110 self.tr('C&ookies...'), 0, 0, self, 'help_cookies') |
1101 self.cookiesAct.setStatusTip(self.trUtf8( |
1111 self.cookiesAct.setStatusTip(self.tr( |
1102 'Configure cookies handling')) |
1112 'Configure cookies handling')) |
1103 self.cookiesAct.setWhatsThis(self.trUtf8( |
1113 self.cookiesAct.setWhatsThis(self.tr( |
1104 """<b>Cookies</b>""" |
1114 """<b>Cookies</b>""" |
1105 """<p>Configure cookies handling.</p>""" |
1115 """<p>Configure cookies handling.</p>""" |
1106 )) |
1116 )) |
1107 if not self.initShortcutsOnly: |
1117 if not self.initShortcutsOnly: |
1108 self.cookiesAct.triggered[()].connect( |
1118 self.cookiesAct.triggered.connect( |
1109 self.__showCookiesConfiguration) |
1119 self.__showCookiesConfiguration) |
1110 self.__actions.append(self.cookiesAct) |
1120 self.__actions.append(self.cookiesAct) |
1111 |
1121 |
1112 self.offlineStorageAct = E5Action( |
1122 self.offlineStorageAct = E5Action( |
1113 self.trUtf8('Offline Storage'), |
1123 self.tr('Offline Storage'), |
1114 UI.PixmapCache.getIcon("preferences-html5.png"), |
1124 UI.PixmapCache.getIcon("preferences-html5.png"), |
1115 self.trUtf8('Offline &Storage...'), 0, 0, |
1125 self.tr('Offline &Storage...'), 0, 0, |
1116 self, 'help_offline_storage') |
1126 self, 'help_offline_storage') |
1117 self.offlineStorageAct.setStatusTip(self.trUtf8( |
1127 self.offlineStorageAct.setStatusTip(self.tr( |
1118 'Configure offline storage')) |
1128 'Configure offline storage')) |
1119 self.offlineStorageAct.setWhatsThis(self.trUtf8( |
1129 self.offlineStorageAct.setWhatsThis(self.tr( |
1120 """<b>Offline Storage</b>""" |
1130 """<b>Offline Storage</b>""" |
1121 """<p>Opens a dialog to configure offline storage.</p>""" |
1131 """<p>Opens a dialog to configure offline storage.</p>""" |
1122 )) |
1132 )) |
1123 if not self.initShortcutsOnly: |
1133 if not self.initShortcutsOnly: |
1124 self.offlineStorageAct.triggered[()].connect( |
1134 self.offlineStorageAct.triggered.connect( |
1125 self.__showOfflineStorageConfiguration) |
1135 self.__showOfflineStorageConfiguration) |
1126 self.__actions.append(self.offlineStorageAct) |
1136 self.__actions.append(self.offlineStorageAct) |
1127 |
1137 |
1128 self.personalDataAct = E5Action( |
1138 self.personalDataAct = E5Action( |
1129 self.trUtf8('Personal Information'), |
1139 self.tr('Personal Information'), |
1130 UI.PixmapCache.getIcon("pim.png"), |
1140 UI.PixmapCache.getIcon("pim.png"), |
1131 self.trUtf8('Personal Information...'), |
1141 self.tr('Personal Information...'), |
1132 0, 0, |
1142 0, 0, |
1133 self, 'help_personal_information') |
1143 self, 'help_personal_information') |
1134 self.personalDataAct.setStatusTip(self.trUtf8( |
1144 self.personalDataAct.setStatusTip(self.tr( |
1135 'Configure personal information for completing form fields')) |
1145 'Configure personal information for completing form fields')) |
1136 self.personalDataAct.setWhatsThis(self.trUtf8( |
1146 self.personalDataAct.setWhatsThis(self.tr( |
1137 """<b>Personal Information...</b>""" |
1147 """<b>Personal Information...</b>""" |
1138 """<p>Opens a dialog to configure the personal information""" |
1148 """<p>Opens a dialog to configure the personal information""" |
1139 """ used for completing form fields.</p>""" |
1149 """ used for completing form fields.</p>""" |
1140 )) |
1150 )) |
1141 if not self.initShortcutsOnly: |
1151 if not self.initShortcutsOnly: |
1142 self.personalDataAct.triggered[()].connect( |
1152 self.personalDataAct.triggered.connect( |
1143 self.__showPersonalInformationDialog) |
1153 self.__showPersonalInformationDialog) |
1144 self.__actions.append(self.personalDataAct) |
1154 self.__actions.append(self.personalDataAct) |
1145 |
1155 |
1146 self.greaseMonkeyAct = E5Action( |
1156 self.greaseMonkeyAct = E5Action( |
1147 self.trUtf8('GreaseMonkey Scripts'), |
1157 self.tr('GreaseMonkey Scripts'), |
1148 UI.PixmapCache.getIcon("greaseMonkey.png"), |
1158 UI.PixmapCache.getIcon("greaseMonkey.png"), |
1149 self.trUtf8('GreaseMonkey Scripts...'), |
1159 self.tr('GreaseMonkey Scripts...'), |
1150 0, 0, |
1160 0, 0, |
1151 self, 'help_greasemonkey') |
1161 self, 'help_greasemonkey') |
1152 self.greaseMonkeyAct.setStatusTip(self.trUtf8( |
1162 self.greaseMonkeyAct.setStatusTip(self.tr( |
1153 'Configure the GreaseMonkey Scripts')) |
1163 'Configure the GreaseMonkey Scripts')) |
1154 self.greaseMonkeyAct.setWhatsThis(self.trUtf8( |
1164 self.greaseMonkeyAct.setWhatsThis(self.tr( |
1155 """<b>GreaseMonkey Scripts...</b>""" |
1165 """<b>GreaseMonkey Scripts...</b>""" |
1156 """<p>Opens a dialog to configure the available GreaseMonkey""" |
1166 """<p>Opens a dialog to configure the available GreaseMonkey""" |
1157 """ Scripts.</p>""" |
1167 """ Scripts.</p>""" |
1158 )) |
1168 )) |
1159 if not self.initShortcutsOnly: |
1169 if not self.initShortcutsOnly: |
1160 self.greaseMonkeyAct.triggered[()].connect( |
1170 self.greaseMonkeyAct.triggered.connect( |
1161 self.__showGreaseMonkeyConfigDialog) |
1171 self.__showGreaseMonkeyConfigDialog) |
1162 self.__actions.append(self.greaseMonkeyAct) |
1172 self.__actions.append(self.greaseMonkeyAct) |
1163 |
1173 |
1164 self.editMessageFilterAct = E5Action( |
1174 self.editMessageFilterAct = E5Action( |
1165 self.trUtf8('Edit Message Filters'), |
1175 self.tr('Edit Message Filters'), |
1166 UI.PixmapCache.getIcon("warning.png"), |
1176 UI.PixmapCache.getIcon("warning.png"), |
1167 self.trUtf8('Edit Message Filters...'), 0, 0, self, |
1177 self.tr('Edit Message Filters...'), 0, 0, self, |
1168 'help_manage_message_filters') |
1178 'help_manage_message_filters') |
1169 self.editMessageFilterAct.setStatusTip(self.trUtf8( |
1179 self.editMessageFilterAct.setStatusTip(self.tr( |
1170 'Edit the message filters used to suppress unwanted messages')) |
1180 'Edit the message filters used to suppress unwanted messages')) |
1171 self.editMessageFilterAct.setWhatsThis(self.trUtf8( |
1181 self.editMessageFilterAct.setWhatsThis(self.tr( |
1172 """<b>Edit Message Filters</b>""" |
1182 """<b>Edit Message Filters</b>""" |
1173 """<p>Opens a dialog to edit the message filters used to""" |
1183 """<p>Opens a dialog to edit the message filters used to""" |
1174 """ suppress unwanted messages been shown in an error""" |
1184 """ suppress unwanted messages been shown in an error""" |
1175 """ window.</p>""" |
1185 """ window.</p>""" |
1176 )) |
1186 )) |
1177 if not self.initShortcutsOnly: |
1187 if not self.initShortcutsOnly: |
1178 self.editMessageFilterAct.triggered[()].connect( |
1188 self.editMessageFilterAct.triggered.connect( |
1179 E5ErrorMessage.editMessageFilters) |
1189 E5ErrorMessage.editMessageFilters) |
1180 self.__actions.append(self.editMessageFilterAct) |
1190 self.__actions.append(self.editMessageFilterAct) |
1181 |
1191 |
1182 if self.useQtHelp or self.initShortcutsOnly: |
1192 if self.useQtHelp or self.initShortcutsOnly: |
1183 self.syncTocAct = E5Action( |
1193 self.syncTocAct = E5Action( |
1184 self.trUtf8('Sync with Table of Contents'), |
1194 self.tr('Sync with Table of Contents'), |
1185 UI.PixmapCache.getIcon("syncToc.png"), |
1195 UI.PixmapCache.getIcon("syncToc.png"), |
1186 self.trUtf8('Sync with Table of Contents'), |
1196 self.tr('Sync with Table of Contents'), |
1187 0, 0, self, 'help_sync_toc') |
1197 0, 0, self, 'help_sync_toc') |
1188 self.syncTocAct.setStatusTip(self.trUtf8( |
1198 self.syncTocAct.setStatusTip(self.tr( |
1189 'Synchronizes the table of contents with current page')) |
1199 'Synchronizes the table of contents with current page')) |
1190 self.syncTocAct.setWhatsThis(self.trUtf8( |
1200 self.syncTocAct.setWhatsThis(self.tr( |
1191 """<b>Sync with Table of Contents</b>""" |
1201 """<b>Sync with Table of Contents</b>""" |
1192 """<p>Synchronizes the table of contents with current""" |
1202 """<p>Synchronizes the table of contents with current""" |
1193 """ page.</p>""" |
1203 """ page.</p>""" |
1194 )) |
1204 )) |
1195 if not self.initShortcutsOnly: |
1205 if not self.initShortcutsOnly: |
1196 self.syncTocAct.triggered[()].connect(self.__syncTOC) |
1206 self.syncTocAct.triggered.connect(self.__syncTOC) |
1197 self.__actions.append(self.syncTocAct) |
1207 self.__actions.append(self.syncTocAct) |
1198 |
1208 |
1199 self.showTocAct = E5Action( |
1209 self.showTocAct = E5Action( |
1200 self.trUtf8('Table of Contents'), |
1210 self.tr('Table of Contents'), |
1201 self.trUtf8('Table of Contents'), |
1211 self.tr('Table of Contents'), |
1202 0, 0, self, 'help_show_toc') |
1212 0, 0, self, 'help_show_toc') |
1203 self.showTocAct.setStatusTip(self.trUtf8( |
1213 self.showTocAct.setStatusTip(self.tr( |
1204 'Shows the table of contents window')) |
1214 'Shows the table of contents window')) |
1205 self.showTocAct.setWhatsThis(self.trUtf8( |
1215 self.showTocAct.setWhatsThis(self.tr( |
1206 """<b>Table of Contents</b>""" |
1216 """<b>Table of Contents</b>""" |
1207 """<p>Shows the table of contents window.</p>""" |
1217 """<p>Shows the table of contents window.</p>""" |
1208 )) |
1218 )) |
1209 if not self.initShortcutsOnly: |
1219 if not self.initShortcutsOnly: |
1210 self.showTocAct.triggered[()].connect(self.__showTocWindow) |
1220 self.showTocAct.triggered.connect(self.__showTocWindow) |
1211 self.__actions.append(self.showTocAct) |
1221 self.__actions.append(self.showTocAct) |
1212 |
1222 |
1213 self.showIndexAct = E5Action( |
1223 self.showIndexAct = E5Action( |
1214 self.trUtf8('Index'), |
1224 self.tr('Index'), |
1215 self.trUtf8('Index'), |
1225 self.tr('Index'), |
1216 0, 0, self, 'help_show_index') |
1226 0, 0, self, 'help_show_index') |
1217 self.showIndexAct.setStatusTip(self.trUtf8( |
1227 self.showIndexAct.setStatusTip(self.tr( |
1218 'Shows the index window')) |
1228 'Shows the index window')) |
1219 self.showIndexAct.setWhatsThis(self.trUtf8( |
1229 self.showIndexAct.setWhatsThis(self.tr( |
1220 """<b>Index</b>""" |
1230 """<b>Index</b>""" |
1221 """<p>Shows the index window.</p>""" |
1231 """<p>Shows the index window.</p>""" |
1222 )) |
1232 )) |
1223 if not self.initShortcutsOnly: |
1233 if not self.initShortcutsOnly: |
1224 self.showIndexAct.triggered[()].connect(self.__showIndexWindow) |
1234 self.showIndexAct.triggered.connect(self.__showIndexWindow) |
1225 self.__actions.append(self.showIndexAct) |
1235 self.__actions.append(self.showIndexAct) |
1226 |
1236 |
1227 self.showSearchAct = E5Action( |
1237 self.showSearchAct = E5Action( |
1228 self.trUtf8('Search'), |
1238 self.tr('Search'), |
1229 self.trUtf8('Search'), |
1239 self.tr('Search'), |
1230 0, 0, self, 'help_show_search') |
1240 0, 0, self, 'help_show_search') |
1231 self.showSearchAct.setStatusTip(self.trUtf8( |
1241 self.showSearchAct.setStatusTip(self.tr( |
1232 'Shows the search window')) |
1242 'Shows the search window')) |
1233 self.showSearchAct.setWhatsThis(self.trUtf8( |
1243 self.showSearchAct.setWhatsThis(self.tr( |
1234 """<b>Search</b>""" |
1244 """<b>Search</b>""" |
1235 """<p>Shows the search window.</p>""" |
1245 """<p>Shows the search window.</p>""" |
1236 )) |
1246 )) |
1237 if not self.initShortcutsOnly: |
1247 if not self.initShortcutsOnly: |
1238 self.showSearchAct.triggered[()].connect( |
1248 self.showSearchAct.triggered.connect( |
1239 self.__showSearchWindow) |
1249 self.__showSearchWindow) |
1240 self.__actions.append(self.showSearchAct) |
1250 self.__actions.append(self.showSearchAct) |
1241 |
1251 |
1242 self.manageQtHelpDocsAct = E5Action( |
1252 self.manageQtHelpDocsAct = E5Action( |
1243 self.trUtf8('Manage QtHelp Documents'), |
1253 self.tr('Manage QtHelp Documents'), |
1244 self.trUtf8('Manage QtHelp &Documents'), |
1254 self.tr('Manage QtHelp &Documents'), |
1245 0, 0, self, 'help_qthelp_documents') |
1255 0, 0, self, 'help_qthelp_documents') |
1246 self.manageQtHelpDocsAct.setStatusTip(self.trUtf8( |
1256 self.manageQtHelpDocsAct.setStatusTip(self.tr( |
1247 'Shows a dialog to manage the QtHelp documentation set')) |
1257 'Shows a dialog to manage the QtHelp documentation set')) |
1248 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
1258 self.manageQtHelpDocsAct.setWhatsThis(self.tr( |
1249 """<b>Manage QtHelp Documents</b>""" |
1259 """<b>Manage QtHelp Documents</b>""" |
1250 """<p>Shows a dialog to manage the QtHelp documentation""" |
1260 """<p>Shows a dialog to manage the QtHelp documentation""" |
1251 """ set.</p>""" |
1261 """ set.</p>""" |
1252 )) |
1262 )) |
1253 if not self.initShortcutsOnly: |
1263 if not self.initShortcutsOnly: |
1254 self.manageQtHelpDocsAct.triggered[()].connect( |
1264 self.manageQtHelpDocsAct.triggered.connect( |
1255 self.__manageQtHelpDocumentation) |
1265 self.__manageQtHelpDocumentation) |
1256 self.__actions.append(self.manageQtHelpDocsAct) |
1266 self.__actions.append(self.manageQtHelpDocsAct) |
1257 |
1267 |
1258 self.manageQtHelpFiltersAct = E5Action( |
1268 self.manageQtHelpFiltersAct = E5Action( |
1259 self.trUtf8('Manage QtHelp Filters'), |
1269 self.tr('Manage QtHelp Filters'), |
1260 self.trUtf8('Manage QtHelp &Filters'), |
1270 self.tr('Manage QtHelp &Filters'), |
1261 0, 0, self, 'help_qthelp_filters') |
1271 0, 0, self, 'help_qthelp_filters') |
1262 self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( |
1272 self.manageQtHelpFiltersAct.setStatusTip(self.tr( |
1263 'Shows a dialog to manage the QtHelp filters')) |
1273 'Shows a dialog to manage the QtHelp filters')) |
1264 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
1274 self.manageQtHelpFiltersAct.setWhatsThis(self.tr( |
1265 """<b>Manage QtHelp Filters</b>""" |
1275 """<b>Manage QtHelp Filters</b>""" |
1266 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
1276 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
1267 )) |
1277 )) |
1268 if not self.initShortcutsOnly: |
1278 if not self.initShortcutsOnly: |
1269 self.manageQtHelpFiltersAct.triggered[()].connect( |
1279 self.manageQtHelpFiltersAct.triggered.connect( |
1270 self.__manageQtHelpFilters) |
1280 self.__manageQtHelpFilters) |
1271 self.__actions.append(self.manageQtHelpFiltersAct) |
1281 self.__actions.append(self.manageQtHelpFiltersAct) |
1272 |
1282 |
1273 self.reindexDocumentationAct = E5Action( |
1283 self.reindexDocumentationAct = E5Action( |
1274 self.trUtf8('Reindex Documentation'), |
1284 self.tr('Reindex Documentation'), |
1275 self.trUtf8('&Reindex Documentation'), |
1285 self.tr('&Reindex Documentation'), |
1276 0, 0, self, 'help_qthelp_reindex') |
1286 0, 0, self, 'help_qthelp_reindex') |
1277 self.reindexDocumentationAct.setStatusTip(self.trUtf8( |
1287 self.reindexDocumentationAct.setStatusTip(self.tr( |
1278 'Reindexes the documentation set')) |
1288 'Reindexes the documentation set')) |
1279 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
1289 self.reindexDocumentationAct.setWhatsThis(self.tr( |
1280 """<b>Reindex Documentation</b>""" |
1290 """<b>Reindex Documentation</b>""" |
1281 """<p>Reindexes the documentation set.</p>""" |
1291 """<p>Reindexes the documentation set.</p>""" |
1282 )) |
1292 )) |
1283 if not self.initShortcutsOnly: |
1293 if not self.initShortcutsOnly: |
1284 self.reindexDocumentationAct.triggered[()].connect( |
1294 self.reindexDocumentationAct.triggered.connect( |
1285 self.__searchEngine.reindexDocumentation) |
1295 self.__searchEngine.reindexDocumentation) |
1286 self.__actions.append(self.reindexDocumentationAct) |
1296 self.__actions.append(self.reindexDocumentationAct) |
1287 |
1297 |
1288 self.clearPrivateDataAct = E5Action( |
1298 self.clearPrivateDataAct = E5Action( |
1289 self.trUtf8('Clear private data'), |
1299 self.tr('Clear private data'), |
1290 self.trUtf8('&Clear private data'), |
1300 self.tr('&Clear private data'), |
1291 0, 0, |
1301 0, 0, |
1292 self, 'help_clear_private_data') |
1302 self, 'help_clear_private_data') |
1293 self.clearPrivateDataAct.setStatusTip(self.trUtf8( |
1303 self.clearPrivateDataAct.setStatusTip(self.tr( |
1294 'Clear private data')) |
1304 'Clear private data')) |
1295 self.clearPrivateDataAct.setWhatsThis(self.trUtf8( |
1305 self.clearPrivateDataAct.setWhatsThis(self.tr( |
1296 """<b>Clear private data</b>""" |
1306 """<b>Clear private data</b>""" |
1297 """<p>Clears the private data like browsing history, search""" |
1307 """<p>Clears the private data like browsing history, search""" |
1298 """ history or the favicons database.</p>""" |
1308 """ history or the favicons database.</p>""" |
1299 )) |
1309 )) |
1300 if not self.initShortcutsOnly: |
1310 if not self.initShortcutsOnly: |
1301 self.clearPrivateDataAct.triggered[()].connect( |
1311 self.clearPrivateDataAct.triggered.connect( |
1302 self.__clearPrivateData) |
1312 self.__clearPrivateData) |
1303 self.__actions.append(self.clearPrivateDataAct) |
1313 self.__actions.append(self.clearPrivateDataAct) |
1304 |
1314 |
1305 self.clearIconsAct = E5Action( |
1315 self.clearIconsAct = E5Action( |
1306 self.trUtf8('Clear icons database'), |
1316 self.tr('Clear icons database'), |
1307 self.trUtf8('Clear &icons database'), |
1317 self.tr('Clear &icons database'), |
1308 0, 0, |
1318 0, 0, |
1309 self, 'help_clear_icons_db') |
1319 self, 'help_clear_icons_db') |
1310 self.clearIconsAct.setStatusTip(self.trUtf8( |
1320 self.clearIconsAct.setStatusTip(self.tr( |
1311 'Clear the database of favicons')) |
1321 'Clear the database of favicons')) |
1312 self.clearIconsAct.setWhatsThis(self.trUtf8( |
1322 self.clearIconsAct.setWhatsThis(self.tr( |
1313 """<b>Clear icons database</b>""" |
1323 """<b>Clear icons database</b>""" |
1314 """<p>Clears the database of favicons of previously visited""" |
1324 """<p>Clears the database of favicons of previously visited""" |
1315 """ URLs.</p>""" |
1325 """ URLs.</p>""" |
1316 )) |
1326 )) |
1317 if not self.initShortcutsOnly: |
1327 if not self.initShortcutsOnly: |
1318 self.clearIconsAct.triggered[()].connect(self.__clearIconsDatabase) |
1328 self.clearIconsAct.triggered.connect(self.__clearIconsDatabase) |
1319 self.__actions.append(self.clearIconsAct) |
1329 self.__actions.append(self.clearIconsAct) |
1320 |
1330 |
1321 self.searchEnginesAct = E5Action( |
1331 self.searchEnginesAct = E5Action( |
1322 self.trUtf8('Configure Search Engines'), |
1332 self.tr('Configure Search Engines'), |
1323 self.trUtf8('Configure Search &Engines...'), |
1333 self.tr('Configure Search &Engines...'), |
1324 0, 0, |
1334 0, 0, |
1325 self, 'help_search_engines') |
1335 self, 'help_search_engines') |
1326 self.searchEnginesAct.setStatusTip(self.trUtf8( |
1336 self.searchEnginesAct.setStatusTip(self.tr( |
1327 'Configure the available search engines')) |
1337 'Configure the available search engines')) |
1328 self.searchEnginesAct.setWhatsThis(self.trUtf8( |
1338 self.searchEnginesAct.setWhatsThis(self.tr( |
1329 """<b>Configure Search Engines...</b>""" |
1339 """<b>Configure Search Engines...</b>""" |
1330 """<p>Opens a dialog to configure the available search""" |
1340 """<p>Opens a dialog to configure the available search""" |
1331 """ engines.</p>""" |
1341 """ engines.</p>""" |
1332 )) |
1342 )) |
1333 if not self.initShortcutsOnly: |
1343 if not self.initShortcutsOnly: |
1334 self.searchEnginesAct.triggered[()].connect( |
1344 self.searchEnginesAct.triggered.connect( |
1335 self.__showEnginesConfigurationDialog) |
1345 self.__showEnginesConfigurationDialog) |
1336 self.__actions.append(self.searchEnginesAct) |
1346 self.__actions.append(self.searchEnginesAct) |
1337 |
1347 |
1338 self.passwordsAct = E5Action( |
1348 self.passwordsAct = E5Action( |
1339 self.trUtf8('Manage Saved Passwords'), |
1349 self.tr('Manage Saved Passwords'), |
1340 UI.PixmapCache.getIcon("passwords.png"), |
1350 UI.PixmapCache.getIcon("passwords.png"), |
1341 self.trUtf8('Manage Saved Passwords...'), |
1351 self.tr('Manage Saved Passwords...'), |
1342 0, 0, |
1352 0, 0, |
1343 self, 'help_manage_passwords') |
1353 self, 'help_manage_passwords') |
1344 self.passwordsAct.setStatusTip(self.trUtf8( |
1354 self.passwordsAct.setStatusTip(self.tr( |
1345 'Manage the saved passwords')) |
1355 'Manage the saved passwords')) |
1346 self.passwordsAct.setWhatsThis(self.trUtf8( |
1356 self.passwordsAct.setWhatsThis(self.tr( |
1347 """<b>Manage Saved Passwords...</b>""" |
1357 """<b>Manage Saved Passwords...</b>""" |
1348 """<p>Opens a dialog to manage the saved passwords.</p>""" |
1358 """<p>Opens a dialog to manage the saved passwords.</p>""" |
1349 )) |
1359 )) |
1350 if not self.initShortcutsOnly: |
1360 if not self.initShortcutsOnly: |
1351 self.passwordsAct.triggered[()].connect(self.__showPasswordsDialog) |
1361 self.passwordsAct.triggered.connect(self.__showPasswordsDialog) |
1352 self.__actions.append(self.passwordsAct) |
1362 self.__actions.append(self.passwordsAct) |
1353 |
1363 |
1354 self.adblockAct = E5Action( |
1364 self.adblockAct = E5Action( |
1355 self.trUtf8('Ad Block'), |
1365 self.tr('Ad Block'), |
1356 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1366 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1357 self.trUtf8('&Ad Block...'), |
1367 self.tr('&Ad Block...'), |
1358 0, 0, |
1368 0, 0, |
1359 self, 'help_adblock') |
1369 self, 'help_adblock') |
1360 self.adblockAct.setStatusTip(self.trUtf8( |
1370 self.adblockAct.setStatusTip(self.tr( |
1361 'Configure AdBlock subscriptions and rules')) |
1371 'Configure AdBlock subscriptions and rules')) |
1362 self.adblockAct.setWhatsThis(self.trUtf8( |
1372 self.adblockAct.setWhatsThis(self.tr( |
1363 """<b>Ad Block...</b>""" |
1373 """<b>Ad Block...</b>""" |
1364 """<p>Opens a dialog to configure AdBlock subscriptions and""" |
1374 """<p>Opens a dialog to configure AdBlock subscriptions and""" |
1365 """ rules.</p>""" |
1375 """ rules.</p>""" |
1366 )) |
1376 )) |
1367 if not self.initShortcutsOnly: |
1377 if not self.initShortcutsOnly: |
1368 self.adblockAct.triggered[()].connect(self.__showAdBlockDialog) |
1378 self.adblockAct.triggered.connect(self.__showAdBlockDialog) |
1369 self.__actions.append(self.adblockAct) |
1379 self.__actions.append(self.adblockAct) |
1370 |
1380 |
1371 self.flashblockAct = E5Action( |
1381 self.flashblockAct = E5Action( |
1372 self.trUtf8('ClickToFlash'), |
1382 self.tr('ClickToFlash'), |
1373 UI.PixmapCache.getIcon("flashBlock.png"), |
1383 UI.PixmapCache.getIcon("flashBlock.png"), |
1374 self.trUtf8('&ClickToFlash...'), |
1384 self.tr('&ClickToFlash...'), |
1375 0, 0, |
1385 0, 0, |
1376 self, 'help_flashblock') |
1386 self, 'help_flashblock') |
1377 self.flashblockAct.setStatusTip(self.trUtf8( |
1387 self.flashblockAct.setStatusTip(self.tr( |
1378 'Configure ClickToFlash whitelist')) |
1388 'Configure ClickToFlash whitelist')) |
1379 self.flashblockAct.setWhatsThis(self.trUtf8( |
1389 self.flashblockAct.setWhatsThis(self.tr( |
1380 """<b>ClickToFlash...</b>""" |
1390 """<b>ClickToFlash...</b>""" |
1381 """<p>Opens a dialog to configure the ClickToFlash""" |
1391 """<p>Opens a dialog to configure the ClickToFlash""" |
1382 """ whitelist.</p>""" |
1392 """ whitelist.</p>""" |
1383 )) |
1393 )) |
1384 if not self.initShortcutsOnly: |
1394 if not self.initShortcutsOnly: |
1385 self.flashblockAct.triggered[()].connect( |
1395 self.flashblockAct.triggered.connect( |
1386 self.__showClickToFlashDialog) |
1396 self.__showClickToFlashDialog) |
1387 self.__actions.append(self.flashblockAct) |
1397 self.__actions.append(self.flashblockAct) |
1388 |
1398 |
1389 if SSL_AVAILABLE: |
1399 if SSL_AVAILABLE: |
1390 self.certificatesAct = E5Action( |
1400 self.certificatesAct = E5Action( |
1391 self.trUtf8('Manage SSL Certificates'), |
1401 self.tr('Manage SSL Certificates'), |
1392 UI.PixmapCache.getIcon("certificates.png"), |
1402 UI.PixmapCache.getIcon("certificates.png"), |
1393 self.trUtf8('Manage SSL Certificates...'), |
1403 self.tr('Manage SSL Certificates...'), |
1394 0, 0, |
1404 0, 0, |
1395 self, 'help_manage_certificates') |
1405 self, 'help_manage_certificates') |
1396 self.certificatesAct.setStatusTip(self.trUtf8( |
1406 self.certificatesAct.setStatusTip(self.tr( |
1397 'Manage the saved SSL certificates')) |
1407 'Manage the saved SSL certificates')) |
1398 self.certificatesAct.setWhatsThis(self.trUtf8( |
1408 self.certificatesAct.setWhatsThis(self.tr( |
1399 """<b>Manage SSL Certificates...</b>""" |
1409 """<b>Manage SSL Certificates...</b>""" |
1400 """<p>Opens a dialog to manage the saved SSL""" |
1410 """<p>Opens a dialog to manage the saved SSL""" |
1401 """ certificates.</p>""" |
1411 """ certificates.</p>""" |
1402 )) |
1412 )) |
1403 if not self.initShortcutsOnly: |
1413 if not self.initShortcutsOnly: |
1404 self.certificatesAct.triggered[()].connect( |
1414 self.certificatesAct.triggered.connect( |
1405 self.__showCertificatesDialog) |
1415 self.__showCertificatesDialog) |
1406 self.__actions.append(self.certificatesAct) |
1416 self.__actions.append(self.certificatesAct) |
1407 |
1417 |
1408 self.toolsMonitorAct = E5Action( |
1418 self.toolsMonitorAct = E5Action( |
1409 self.trUtf8('Network Monitor'), |
1419 self.tr('Network Monitor'), |
1410 self.trUtf8('&Network Monitor...'), |
1420 self.tr('&Network Monitor...'), |
1411 0, 0, |
1421 0, 0, |
1412 self, 'help_tools_network_monitor') |
1422 self, 'help_tools_network_monitor') |
1413 self.toolsMonitorAct.setStatusTip(self.trUtf8( |
1423 self.toolsMonitorAct.setStatusTip(self.tr( |
1414 'Show the network monitor dialog')) |
1424 'Show the network monitor dialog')) |
1415 self.toolsMonitorAct.setWhatsThis(self.trUtf8( |
1425 self.toolsMonitorAct.setWhatsThis(self.tr( |
1416 """<b>Network Monitor...</b>""" |
1426 """<b>Network Monitor...</b>""" |
1417 """<p>Shows the network monitor dialog.</p>""" |
1427 """<p>Shows the network monitor dialog.</p>""" |
1418 )) |
1428 )) |
1419 if not self.initShortcutsOnly: |
1429 if not self.initShortcutsOnly: |
1420 self.toolsMonitorAct.triggered[()].connect( |
1430 self.toolsMonitorAct.triggered.connect( |
1421 self.__showNetworkMonitor) |
1431 self.__showNetworkMonitor) |
1422 self.__actions.append(self.toolsMonitorAct) |
1432 self.__actions.append(self.toolsMonitorAct) |
1423 |
1433 |
1424 self.showDownloadManagerAct = E5Action( |
1434 self.showDownloadManagerAct = E5Action( |
1425 self.trUtf8('Downloads'), |
1435 self.tr('Downloads'), |
1426 self.trUtf8('Downloads'), |
1436 self.tr('Downloads'), |
1427 0, 0, self, 'help_show_downloads') |
1437 0, 0, self, 'help_show_downloads') |
1428 self.showDownloadManagerAct.setStatusTip(self.trUtf8( |
1438 self.showDownloadManagerAct.setStatusTip(self.tr( |
1429 'Shows the downloads window')) |
1439 'Shows the downloads window')) |
1430 self.showDownloadManagerAct.setWhatsThis(self.trUtf8( |
1440 self.showDownloadManagerAct.setWhatsThis(self.tr( |
1431 """<b>Downloads</b>""" |
1441 """<b>Downloads</b>""" |
1432 """<p>Shows the downloads window.</p>""" |
1442 """<p>Shows the downloads window.</p>""" |
1433 )) |
1443 )) |
1434 if not self.initShortcutsOnly: |
1444 if not self.initShortcutsOnly: |
1435 self.showDownloadManagerAct.triggered[()].connect( |
1445 self.showDownloadManagerAct.triggered.connect( |
1436 self.__showDownloadsWindow) |
1446 self.__showDownloadsWindow) |
1437 self.__actions.append(self.showDownloadManagerAct) |
1447 self.__actions.append(self.showDownloadManagerAct) |
1438 |
1448 |
1439 self.feedsManagerAct = E5Action( |
1449 self.feedsManagerAct = E5Action( |
1440 self.trUtf8('RSS Feeds Dialog'), |
1450 self.tr('RSS Feeds Dialog'), |
1441 UI.PixmapCache.getIcon("rss22.png"), |
1451 UI.PixmapCache.getIcon("rss22.png"), |
1442 self.trUtf8('&RSS Feeds Dialog...'), |
1452 self.tr('&RSS Feeds Dialog...'), |
1443 QKeySequence(self.trUtf8("Ctrl+Shift+F", "Help|RSS Feeds Dialog")), |
1453 QKeySequence(self.tr("Ctrl+Shift+F", "Help|RSS Feeds Dialog")), |
1444 0, self, 'help_rss_feeds') |
1454 0, self, 'help_rss_feeds') |
1445 self.feedsManagerAct.setStatusTip(self.trUtf8( |
1455 self.feedsManagerAct.setStatusTip(self.tr( |
1446 'Open a dialog showing the configured RSS feeds.')) |
1456 'Open a dialog showing the configured RSS feeds.')) |
1447 self.feedsManagerAct.setWhatsThis(self.trUtf8( |
1457 self.feedsManagerAct.setWhatsThis(self.tr( |
1448 """<b>RSS Feeds Dialog...</b>""" |
1458 """<b>RSS Feeds Dialog...</b>""" |
1449 """<p>Open a dialog to show the configured RSS feeds.""" |
1459 """<p>Open a dialog to show the configured RSS feeds.""" |
1450 """ It can be used to mange the feeds and to show their""" |
1460 """ It can be used to mange the feeds and to show their""" |
1451 """ contents.</p>""" |
1461 """ contents.</p>""" |
1452 )) |
1462 )) |
1453 if not self.initShortcutsOnly: |
1463 if not self.initShortcutsOnly: |
1454 self.feedsManagerAct.triggered[()].connect(self.__showFeedsManager) |
1464 self.feedsManagerAct.triggered.connect(self.__showFeedsManager) |
1455 self.__actions.append(self.feedsManagerAct) |
1465 self.__actions.append(self.feedsManagerAct) |
1456 |
1466 |
1457 self.siteInfoAct = E5Action( |
1467 self.siteInfoAct = E5Action( |
1458 self.trUtf8('Siteinfo Dialog'), |
1468 self.tr('Siteinfo Dialog'), |
1459 UI.PixmapCache.getIcon("helpAbout.png"), |
1469 UI.PixmapCache.getIcon("helpAbout.png"), |
1460 self.trUtf8('&Siteinfo Dialog...'), |
1470 self.tr('&Siteinfo Dialog...'), |
1461 QKeySequence(self.trUtf8("Ctrl+Shift+I", "Help|Siteinfo Dialog")), |
1471 QKeySequence(self.tr("Ctrl+Shift+I", "Help|Siteinfo Dialog")), |
1462 0, self, 'help_siteinfo') |
1472 0, self, 'help_siteinfo') |
1463 self.siteInfoAct.setStatusTip(self.trUtf8( |
1473 self.siteInfoAct.setStatusTip(self.tr( |
1464 'Open a dialog showing some information about the current site.')) |
1474 'Open a dialog showing some information about the current site.')) |
1465 self.siteInfoAct.setWhatsThis(self.trUtf8( |
1475 self.siteInfoAct.setWhatsThis(self.tr( |
1466 """<b>Siteinfo Dialog...</b>""" |
1476 """<b>Siteinfo Dialog...</b>""" |
1467 """<p>Opens a dialog showing some information about the current""" |
1477 """<p>Opens a dialog showing some information about the current""" |
1468 """ site.</p>""" |
1478 """ site.</p>""" |
1469 )) |
1479 )) |
1470 if not self.initShortcutsOnly: |
1480 if not self.initShortcutsOnly: |
1471 self.siteInfoAct.triggered[()].connect(self.__showSiteinfoDialog) |
1481 self.siteInfoAct.triggered.connect(self.__showSiteinfoDialog) |
1472 self.__actions.append(self.siteInfoAct) |
1482 self.__actions.append(self.siteInfoAct) |
1473 |
1483 |
1474 self.userAgentManagerAct = E5Action( |
1484 self.userAgentManagerAct = E5Action( |
1475 self.trUtf8('Manage User Agent Settings'), |
1485 self.tr('Manage User Agent Settings'), |
1476 self.trUtf8('Manage &User Agent Settings'), |
1486 self.tr('Manage &User Agent Settings'), |
1477 0, 0, self, 'help_user_agent_settings') |
1487 0, 0, self, 'help_user_agent_settings') |
1478 self.userAgentManagerAct.setStatusTip(self.trUtf8( |
1488 self.userAgentManagerAct.setStatusTip(self.tr( |
1479 'Shows a dialog to manage the User Agent settings')) |
1489 'Shows a dialog to manage the User Agent settings')) |
1480 self.userAgentManagerAct.setWhatsThis(self.trUtf8( |
1490 self.userAgentManagerAct.setWhatsThis(self.tr( |
1481 """<b>Manage User Agent Settings</b>""" |
1491 """<b>Manage User Agent Settings</b>""" |
1482 """<p>Shows a dialog to manage the User Agent settings.</p>""" |
1492 """<p>Shows a dialog to manage the User Agent settings.</p>""" |
1483 )) |
1493 )) |
1484 if not self.initShortcutsOnly: |
1494 if not self.initShortcutsOnly: |
1485 self.userAgentManagerAct.triggered[()].connect( |
1495 self.userAgentManagerAct.triggered.connect( |
1486 self.__showUserAgentsDialog) |
1496 self.__showUserAgentsDialog) |
1487 self.__actions.append(self.userAgentManagerAct) |
1497 self.__actions.append(self.userAgentManagerAct) |
1488 |
1498 |
1489 self.synchronizationAct = E5Action( |
1499 self.synchronizationAct = E5Action( |
1490 self.trUtf8('Synchronize data'), |
1500 self.tr('Synchronize data'), |
1491 UI.PixmapCache.getIcon("sync.png"), |
1501 UI.PixmapCache.getIcon("sync.png"), |
1492 self.trUtf8('&Synchronize Data...'), |
1502 self.tr('&Synchronize Data...'), |
1493 0, 0, self, 'help_synchronize_data') |
1503 0, 0, self, 'help_synchronize_data') |
1494 self.synchronizationAct.setStatusTip(self.trUtf8( |
1504 self.synchronizationAct.setStatusTip(self.tr( |
1495 'Shows a dialog to synchronize data via the network')) |
1505 'Shows a dialog to synchronize data via the network')) |
1496 self.synchronizationAct.setWhatsThis(self.trUtf8( |
1506 self.synchronizationAct.setWhatsThis(self.tr( |
1497 """<b>Synchronize Data...</b>""" |
1507 """<b>Synchronize Data...</b>""" |
1498 """<p>This shows a dialog to synchronize data via the""" |
1508 """<p>This shows a dialog to synchronize data via the""" |
1499 """ network.</p>""" |
1509 """ network.</p>""" |
1500 )) |
1510 )) |
1501 if not self.initShortcutsOnly: |
1511 if not self.initShortcutsOnly: |
1502 self.synchronizationAct.triggered[()].connect( |
1512 self.synchronizationAct.triggered.connect( |
1503 self.__showSyncDialog) |
1513 self.__showSyncDialog) |
1504 self.__actions.append(self.synchronizationAct) |
1514 self.__actions.append(self.synchronizationAct) |
1505 |
1515 |
1506 self.backAct.setEnabled(False) |
1516 self.backAct.setEnabled(False) |
1507 self.forwardAct.setEnabled(False) |
1517 self.forwardAct.setEnabled(False) |