426 self.trUtf8('&New Tab'), |
426 self.trUtf8('&New Tab'), |
427 QKeySequence(self.trUtf8("Ctrl+T", "File|New Tab")), |
427 QKeySequence(self.trUtf8("Ctrl+T", "File|New Tab")), |
428 0, self, 'help_file_new_tab') |
428 0, self, 'help_file_new_tab') |
429 self.newTabAct.setStatusTip(self.trUtf8('Open a new help window tab')) |
429 self.newTabAct.setStatusTip(self.trUtf8('Open a new help window tab')) |
430 self.newTabAct.setWhatsThis(self.trUtf8( |
430 self.newTabAct.setWhatsThis(self.trUtf8( |
431 """<b>New Tab</b>""" |
431 """<b>New Tab</b>""" |
432 """<p>This opens a new help window tab.</p>""" |
432 """<p>This opens a new help window tab.</p>""" |
433 )) |
433 )) |
434 if not self.initShortcutsOnly: |
434 if not self.initShortcutsOnly: |
435 self.newTabAct.triggered[()].connect(self.newTab) |
435 self.newTabAct.triggered[()].connect(self.newTab) |
436 self.__actions.append(self.newTabAct) |
436 self.__actions.append(self.newTabAct) |
437 |
437 |
441 self.trUtf8('New &Window'), |
441 self.trUtf8('New &Window'), |
442 QKeySequence(self.trUtf8("Ctrl+N", "File|New Window")), |
442 QKeySequence(self.trUtf8("Ctrl+N", "File|New Window")), |
443 0, self, 'help_file_new_window') |
443 0, self, 'help_file_new_window') |
444 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
444 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
445 self.newAct.setWhatsThis(self.trUtf8( |
445 self.newAct.setWhatsThis(self.trUtf8( |
446 """<b>New Window</b>""" |
446 """<b>New Window</b>""" |
447 """<p>This opens a new help browser window.</p>""" |
447 """<p>This opens a new help browser window.</p>""" |
448 )) |
448 )) |
449 if not self.initShortcutsOnly: |
449 if not self.initShortcutsOnly: |
450 self.newAct.triggered[()].connect(self.newWindow) |
450 self.newAct.triggered[()].connect(self.newWindow) |
451 self.__actions.append(self.newAct) |
451 self.__actions.append(self.newAct) |
452 |
452 |
456 self.trUtf8('&Open File'), |
456 self.trUtf8('&Open File'), |
457 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
457 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
458 0, self, 'help_file_open') |
458 0, self, 'help_file_open') |
459 self.openAct.setStatusTip(self.trUtf8('Open a help file for display')) |
459 self.openAct.setStatusTip(self.trUtf8('Open a help file for display')) |
460 self.openAct.setWhatsThis(self.trUtf8( |
460 self.openAct.setWhatsThis(self.trUtf8( |
461 """<b>Open File</b>""" |
461 """<b>Open File</b>""" |
462 """<p>This opens a new help file for display.""" |
462 """<p>This opens a new help file for display.""" |
463 """ It pops up a file selection dialog.</p>""" |
463 """ It pops up a file selection dialog.</p>""" |
464 )) |
464 )) |
465 if not self.initShortcutsOnly: |
465 if not self.initShortcutsOnly: |
466 self.openAct.triggered[()].connect(self.__openFile) |
466 self.openAct.triggered[()].connect(self.__openFile) |
467 self.__actions.append(self.openAct) |
467 self.__actions.append(self.openAct) |
468 |
468 |
473 QKeySequence(self.trUtf8("Shift+Ctrl+O", "File|Open in new tab")), |
473 QKeySequence(self.trUtf8("Shift+Ctrl+O", "File|Open in new tab")), |
474 0, self, 'help_file_open_tab') |
474 0, self, 'help_file_open_tab') |
475 self.openTabAct.setStatusTip( |
475 self.openTabAct.setStatusTip( |
476 self.trUtf8('Open a help file for display in a new tab')) |
476 self.trUtf8('Open a help file for display in a new tab')) |
477 self.openTabAct.setWhatsThis(self.trUtf8( |
477 self.openTabAct.setWhatsThis(self.trUtf8( |
478 """<b>Open File in New Tab</b>""" |
478 """<b>Open File in New Tab</b>""" |
479 """<p>This opens a new help file for display in a new tab.""" |
479 """<p>This opens a new help file for display in a new tab.""" |
480 """ It pops up a file selection dialog.</p>""" |
480 """ It pops up a file selection dialog.</p>""" |
481 )) |
481 )) |
482 if not self.initShortcutsOnly: |
482 if not self.initShortcutsOnly: |
483 self.openTabAct.triggered[()].connect(self.__openFileNewTab) |
483 self.openTabAct.triggered[()].connect(self.__openFileNewTab) |
484 self.__actions.append(self.openTabAct) |
484 self.__actions.append(self.openTabAct) |
485 |
485 |
490 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
490 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
491 0, self, 'help_file_save_as') |
491 0, self, 'help_file_save_as') |
492 self.saveAsAct.setStatusTip( |
492 self.saveAsAct.setStatusTip( |
493 self.trUtf8('Save the current page to disk')) |
493 self.trUtf8('Save the current page to disk')) |
494 self.saveAsAct.setWhatsThis(self.trUtf8( |
494 self.saveAsAct.setWhatsThis(self.trUtf8( |
495 """<b>Save As...</b>""" |
495 """<b>Save As...</b>""" |
496 """<p>Saves the current page to disk.</p>""" |
496 """<p>Saves the current page to disk.</p>""" |
497 )) |
497 )) |
498 if not self.initShortcutsOnly: |
498 if not self.initShortcutsOnly: |
499 self.saveAsAct.triggered[()].connect(self.__savePageAs) |
499 self.saveAsAct.triggered[()].connect(self.__savePageAs) |
500 self.__actions.append(self.saveAsAct) |
500 self.__actions.append(self.saveAsAct) |
501 |
501 |
505 self.trUtf8('Save Page Screen...'), |
505 self.trUtf8('Save Page Screen...'), |
506 0, 0, self, 'help_file_save_page_screen') |
506 0, 0, self, 'help_file_save_page_screen') |
507 self.savePageScreenAct.setStatusTip( |
507 self.savePageScreenAct.setStatusTip( |
508 self.trUtf8('Save the current page as a screen shot')) |
508 self.trUtf8('Save the current page as a screen shot')) |
509 self.savePageScreenAct.setWhatsThis(self.trUtf8( |
509 self.savePageScreenAct.setWhatsThis(self.trUtf8( |
510 """<b>Save Page Screen...</b>""" |
510 """<b>Save Page Screen...</b>""" |
511 """<p>Saves the current page as a screen shot.</p>""" |
511 """<p>Saves the current page as a screen shot.</p>""" |
512 )) |
512 )) |
513 if not self.initShortcutsOnly: |
513 if not self.initShortcutsOnly: |
514 self.savePageScreenAct.triggered[()].connect(self.__savePageScreen) |
514 self.savePageScreenAct.triggered[()].connect(self.__savePageScreen) |
515 self.__actions.append(self.savePageScreenAct) |
515 self.__actions.append(self.savePageScreenAct) |
516 |
516 |
538 self.trUtf8('&Import Bookmarks...'), |
538 self.trUtf8('&Import Bookmarks...'), |
539 0, 0, self, 'help_file_import_bookmarks') |
539 0, 0, self, 'help_file_import_bookmarks') |
540 self.importBookmarksAct.setStatusTip( |
540 self.importBookmarksAct.setStatusTip( |
541 self.trUtf8('Import bookmarks from other browsers')) |
541 self.trUtf8('Import bookmarks from other browsers')) |
542 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
542 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
543 """<b>Import Bookmarks</b>""" |
543 """<b>Import Bookmarks</b>""" |
544 """<p>Import bookmarks from other browsers.</p>""" |
544 """<p>Import bookmarks from other browsers.</p>""" |
545 )) |
545 )) |
546 if not self.initShortcutsOnly: |
546 if not self.initShortcutsOnly: |
547 self.importBookmarksAct.triggered[()].connect( |
547 self.importBookmarksAct.triggered[()].connect( |
548 bookmarksManager.importBookmarks) |
548 bookmarksManager.importBookmarks) |
549 self.__actions.append(self.importBookmarksAct) |
549 self.__actions.append(self.importBookmarksAct) |
553 self.trUtf8('&Export Bookmarks...'), |
553 self.trUtf8('&Export Bookmarks...'), |
554 0, 0, self, 'help_file_export_bookmarks') |
554 0, 0, self, 'help_file_export_bookmarks') |
555 self.exportBookmarksAct.setStatusTip( |
555 self.exportBookmarksAct.setStatusTip( |
556 self.trUtf8('Export the bookmarks into a file')) |
556 self.trUtf8('Export the bookmarks into a file')) |
557 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
557 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
558 """<b>Export Bookmarks</b>""" |
558 """<b>Export Bookmarks</b>""" |
559 """<p>Export the bookmarks into a file.</p>""" |
559 """<p>Export the bookmarks into a file.</p>""" |
560 )) |
560 )) |
561 if not self.initShortcutsOnly: |
561 if not self.initShortcutsOnly: |
562 self.exportBookmarksAct.triggered[()].connect( |
562 self.exportBookmarksAct.triggered[()].connect( |
563 bookmarksManager.exportBookmarks) |
563 bookmarksManager.exportBookmarks) |
564 self.__actions.append(self.exportBookmarksAct) |
564 self.__actions.append(self.exportBookmarksAct) |
569 self.trUtf8('&Print'), |
569 self.trUtf8('&Print'), |
570 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
570 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
571 0, self, 'help_file_print') |
571 0, self, 'help_file_print') |
572 self.printAct.setStatusTip(self.trUtf8('Print the displayed help')) |
572 self.printAct.setStatusTip(self.trUtf8('Print the displayed help')) |
573 self.printAct.setWhatsThis(self.trUtf8( |
573 self.printAct.setWhatsThis(self.trUtf8( |
574 """<b>Print</b>""" |
574 """<b>Print</b>""" |
575 """<p>Print the displayed help text.</p>""" |
575 """<p>Print the displayed help text.</p>""" |
576 )) |
576 )) |
577 if not self.initShortcutsOnly: |
577 if not self.initShortcutsOnly: |
578 self.printAct.triggered[()].connect(self.tabWidget.printBrowser) |
578 self.printAct.triggered[()].connect(self.tabWidget.printBrowser) |
579 self.__actions.append(self.printAct) |
579 self.__actions.append(self.printAct) |
580 |
580 |
598 self.trUtf8('Print Preview'), |
598 self.trUtf8('Print Preview'), |
599 UI.PixmapCache.getIcon("printPreview.png"), |
599 UI.PixmapCache.getIcon("printPreview.png"), |
600 self.trUtf8('Print Preview'), |
600 self.trUtf8('Print Preview'), |
601 0, 0, self, 'help_file_print_preview') |
601 0, 0, self, 'help_file_print_preview') |
602 self.printPreviewAct.setStatusTip(self.trUtf8( |
602 self.printPreviewAct.setStatusTip(self.trUtf8( |
603 'Print preview of the displayed help')) |
603 'Print preview of the displayed help')) |
604 self.printPreviewAct.setWhatsThis(self.trUtf8( |
604 self.printPreviewAct.setWhatsThis(self.trUtf8( |
605 """<b>Print Preview</b>""" |
605 """<b>Print Preview</b>""" |
606 """<p>Print preview of the displayed help text.</p>""" |
606 """<p>Print preview of the displayed help text.</p>""" |
607 )) |
607 )) |
608 if not self.initShortcutsOnly: |
608 if not self.initShortcutsOnly: |
609 self.printPreviewAct.triggered[()].connect( |
609 self.printPreviewAct.triggered[()].connect( |
610 self.tabWidget.printPreviewBrowser) |
610 self.tabWidget.printPreviewBrowser) |
611 self.__actions.append(self.printPreviewAct) |
611 self.__actions.append(self.printPreviewAct) |
630 self.trUtf8('Close All'), |
630 self.trUtf8('Close All'), |
631 self.trUtf8('Close &All'), |
631 self.trUtf8('Close &All'), |
632 0, 0, self, 'help_file_close_all') |
632 0, 0, self, 'help_file_close_all') |
633 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
633 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
634 self.closeAllAct.setWhatsThis(self.trUtf8( |
634 self.closeAllAct.setWhatsThis(self.trUtf8( |
635 """<b>Close All</b>""" |
635 """<b>Close All</b>""" |
636 """<p>Closes all help windows except the first one.</p>""" |
636 """<p>Closes all help windows except the first one.</p>""" |
637 )) |
637 )) |
638 if not self.initShortcutsOnly: |
638 if not self.initShortcutsOnly: |
639 self.closeAllAct.triggered[()].connect( |
639 self.closeAllAct.triggered[()].connect( |
640 self.tabWidget.closeAllBrowsers) |
640 self.tabWidget.closeAllBrowsers) |
641 self.__actions.append(self.closeAllAct) |
641 self.__actions.append(self.closeAllAct) |
645 UI.PixmapCache.getIcon("privateBrowsing.png"), |
645 UI.PixmapCache.getIcon("privateBrowsing.png"), |
646 self.trUtf8('Private &Browsing'), |
646 self.trUtf8('Private &Browsing'), |
647 0, 0, self, 'help_file_private_browsing') |
647 0, 0, self, 'help_file_private_browsing') |
648 self.privateBrowsingAct.setStatusTip(self.trUtf8('Private Browsing')) |
648 self.privateBrowsingAct.setStatusTip(self.trUtf8('Private Browsing')) |
649 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
649 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
650 """<b>Private Browsing</b>""" |
650 """<b>Private Browsing</b>""" |
651 """<p>Enables private browsing. In this mode no history is""" |
651 """<p>Enables private browsing. In this mode no history is""" |
652 """ recorded anymore.</p>""" |
652 """ recorded anymore.</p>""" |
653 )) |
653 )) |
654 if not self.initShortcutsOnly: |
654 if not self.initShortcutsOnly: |
655 self.privateBrowsingAct.triggered[()].connect( |
655 self.privateBrowsingAct.triggered[()].connect( |
656 self.__privateBrowsing) |
656 self.__privateBrowsing) |
657 self.privateBrowsingAct.setCheckable(True) |
657 self.privateBrowsingAct.setCheckable(True) |
663 self.trUtf8('&Quit'), |
663 self.trUtf8('&Quit'), |
664 QKeySequence(self.trUtf8("Ctrl+Q", "File|Quit")), |
664 QKeySequence(self.trUtf8("Ctrl+Q", "File|Quit")), |
665 0, self, 'help_file_quit') |
665 0, self, 'help_file_quit') |
666 self.exitAct.setStatusTip(self.trUtf8('Quit the eric5 Web Browser')) |
666 self.exitAct.setStatusTip(self.trUtf8('Quit the eric5 Web Browser')) |
667 self.exitAct.setWhatsThis(self.trUtf8( |
667 self.exitAct.setWhatsThis(self.trUtf8( |
668 """<b>Quit</b>""" |
668 """<b>Quit</b>""" |
669 """<p>Quit the eric5 Web Browser.</p>""" |
669 """<p>Quit the eric5 Web Browser.</p>""" |
670 )) |
670 )) |
671 if not self.initShortcutsOnly: |
671 if not self.initShortcutsOnly: |
672 if self.fromEric: |
672 if self.fromEric: |
673 self.exitAct.triggered[()].connect(self.close) |
673 self.exitAct.triggered[()].connect(self.close) |
674 else: |
674 else: |
682 QKeySequence(self.trUtf8("Alt+Left", "Go|Backward")), |
682 QKeySequence(self.trUtf8("Alt+Left", "Go|Backward")), |
683 QKeySequence(self.trUtf8("Backspace", "Go|Backward")), |
683 QKeySequence(self.trUtf8("Backspace", "Go|Backward")), |
684 self, 'help_go_backward') |
684 self, 'help_go_backward') |
685 self.backAct.setStatusTip(self.trUtf8('Move one help screen backward')) |
685 self.backAct.setStatusTip(self.trUtf8('Move one help screen backward')) |
686 self.backAct.setWhatsThis(self.trUtf8( |
686 self.backAct.setWhatsThis(self.trUtf8( |
687 """<b>Backward</b>""" |
687 """<b>Backward</b>""" |
688 """<p>Moves one help screen backward. If none is""" |
688 """<p>Moves one help screen backward. If none is""" |
689 """ available, this action is disabled.</p>""" |
689 """ available, this action is disabled.</p>""" |
690 )) |
690 )) |
691 if not self.initShortcutsOnly: |
691 if not self.initShortcutsOnly: |
692 self.backAct.triggered[()].connect(self.__backward) |
692 self.backAct.triggered[()].connect(self.__backward) |
693 self.__actions.append(self.backAct) |
693 self.__actions.append(self.backAct) |
694 |
694 |
750 QKeySequence(self.trUtf8("Ctrl+.", "Go|Stop")), |
750 QKeySequence(self.trUtf8("Ctrl+.", "Go|Stop")), |
751 QKeySequence(self.trUtf8("Esc", "Go|Stop")), |
751 QKeySequence(self.trUtf8("Esc", "Go|Stop")), |
752 self, 'help_go_stop') |
752 self, 'help_go_stop') |
753 self.stopAct.setStatusTip(self.trUtf8('Stop loading')) |
753 self.stopAct.setStatusTip(self.trUtf8('Stop loading')) |
754 self.stopAct.setWhatsThis(self.trUtf8( |
754 self.stopAct.setWhatsThis(self.trUtf8( |
755 """<b>Stop</b>""" |
755 """<b>Stop</b>""" |
756 """<p>Stops loading of the current tab.</p>""" |
756 """<p>Stops loading of the current tab.</p>""" |
757 )) |
757 )) |
758 if not self.initShortcutsOnly: |
758 if not self.initShortcutsOnly: |
759 self.stopAct.triggered[()].connect(self.__stopLoading) |
759 self.stopAct.triggered[()].connect(self.__stopLoading) |
760 self.__actions.append(self.stopAct) |
760 self.__actions.append(self.stopAct) |
761 |
761 |
765 self.trUtf8('&Copy'), |
765 self.trUtf8('&Copy'), |
766 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
766 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
767 0, self, 'help_edit_copy') |
767 0, self, 'help_edit_copy') |
768 self.copyAct.setStatusTip(self.trUtf8('Copy the selected text')) |
768 self.copyAct.setStatusTip(self.trUtf8('Copy the selected text')) |
769 self.copyAct.setWhatsThis(self.trUtf8( |
769 self.copyAct.setWhatsThis(self.trUtf8( |
770 """<b>Copy</b>""" |
770 """<b>Copy</b>""" |
771 """<p>Copy the selected text to the clipboard.</p>""" |
771 """<p>Copy the selected text to the clipboard.</p>""" |
772 )) |
772 )) |
773 if not self.initShortcutsOnly: |
773 if not self.initShortcutsOnly: |
774 self.copyAct.triggered[()].connect(self.__copy) |
774 self.copyAct.triggered[()].connect(self.__copy) |
775 self.__actions.append(self.copyAct) |
775 self.__actions.append(self.copyAct) |
776 |
776 |
780 self.trUtf8('&Find...'), |
780 self.trUtf8('&Find...'), |
781 QKeySequence(self.trUtf8("Ctrl+F", "Edit|Find")), |
781 QKeySequence(self.trUtf8("Ctrl+F", "Edit|Find")), |
782 0, self, 'help_edit_find') |
782 0, self, 'help_edit_find') |
783 self.findAct.setStatusTip(self.trUtf8('Find text in page')) |
783 self.findAct.setStatusTip(self.trUtf8('Find text in page')) |
784 self.findAct.setWhatsThis(self.trUtf8( |
784 self.findAct.setWhatsThis(self.trUtf8( |
785 """<b>Find</b>""" |
785 """<b>Find</b>""" |
786 """<p>Find text in the current page.</p>""" |
786 """<p>Find text in the current page.</p>""" |
787 )) |
787 )) |
788 if not self.initShortcutsOnly: |
788 if not self.initShortcutsOnly: |
789 self.findAct.triggered[()].connect(self.__find) |
789 self.findAct.triggered[()].connect(self.__find) |
790 self.__actions.append(self.findAct) |
790 self.__actions.append(self.findAct) |
791 |
791 |
826 self.trUtf8('Manage Bookmarks'), |
826 self.trUtf8('Manage Bookmarks'), |
827 self.trUtf8('&Manage Bookmarks...'), |
827 self.trUtf8('&Manage Bookmarks...'), |
828 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
828 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
829 0, self, 'help_bookmarks_manage') |
829 0, self, 'help_bookmarks_manage') |
830 self.bookmarksManageAct.setStatusTip(self.trUtf8( |
830 self.bookmarksManageAct.setStatusTip(self.trUtf8( |
831 'Open a dialog to manage the bookmarks.')) |
831 'Open a dialog to manage the bookmarks.')) |
832 self.bookmarksManageAct.setWhatsThis(self.trUtf8( |
832 self.bookmarksManageAct.setWhatsThis(self.trUtf8( |
833 """<b>Manage Bookmarks...</b>""" |
833 """<b>Manage Bookmarks...</b>""" |
834 """<p>Open a dialog to manage the bookmarks.</p>""" |
834 """<p>Open a dialog to manage the bookmarks.</p>""" |
835 )) |
835 )) |
836 if not self.initShortcutsOnly: |
836 if not self.initShortcutsOnly: |
837 self.bookmarksManageAct.triggered[()].connect( |
837 self.bookmarksManageAct.triggered[()].connect( |
838 self.__showBookmarksDialog) |
838 self.__showBookmarksDialog) |
839 self.__actions.append(self.bookmarksManageAct) |
839 self.__actions.append(self.bookmarksManageAct) |
858 self.bookmarksAddFolderAct = E5Action( |
858 self.bookmarksAddFolderAct = E5Action( |
859 self.trUtf8('Add Folder'), |
859 self.trUtf8('Add Folder'), |
860 self.trUtf8('Add &Folder...'), |
860 self.trUtf8('Add &Folder...'), |
861 0, 0, self, 'help_bookmark_show_all') |
861 0, 0, self, 'help_bookmark_show_all') |
862 self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( |
862 self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( |
863 'Open a dialog to add a new bookmarks folder.')) |
863 'Open a dialog to add a new bookmarks folder.')) |
864 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
864 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
865 """<b>Add Folder...</b>""" |
865 """<b>Add Folder...</b>""" |
866 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
866 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
867 )) |
867 )) |
868 if not self.initShortcutsOnly: |
868 if not self.initShortcutsOnly: |
869 self.bookmarksAddFolderAct.triggered[()].connect( |
869 self.bookmarksAddFolderAct.triggered[()].connect( |
870 self.__addBookmarkFolder) |
870 self.__addBookmarkFolder) |
871 self.__actions.append(self.bookmarksAddFolderAct) |
871 self.__actions.append(self.bookmarksAddFolderAct) |
873 self.bookmarksAllTabsAct = E5Action( |
873 self.bookmarksAllTabsAct = E5Action( |
874 self.trUtf8('Bookmark All Tabs'), |
874 self.trUtf8('Bookmark All Tabs'), |
875 self.trUtf8('Bookmark All Tabs...'), |
875 self.trUtf8('Bookmark All Tabs...'), |
876 0, 0, self, 'help_bookmark_all_tabs') |
876 0, 0, self, 'help_bookmark_all_tabs') |
877 self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( |
877 self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( |
878 'Bookmark all open tabs.')) |
878 'Bookmark all open tabs.')) |
879 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
879 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
880 """<b>Bookmark All Tabs...</b>""" |
880 """<b>Bookmark All Tabs...</b>""" |
881 """<p>Open a dialog to add a new bookmarks folder for""" |
881 """<p>Open a dialog to add a new bookmarks folder for""" |
882 """ all open tabs.</p>""" |
882 """ all open tabs.</p>""" |
883 )) |
883 )) |
884 if not self.initShortcutsOnly: |
884 if not self.initShortcutsOnly: |
885 self.bookmarksAllTabsAct.triggered[()].connect(self.bookmarkAll) |
885 self.bookmarksAllTabsAct.triggered[()].connect(self.bookmarkAll) |
886 self.__actions.append(self.bookmarksAllTabsAct) |
886 self.__actions.append(self.bookmarksAllTabsAct) |
887 |
887 |
923 self.trUtf8('About &Qt'), |
923 self.trUtf8('About &Qt'), |
924 0, 0, self, 'help_help_about_qt') |
924 0, 0, self, 'help_help_about_qt') |
925 self.aboutQtAct.setStatusTip( |
925 self.aboutQtAct.setStatusTip( |
926 self.trUtf8('Display information about the Qt toolkit')) |
926 self.trUtf8('Display information about the Qt toolkit')) |
927 self.aboutQtAct.setWhatsThis(self.trUtf8( |
927 self.aboutQtAct.setWhatsThis(self.trUtf8( |
928 """<b>About Qt</b>""" |
928 """<b>About Qt</b>""" |
929 """<p>Display some information about the Qt toolkit.</p>""" |
929 """<p>Display some information about the Qt toolkit.</p>""" |
930 )) |
930 )) |
931 if not self.initShortcutsOnly: |
931 if not self.initShortcutsOnly: |
932 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
932 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
933 self.__actions.append(self.aboutQtAct) |
933 self.__actions.append(self.aboutQtAct) |
934 |
934 |
939 QKeySequence(self.trUtf8("Ctrl++", "View|Zoom in")), |
939 QKeySequence(self.trUtf8("Ctrl++", "View|Zoom in")), |
940 QKeySequence(self.trUtf8("Zoom In", "View|Zoom in")), |
940 QKeySequence(self.trUtf8("Zoom In", "View|Zoom in")), |
941 self, 'help_view_zoom_in') |
941 self, 'help_view_zoom_in') |
942 self.zoomInAct.setStatusTip(self.trUtf8('Zoom in on the text')) |
942 self.zoomInAct.setStatusTip(self.trUtf8('Zoom in on the text')) |
943 self.zoomInAct.setWhatsThis(self.trUtf8( |
943 self.zoomInAct.setWhatsThis(self.trUtf8( |
944 """<b>Zoom in</b>""" |
944 """<b>Zoom in</b>""" |
945 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
945 """<p>Zoom in on the text. This makes the text bigger.</p>""" |
946 )) |
946 )) |
947 if not self.initShortcutsOnly: |
947 if not self.initShortcutsOnly: |
948 self.zoomInAct.triggered[()].connect(self.__zoomIn) |
948 self.zoomInAct.triggered[()].connect(self.__zoomIn) |
949 self.__actions.append(self.zoomInAct) |
949 self.__actions.append(self.zoomInAct) |
950 |
950 |
955 QKeySequence(self.trUtf8("Ctrl+-", "View|Zoom out")), |
955 QKeySequence(self.trUtf8("Ctrl+-", "View|Zoom out")), |
956 QKeySequence(self.trUtf8("Zoom Out", "View|Zoom out")), |
956 QKeySequence(self.trUtf8("Zoom Out", "View|Zoom out")), |
957 self, 'help_view_zoom_out') |
957 self, 'help_view_zoom_out') |
958 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
958 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
959 self.zoomOutAct.setWhatsThis(self.trUtf8( |
959 self.zoomOutAct.setWhatsThis(self.trUtf8( |
960 """<b>Zoom out</b>""" |
960 """<b>Zoom out</b>""" |
961 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
961 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
962 )) |
962 )) |
963 if not self.initShortcutsOnly: |
963 if not self.initShortcutsOnly: |
964 self.zoomOutAct.triggered[()].connect(self.__zoomOut) |
964 self.zoomOutAct.triggered[()].connect(self.__zoomOut) |
965 self.__actions.append(self.zoomOutAct) |
965 self.__actions.append(self.zoomOutAct) |
966 |
966 |
986 self.trUtf8('Zoom text only'), |
986 self.trUtf8('Zoom text only'), |
987 self.trUtf8('Zoom &text only'), |
987 self.trUtf8('Zoom &text only'), |
988 0, 0, self, 'help_view_zoom_text_only') |
988 0, 0, self, 'help_view_zoom_text_only') |
989 self.zoomTextOnlyAct.setCheckable(True) |
989 self.zoomTextOnlyAct.setCheckable(True) |
990 self.zoomTextOnlyAct.setStatusTip(self.trUtf8( |
990 self.zoomTextOnlyAct.setStatusTip(self.trUtf8( |
991 'Zoom text only; pictures remain constant')) |
991 'Zoom text only; pictures remain constant')) |
992 self.zoomTextOnlyAct.setWhatsThis(self.trUtf8( |
992 self.zoomTextOnlyAct.setWhatsThis(self.trUtf8( |
993 """<b>Zoom text only</b>""" |
993 """<b>Zoom text only</b>""" |
994 """<p>Zoom text only; pictures remain constant.</p>""" |
994 """<p>Zoom text only; pictures remain constant.</p>""" |
995 )) |
995 )) |
996 if not self.initShortcutsOnly: |
996 if not self.initShortcutsOnly: |
997 self.zoomTextOnlyAct.triggered[bool].connect( |
997 self.zoomTextOnlyAct.triggered[bool].connect( |
998 self.__zoomTextOnly) |
998 self.__zoomTextOnly) |
999 self.__actions.append(self.zoomTextOnlyAct) |
999 self.__actions.append(self.zoomTextOnlyAct) |
1178 self.trUtf8('Sync with Table of Contents'), |
1178 self.trUtf8('Sync with Table of Contents'), |
1179 UI.PixmapCache.getIcon("syncToc.png"), |
1179 UI.PixmapCache.getIcon("syncToc.png"), |
1180 self.trUtf8('Sync with Table of Contents'), |
1180 self.trUtf8('Sync with Table of Contents'), |
1181 0, 0, self, 'help_sync_toc') |
1181 0, 0, self, 'help_sync_toc') |
1182 self.syncTocAct.setStatusTip(self.trUtf8( |
1182 self.syncTocAct.setStatusTip(self.trUtf8( |
1183 'Synchronizes the table of contents with current page')) |
1183 'Synchronizes the table of contents with current page')) |
1184 self.syncTocAct.setWhatsThis(self.trUtf8( |
1184 self.syncTocAct.setWhatsThis(self.trUtf8( |
1185 """<b>Sync with Table of Contents</b>""" |
1185 """<b>Sync with Table of Contents</b>""" |
1186 """<p>Synchronizes the table of contents with current""" |
1186 """<p>Synchronizes the table of contents with current""" |
1187 """ page.</p>""" |
1187 """ page.</p>""" |
1188 )) |
1188 )) |
1193 self.showTocAct = E5Action( |
1193 self.showTocAct = E5Action( |
1194 self.trUtf8('Table of Contents'), |
1194 self.trUtf8('Table of Contents'), |
1195 self.trUtf8('Table of Contents'), |
1195 self.trUtf8('Table of Contents'), |
1196 0, 0, self, 'help_show_toc') |
1196 0, 0, self, 'help_show_toc') |
1197 self.showTocAct.setStatusTip(self.trUtf8( |
1197 self.showTocAct.setStatusTip(self.trUtf8( |
1198 'Shows the table of contents window')) |
1198 'Shows the table of contents window')) |
1199 self.showTocAct.setWhatsThis(self.trUtf8( |
1199 self.showTocAct.setWhatsThis(self.trUtf8( |
1200 """<b>Table of Contents</b>""" |
1200 """<b>Table of Contents</b>""" |
1201 """<p>Shows the table of contents window.</p>""" |
1201 """<p>Shows the table of contents window.</p>""" |
1202 )) |
1202 )) |
1203 if not self.initShortcutsOnly: |
1203 if not self.initShortcutsOnly: |
1204 self.showTocAct.triggered[()].connect(self.__showTocWindow) |
1204 self.showTocAct.triggered[()].connect(self.__showTocWindow) |
1205 self.__actions.append(self.showTocAct) |
1205 self.__actions.append(self.showTocAct) |
1206 |
1206 |
1207 self.showIndexAct = E5Action( |
1207 self.showIndexAct = E5Action( |
1208 self.trUtf8('Index'), |
1208 self.trUtf8('Index'), |
1209 self.trUtf8('Index'), |
1209 self.trUtf8('Index'), |
1210 0, 0, self, 'help_show_index') |
1210 0, 0, self, 'help_show_index') |
1211 self.showIndexAct.setStatusTip(self.trUtf8( |
1211 self.showIndexAct.setStatusTip(self.trUtf8( |
1212 'Shows the index window')) |
1212 'Shows the index window')) |
1213 self.showIndexAct.setWhatsThis(self.trUtf8( |
1213 self.showIndexAct.setWhatsThis(self.trUtf8( |
1214 """<b>Index</b>""" |
1214 """<b>Index</b>""" |
1215 """<p>Shows the index window.</p>""" |
1215 """<p>Shows the index window.</p>""" |
1216 )) |
1216 )) |
1217 if not self.initShortcutsOnly: |
1217 if not self.initShortcutsOnly: |
1218 self.showIndexAct.triggered[()].connect(self.__showIndexWindow) |
1218 self.showIndexAct.triggered[()].connect(self.__showIndexWindow) |
1219 self.__actions.append(self.showIndexAct) |
1219 self.__actions.append(self.showIndexAct) |
1220 |
1220 |
1221 self.showSearchAct = E5Action( |
1221 self.showSearchAct = E5Action( |
1222 self.trUtf8('Search'), |
1222 self.trUtf8('Search'), |
1223 self.trUtf8('Search'), |
1223 self.trUtf8('Search'), |
1224 0, 0, self, 'help_show_search') |
1224 0, 0, self, 'help_show_search') |
1225 self.showSearchAct.setStatusTip(self.trUtf8( |
1225 self.showSearchAct.setStatusTip(self.trUtf8( |
1226 'Shows the search window')) |
1226 'Shows the search window')) |
1227 self.showSearchAct.setWhatsThis(self.trUtf8( |
1227 self.showSearchAct.setWhatsThis(self.trUtf8( |
1228 """<b>Search</b>""" |
1228 """<b>Search</b>""" |
1229 """<p>Shows the search window.</p>""" |
1229 """<p>Shows the search window.</p>""" |
1230 )) |
1230 )) |
1231 if not self.initShortcutsOnly: |
1231 if not self.initShortcutsOnly: |
1232 self.showSearchAct.triggered[()].connect( |
1232 self.showSearchAct.triggered[()].connect( |
1233 self.__showSearchWindow) |
1233 self.__showSearchWindow) |
1234 self.__actions.append(self.showSearchAct) |
1234 self.__actions.append(self.showSearchAct) |
1252 self.manageQtHelpFiltersAct = E5Action( |
1252 self.manageQtHelpFiltersAct = E5Action( |
1253 self.trUtf8('Manage QtHelp Filters'), |
1253 self.trUtf8('Manage QtHelp Filters'), |
1254 self.trUtf8('Manage QtHelp &Filters'), |
1254 self.trUtf8('Manage QtHelp &Filters'), |
1255 0, 0, self, 'help_qthelp_filters') |
1255 0, 0, self, 'help_qthelp_filters') |
1256 self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( |
1256 self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( |
1257 'Shows a dialog to manage the QtHelp filters')) |
1257 'Shows a dialog to manage the QtHelp filters')) |
1258 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
1258 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
1259 """<b>Manage QtHelp Filters</b>""" |
1259 """<b>Manage QtHelp Filters</b>""" |
1260 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
1260 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
1261 )) |
1261 )) |
1262 if not self.initShortcutsOnly: |
1262 if not self.initShortcutsOnly: |
1263 self.manageQtHelpFiltersAct.triggered[()].connect( |
1263 self.manageQtHelpFiltersAct.triggered[()].connect( |
1264 self.__manageQtHelpFilters) |
1264 self.__manageQtHelpFilters) |
1265 self.__actions.append(self.manageQtHelpFiltersAct) |
1265 self.__actions.append(self.manageQtHelpFiltersAct) |
1267 self.reindexDocumentationAct = E5Action( |
1267 self.reindexDocumentationAct = E5Action( |
1268 self.trUtf8('Reindex Documentation'), |
1268 self.trUtf8('Reindex Documentation'), |
1269 self.trUtf8('&Reindex Documentation'), |
1269 self.trUtf8('&Reindex Documentation'), |
1270 0, 0, self, 'help_qthelp_reindex') |
1270 0, 0, self, 'help_qthelp_reindex') |
1271 self.reindexDocumentationAct.setStatusTip(self.trUtf8( |
1271 self.reindexDocumentationAct.setStatusTip(self.trUtf8( |
1272 'Reindexes the documentation set')) |
1272 'Reindexes the documentation set')) |
1273 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
1273 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
1274 """<b>Reindex Documentation</b>""" |
1274 """<b>Reindex Documentation</b>""" |
1275 """<p>Reindexes the documentation set.</p>""" |
1275 """<p>Reindexes the documentation set.</p>""" |
1276 )) |
1276 )) |
1277 if not self.initShortcutsOnly: |
1277 if not self.initShortcutsOnly: |
1278 self.reindexDocumentationAct.triggered[()].connect( |
1278 self.reindexDocumentationAct.triggered[()].connect( |
1279 self.__searchEngine.reindexDocumentation) |
1279 self.__searchEngine.reindexDocumentation) |
1280 self.__actions.append(self.reindexDocumentationAct) |
1280 self.__actions.append(self.reindexDocumentationAct) |
1334 UI.PixmapCache.getIcon("passwords.png"), |
1334 UI.PixmapCache.getIcon("passwords.png"), |
1335 self.trUtf8('Manage Saved Passwords...'), |
1335 self.trUtf8('Manage Saved Passwords...'), |
1336 0, 0, |
1336 0, 0, |
1337 self, 'help_manage_passwords') |
1337 self, 'help_manage_passwords') |
1338 self.passwordsAct.setStatusTip(self.trUtf8( |
1338 self.passwordsAct.setStatusTip(self.trUtf8( |
1339 'Manage the saved passwords')) |
1339 'Manage the saved passwords')) |
1340 self.passwordsAct.setWhatsThis(self.trUtf8( |
1340 self.passwordsAct.setWhatsThis(self.trUtf8( |
1341 """<b>Manage Saved Passwords...</b>""" |
1341 """<b>Manage Saved Passwords...</b>""" |
1342 """<p>Opens a dialog to manage the saved passwords.</p>""" |
1342 """<p>Opens a dialog to manage the saved passwords.</p>""" |
1343 )) |
1343 )) |
1344 if not self.initShortcutsOnly: |
1344 if not self.initShortcutsOnly: |
1345 self.passwordsAct.triggered[()].connect(self.__showPasswordsDialog) |
1345 self.passwordsAct.triggered[()].connect(self.__showPasswordsDialog) |
1346 self.__actions.append(self.passwordsAct) |
1346 self.__actions.append(self.passwordsAct) |
1347 |
1347 |
1418 self.showDownloadManagerAct = E5Action( |
1418 self.showDownloadManagerAct = E5Action( |
1419 self.trUtf8('Downloads'), |
1419 self.trUtf8('Downloads'), |
1420 self.trUtf8('Downloads'), |
1420 self.trUtf8('Downloads'), |
1421 0, 0, self, 'help_show_downloads') |
1421 0, 0, self, 'help_show_downloads') |
1422 self.showDownloadManagerAct.setStatusTip(self.trUtf8( |
1422 self.showDownloadManagerAct.setStatusTip(self.trUtf8( |
1423 'Shows the downloads window')) |
1423 'Shows the downloads window')) |
1424 self.showDownloadManagerAct.setWhatsThis(self.trUtf8( |
1424 self.showDownloadManagerAct.setWhatsThis(self.trUtf8( |
1425 """<b>Downloads</b>""" |
1425 """<b>Downloads</b>""" |
1426 """<p>Shows the downloads window.</p>""" |
1426 """<p>Shows the downloads window.</p>""" |
1427 )) |
1427 )) |
1428 if not self.initShortcutsOnly: |
1428 if not self.initShortcutsOnly: |
1429 self.showDownloadManagerAct.triggered[()].connect( |
1429 self.showDownloadManagerAct.triggered[()].connect( |
1430 self.__showDownloadsWindow) |
1430 self.__showDownloadsWindow) |
1431 self.__actions.append(self.showDownloadManagerAct) |
1431 self.__actions.append(self.showDownloadManagerAct) |
1468 self.userAgentManagerAct = E5Action( |
1468 self.userAgentManagerAct = E5Action( |
1469 self.trUtf8('Manage User Agent Settings'), |
1469 self.trUtf8('Manage User Agent Settings'), |
1470 self.trUtf8('Manage &User Agent Settings'), |
1470 self.trUtf8('Manage &User Agent Settings'), |
1471 0, 0, self, 'help_user_agent_settings') |
1471 0, 0, self, 'help_user_agent_settings') |
1472 self.userAgentManagerAct.setStatusTip(self.trUtf8( |
1472 self.userAgentManagerAct.setStatusTip(self.trUtf8( |
1473 'Shows a dialog to manage the User Agent settings')) |
1473 'Shows a dialog to manage the User Agent settings')) |
1474 self.userAgentManagerAct.setWhatsThis(self.trUtf8( |
1474 self.userAgentManagerAct.setWhatsThis(self.trUtf8( |
1475 """<b>Manage User Agent Settings</b>""" |
1475 """<b>Manage User Agent Settings</b>""" |
1476 """<p>Shows a dialog to manage the User Agent settings.</p>""" |
1476 """<p>Shows a dialog to manage the User Agent settings.</p>""" |
1477 )) |
1477 )) |
1478 if not self.initShortcutsOnly: |
1478 if not self.initShortcutsOnly: |
1479 self.userAgentManagerAct.triggered[()].connect( |
1479 self.userAgentManagerAct.triggered[()].connect( |
1480 self.__showUserAgentsDialog) |
1480 self.__showUserAgentsDialog) |
1481 self.__actions.append(self.userAgentManagerAct) |
1481 self.__actions.append(self.userAgentManagerAct) |