384 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
384 self.newAct.setStatusTip(self.trUtf8('Open a new help browser window')) |
385 self.newAct.setWhatsThis(self.trUtf8( |
385 self.newAct.setWhatsThis(self.trUtf8( |
386 """<b>New Window</b>""" |
386 """<b>New Window</b>""" |
387 """<p>This opens a new help browser window.</p>""" |
387 """<p>This opens a new help browser window.</p>""" |
388 )) |
388 )) |
389 self.newAct.triggered.connect(self.newWindow) |
389 self.newAct.triggered[()].connect(self.newWindow) |
390 self.__actions.append(self.newAct) |
390 self.__actions.append(self.newAct) |
391 |
391 |
392 self.openAct = E5Action(self.trUtf8('Open File'), |
392 self.openAct = E5Action(self.trUtf8('Open File'), |
393 UI.PixmapCache.getIcon("open.png"), |
393 UI.PixmapCache.getIcon("open.png"), |
394 self.trUtf8('&Open File'), |
394 self.trUtf8('&Open File'), |
398 self.openAct.setWhatsThis(self.trUtf8( |
398 self.openAct.setWhatsThis(self.trUtf8( |
399 """<b>Open File</b>""" |
399 """<b>Open File</b>""" |
400 """<p>This opens a new help file for display.""" |
400 """<p>This opens a new help file for display.""" |
401 """ It pops up a file selection dialog.</p>""" |
401 """ It pops up a file selection dialog.</p>""" |
402 )) |
402 )) |
403 self.openAct.triggered.connect(self.__openFile) |
403 self.openAct.triggered[()].connect(self.__openFile) |
404 self.__actions.append(self.openAct) |
404 self.__actions.append(self.openAct) |
405 |
405 |
406 self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), |
406 self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), |
407 UI.PixmapCache.getIcon("openNewTab.png"), |
407 UI.PixmapCache.getIcon("openNewTab.png"), |
408 self.trUtf8('Open File in New &Tab'), |
408 self.trUtf8('Open File in New &Tab'), |
413 self.openTabAct.setWhatsThis(self.trUtf8( |
413 self.openTabAct.setWhatsThis(self.trUtf8( |
414 """<b>Open File in New Tab</b>""" |
414 """<b>Open File in New Tab</b>""" |
415 """<p>This opens a new help file for display in a new tab.""" |
415 """<p>This opens a new help file for display in a new tab.""" |
416 """ It pops up a file selection dialog.</p>""" |
416 """ It pops up a file selection dialog.</p>""" |
417 )) |
417 )) |
418 self.openTabAct.triggered.connect(self.__openFileNewTab) |
418 self.openTabAct.triggered[()].connect(self.__openFileNewTab) |
419 self.__actions.append(self.openTabAct) |
419 self.__actions.append(self.openTabAct) |
420 |
420 |
421 self.saveAsAct = E5Action(self.trUtf8('Save As '), |
421 self.saveAsAct = E5Action(self.trUtf8('Save As '), |
422 UI.PixmapCache.getIcon("fileSaveAs.png"), |
422 UI.PixmapCache.getIcon("fileSaveAs.png"), |
423 self.trUtf8('&Save As...'), |
423 self.trUtf8('&Save As...'), |
427 self.trUtf8('Save the current page to disk')) |
427 self.trUtf8('Save the current page to disk')) |
428 self.saveAsAct.setWhatsThis(self.trUtf8( |
428 self.saveAsAct.setWhatsThis(self.trUtf8( |
429 """<b>Save As...</b>""" |
429 """<b>Save As...</b>""" |
430 """<p>Saves the current page to disk.</p>""" |
430 """<p>Saves the current page to disk.</p>""" |
431 )) |
431 )) |
432 self.saveAsAct.triggered.connect(self.__savePageAs) |
432 self.saveAsAct.triggered[()].connect(self.__savePageAs) |
433 self.__actions.append(self.saveAsAct) |
433 self.__actions.append(self.saveAsAct) |
434 |
434 |
435 bookmarksManager = self.bookmarksManager() |
435 bookmarksManager = self.bookmarksManager() |
436 self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), |
436 self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), |
437 self.trUtf8('&Import Bookmarks...'), |
437 self.trUtf8('&Import Bookmarks...'), |
440 self.trUtf8('Import bookmarks from other browsers')) |
440 self.trUtf8('Import bookmarks from other browsers')) |
441 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
441 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
442 """<b>Import Bookmarks</b>""" |
442 """<b>Import Bookmarks</b>""" |
443 """<p>Import bookmarks from other browsers.</p>""" |
443 """<p>Import bookmarks from other browsers.</p>""" |
444 )) |
444 )) |
445 self.importBookmarksAct.triggered.connect(bookmarksManager.importBookmarks) |
445 self.importBookmarksAct.triggered[()].connect(bookmarksManager.importBookmarks) |
446 self.__actions.append(self.importBookmarksAct) |
446 self.__actions.append(self.importBookmarksAct) |
447 |
447 |
448 self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), |
448 self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), |
449 self.trUtf8('&Export Bookmarks...'), |
449 self.trUtf8('&Export Bookmarks...'), |
450 0, 0, self, 'help_file_export_bookmarks') |
450 0, 0, self, 'help_file_export_bookmarks') |
452 self.trUtf8('Export the bookmarks into a file')) |
452 self.trUtf8('Export the bookmarks into a file')) |
453 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
453 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
454 """<b>Export Bookmarks</b>""" |
454 """<b>Export Bookmarks</b>""" |
455 """<p>Export the bookmarks into a file.</p>""" |
455 """<p>Export the bookmarks into a file.</p>""" |
456 )) |
456 )) |
457 self.exportBookmarksAct.triggered.connect(bookmarksManager.exportBookmarks) |
457 self.exportBookmarksAct.triggered[()].connect(bookmarksManager.exportBookmarks) |
458 self.__actions.append(self.exportBookmarksAct) |
458 self.__actions.append(self.exportBookmarksAct) |
459 |
459 |
460 self.printAct = E5Action(self.trUtf8('Print'), |
460 self.printAct = E5Action(self.trUtf8('Print'), |
461 UI.PixmapCache.getIcon("print.png"), |
461 UI.PixmapCache.getIcon("print.png"), |
462 self.trUtf8('&Print'), |
462 self.trUtf8('&Print'), |
477 self.printPdfAct.setStatusTip(self.trUtf8('Print the displayed help as PDF')) |
477 self.printPdfAct.setStatusTip(self.trUtf8('Print the displayed help as PDF')) |
478 self.printPdfAct.setWhatsThis(self.trUtf8( |
478 self.printPdfAct.setWhatsThis(self.trUtf8( |
479 """<b>Print as PDF</b>""" |
479 """<b>Print as PDF</b>""" |
480 """<p>Print the displayed help text as a PDF file.</p>""" |
480 """<p>Print the displayed help text as a PDF file.</p>""" |
481 )) |
481 )) |
482 self.printPdfAct.triggered.connect(self.__printFilePdf) |
482 self.printPdfAct.triggered[()].connect(self.__printFilePdf) |
483 self.__actions.append(self.printPdfAct) |
483 self.__actions.append(self.printPdfAct) |
484 |
484 |
485 self.printPreviewAct = E5Action(self.trUtf8('Print Preview'), |
485 self.printPreviewAct = E5Action(self.trUtf8('Print Preview'), |
486 UI.PixmapCache.getIcon("printPreview.png"), |
486 UI.PixmapCache.getIcon("printPreview.png"), |
487 self.trUtf8('Print Preview'), |
487 self.trUtf8('Print Preview'), |
490 'Print preview of the displayed help')) |
490 'Print preview of the displayed help')) |
491 self.printPreviewAct.setWhatsThis(self.trUtf8( |
491 self.printPreviewAct.setWhatsThis(self.trUtf8( |
492 """<b>Print Preview</b>""" |
492 """<b>Print Preview</b>""" |
493 """<p>Print preview of the displayed help text.</p>""" |
493 """<p>Print preview of the displayed help text.</p>""" |
494 )) |
494 )) |
495 self.printPreviewAct.triggered.connect(self.__printPreviewFile) |
495 self.printPreviewAct.triggered[()].connect(self.__printPreviewFile) |
496 self.__actions.append(self.printPreviewAct) |
496 self.__actions.append(self.printPreviewAct) |
497 |
497 |
498 self.closeAct = E5Action(self.trUtf8('Close'), |
498 self.closeAct = E5Action(self.trUtf8('Close'), |
499 UI.PixmapCache.getIcon("close.png"), |
499 UI.PixmapCache.getIcon("close.png"), |
500 self.trUtf8('&Close'), |
500 self.trUtf8('&Close'), |
503 self.closeAct.setStatusTip(self.trUtf8('Close the current help window')) |
503 self.closeAct.setStatusTip(self.trUtf8('Close the current help window')) |
504 self.closeAct.setWhatsThis(self.trUtf8( |
504 self.closeAct.setWhatsThis(self.trUtf8( |
505 """<b>Close</b>""" |
505 """<b>Close</b>""" |
506 """<p>Closes the current help window.</p>""" |
506 """<p>Closes the current help window.</p>""" |
507 )) |
507 )) |
508 self.closeAct.triggered.connect(self.__close) |
508 self.closeAct.triggered[()].connect(self.__close) |
509 self.__actions.append(self.closeAct) |
509 self.__actions.append(self.closeAct) |
510 |
510 |
511 self.closeAllAct = E5Action(self.trUtf8('Close All'), |
511 self.closeAllAct = E5Action(self.trUtf8('Close All'), |
512 self.trUtf8('Close &All'), |
512 self.trUtf8('Close &All'), |
513 0, 0, self, 'help_file_close_all') |
513 0, 0, self, 'help_file_close_all') |
514 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
514 self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) |
515 self.closeAllAct.setWhatsThis(self.trUtf8( |
515 self.closeAllAct.setWhatsThis(self.trUtf8( |
516 """<b>Close All</b>""" |
516 """<b>Close All</b>""" |
517 """<p>Closes all help windows except the first one.</p>""" |
517 """<p>Closes all help windows except the first one.</p>""" |
518 )) |
518 )) |
519 self.closeAllAct.triggered.connect(self.__closeAll) |
519 self.closeAllAct.triggered[()].connect(self.__closeAll) |
520 self.__actions.append(self.closeAllAct) |
520 self.__actions.append(self.closeAllAct) |
521 |
521 |
522 self.privateBrowsingAct = E5Action(self.trUtf8('Private Browsing'), |
522 self.privateBrowsingAct = E5Action(self.trUtf8('Private Browsing'), |
523 UI.PixmapCache.getIcon("privateBrowsing.png"), |
523 UI.PixmapCache.getIcon("privateBrowsing.png"), |
524 self.trUtf8('Private &Browsing'), |
524 self.trUtf8('Private &Browsing'), |
527 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
527 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
528 """<b>Private Browsing</b>""" |
528 """<b>Private Browsing</b>""" |
529 """<p>Enables private browsing. In this mode no history is""" |
529 """<p>Enables private browsing. In this mode no history is""" |
530 """ recorded anymore.</p>""" |
530 """ recorded anymore.</p>""" |
531 )) |
531 )) |
532 self.privateBrowsingAct.triggered.connect(self.__privateBrowsing) |
532 self.privateBrowsingAct.triggered[()].connect(self.__privateBrowsing) |
533 self.privateBrowsingAct.setCheckable(True) |
533 self.privateBrowsingAct.setCheckable(True) |
534 self.__actions.append(self.privateBrowsingAct) |
534 self.__actions.append(self.privateBrowsingAct) |
535 |
535 |
536 self.exitAct = E5Action(self.trUtf8('Quit'), |
536 self.exitAct = E5Action(self.trUtf8('Quit'), |
537 UI.PixmapCache.getIcon("exit.png"), |
537 UI.PixmapCache.getIcon("exit.png"), |
560 self.backAct.setWhatsThis(self.trUtf8( |
560 self.backAct.setWhatsThis(self.trUtf8( |
561 """<b>Backward</b>""" |
561 """<b>Backward</b>""" |
562 """<p>Moves one help screen backward. If none is""" |
562 """<p>Moves one help screen backward. If none is""" |
563 """ available, this action is disabled.</p>""" |
563 """ available, this action is disabled.</p>""" |
564 )) |
564 )) |
565 self.backAct.triggered.connect(self.__backward) |
565 self.backAct.triggered[()].connect(self.__backward) |
566 self.__actions.append(self.backAct) |
566 self.__actions.append(self.backAct) |
567 |
567 |
568 self.forwardAct = E5Action(self.trUtf8('Forward'), |
568 self.forwardAct = E5Action(self.trUtf8('Forward'), |
569 UI.PixmapCache.getIcon("forward.png"), |
569 UI.PixmapCache.getIcon("forward.png"), |
570 self.trUtf8('&Forward'), |
570 self.trUtf8('&Forward'), |
656 self.findNextAct.setWhatsThis(self.trUtf8( |
656 self.findNextAct.setWhatsThis(self.trUtf8( |
657 """<b>Find next</b>""" |
657 """<b>Find next</b>""" |
658 """<p>Find the next occurrence of text in the current page.</p>""" |
658 """<p>Find the next occurrence of text in the current page.</p>""" |
659 )) |
659 )) |
660 if not self.initShortcutsOnly: |
660 if not self.initShortcutsOnly: |
661 self.findNextAct.triggered.connect(self.findDlg.findNext) |
661 self.findNextAct.triggered[()].connect(self.findDlg.findNext) |
662 self.__actions.append(self.findNextAct) |
662 self.__actions.append(self.findNextAct) |
663 |
663 |
664 self.findPrevAct = E5Action(self.trUtf8('Find previous'), |
664 self.findPrevAct = E5Action(self.trUtf8('Find previous'), |
665 UI.PixmapCache.getIcon("findPrev.png"), |
665 UI.PixmapCache.getIcon("findPrev.png"), |
666 self.trUtf8('Find &previous'), |
666 self.trUtf8('Find &previous'), |
671 self.findPrevAct.setWhatsThis(self.trUtf8( |
671 self.findPrevAct.setWhatsThis(self.trUtf8( |
672 """<b>Find previous</b>""" |
672 """<b>Find previous</b>""" |
673 """<p>Find the previous occurrence of text in the current page.</p>""" |
673 """<p>Find the previous occurrence of text in the current page.</p>""" |
674 )) |
674 )) |
675 if not self.initShortcutsOnly: |
675 if not self.initShortcutsOnly: |
676 self.findPrevAct.triggered.connect(self.findDlg.findPrevious) |
676 self.findPrevAct.triggered[()].connect(self.findDlg.findPrevious) |
677 self.__actions.append(self.findPrevAct) |
677 self.__actions.append(self.findPrevAct) |
678 |
678 |
679 self.bookmarksManageAct = E5Action(self.trUtf8('Manage Bookmarks'), |
679 self.bookmarksManageAct = E5Action(self.trUtf8('Manage Bookmarks'), |
680 self.trUtf8('&Manage Bookmarks...'), |
680 self.trUtf8('&Manage Bookmarks...'), |
681 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
681 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
684 'Open a dialog to manage the bookmarks.')) |
684 'Open a dialog to manage the bookmarks.')) |
685 self.bookmarksManageAct.setWhatsThis(self.trUtf8( |
685 self.bookmarksManageAct.setWhatsThis(self.trUtf8( |
686 """<b>Manage Bookmarks...</b>""" |
686 """<b>Manage Bookmarks...</b>""" |
687 """<p>Open a dialog to manage the bookmarks.</p>""" |
687 """<p>Open a dialog to manage the bookmarks.</p>""" |
688 )) |
688 )) |
689 self.bookmarksManageAct.triggered.connect(self.__showBookmarksDialog) |
689 self.bookmarksManageAct.triggered[()].connect(self.__showBookmarksDialog) |
690 self.__actions.append(self.bookmarksManageAct) |
690 self.__actions.append(self.bookmarksManageAct) |
691 |
691 |
692 self.bookmarksAddAct = E5Action(self.trUtf8('Add Bookmark'), |
692 self.bookmarksAddAct = E5Action(self.trUtf8('Add Bookmark'), |
693 UI.PixmapCache.getIcon("addBookmark.png"), |
693 UI.PixmapCache.getIcon("addBookmark.png"), |
694 self.trUtf8('Add &Bookmark...'), |
694 self.trUtf8('Add &Bookmark...'), |
698 self.bookmarksAddAct.setStatusTip(self.trUtf8('Open a dialog to add a bookmark.')) |
698 self.bookmarksAddAct.setStatusTip(self.trUtf8('Open a dialog to add a bookmark.')) |
699 self.bookmarksAddAct.setWhatsThis(self.trUtf8( |
699 self.bookmarksAddAct.setWhatsThis(self.trUtf8( |
700 """<b>Add Bookmark</b>""" |
700 """<b>Add Bookmark</b>""" |
701 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
701 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
702 )) |
702 )) |
703 self.bookmarksAddAct.triggered.connect(self.__addBookmark) |
703 self.bookmarksAddAct.triggered[()].connect(self.__addBookmark) |
704 self.__actions.append(self.bookmarksAddAct) |
704 self.__actions.append(self.bookmarksAddAct) |
705 |
705 |
706 self.bookmarksAddFolderAct = E5Action(self.trUtf8('Add Folder'), |
706 self.bookmarksAddFolderAct = E5Action(self.trUtf8('Add Folder'), |
707 self.trUtf8('Add &Folder...'), |
707 self.trUtf8('Add &Folder...'), |
708 0, 0, self, 'help_bookmark_show_all') |
708 0, 0, self, 'help_bookmark_show_all') |
710 'Open a dialog to add a new bookmarks folder.')) |
710 'Open a dialog to add a new bookmarks folder.')) |
711 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
711 self.bookmarksAddFolderAct.setWhatsThis(self.trUtf8( |
712 """<b>Add Folder...</b>""" |
712 """<b>Add Folder...</b>""" |
713 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
713 """<p>Open a dialog to add a new bookmarks folder.</p>""" |
714 )) |
714 )) |
715 self.bookmarksAddFolderAct.triggered.connect(self.__addBookmarkFolder) |
715 self.bookmarksAddFolderAct.triggered[()].connect(self.__addBookmarkFolder) |
716 self.__actions.append(self.bookmarksAddFolderAct) |
716 self.__actions.append(self.bookmarksAddFolderAct) |
717 |
717 |
718 self.bookmarksAllTabsAct = E5Action(self.trUtf8('Bookmark All Tabs'), |
718 self.bookmarksAllTabsAct = E5Action(self.trUtf8('Bookmark All Tabs'), |
719 self.trUtf8('Bookmark All Tabs...'), |
719 self.trUtf8('Bookmark All Tabs...'), |
720 0, 0, self, 'help_bookmark_all_tabs') |
720 0, 0, self, 'help_bookmark_all_tabs') |
723 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
723 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
724 """<b>Bookmark All Tabs...</b>""" |
724 """<b>Bookmark All Tabs...</b>""" |
725 """<p>Open a dialog to add a new bookmarks folder for""" |
725 """<p>Open a dialog to add a new bookmarks folder for""" |
726 """ all open tabs.</p>""" |
726 """ all open tabs.</p>""" |
727 )) |
727 )) |
728 self.bookmarksAllTabsAct.triggered.connect(self.__bookmarkAll) |
728 self.bookmarksAllTabsAct.triggered[()].connect(self.__bookmarkAll) |
729 self.__actions.append(self.bookmarksAllTabsAct) |
729 self.__actions.append(self.bookmarksAllTabsAct) |
730 |
730 |
731 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
731 self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), |
732 UI.PixmapCache.getIcon("whatsThis.png"), |
732 UI.PixmapCache.getIcon("whatsThis.png"), |
733 self.trUtf8('&What\'s This?'), |
733 self.trUtf8('&What\'s This?'), |
740 """ question mark, and you can click on the interface elements to get""" |
740 """ question mark, and you can click on the interface elements to get""" |
741 """ a short description of what they do and how to use them. In""" |
741 """ a short description of what they do and how to use them. In""" |
742 """ dialogs, this feature can be accessed using the context help button""" |
742 """ dialogs, this feature can be accessed using the context help button""" |
743 """ in the titlebar.</p>""" |
743 """ in the titlebar.</p>""" |
744 )) |
744 )) |
745 self.whatsThisAct.triggered.connect(self.__whatsThis) |
745 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
746 self.__actions.append(self.whatsThisAct) |
746 self.__actions.append(self.whatsThisAct) |
747 |
747 |
748 self.aboutAct = E5Action(self.trUtf8('About'), |
748 self.aboutAct = E5Action(self.trUtf8('About'), |
749 self.trUtf8('&About'), |
749 self.trUtf8('&About'), |
750 0, 0, self, 'help_help_about') |
750 0, 0, self, 'help_help_about') |
751 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
751 self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) |
752 self.aboutAct.setWhatsThis(self.trUtf8( |
752 self.aboutAct.setWhatsThis(self.trUtf8( |
753 """<b>About</b>""" |
753 """<b>About</b>""" |
754 """<p>Display some information about this software.</p>""" |
754 """<p>Display some information about this software.</p>""" |
755 )) |
755 )) |
756 self.aboutAct.triggered.connect(self.__about) |
756 self.aboutAct.triggered[()].connect(self.__about) |
757 self.__actions.append(self.aboutAct) |
757 self.__actions.append(self.aboutAct) |
758 |
758 |
759 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
759 self.aboutQtAct = E5Action(self.trUtf8('About Qt'), |
760 self.trUtf8('About &Qt'), |
760 self.trUtf8('About &Qt'), |
761 0, 0, self, 'help_help_about_qt') |
761 0, 0, self, 'help_help_about_qt') |
763 self.trUtf8('Display information about the Qt toolkit')) |
763 self.trUtf8('Display information about the Qt toolkit')) |
764 self.aboutQtAct.setWhatsThis(self.trUtf8( |
764 self.aboutQtAct.setWhatsThis(self.trUtf8( |
765 """<b>About Qt</b>""" |
765 """<b>About Qt</b>""" |
766 """<p>Display some information about the Qt toolkit.</p>""" |
766 """<p>Display some information about the Qt toolkit.</p>""" |
767 )) |
767 )) |
768 self.aboutQtAct.triggered.connect(self.__aboutQt) |
768 self.aboutQtAct.triggered[()].connect(self.__aboutQt) |
769 self.__actions.append(self.aboutQtAct) |
769 self.__actions.append(self.aboutQtAct) |
770 |
770 |
771 self.zoomInAct = E5Action(self.trUtf8('Zoom in'), |
771 self.zoomInAct = E5Action(self.trUtf8('Zoom in'), |
772 UI.PixmapCache.getIcon("zoomIn.png"), |
772 UI.PixmapCache.getIcon("zoomIn.png"), |
773 self.trUtf8('Zoom &in'), |
773 self.trUtf8('Zoom &in'), |
789 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
789 self.zoomOutAct.setStatusTip(self.trUtf8('Zoom out on the text')) |
790 self.zoomOutAct.setWhatsThis(self.trUtf8( |
790 self.zoomOutAct.setWhatsThis(self.trUtf8( |
791 """<b>Zoom out</b>""" |
791 """<b>Zoom out</b>""" |
792 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
792 """<p>Zoom out on the text. This makes the text smaller.</p>""" |
793 )) |
793 )) |
794 self.zoomOutAct.triggered.connect(self.__zoomOut) |
794 self.zoomOutAct.triggered[()].connect(self.__zoomOut) |
795 self.__actions.append(self.zoomOutAct) |
795 self.__actions.append(self.zoomOutAct) |
796 |
796 |
797 self.zoomResetAct = E5Action(self.trUtf8('Zoom reset'), |
797 self.zoomResetAct = E5Action(self.trUtf8('Zoom reset'), |
798 UI.PixmapCache.getIcon("zoomReset.png"), |
798 UI.PixmapCache.getIcon("zoomReset.png"), |
799 self.trUtf8('Zoom &reset'), |
799 self.trUtf8('Zoom &reset'), |
803 self.zoomResetAct.setWhatsThis(self.trUtf8( |
803 self.zoomResetAct.setWhatsThis(self.trUtf8( |
804 """<b>Zoom reset</b>""" |
804 """<b>Zoom reset</b>""" |
805 """<p>Reset the zoom of the text. """ |
805 """<p>Reset the zoom of the text. """ |
806 """This sets the zoom factor to 100%.</p>""" |
806 """This sets the zoom factor to 100%.</p>""" |
807 )) |
807 )) |
808 self.zoomResetAct.triggered.connect(self.__zoomReset) |
808 self.zoomResetAct.triggered[()].connect(self.__zoomReset) |
809 self.__actions.append(self.zoomResetAct) |
809 self.__actions.append(self.zoomResetAct) |
810 |
810 |
811 if hasattr(QWebSettings, 'ZoomTextOnly'): |
811 if hasattr(QWebSettings, 'ZoomTextOnly'): |
812 self.zoomTextOnlyAct = E5Action(self.trUtf8('Zoom text only'), |
812 self.zoomTextOnlyAct = E5Action(self.trUtf8('Zoom text only'), |
813 self.trUtf8('Zoom &text only'), |
813 self.trUtf8('Zoom &text only'), |
832 self.pageSourceAct.setStatusTip(self.trUtf8('Show the page source in an editor')) |
832 self.pageSourceAct.setStatusTip(self.trUtf8('Show the page source in an editor')) |
833 self.pageSourceAct.setWhatsThis(self.trUtf8( |
833 self.pageSourceAct.setWhatsThis(self.trUtf8( |
834 """<b>Show page source</b>""" |
834 """<b>Show page source</b>""" |
835 """<p>Show the page source in an editor.</p>""" |
835 """<p>Show the page source in an editor.</p>""" |
836 )) |
836 )) |
837 self.pageSourceAct.triggered.connect(self.__showPageSource) |
837 self.pageSourceAct.triggered[()].connect(self.__showPageSource) |
838 self.__actions.append(self.pageSourceAct) |
838 self.__actions.append(self.pageSourceAct) |
839 self.addAction(self.pageSourceAct) |
839 self.addAction(self.pageSourceAct) |
840 |
840 |
841 self.fullScreenAct = E5Action(self.trUtf8('Full Screen'), |
841 self.fullScreenAct = E5Action(self.trUtf8('Full Screen'), |
842 UI.PixmapCache.getIcon("windowFullscreen.png"), |
842 UI.PixmapCache.getIcon("windowFullscreen.png"), |
843 self.trUtf8('&Full Screen'), |
843 self.trUtf8('&Full Screen'), |
844 QKeySequence(self.trUtf8('F11')), 0, |
844 QKeySequence(self.trUtf8('F11')), 0, |
845 self, 'help_view_full_scree') |
845 self, 'help_view_full_scree') |
846 self.fullScreenAct.triggered.connect(self.__viewFullScreen) |
846 self.fullScreenAct.triggered[()].connect(self.__viewFullScreen) |
847 self.__actions.append(self.fullScreenAct) |
847 self.__actions.append(self.fullScreenAct) |
848 self.addAction(self.fullScreenAct) |
848 self.addAction(self.fullScreenAct) |
849 |
849 |
850 self.nextTabAct = E5Action(self.trUtf8('Show next tab'), |
850 self.nextTabAct = E5Action(self.trUtf8('Show next tab'), |
851 self.trUtf8('Show next tab'), |
851 self.trUtf8('Show next tab'), |
852 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
852 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
853 self, 'help_view_next_tab') |
853 self, 'help_view_next_tab') |
854 self.nextTabAct.triggered.connect(self.__nextTab) |
854 self.nextTabAct.triggered[()].connect(self.__nextTab) |
855 self.__actions.append(self.nextTabAct) |
855 self.__actions.append(self.nextTabAct) |
856 self.addAction(self.nextTabAct) |
856 self.addAction(self.nextTabAct) |
857 |
857 |
858 self.prevTabAct = E5Action(self.trUtf8('Show previous tab'), |
858 self.prevTabAct = E5Action(self.trUtf8('Show previous tab'), |
859 self.trUtf8('Show previous tab'), |
859 self.trUtf8('Show previous tab'), |
860 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
860 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
861 self, 'help_view_previous_tab') |
861 self, 'help_view_previous_tab') |
862 self.prevTabAct.triggered.connect(self.__prevTab) |
862 self.prevTabAct.triggered[()].connect(self.__prevTab) |
863 self.__actions.append(self.prevTabAct) |
863 self.__actions.append(self.prevTabAct) |
864 self.addAction(self.prevTabAct) |
864 self.addAction(self.prevTabAct) |
865 |
865 |
866 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
866 self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), |
867 self.trUtf8('Switch between tabs'), |
867 self.trUtf8('Switch between tabs'), |
868 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
868 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
869 self, 'help_switch_tabs') |
869 self, 'help_switch_tabs') |
870 self.switchTabAct.triggered.connect(self.__switchTab) |
870 self.switchTabAct.triggered[()].connect(self.__switchTab) |
871 self.__actions.append(self.switchTabAct) |
871 self.__actions.append(self.switchTabAct) |
872 self.addAction(self.switchTabAct) |
872 self.addAction(self.switchTabAct) |
873 |
873 |
874 self.prefAct = E5Action(self.trUtf8('Preferences'), |
874 self.prefAct = E5Action(self.trUtf8('Preferences'), |
875 UI.PixmapCache.getIcon("configure.png"), |
875 UI.PixmapCache.getIcon("configure.png"), |
878 self.prefAct.setWhatsThis(self.trUtf8( |
878 self.prefAct.setWhatsThis(self.trUtf8( |
879 """<b>Preferences</b>""" |
879 """<b>Preferences</b>""" |
880 """<p>Set the configuration items of the application""" |
880 """<p>Set the configuration items of the application""" |
881 """ with your prefered values.</p>""" |
881 """ with your prefered values.</p>""" |
882 )) |
882 )) |
883 self.prefAct.triggered.connect(self.__showPreferences) |
883 self.prefAct.triggered[()].connect(self.__showPreferences) |
884 self.__actions.append(self.prefAct) |
884 self.__actions.append(self.prefAct) |
885 |
885 |
886 self.acceptedLanguagesAct = E5Action(self.trUtf8('Languages'), |
886 self.acceptedLanguagesAct = E5Action(self.trUtf8('Languages'), |
887 UI.PixmapCache.getIcon("flag.png"), |
887 UI.PixmapCache.getIcon("flag.png"), |
888 self.trUtf8('&Languages...'), 0, 0, self, 'help_accepted_languages') |
888 self.trUtf8('&Languages...'), 0, 0, self, 'help_accepted_languages') |
890 'Configure the accepted languages for web pages')) |
890 'Configure the accepted languages for web pages')) |
891 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
891 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
892 """<b>Languages</b>""" |
892 """<b>Languages</b>""" |
893 """<p>Configure the accepted languages for web pages.</p>""" |
893 """<p>Configure the accepted languages for web pages.</p>""" |
894 )) |
894 )) |
895 self.acceptedLanguagesAct.triggered.connect(self.__showAcceptedLanguages) |
895 self.acceptedLanguagesAct.triggered[()].connect(self.__showAcceptedLanguages) |
896 self.__actions.append(self.acceptedLanguagesAct) |
896 self.__actions.append(self.acceptedLanguagesAct) |
897 |
897 |
898 self.cookiesAct = E5Action(self.trUtf8('Cookies'), |
898 self.cookiesAct = E5Action(self.trUtf8('Cookies'), |
899 UI.PixmapCache.getIcon("cookie.png"), |
899 UI.PixmapCache.getIcon("cookie.png"), |
900 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
900 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
902 'Configure cookies handling')) |
902 'Configure cookies handling')) |
903 self.cookiesAct.setWhatsThis(self.trUtf8( |
903 self.cookiesAct.setWhatsThis(self.trUtf8( |
904 """<b>Cookies</b>""" |
904 """<b>Cookies</b>""" |
905 """<p>Configure cookies handling.</p>""" |
905 """<p>Configure cookies handling.</p>""" |
906 )) |
906 )) |
907 self.cookiesAct.triggered.connect(self.__showCookiesConfiguration) |
907 self.cookiesAct.triggered[()].connect(self.__showCookiesConfiguration) |
908 self.__actions.append(self.cookiesAct) |
908 self.__actions.append(self.cookiesAct) |
909 |
909 |
910 self.offlineStorageAct = E5Action(self.trUtf8('Offline Storage'), |
910 self.offlineStorageAct = E5Action(self.trUtf8('Offline Storage'), |
911 UI.PixmapCache.getIcon("preferences-html5.png"), |
911 UI.PixmapCache.getIcon("preferences-html5.png"), |
912 self.trUtf8('Offline &Storage...'), 0, 0, self, 'help_offline_storage') |
912 self.trUtf8('Offline &Storage...'), 0, 0, self, 'help_offline_storage') |
914 'Configure offline storage')) |
914 'Configure offline storage')) |
915 self.offlineStorageAct.setWhatsThis(self.trUtf8( |
915 self.offlineStorageAct.setWhatsThis(self.trUtf8( |
916 """<b>Offline Storage</b>""" |
916 """<b>Offline Storage</b>""" |
917 """<p>Opens a dialog to configure offline storage.</p>""" |
917 """<p>Opens a dialog to configure offline storage.</p>""" |
918 )) |
918 )) |
919 self.offlineStorageAct.triggered.connect(self.__showOfflineStorageConfiguration) |
919 self.offlineStorageAct.triggered[()].connect(self.__showOfflineStorageConfiguration) |
920 self.__actions.append(self.offlineStorageAct) |
920 self.__actions.append(self.offlineStorageAct) |
921 |
921 |
922 self.syncTocAct = E5Action(self.trUtf8('Sync with Table of Contents'), |
922 self.syncTocAct = E5Action(self.trUtf8('Sync with Table of Contents'), |
923 UI.PixmapCache.getIcon("syncToc.png"), |
923 UI.PixmapCache.getIcon("syncToc.png"), |
924 self.trUtf8('Sync with Table of Contents'), |
924 self.trUtf8('Sync with Table of Contents'), |
927 'Synchronizes the table of contents with current page')) |
927 'Synchronizes the table of contents with current page')) |
928 self.syncTocAct.setWhatsThis(self.trUtf8( |
928 self.syncTocAct.setWhatsThis(self.trUtf8( |
929 """<b>Sync with Table of Contents</b>""" |
929 """<b>Sync with Table of Contents</b>""" |
930 """<p>Synchronizes the table of contents with current page.</p>""" |
930 """<p>Synchronizes the table of contents with current page.</p>""" |
931 )) |
931 )) |
932 self.syncTocAct.triggered.connect(self.__syncTOC) |
932 self.syncTocAct.triggered[()].connect(self.__syncTOC) |
933 self.__actions.append(self.syncTocAct) |
933 self.__actions.append(self.syncTocAct) |
934 |
934 |
935 self.showTocAct = E5Action(self.trUtf8('Table of Contents'), |
935 self.showTocAct = E5Action(self.trUtf8('Table of Contents'), |
936 self.trUtf8('Table of Contents'), |
936 self.trUtf8('Table of Contents'), |
937 0, 0, self, 'help_show_toc') |
937 0, 0, self, 'help_show_toc') |
939 'Shows the table of contents window')) |
939 'Shows the table of contents window')) |
940 self.showTocAct.setWhatsThis(self.trUtf8( |
940 self.showTocAct.setWhatsThis(self.trUtf8( |
941 """<b>Table of Contents</b>""" |
941 """<b>Table of Contents</b>""" |
942 """<p>Shows the table of contents window.</p>""" |
942 """<p>Shows the table of contents window.</p>""" |
943 )) |
943 )) |
944 self.showTocAct.triggered.connect(self.__showTocWindow) |
944 self.showTocAct.triggered[()].connect(self.__showTocWindow) |
945 self.__actions.append(self.showTocAct) |
945 self.__actions.append(self.showTocAct) |
946 |
946 |
947 self.showIndexAct = E5Action(self.trUtf8('Index'), |
947 self.showIndexAct = E5Action(self.trUtf8('Index'), |
948 self.trUtf8('Index'), |
948 self.trUtf8('Index'), |
949 0, 0, self, 'help_show_index') |
949 0, 0, self, 'help_show_index') |
951 'Shows the index window')) |
951 'Shows the index window')) |
952 self.showIndexAct.setWhatsThis(self.trUtf8( |
952 self.showIndexAct.setWhatsThis(self.trUtf8( |
953 """<b>Index</b>""" |
953 """<b>Index</b>""" |
954 """<p>Shows the index window.</p>""" |
954 """<p>Shows the index window.</p>""" |
955 )) |
955 )) |
956 self.showIndexAct.triggered.connect(self.__showIndexWindow) |
956 self.showIndexAct.triggered[()].connect(self.__showIndexWindow) |
957 self.__actions.append(self.showIndexAct) |
957 self.__actions.append(self.showIndexAct) |
958 |
958 |
959 self.showSearchAct = E5Action(self.trUtf8('Search'), |
959 self.showSearchAct = E5Action(self.trUtf8('Search'), |
960 self.trUtf8('Search'), |
960 self.trUtf8('Search'), |
961 0, 0, self, 'help_show_search') |
961 0, 0, self, 'help_show_search') |
963 'Shows the search window')) |
963 'Shows the search window')) |
964 self.showSearchAct.setWhatsThis(self.trUtf8( |
964 self.showSearchAct.setWhatsThis(self.trUtf8( |
965 """<b>Search</b>""" |
965 """<b>Search</b>""" |
966 """<p>Shows the search window.</p>""" |
966 """<p>Shows the search window.</p>""" |
967 )) |
967 )) |
968 self.showSearchAct.triggered.connect(self.__showSearchWindow) |
968 self.showSearchAct.triggered[()].connect(self.__showSearchWindow) |
969 self.__actions.append(self.showSearchAct) |
969 self.__actions.append(self.showSearchAct) |
970 |
970 |
971 self.manageQtHelpDocsAct = E5Action(self.trUtf8('Manage QtHelp Documents'), |
971 self.manageQtHelpDocsAct = E5Action(self.trUtf8('Manage QtHelp Documents'), |
972 self.trUtf8('Manage QtHelp &Documents'), |
972 self.trUtf8('Manage QtHelp &Documents'), |
973 0, 0, self, 'help_qthelp_documents') |
973 0, 0, self, 'help_qthelp_documents') |
975 'Shows a dialog to manage the QtHelp documentation set')) |
975 'Shows a dialog to manage the QtHelp documentation set')) |
976 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
976 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
977 """<b>Manage QtHelp Documents</b>""" |
977 """<b>Manage QtHelp Documents</b>""" |
978 """<p>Shows a dialog to manage the QtHelp documentation set.</p>""" |
978 """<p>Shows a dialog to manage the QtHelp documentation set.</p>""" |
979 )) |
979 )) |
980 self.manageQtHelpDocsAct.triggered.connect(self.__manageQtHelpDocumentation) |
980 self.manageQtHelpDocsAct.triggered[()].connect(self.__manageQtHelpDocumentation) |
981 self.__actions.append(self.manageQtHelpDocsAct) |
981 self.__actions.append(self.manageQtHelpDocsAct) |
982 |
982 |
983 self.manageQtHelpFiltersAct = E5Action(self.trUtf8('Manage QtHelp Filters'), |
983 self.manageQtHelpFiltersAct = E5Action(self.trUtf8('Manage QtHelp Filters'), |
984 self.trUtf8('Manage QtHelp &Filters'), |
984 self.trUtf8('Manage QtHelp &Filters'), |
985 0, 0, self, 'help_qthelp_filters') |
985 0, 0, self, 'help_qthelp_filters') |
987 'Shows a dialog to manage the QtHelp filters')) |
987 'Shows a dialog to manage the QtHelp filters')) |
988 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
988 self.manageQtHelpFiltersAct.setWhatsThis(self.trUtf8( |
989 """<b>Manage QtHelp Filters</b>""" |
989 """<b>Manage QtHelp Filters</b>""" |
990 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
990 """<p>Shows a dialog to manage the QtHelp filters.</p>""" |
991 )) |
991 )) |
992 self.manageQtHelpFiltersAct.triggered.connect(self.__manageQtHelpFilters) |
992 self.manageQtHelpFiltersAct.triggered[()].connect(self.__manageQtHelpFilters) |
993 self.__actions.append(self.manageQtHelpFiltersAct) |
993 self.__actions.append(self.manageQtHelpFiltersAct) |
994 |
994 |
995 self.reindexDocumentationAct = E5Action(self.trUtf8('Reindex Documentation'), |
995 self.reindexDocumentationAct = E5Action(self.trUtf8('Reindex Documentation'), |
996 self.trUtf8('&Reindex Documentation'), |
996 self.trUtf8('&Reindex Documentation'), |
997 0, 0, self, 'help_qthelp_reindex') |
997 0, 0, self, 'help_qthelp_reindex') |