419 """ |
419 """ |
420 # list of all actions |
420 # list of all actions |
421 self.__actions = [] |
421 self.__actions = [] |
422 |
422 |
423 self.newTabAct = E5Action( |
423 self.newTabAct = E5Action( |
424 self.trUtf8('New Tab'), |
424 self.tr('New Tab'), |
425 UI.PixmapCache.getIcon("tabNew.png"), |
425 UI.PixmapCache.getIcon("tabNew.png"), |
426 self.trUtf8('&New Tab'), |
426 self.tr('&New Tab'), |
427 QKeySequence(self.trUtf8("Ctrl+T", "File|New Tab")), |
427 QKeySequence(self.tr("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.tr('Open a new help window tab')) |
430 self.newTabAct.setWhatsThis(self.trUtf8( |
430 self.newTabAct.setWhatsThis(self.tr( |
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 |
438 self.newAct = E5Action( |
438 self.newAct = E5Action( |
439 self.trUtf8('New Window'), |
439 self.tr('New Window'), |
440 UI.PixmapCache.getIcon("newWindow.png"), |
440 UI.PixmapCache.getIcon("newWindow.png"), |
441 self.trUtf8('New &Window'), |
441 self.tr('New &Window'), |
442 QKeySequence(self.trUtf8("Ctrl+N", "File|New Window")), |
442 QKeySequence(self.tr("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.tr('Open a new help browser window')) |
445 self.newAct.setWhatsThis(self.trUtf8( |
445 self.newAct.setWhatsThis(self.tr( |
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 |
453 self.openAct = E5Action( |
453 self.openAct = E5Action( |
454 self.trUtf8('Open File'), |
454 self.tr('Open File'), |
455 UI.PixmapCache.getIcon("open.png"), |
455 UI.PixmapCache.getIcon("open.png"), |
456 self.trUtf8('&Open File'), |
456 self.tr('&Open File'), |
457 QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), |
457 QKeySequence(self.tr("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.tr('Open a help file for display')) |
460 self.openAct.setWhatsThis(self.trUtf8( |
460 self.openAct.setWhatsThis(self.tr( |
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 |
469 self.openTabAct = E5Action( |
469 self.openTabAct = E5Action( |
470 self.trUtf8('Open File in New Tab'), |
470 self.tr('Open File in New Tab'), |
471 UI.PixmapCache.getIcon("openNewTab.png"), |
471 UI.PixmapCache.getIcon("openNewTab.png"), |
472 self.trUtf8('Open File in New &Tab'), |
472 self.tr('Open File in New &Tab'), |
473 QKeySequence(self.trUtf8("Shift+Ctrl+O", "File|Open in new tab")), |
473 QKeySequence(self.tr("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.tr('Open a help file for display in a new tab')) |
477 self.openTabAct.setWhatsThis(self.trUtf8( |
477 self.openTabAct.setWhatsThis(self.tr( |
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 |
486 self.saveAsAct = E5Action( |
486 self.saveAsAct = E5Action( |
487 self.trUtf8('Save As'), |
487 self.tr('Save As'), |
488 UI.PixmapCache.getIcon("fileSaveAs.png"), |
488 UI.PixmapCache.getIcon("fileSaveAs.png"), |
489 self.trUtf8('&Save As...'), |
489 self.tr('&Save As...'), |
490 QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), |
490 QKeySequence(self.tr("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.tr('Save the current page to disk')) |
494 self.saveAsAct.setWhatsThis(self.trUtf8( |
494 self.saveAsAct.setWhatsThis(self.tr( |
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 |
502 self.savePageScreenAct = E5Action( |
502 self.savePageScreenAct = E5Action( |
503 self.trUtf8('Save Page Screen'), |
503 self.tr('Save Page Screen'), |
504 UI.PixmapCache.getIcon("fileSavePixmap.png"), |
504 UI.PixmapCache.getIcon("fileSavePixmap.png"), |
505 self.trUtf8('Save Page Screen...'), |
505 self.tr('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.tr('Save the current page as a screen shot')) |
509 self.savePageScreenAct.setWhatsThis(self.trUtf8( |
509 self.savePageScreenAct.setWhatsThis(self.tr( |
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 |
517 self.saveVisiblePageScreenAct = E5Action( |
517 self.saveVisiblePageScreenAct = E5Action( |
518 self.trUtf8('Save Visible Page Screen'), |
518 self.tr('Save Visible Page Screen'), |
519 UI.PixmapCache.getIcon("fileSaveVisiblePixmap.png"), |
519 UI.PixmapCache.getIcon("fileSaveVisiblePixmap.png"), |
520 self.trUtf8('Save Visible Page Screen...'), |
520 self.tr('Save Visible Page Screen...'), |
521 0, 0, self, 'help_file_save_visible_page_screen') |
521 0, 0, self, 'help_file_save_visible_page_screen') |
522 self.saveVisiblePageScreenAct.setStatusTip( |
522 self.saveVisiblePageScreenAct.setStatusTip( |
523 self.trUtf8('Save the visible part of the current page as a' |
523 self.tr('Save the visible part of the current page as a' |
524 ' screen shot')) |
524 ' screen shot')) |
525 self.saveVisiblePageScreenAct.setWhatsThis(self.trUtf8( |
525 self.saveVisiblePageScreenAct.setWhatsThis(self.tr( |
526 """<b>Save Visible Page Screen...</b>""" |
526 """<b>Save Visible Page Screen...</b>""" |
527 """<p>Saves the visible part of the current page as a""" |
527 """<p>Saves the visible part of the current page as a""" |
528 """ screen shot.</p>""" |
528 """ screen shot.</p>""" |
529 )) |
529 )) |
530 if not self.initShortcutsOnly: |
530 if not self.initShortcutsOnly: |
532 self.__saveVisiblePageScreen) |
532 self.__saveVisiblePageScreen) |
533 self.__actions.append(self.saveVisiblePageScreenAct) |
533 self.__actions.append(self.saveVisiblePageScreenAct) |
534 |
534 |
535 bookmarksManager = self.bookmarksManager() |
535 bookmarksManager = self.bookmarksManager() |
536 self.importBookmarksAct = E5Action( |
536 self.importBookmarksAct = E5Action( |
537 self.trUtf8('Import Bookmarks'), |
537 self.tr('Import Bookmarks'), |
538 self.trUtf8('&Import Bookmarks...'), |
538 self.tr('&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.tr('Import bookmarks from other browsers')) |
542 self.importBookmarksAct.setWhatsThis(self.trUtf8( |
542 self.importBookmarksAct.setWhatsThis(self.tr( |
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) |
550 |
550 |
551 self.exportBookmarksAct = E5Action( |
551 self.exportBookmarksAct = E5Action( |
552 self.trUtf8('Export Bookmarks'), |
552 self.tr('Export Bookmarks'), |
553 self.trUtf8('&Export Bookmarks...'), |
553 self.tr('&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.tr('Export the bookmarks into a file')) |
557 self.exportBookmarksAct.setWhatsThis(self.trUtf8( |
557 self.exportBookmarksAct.setWhatsThis(self.tr( |
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) |
565 |
565 |
566 self.printAct = E5Action( |
566 self.printAct = E5Action( |
567 self.trUtf8('Print'), |
567 self.tr('Print'), |
568 UI.PixmapCache.getIcon("print.png"), |
568 UI.PixmapCache.getIcon("print.png"), |
569 self.trUtf8('&Print'), |
569 self.tr('&Print'), |
570 QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), |
570 QKeySequence(self.tr("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.tr('Print the displayed help')) |
573 self.printAct.setWhatsThis(self.trUtf8( |
573 self.printAct.setWhatsThis(self.tr( |
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 |
581 self.printPdfAct = E5Action( |
581 self.printPdfAct = E5Action( |
582 self.trUtf8('Print as PDF'), |
582 self.tr('Print as PDF'), |
583 UI.PixmapCache.getIcon("printPdf.png"), |
583 UI.PixmapCache.getIcon("printPdf.png"), |
584 self.trUtf8('Print as PDF'), |
584 self.tr('Print as PDF'), |
585 0, 0, self, 'help_file_print_pdf') |
585 0, 0, self, 'help_file_print_pdf') |
586 self.printPdfAct.setStatusTip(self.trUtf8( |
586 self.printPdfAct.setStatusTip(self.tr( |
587 'Print the displayed help as PDF')) |
587 'Print the displayed help as PDF')) |
588 self.printPdfAct.setWhatsThis(self.trUtf8( |
588 self.printPdfAct.setWhatsThis(self.tr( |
589 """<b>Print as PDF</b>""" |
589 """<b>Print as PDF</b>""" |
590 """<p>Print the displayed help text as a PDF file.</p>""" |
590 """<p>Print the displayed help text as a PDF file.</p>""" |
591 )) |
591 )) |
592 if not self.initShortcutsOnly: |
592 if not self.initShortcutsOnly: |
593 self.printPdfAct.triggered[()].connect( |
593 self.printPdfAct.triggered[()].connect( |
594 self.tabWidget.printBrowserPdf) |
594 self.tabWidget.printBrowserPdf) |
595 self.__actions.append(self.printPdfAct) |
595 self.__actions.append(self.printPdfAct) |
596 |
596 |
597 self.printPreviewAct = E5Action( |
597 self.printPreviewAct = E5Action( |
598 self.trUtf8('Print Preview'), |
598 self.tr('Print Preview'), |
599 UI.PixmapCache.getIcon("printPreview.png"), |
599 UI.PixmapCache.getIcon("printPreview.png"), |
600 self.trUtf8('Print Preview'), |
600 self.tr('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.tr( |
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.tr( |
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) |
612 |
612 |
613 self.closeAct = E5Action( |
613 self.closeAct = E5Action( |
614 self.trUtf8('Close'), |
614 self.tr('Close'), |
615 UI.PixmapCache.getIcon("close.png"), |
615 UI.PixmapCache.getIcon("close.png"), |
616 self.trUtf8('&Close'), |
616 self.tr('&Close'), |
617 QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), |
617 QKeySequence(self.tr("Ctrl+W", "File|Close")), |
618 0, self, 'help_file_close') |
618 0, self, 'help_file_close') |
619 self.closeAct.setStatusTip(self.trUtf8( |
619 self.closeAct.setStatusTip(self.tr( |
620 'Close the current help window')) |
620 'Close the current help window')) |
621 self.closeAct.setWhatsThis(self.trUtf8( |
621 self.closeAct.setWhatsThis(self.tr( |
622 """<b>Close</b>""" |
622 """<b>Close</b>""" |
623 """<p>Closes the current help window.</p>""" |
623 """<p>Closes the current help window.</p>""" |
624 )) |
624 )) |
625 if not self.initShortcutsOnly: |
625 if not self.initShortcutsOnly: |
626 self.closeAct.triggered[()].connect(self.tabWidget.closeBrowser) |
626 self.closeAct.triggered[()].connect(self.tabWidget.closeBrowser) |
627 self.__actions.append(self.closeAct) |
627 self.__actions.append(self.closeAct) |
628 |
628 |
629 self.closeAllAct = E5Action( |
629 self.closeAllAct = E5Action( |
630 self.trUtf8('Close All'), |
630 self.tr('Close All'), |
631 self.trUtf8('Close &All'), |
631 self.tr('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.tr('Close all help windows')) |
634 self.closeAllAct.setWhatsThis(self.trUtf8( |
634 self.closeAllAct.setWhatsThis(self.tr( |
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) |
642 |
642 |
643 self.privateBrowsingAct = E5Action( |
643 self.privateBrowsingAct = E5Action( |
644 self.trUtf8('Private Browsing'), |
644 self.tr('Private Browsing'), |
645 UI.PixmapCache.getIcon("privateBrowsing.png"), |
645 UI.PixmapCache.getIcon("privateBrowsing.png"), |
646 self.trUtf8('Private &Browsing'), |
646 self.tr('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.tr('Private Browsing')) |
649 self.privateBrowsingAct.setWhatsThis(self.trUtf8( |
649 self.privateBrowsingAct.setWhatsThis(self.tr( |
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: |
674 else: |
674 else: |
675 self.exitAct.triggered[()].connect(self.__closeAllWindows) |
675 self.exitAct.triggered[()].connect(self.__closeAllWindows) |
676 self.__actions.append(self.exitAct) |
676 self.__actions.append(self.exitAct) |
677 |
677 |
678 self.backAct = E5Action( |
678 self.backAct = E5Action( |
679 self.trUtf8('Backward'), |
679 self.tr('Backward'), |
680 UI.PixmapCache.getIcon("back.png"), |
680 UI.PixmapCache.getIcon("back.png"), |
681 self.trUtf8('&Backward'), |
681 self.tr('&Backward'), |
682 QKeySequence(self.trUtf8("Alt+Left", "Go|Backward")), |
682 QKeySequence(self.tr("Alt+Left", "Go|Backward")), |
683 QKeySequence(self.trUtf8("Backspace", "Go|Backward")), |
683 QKeySequence(self.tr("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.tr('Move one help screen backward')) |
686 self.backAct.setWhatsThis(self.trUtf8( |
686 self.backAct.setWhatsThis(self.tr( |
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 |
695 self.forwardAct = E5Action( |
695 self.forwardAct = E5Action( |
696 self.trUtf8('Forward'), |
696 self.tr('Forward'), |
697 UI.PixmapCache.getIcon("forward.png"), |
697 UI.PixmapCache.getIcon("forward.png"), |
698 self.trUtf8('&Forward'), |
698 self.tr('&Forward'), |
699 QKeySequence(self.trUtf8("Alt+Right", "Go|Forward")), |
699 QKeySequence(self.tr("Alt+Right", "Go|Forward")), |
700 QKeySequence(self.trUtf8("Shift+Backspace", "Go|Forward")), |
700 QKeySequence(self.tr("Shift+Backspace", "Go|Forward")), |
701 self, 'help_go_foreward') |
701 self, 'help_go_foreward') |
702 self.forwardAct.setStatusTip(self.trUtf8( |
702 self.forwardAct.setStatusTip(self.tr( |
703 'Move one help screen forward')) |
703 'Move one help screen forward')) |
704 self.forwardAct.setWhatsThis(self.trUtf8( |
704 self.forwardAct.setWhatsThis(self.tr( |
705 """<b>Forward</b>""" |
705 """<b>Forward</b>""" |
706 """<p>Moves one help screen forward. If none is""" |
706 """<p>Moves one help screen forward. If none is""" |
707 """ available, this action is disabled.</p>""" |
707 """ available, this action is disabled.</p>""" |
708 )) |
708 )) |
709 if not self.initShortcutsOnly: |
709 if not self.initShortcutsOnly: |
710 self.forwardAct.triggered[()].connect(self.__forward) |
710 self.forwardAct.triggered[()].connect(self.__forward) |
711 self.__actions.append(self.forwardAct) |
711 self.__actions.append(self.forwardAct) |
712 |
712 |
713 self.homeAct = E5Action( |
713 self.homeAct = E5Action( |
714 self.trUtf8('Home'), |
714 self.tr('Home'), |
715 UI.PixmapCache.getIcon("home.png"), |
715 UI.PixmapCache.getIcon("home.png"), |
716 self.trUtf8('&Home'), |
716 self.tr('&Home'), |
717 QKeySequence(self.trUtf8("Ctrl+Home", "Go|Home")), |
717 QKeySequence(self.tr("Ctrl+Home", "Go|Home")), |
718 0, self, 'help_go_home') |
718 0, self, 'help_go_home') |
719 self.homeAct.setStatusTip(self.trUtf8( |
719 self.homeAct.setStatusTip(self.tr( |
720 'Move to the initial help screen')) |
720 'Move to the initial help screen')) |
721 self.homeAct.setWhatsThis(self.trUtf8( |
721 self.homeAct.setWhatsThis(self.tr( |
722 """<b>Home</b>""" |
722 """<b>Home</b>""" |
723 """<p>Moves to the initial help screen.</p>""" |
723 """<p>Moves to the initial help screen.</p>""" |
724 )) |
724 )) |
725 if not self.initShortcutsOnly: |
725 if not self.initShortcutsOnly: |
726 self.homeAct.triggered[()].connect(self.__home) |
726 self.homeAct.triggered[()].connect(self.__home) |
727 self.__actions.append(self.homeAct) |
727 self.__actions.append(self.homeAct) |
728 |
728 |
729 self.reloadAct = E5Action( |
729 self.reloadAct = E5Action( |
730 self.trUtf8('Reload'), |
730 self.tr('Reload'), |
731 UI.PixmapCache.getIcon("reload.png"), |
731 UI.PixmapCache.getIcon("reload.png"), |
732 self.trUtf8('&Reload'), |
732 self.tr('&Reload'), |
733 QKeySequence(self.trUtf8("Ctrl+R", "Go|Reload")), |
733 QKeySequence(self.tr("Ctrl+R", "Go|Reload")), |
734 QKeySequence(self.trUtf8("F5", "Go|Reload")), |
734 QKeySequence(self.tr("F5", "Go|Reload")), |
735 self, 'help_go_reload') |
735 self, 'help_go_reload') |
736 self.reloadAct.setStatusTip(self.trUtf8( |
736 self.reloadAct.setStatusTip(self.tr( |
737 'Reload the current help screen')) |
737 'Reload the current help screen')) |
738 self.reloadAct.setWhatsThis(self.trUtf8( |
738 self.reloadAct.setWhatsThis(self.tr( |
739 """<b>Reload</b>""" |
739 """<b>Reload</b>""" |
740 """<p>Reloads the current help screen.</p>""" |
740 """<p>Reloads the current help screen.</p>""" |
741 )) |
741 )) |
742 if not self.initShortcutsOnly: |
742 if not self.initShortcutsOnly: |
743 self.reloadAct.triggered[()].connect(self.__reload) |
743 self.reloadAct.triggered[()].connect(self.__reload) |
744 self.__actions.append(self.reloadAct) |
744 self.__actions.append(self.reloadAct) |
745 |
745 |
746 self.stopAct = E5Action( |
746 self.stopAct = E5Action( |
747 self.trUtf8('Stop'), |
747 self.tr('Stop'), |
748 UI.PixmapCache.getIcon("stopLoading.png"), |
748 UI.PixmapCache.getIcon("stopLoading.png"), |
749 self.trUtf8('&Stop'), |
749 self.tr('&Stop'), |
750 QKeySequence(self.trUtf8("Ctrl+.", "Go|Stop")), |
750 QKeySequence(self.tr("Ctrl+.", "Go|Stop")), |
751 QKeySequence(self.trUtf8("Esc", "Go|Stop")), |
751 QKeySequence(self.tr("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.tr('Stop loading')) |
754 self.stopAct.setWhatsThis(self.trUtf8( |
754 self.stopAct.setWhatsThis(self.tr( |
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 |
762 self.copyAct = E5Action( |
762 self.copyAct = E5Action( |
763 self.trUtf8('Copy'), |
763 self.tr('Copy'), |
764 UI.PixmapCache.getIcon("editCopy.png"), |
764 UI.PixmapCache.getIcon("editCopy.png"), |
765 self.trUtf8('&Copy'), |
765 self.tr('&Copy'), |
766 QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), |
766 QKeySequence(self.tr("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.tr('Copy the selected text')) |
769 self.copyAct.setWhatsThis(self.trUtf8( |
769 self.copyAct.setWhatsThis(self.tr( |
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 |
777 self.findAct = E5Action( |
777 self.findAct = E5Action( |
778 self.trUtf8('Find...'), |
778 self.tr('Find...'), |
779 UI.PixmapCache.getIcon("find.png"), |
779 UI.PixmapCache.getIcon("find.png"), |
780 self.trUtf8('&Find...'), |
780 self.tr('&Find...'), |
781 QKeySequence(self.trUtf8("Ctrl+F", "Edit|Find")), |
781 QKeySequence(self.tr("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.tr('Find text in page')) |
784 self.findAct.setWhatsThis(self.trUtf8( |
784 self.findAct.setWhatsThis(self.tr( |
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 |
792 self.findNextAct = E5Action( |
792 self.findNextAct = E5Action( |
793 self.trUtf8('Find next'), |
793 self.tr('Find next'), |
794 UI.PixmapCache.getIcon("findNext.png"), |
794 UI.PixmapCache.getIcon("findNext.png"), |
795 self.trUtf8('Find &next'), |
795 self.tr('Find &next'), |
796 QKeySequence(self.trUtf8("F3", "Edit|Find next")), |
796 QKeySequence(self.tr("F3", "Edit|Find next")), |
797 0, self, 'help_edit_find_next') |
797 0, self, 'help_edit_find_next') |
798 self.findNextAct.setStatusTip(self.trUtf8( |
798 self.findNextAct.setStatusTip(self.tr( |
799 'Find next occurrence of text in page')) |
799 'Find next occurrence of text in page')) |
800 self.findNextAct.setWhatsThis(self.trUtf8( |
800 self.findNextAct.setWhatsThis(self.tr( |
801 """<b>Find next</b>""" |
801 """<b>Find next</b>""" |
802 """<p>Find the next occurrence of text in the current page.</p>""" |
802 """<p>Find the next occurrence of text in the current page.</p>""" |
803 )) |
803 )) |
804 if not self.initShortcutsOnly: |
804 if not self.initShortcutsOnly: |
805 self.findNextAct.triggered[()].connect(self.findDlg.findNext) |
805 self.findNextAct.triggered[()].connect(self.findDlg.findNext) |
806 self.__actions.append(self.findNextAct) |
806 self.__actions.append(self.findNextAct) |
807 |
807 |
808 self.findPrevAct = E5Action( |
808 self.findPrevAct = E5Action( |
809 self.trUtf8('Find previous'), |
809 self.tr('Find previous'), |
810 UI.PixmapCache.getIcon("findPrev.png"), |
810 UI.PixmapCache.getIcon("findPrev.png"), |
811 self.trUtf8('Find &previous'), |
811 self.tr('Find &previous'), |
812 QKeySequence(self.trUtf8("Shift+F3", "Edit|Find previous")), |
812 QKeySequence(self.tr("Shift+F3", "Edit|Find previous")), |
813 0, self, 'help_edit_find_previous') |
813 0, self, 'help_edit_find_previous') |
814 self.findPrevAct.setStatusTip( |
814 self.findPrevAct.setStatusTip( |
815 self.trUtf8('Find previous occurrence of text in page')) |
815 self.tr('Find previous occurrence of text in page')) |
816 self.findPrevAct.setWhatsThis(self.trUtf8( |
816 self.findPrevAct.setWhatsThis(self.tr( |
817 """<b>Find previous</b>""" |
817 """<b>Find previous</b>""" |
818 """<p>Find the previous occurrence of text in the current""" |
818 """<p>Find the previous occurrence of text in the current""" |
819 """ page.</p>""" |
819 """ page.</p>""" |
820 )) |
820 )) |
821 if not self.initShortcutsOnly: |
821 if not self.initShortcutsOnly: |
822 self.findPrevAct.triggered[()].connect(self.findDlg.findPrevious) |
822 self.findPrevAct.triggered[()].connect(self.findDlg.findPrevious) |
823 self.__actions.append(self.findPrevAct) |
823 self.__actions.append(self.findPrevAct) |
824 |
824 |
825 self.bookmarksManageAct = E5Action( |
825 self.bookmarksManageAct = E5Action( |
826 self.trUtf8('Manage Bookmarks'), |
826 self.tr('Manage Bookmarks'), |
827 self.trUtf8('&Manage Bookmarks...'), |
827 self.tr('&Manage Bookmarks...'), |
828 QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), |
828 QKeySequence(self.tr("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.tr( |
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.tr( |
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) |
840 |
840 |
841 self.bookmarksAddAct = E5Action( |
841 self.bookmarksAddAct = E5Action( |
842 self.trUtf8('Add Bookmark'), |
842 self.tr('Add Bookmark'), |
843 UI.PixmapCache.getIcon("addBookmark.png"), |
843 UI.PixmapCache.getIcon("addBookmark.png"), |
844 self.trUtf8('Add &Bookmark...'), |
844 self.tr('Add &Bookmark...'), |
845 QKeySequence(self.trUtf8("Ctrl+D", "Help|Add bookmark")), |
845 QKeySequence(self.tr("Ctrl+D", "Help|Add bookmark")), |
846 0, self, 'help_bookmark_add') |
846 0, self, 'help_bookmark_add') |
847 self.bookmarksAddAct.setIconVisibleInMenu(False) |
847 self.bookmarksAddAct.setIconVisibleInMenu(False) |
848 self.bookmarksAddAct.setStatusTip(self.trUtf8( |
848 self.bookmarksAddAct.setStatusTip(self.tr( |
849 'Open a dialog to add a bookmark.')) |
849 'Open a dialog to add a bookmark.')) |
850 self.bookmarksAddAct.setWhatsThis(self.trUtf8( |
850 self.bookmarksAddAct.setWhatsThis(self.tr( |
851 """<b>Add Bookmark</b>""" |
851 """<b>Add Bookmark</b>""" |
852 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
852 """<p>Open a dialog to add the current URL as a bookmark.</p>""" |
853 )) |
853 )) |
854 if not self.initShortcutsOnly: |
854 if not self.initShortcutsOnly: |
855 self.bookmarksAddAct.triggered[()].connect(self.__addBookmark) |
855 self.bookmarksAddAct.triggered[()].connect(self.__addBookmark) |
856 self.__actions.append(self.bookmarksAddAct) |
856 self.__actions.append(self.bookmarksAddAct) |
857 |
857 |
858 self.bookmarksAddFolderAct = E5Action( |
858 self.bookmarksAddFolderAct = E5Action( |
859 self.trUtf8('Add Folder'), |
859 self.tr('Add Folder'), |
860 self.trUtf8('Add &Folder...'), |
860 self.tr('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.tr( |
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.tr( |
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) |
872 |
872 |
873 self.bookmarksAllTabsAct = E5Action( |
873 self.bookmarksAllTabsAct = E5Action( |
874 self.trUtf8('Bookmark All Tabs'), |
874 self.tr('Bookmark All Tabs'), |
875 self.trUtf8('Bookmark All Tabs...'), |
875 self.tr('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.tr( |
878 'Bookmark all open tabs.')) |
878 'Bookmark all open tabs.')) |
879 self.bookmarksAllTabsAct.setWhatsThis(self.trUtf8( |
879 self.bookmarksAllTabsAct.setWhatsThis(self.tr( |
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 |
888 self.whatsThisAct = E5Action( |
888 self.whatsThisAct = E5Action( |
889 self.trUtf8('What\'s This?'), |
889 self.tr('What\'s This?'), |
890 UI.PixmapCache.getIcon("whatsThis.png"), |
890 UI.PixmapCache.getIcon("whatsThis.png"), |
891 self.trUtf8('&What\'s This?'), |
891 self.tr('&What\'s This?'), |
892 QKeySequence(self.trUtf8("Shift+F1", "Help|What's This?'")), |
892 QKeySequence(self.tr("Shift+F1", "Help|What's This?'")), |
893 0, self, 'help_help_whats_this') |
893 0, self, 'help_help_whats_this') |
894 self.whatsThisAct.setStatusTip(self.trUtf8('Context sensitive help')) |
894 self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) |
895 self.whatsThisAct.setWhatsThis(self.trUtf8( |
895 self.whatsThisAct.setWhatsThis(self.tr( |
896 """<b>Display context sensitive help</b>""" |
896 """<b>Display context sensitive help</b>""" |
897 """<p>In What's This? mode, the mouse cursor shows an arrow""" |
897 """<p>In What's This? mode, the mouse cursor shows an arrow""" |
898 """ with a question mark, and you can click on the interface""" |
898 """ with a question mark, and you can click on the interface""" |
899 """ elements to get a short description of what they do and how""" |
899 """ elements to get a short description of what they do and how""" |
900 """ to use them. In dialogs, this feature can be accessed using""" |
900 """ to use them. In dialogs, this feature can be accessed using""" |
903 if not self.initShortcutsOnly: |
903 if not self.initShortcutsOnly: |
904 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
904 self.whatsThisAct.triggered[()].connect(self.__whatsThis) |
905 self.__actions.append(self.whatsThisAct) |
905 self.__actions.append(self.whatsThisAct) |
906 |
906 |
907 self.aboutAct = E5Action( |
907 self.aboutAct = E5Action( |
908 self.trUtf8('About'), |
908 self.tr('About'), |
909 self.trUtf8('&About'), |
909 self.tr('&About'), |
910 0, 0, self, 'help_help_about') |
910 0, 0, self, 'help_help_about') |
911 self.aboutAct.setStatusTip(self.trUtf8( |
911 self.aboutAct.setStatusTip(self.tr( |
912 'Display information about this software')) |
912 'Display information about this software')) |
913 self.aboutAct.setWhatsThis(self.trUtf8( |
913 self.aboutAct.setWhatsThis(self.tr( |
914 """<b>About</b>""" |
914 """<b>About</b>""" |
915 """<p>Display some information about this software.</p>""" |
915 """<p>Display some information about this software.</p>""" |
916 )) |
916 )) |
917 if not self.initShortcutsOnly: |
917 if not self.initShortcutsOnly: |
918 self.aboutAct.triggered[()].connect(self.__about) |
918 self.aboutAct.triggered[()].connect(self.__about) |
919 self.__actions.append(self.aboutAct) |
919 self.__actions.append(self.aboutAct) |
920 |
920 |
921 self.aboutQtAct = E5Action( |
921 self.aboutQtAct = E5Action( |
922 self.trUtf8('About Qt'), |
922 self.tr('About Qt'), |
923 self.trUtf8('About &Qt'), |
923 self.tr('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.tr('Display information about the Qt toolkit')) |
927 self.aboutQtAct.setWhatsThis(self.trUtf8( |
927 self.aboutQtAct.setWhatsThis(self.tr( |
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 |
935 self.zoomInAct = E5Action( |
935 self.zoomInAct = E5Action( |
936 self.trUtf8('Zoom in'), |
936 self.tr('Zoom in'), |
937 UI.PixmapCache.getIcon("zoomIn.png"), |
937 UI.PixmapCache.getIcon("zoomIn.png"), |
938 self.trUtf8('Zoom &in'), |
938 self.tr('Zoom &in'), |
939 QKeySequence(self.trUtf8("Ctrl++", "View|Zoom in")), |
939 QKeySequence(self.tr("Ctrl++", "View|Zoom in")), |
940 QKeySequence(self.trUtf8("Zoom In", "View|Zoom in")), |
940 QKeySequence(self.tr("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.tr('Zoom in on the text')) |
943 self.zoomInAct.setWhatsThis(self.trUtf8( |
943 self.zoomInAct.setWhatsThis(self.tr( |
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 |
951 self.zoomOutAct = E5Action( |
951 self.zoomOutAct = E5Action( |
952 self.trUtf8('Zoom out'), |
952 self.tr('Zoom out'), |
953 UI.PixmapCache.getIcon("zoomOut.png"), |
953 UI.PixmapCache.getIcon("zoomOut.png"), |
954 self.trUtf8('Zoom &out'), |
954 self.tr('Zoom &out'), |
955 QKeySequence(self.trUtf8("Ctrl+-", "View|Zoom out")), |
955 QKeySequence(self.tr("Ctrl+-", "View|Zoom out")), |
956 QKeySequence(self.trUtf8("Zoom Out", "View|Zoom out")), |
956 QKeySequence(self.tr("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.tr('Zoom out on the text')) |
959 self.zoomOutAct.setWhatsThis(self.trUtf8( |
959 self.zoomOutAct.setWhatsThis(self.tr( |
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 |
967 self.zoomResetAct = E5Action( |
967 self.zoomResetAct = E5Action( |
968 self.trUtf8('Zoom reset'), |
968 self.tr('Zoom reset'), |
969 UI.PixmapCache.getIcon("zoomReset.png"), |
969 UI.PixmapCache.getIcon("zoomReset.png"), |
970 self.trUtf8('Zoom &reset'), |
970 self.tr('Zoom &reset'), |
971 QKeySequence(self.trUtf8("Ctrl+0", "View|Zoom reset")), |
971 QKeySequence(self.tr("Ctrl+0", "View|Zoom reset")), |
972 0, self, 'help_view_zoom_reset') |
972 0, self, 'help_view_zoom_reset') |
973 self.zoomResetAct.setStatusTip(self.trUtf8( |
973 self.zoomResetAct.setStatusTip(self.tr( |
974 'Reset the zoom of the text')) |
974 'Reset the zoom of the text')) |
975 self.zoomResetAct.setWhatsThis(self.trUtf8( |
975 self.zoomResetAct.setWhatsThis(self.tr( |
976 """<b>Zoom reset</b>""" |
976 """<b>Zoom reset</b>""" |
977 """<p>Reset the zoom of the text. """ |
977 """<p>Reset the zoom of the text. """ |
978 """This sets the zoom factor to 100%.</p>""" |
978 """This sets the zoom factor to 100%.</p>""" |
979 )) |
979 )) |
980 if not self.initShortcutsOnly: |
980 if not self.initShortcutsOnly: |
981 self.zoomResetAct.triggered[()].connect(self.__zoomReset) |
981 self.zoomResetAct.triggered[()].connect(self.__zoomReset) |
982 self.__actions.append(self.zoomResetAct) |
982 self.__actions.append(self.zoomResetAct) |
983 |
983 |
984 if hasattr(QWebSettings, 'ZoomTextOnly'): |
984 if hasattr(QWebSettings, 'ZoomTextOnly'): |
985 self.zoomTextOnlyAct = E5Action( |
985 self.zoomTextOnlyAct = E5Action( |
986 self.trUtf8('Zoom text only'), |
986 self.tr('Zoom text only'), |
987 self.trUtf8('Zoom &text only'), |
987 self.tr('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.tr( |
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.tr( |
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( |
999 self.__actions.append(self.zoomTextOnlyAct) |
999 self.__actions.append(self.zoomTextOnlyAct) |
1000 else: |
1000 else: |
1001 self.zoomTextOnlyAct = None |
1001 self.zoomTextOnlyAct = None |
1002 |
1002 |
1003 self.pageSourceAct = E5Action( |
1003 self.pageSourceAct = E5Action( |
1004 self.trUtf8('Show page source'), |
1004 self.tr('Show page source'), |
1005 self.trUtf8('Show page source'), |
1005 self.tr('Show page source'), |
1006 QKeySequence(self.trUtf8('Ctrl+U')), 0, |
1006 QKeySequence(self.tr('Ctrl+U')), 0, |
1007 self, 'help_show_page_source') |
1007 self, 'help_show_page_source') |
1008 self.pageSourceAct.setStatusTip(self.trUtf8( |
1008 self.pageSourceAct.setStatusTip(self.tr( |
1009 'Show the page source in an editor')) |
1009 'Show the page source in an editor')) |
1010 self.pageSourceAct.setWhatsThis(self.trUtf8( |
1010 self.pageSourceAct.setWhatsThis(self.tr( |
1011 """<b>Show page source</b>""" |
1011 """<b>Show page source</b>""" |
1012 """<p>Show the page source in an editor.</p>""" |
1012 """<p>Show the page source in an editor.</p>""" |
1013 )) |
1013 )) |
1014 if not self.initShortcutsOnly: |
1014 if not self.initShortcutsOnly: |
1015 self.pageSourceAct.triggered[()].connect(self.__showPageSource) |
1015 self.pageSourceAct.triggered[()].connect(self.__showPageSource) |
1016 self.__actions.append(self.pageSourceAct) |
1016 self.__actions.append(self.pageSourceAct) |
1017 self.addAction(self.pageSourceAct) |
1017 self.addAction(self.pageSourceAct) |
1018 |
1018 |
1019 self.fullScreenAct = E5Action( |
1019 self.fullScreenAct = E5Action( |
1020 self.trUtf8('Full Screen'), |
1020 self.tr('Full Screen'), |
1021 UI.PixmapCache.getIcon("windowFullscreen.png"), |
1021 UI.PixmapCache.getIcon("windowFullscreen.png"), |
1022 self.trUtf8('&Full Screen'), |
1022 self.tr('&Full Screen'), |
1023 QKeySequence(self.trUtf8('F11')), 0, |
1023 QKeySequence(self.tr('F11')), 0, |
1024 self, 'help_view_full_scree') |
1024 self, 'help_view_full_scree') |
1025 if not self.initShortcutsOnly: |
1025 if not self.initShortcutsOnly: |
1026 self.fullScreenAct.triggered[()].connect(self.__viewFullScreen) |
1026 self.fullScreenAct.triggered[()].connect(self.__viewFullScreen) |
1027 self.__actions.append(self.fullScreenAct) |
1027 self.__actions.append(self.fullScreenAct) |
1028 self.addAction(self.fullScreenAct) |
1028 self.addAction(self.fullScreenAct) |
1029 |
1029 |
1030 self.nextTabAct = E5Action( |
1030 self.nextTabAct = E5Action( |
1031 self.trUtf8('Show next tab'), |
1031 self.tr('Show next tab'), |
1032 self.trUtf8('Show next tab'), |
1032 self.tr('Show next tab'), |
1033 QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, |
1033 QKeySequence(self.tr('Ctrl+Alt+Tab')), 0, |
1034 self, 'help_view_next_tab') |
1034 self, 'help_view_next_tab') |
1035 if not self.initShortcutsOnly: |
1035 if not self.initShortcutsOnly: |
1036 self.nextTabAct.triggered[()].connect(self.__nextTab) |
1036 self.nextTabAct.triggered[()].connect(self.__nextTab) |
1037 self.__actions.append(self.nextTabAct) |
1037 self.__actions.append(self.nextTabAct) |
1038 self.addAction(self.nextTabAct) |
1038 self.addAction(self.nextTabAct) |
1039 |
1039 |
1040 self.prevTabAct = E5Action( |
1040 self.prevTabAct = E5Action( |
1041 self.trUtf8('Show previous tab'), |
1041 self.tr('Show previous tab'), |
1042 self.trUtf8('Show previous tab'), |
1042 self.tr('Show previous tab'), |
1043 QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, |
1043 QKeySequence(self.tr('Shift+Ctrl+Alt+Tab')), 0, |
1044 self, 'help_view_previous_tab') |
1044 self, 'help_view_previous_tab') |
1045 if not self.initShortcutsOnly: |
1045 if not self.initShortcutsOnly: |
1046 self.prevTabAct.triggered[()].connect(self.__prevTab) |
1046 self.prevTabAct.triggered[()].connect(self.__prevTab) |
1047 self.__actions.append(self.prevTabAct) |
1047 self.__actions.append(self.prevTabAct) |
1048 self.addAction(self.prevTabAct) |
1048 self.addAction(self.prevTabAct) |
1049 |
1049 |
1050 self.switchTabAct = E5Action( |
1050 self.switchTabAct = E5Action( |
1051 self.trUtf8('Switch between tabs'), |
1051 self.tr('Switch between tabs'), |
1052 self.trUtf8('Switch between tabs'), |
1052 self.tr('Switch between tabs'), |
1053 QKeySequence(self.trUtf8('Ctrl+1')), 0, |
1053 QKeySequence(self.tr('Ctrl+1')), 0, |
1054 self, 'help_switch_tabs') |
1054 self, 'help_switch_tabs') |
1055 if not self.initShortcutsOnly: |
1055 if not self.initShortcutsOnly: |
1056 self.switchTabAct.triggered[()].connect(self.__switchTab) |
1056 self.switchTabAct.triggered[()].connect(self.__switchTab) |
1057 self.__actions.append(self.switchTabAct) |
1057 self.__actions.append(self.switchTabAct) |
1058 self.addAction(self.switchTabAct) |
1058 self.addAction(self.switchTabAct) |
1059 |
1059 |
1060 self.prefAct = E5Action( |
1060 self.prefAct = E5Action( |
1061 self.trUtf8('Preferences'), |
1061 self.tr('Preferences'), |
1062 UI.PixmapCache.getIcon("configure.png"), |
1062 UI.PixmapCache.getIcon("configure.png"), |
1063 self.trUtf8('&Preferences...'), 0, 0, self, 'help_preferences') |
1063 self.tr('&Preferences...'), 0, 0, self, 'help_preferences') |
1064 self.prefAct.setStatusTip(self.trUtf8( |
1064 self.prefAct.setStatusTip(self.tr( |
1065 'Set the prefered configuration')) |
1065 'Set the prefered configuration')) |
1066 self.prefAct.setWhatsThis(self.trUtf8( |
1066 self.prefAct.setWhatsThis(self.tr( |
1067 """<b>Preferences</b>""" |
1067 """<b>Preferences</b>""" |
1068 """<p>Set the configuration items of the application""" |
1068 """<p>Set the configuration items of the application""" |
1069 """ with your prefered values.</p>""" |
1069 """ with your prefered values.</p>""" |
1070 )) |
1070 )) |
1071 if not self.initShortcutsOnly: |
1071 if not self.initShortcutsOnly: |
1072 self.prefAct.triggered[()].connect(self.__showPreferences) |
1072 self.prefAct.triggered[()].connect(self.__showPreferences) |
1073 self.__actions.append(self.prefAct) |
1073 self.__actions.append(self.prefAct) |
1074 |
1074 |
1075 self.acceptedLanguagesAct = E5Action( |
1075 self.acceptedLanguagesAct = E5Action( |
1076 self.trUtf8('Languages'), |
1076 self.tr('Languages'), |
1077 UI.PixmapCache.getIcon("flag.png"), |
1077 UI.PixmapCache.getIcon("flag.png"), |
1078 self.trUtf8('&Languages...'), 0, 0, |
1078 self.tr('&Languages...'), 0, 0, |
1079 self, 'help_accepted_languages') |
1079 self, 'help_accepted_languages') |
1080 self.acceptedLanguagesAct.setStatusTip(self.trUtf8( |
1080 self.acceptedLanguagesAct.setStatusTip(self.tr( |
1081 'Configure the accepted languages for web pages')) |
1081 'Configure the accepted languages for web pages')) |
1082 self.acceptedLanguagesAct.setWhatsThis(self.trUtf8( |
1082 self.acceptedLanguagesAct.setWhatsThis(self.tr( |
1083 """<b>Languages</b>""" |
1083 """<b>Languages</b>""" |
1084 """<p>Configure the accepted languages for web pages.</p>""" |
1084 """<p>Configure the accepted languages for web pages.</p>""" |
1085 )) |
1085 )) |
1086 if not self.initShortcutsOnly: |
1086 if not self.initShortcutsOnly: |
1087 self.acceptedLanguagesAct.triggered[()].connect( |
1087 self.acceptedLanguagesAct.triggered[()].connect( |
1088 self.__showAcceptedLanguages) |
1088 self.__showAcceptedLanguages) |
1089 self.__actions.append(self.acceptedLanguagesAct) |
1089 self.__actions.append(self.acceptedLanguagesAct) |
1090 |
1090 |
1091 self.cookiesAct = E5Action( |
1091 self.cookiesAct = E5Action( |
1092 self.trUtf8('Cookies'), |
1092 self.tr('Cookies'), |
1093 UI.PixmapCache.getIcon("cookie.png"), |
1093 UI.PixmapCache.getIcon("cookie.png"), |
1094 self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') |
1094 self.tr('C&ookies...'), 0, 0, self, 'help_cookies') |
1095 self.cookiesAct.setStatusTip(self.trUtf8( |
1095 self.cookiesAct.setStatusTip(self.tr( |
1096 'Configure cookies handling')) |
1096 'Configure cookies handling')) |
1097 self.cookiesAct.setWhatsThis(self.trUtf8( |
1097 self.cookiesAct.setWhatsThis(self.tr( |
1098 """<b>Cookies</b>""" |
1098 """<b>Cookies</b>""" |
1099 """<p>Configure cookies handling.</p>""" |
1099 """<p>Configure cookies handling.</p>""" |
1100 )) |
1100 )) |
1101 if not self.initShortcutsOnly: |
1101 if not self.initShortcutsOnly: |
1102 self.cookiesAct.triggered[()].connect( |
1102 self.cookiesAct.triggered[()].connect( |
1103 self.__showCookiesConfiguration) |
1103 self.__showCookiesConfiguration) |
1104 self.__actions.append(self.cookiesAct) |
1104 self.__actions.append(self.cookiesAct) |
1105 |
1105 |
1106 self.offlineStorageAct = E5Action( |
1106 self.offlineStorageAct = E5Action( |
1107 self.trUtf8('Offline Storage'), |
1107 self.tr('Offline Storage'), |
1108 UI.PixmapCache.getIcon("preferences-html5.png"), |
1108 UI.PixmapCache.getIcon("preferences-html5.png"), |
1109 self.trUtf8('Offline &Storage...'), 0, 0, |
1109 self.tr('Offline &Storage...'), 0, 0, |
1110 self, 'help_offline_storage') |
1110 self, 'help_offline_storage') |
1111 self.offlineStorageAct.setStatusTip(self.trUtf8( |
1111 self.offlineStorageAct.setStatusTip(self.tr( |
1112 'Configure offline storage')) |
1112 'Configure offline storage')) |
1113 self.offlineStorageAct.setWhatsThis(self.trUtf8( |
1113 self.offlineStorageAct.setWhatsThis(self.tr( |
1114 """<b>Offline Storage</b>""" |
1114 """<b>Offline Storage</b>""" |
1115 """<p>Opens a dialog to configure offline storage.</p>""" |
1115 """<p>Opens a dialog to configure offline storage.</p>""" |
1116 )) |
1116 )) |
1117 if not self.initShortcutsOnly: |
1117 if not self.initShortcutsOnly: |
1118 self.offlineStorageAct.triggered[()].connect( |
1118 self.offlineStorageAct.triggered[()].connect( |
1119 self.__showOfflineStorageConfiguration) |
1119 self.__showOfflineStorageConfiguration) |
1120 self.__actions.append(self.offlineStorageAct) |
1120 self.__actions.append(self.offlineStorageAct) |
1121 |
1121 |
1122 self.personalDataAct = E5Action( |
1122 self.personalDataAct = E5Action( |
1123 self.trUtf8('Personal Information'), |
1123 self.tr('Personal Information'), |
1124 UI.PixmapCache.getIcon("pim.png"), |
1124 UI.PixmapCache.getIcon("pim.png"), |
1125 self.trUtf8('Personal Information...'), |
1125 self.tr('Personal Information...'), |
1126 0, 0, |
1126 0, 0, |
1127 self, 'help_personal_information') |
1127 self, 'help_personal_information') |
1128 self.personalDataAct.setStatusTip(self.trUtf8( |
1128 self.personalDataAct.setStatusTip(self.tr( |
1129 'Configure personal information for completing form fields')) |
1129 'Configure personal information for completing form fields')) |
1130 self.personalDataAct.setWhatsThis(self.trUtf8( |
1130 self.personalDataAct.setWhatsThis(self.tr( |
1131 """<b>Personal Information...</b>""" |
1131 """<b>Personal Information...</b>""" |
1132 """<p>Opens a dialog to configure the personal information""" |
1132 """<p>Opens a dialog to configure the personal information""" |
1133 """ used for completing form fields.</p>""" |
1133 """ used for completing form fields.</p>""" |
1134 )) |
1134 )) |
1135 if not self.initShortcutsOnly: |
1135 if not self.initShortcutsOnly: |
1136 self.personalDataAct.triggered[()].connect( |
1136 self.personalDataAct.triggered[()].connect( |
1137 self.__showPersonalInformationDialog) |
1137 self.__showPersonalInformationDialog) |
1138 self.__actions.append(self.personalDataAct) |
1138 self.__actions.append(self.personalDataAct) |
1139 |
1139 |
1140 self.greaseMonkeyAct = E5Action( |
1140 self.greaseMonkeyAct = E5Action( |
1141 self.trUtf8('GreaseMonkey Scripts'), |
1141 self.tr('GreaseMonkey Scripts'), |
1142 UI.PixmapCache.getIcon("greaseMonkey.png"), |
1142 UI.PixmapCache.getIcon("greaseMonkey.png"), |
1143 self.trUtf8('GreaseMonkey Scripts...'), |
1143 self.tr('GreaseMonkey Scripts...'), |
1144 0, 0, |
1144 0, 0, |
1145 self, 'help_greasemonkey') |
1145 self, 'help_greasemonkey') |
1146 self.greaseMonkeyAct.setStatusTip(self.trUtf8( |
1146 self.greaseMonkeyAct.setStatusTip(self.tr( |
1147 'Configure the GreaseMonkey Scripts')) |
1147 'Configure the GreaseMonkey Scripts')) |
1148 self.greaseMonkeyAct.setWhatsThis(self.trUtf8( |
1148 self.greaseMonkeyAct.setWhatsThis(self.tr( |
1149 """<b>GreaseMonkey Scripts...</b>""" |
1149 """<b>GreaseMonkey Scripts...</b>""" |
1150 """<p>Opens a dialog to configure the available GreaseMonkey""" |
1150 """<p>Opens a dialog to configure the available GreaseMonkey""" |
1151 """ Scripts.</p>""" |
1151 """ Scripts.</p>""" |
1152 )) |
1152 )) |
1153 if not self.initShortcutsOnly: |
1153 if not self.initShortcutsOnly: |
1154 self.greaseMonkeyAct.triggered[()].connect( |
1154 self.greaseMonkeyAct.triggered[()].connect( |
1155 self.__showGreaseMonkeyConfigDialog) |
1155 self.__showGreaseMonkeyConfigDialog) |
1156 self.__actions.append(self.greaseMonkeyAct) |
1156 self.__actions.append(self.greaseMonkeyAct) |
1157 |
1157 |
1158 self.editMessageFilterAct = E5Action( |
1158 self.editMessageFilterAct = E5Action( |
1159 self.trUtf8('Edit Message Filters'), |
1159 self.tr('Edit Message Filters'), |
1160 UI.PixmapCache.getIcon("warning.png"), |
1160 UI.PixmapCache.getIcon("warning.png"), |
1161 self.trUtf8('Edit Message Filters...'), 0, 0, self, |
1161 self.tr('Edit Message Filters...'), 0, 0, self, |
1162 'help_manage_message_filters') |
1162 'help_manage_message_filters') |
1163 self.editMessageFilterAct.setStatusTip(self.trUtf8( |
1163 self.editMessageFilterAct.setStatusTip(self.tr( |
1164 'Edit the message filters used to suppress unwanted messages')) |
1164 'Edit the message filters used to suppress unwanted messages')) |
1165 self.editMessageFilterAct.setWhatsThis(self.trUtf8( |
1165 self.editMessageFilterAct.setWhatsThis(self.tr( |
1166 """<b>Edit Message Filters</b>""" |
1166 """<b>Edit Message Filters</b>""" |
1167 """<p>Opens a dialog to edit the message filters used to""" |
1167 """<p>Opens a dialog to edit the message filters used to""" |
1168 """ suppress unwanted messages been shown in an error""" |
1168 """ suppress unwanted messages been shown in an error""" |
1169 """ window.</p>""" |
1169 """ window.</p>""" |
1170 )) |
1170 )) |
1173 E5ErrorMessage.editMessageFilters) |
1173 E5ErrorMessage.editMessageFilters) |
1174 self.__actions.append(self.editMessageFilterAct) |
1174 self.__actions.append(self.editMessageFilterAct) |
1175 |
1175 |
1176 if self.useQtHelp or self.initShortcutsOnly: |
1176 if self.useQtHelp or self.initShortcutsOnly: |
1177 self.syncTocAct = E5Action( |
1177 self.syncTocAct = E5Action( |
1178 self.trUtf8('Sync with Table of Contents'), |
1178 self.tr('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.tr('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.tr( |
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.tr( |
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 )) |
1189 if not self.initShortcutsOnly: |
1189 if not self.initShortcutsOnly: |
1190 self.syncTocAct.triggered[()].connect(self.__syncTOC) |
1190 self.syncTocAct.triggered[()].connect(self.__syncTOC) |
1191 self.__actions.append(self.syncTocAct) |
1191 self.__actions.append(self.syncTocAct) |
1192 |
1192 |
1193 self.showTocAct = E5Action( |
1193 self.showTocAct = E5Action( |
1194 self.trUtf8('Table of Contents'), |
1194 self.tr('Table of Contents'), |
1195 self.trUtf8('Table of Contents'), |
1195 self.tr('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.tr( |
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.tr( |
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.tr('Index'), |
1209 self.trUtf8('Index'), |
1209 self.tr('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.tr( |
1212 'Shows the index window')) |
1212 'Shows the index window')) |
1213 self.showIndexAct.setWhatsThis(self.trUtf8( |
1213 self.showIndexAct.setWhatsThis(self.tr( |
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.tr('Search'), |
1223 self.trUtf8('Search'), |
1223 self.tr('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.tr( |
1226 'Shows the search window')) |
1226 'Shows the search window')) |
1227 self.showSearchAct.setWhatsThis(self.trUtf8( |
1227 self.showSearchAct.setWhatsThis(self.tr( |
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) |
1235 |
1235 |
1236 self.manageQtHelpDocsAct = E5Action( |
1236 self.manageQtHelpDocsAct = E5Action( |
1237 self.trUtf8('Manage QtHelp Documents'), |
1237 self.tr('Manage QtHelp Documents'), |
1238 self.trUtf8('Manage QtHelp &Documents'), |
1238 self.tr('Manage QtHelp &Documents'), |
1239 0, 0, self, 'help_qthelp_documents') |
1239 0, 0, self, 'help_qthelp_documents') |
1240 self.manageQtHelpDocsAct.setStatusTip(self.trUtf8( |
1240 self.manageQtHelpDocsAct.setStatusTip(self.tr( |
1241 'Shows a dialog to manage the QtHelp documentation set')) |
1241 'Shows a dialog to manage the QtHelp documentation set')) |
1242 self.manageQtHelpDocsAct.setWhatsThis(self.trUtf8( |
1242 self.manageQtHelpDocsAct.setWhatsThis(self.tr( |
1243 """<b>Manage QtHelp Documents</b>""" |
1243 """<b>Manage QtHelp Documents</b>""" |
1244 """<p>Shows a dialog to manage the QtHelp documentation""" |
1244 """<p>Shows a dialog to manage the QtHelp documentation""" |
1245 """ set.</p>""" |
1245 """ set.</p>""" |
1246 )) |
1246 )) |
1247 if not self.initShortcutsOnly: |
1247 if not self.initShortcutsOnly: |
1248 self.manageQtHelpDocsAct.triggered[()].connect( |
1248 self.manageQtHelpDocsAct.triggered[()].connect( |
1249 self.__manageQtHelpDocumentation) |
1249 self.__manageQtHelpDocumentation) |
1250 self.__actions.append(self.manageQtHelpDocsAct) |
1250 self.__actions.append(self.manageQtHelpDocsAct) |
1251 |
1251 |
1252 self.manageQtHelpFiltersAct = E5Action( |
1252 self.manageQtHelpFiltersAct = E5Action( |
1253 self.trUtf8('Manage QtHelp Filters'), |
1253 self.tr('Manage QtHelp Filters'), |
1254 self.trUtf8('Manage QtHelp &Filters'), |
1254 self.tr('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.tr( |
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.tr( |
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) |
1266 |
1266 |
1267 self.reindexDocumentationAct = E5Action( |
1267 self.reindexDocumentationAct = E5Action( |
1268 self.trUtf8('Reindex Documentation'), |
1268 self.tr('Reindex Documentation'), |
1269 self.trUtf8('&Reindex Documentation'), |
1269 self.tr('&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.tr( |
1272 'Reindexes the documentation set')) |
1272 'Reindexes the documentation set')) |
1273 self.reindexDocumentationAct.setWhatsThis(self.trUtf8( |
1273 self.reindexDocumentationAct.setWhatsThis(self.tr( |
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) |
1281 |
1281 |
1282 self.clearPrivateDataAct = E5Action( |
1282 self.clearPrivateDataAct = E5Action( |
1283 self.trUtf8('Clear private data'), |
1283 self.tr('Clear private data'), |
1284 self.trUtf8('&Clear private data'), |
1284 self.tr('&Clear private data'), |
1285 0, 0, |
1285 0, 0, |
1286 self, 'help_clear_private_data') |
1286 self, 'help_clear_private_data') |
1287 self.clearPrivateDataAct.setStatusTip(self.trUtf8( |
1287 self.clearPrivateDataAct.setStatusTip(self.tr( |
1288 'Clear private data')) |
1288 'Clear private data')) |
1289 self.clearPrivateDataAct.setWhatsThis(self.trUtf8( |
1289 self.clearPrivateDataAct.setWhatsThis(self.tr( |
1290 """<b>Clear private data</b>""" |
1290 """<b>Clear private data</b>""" |
1291 """<p>Clears the private data like browsing history, search""" |
1291 """<p>Clears the private data like browsing history, search""" |
1292 """ history or the favicons database.</p>""" |
1292 """ history or the favicons database.</p>""" |
1293 )) |
1293 )) |
1294 if not self.initShortcutsOnly: |
1294 if not self.initShortcutsOnly: |
1295 self.clearPrivateDataAct.triggered[()].connect( |
1295 self.clearPrivateDataAct.triggered[()].connect( |
1296 self.__clearPrivateData) |
1296 self.__clearPrivateData) |
1297 self.__actions.append(self.clearPrivateDataAct) |
1297 self.__actions.append(self.clearPrivateDataAct) |
1298 |
1298 |
1299 self.clearIconsAct = E5Action( |
1299 self.clearIconsAct = E5Action( |
1300 self.trUtf8('Clear icons database'), |
1300 self.tr('Clear icons database'), |
1301 self.trUtf8('Clear &icons database'), |
1301 self.tr('Clear &icons database'), |
1302 0, 0, |
1302 0, 0, |
1303 self, 'help_clear_icons_db') |
1303 self, 'help_clear_icons_db') |
1304 self.clearIconsAct.setStatusTip(self.trUtf8( |
1304 self.clearIconsAct.setStatusTip(self.tr( |
1305 'Clear the database of favicons')) |
1305 'Clear the database of favicons')) |
1306 self.clearIconsAct.setWhatsThis(self.trUtf8( |
1306 self.clearIconsAct.setWhatsThis(self.tr( |
1307 """<b>Clear icons database</b>""" |
1307 """<b>Clear icons database</b>""" |
1308 """<p>Clears the database of favicons of previously visited""" |
1308 """<p>Clears the database of favicons of previously visited""" |
1309 """ URLs.</p>""" |
1309 """ URLs.</p>""" |
1310 )) |
1310 )) |
1311 if not self.initShortcutsOnly: |
1311 if not self.initShortcutsOnly: |
1312 self.clearIconsAct.triggered[()].connect(self.__clearIconsDatabase) |
1312 self.clearIconsAct.triggered[()].connect(self.__clearIconsDatabase) |
1313 self.__actions.append(self.clearIconsAct) |
1313 self.__actions.append(self.clearIconsAct) |
1314 |
1314 |
1315 self.searchEnginesAct = E5Action( |
1315 self.searchEnginesAct = E5Action( |
1316 self.trUtf8('Configure Search Engines'), |
1316 self.tr('Configure Search Engines'), |
1317 self.trUtf8('Configure Search &Engines...'), |
1317 self.tr('Configure Search &Engines...'), |
1318 0, 0, |
1318 0, 0, |
1319 self, 'help_search_engines') |
1319 self, 'help_search_engines') |
1320 self.searchEnginesAct.setStatusTip(self.trUtf8( |
1320 self.searchEnginesAct.setStatusTip(self.tr( |
1321 'Configure the available search engines')) |
1321 'Configure the available search engines')) |
1322 self.searchEnginesAct.setWhatsThis(self.trUtf8( |
1322 self.searchEnginesAct.setWhatsThis(self.tr( |
1323 """<b>Configure Search Engines...</b>""" |
1323 """<b>Configure Search Engines...</b>""" |
1324 """<p>Opens a dialog to configure the available search""" |
1324 """<p>Opens a dialog to configure the available search""" |
1325 """ engines.</p>""" |
1325 """ engines.</p>""" |
1326 )) |
1326 )) |
1327 if not self.initShortcutsOnly: |
1327 if not self.initShortcutsOnly: |
1328 self.searchEnginesAct.triggered[()].connect( |
1328 self.searchEnginesAct.triggered[()].connect( |
1329 self.__showEnginesConfigurationDialog) |
1329 self.__showEnginesConfigurationDialog) |
1330 self.__actions.append(self.searchEnginesAct) |
1330 self.__actions.append(self.searchEnginesAct) |
1331 |
1331 |
1332 self.passwordsAct = E5Action( |
1332 self.passwordsAct = E5Action( |
1333 self.trUtf8('Manage Saved Passwords'), |
1333 self.tr('Manage Saved Passwords'), |
1334 UI.PixmapCache.getIcon("passwords.png"), |
1334 UI.PixmapCache.getIcon("passwords.png"), |
1335 self.trUtf8('Manage Saved Passwords...'), |
1335 self.tr('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.tr( |
1339 'Manage the saved passwords')) |
1339 'Manage the saved passwords')) |
1340 self.passwordsAct.setWhatsThis(self.trUtf8( |
1340 self.passwordsAct.setWhatsThis(self.tr( |
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 |
1348 self.adblockAct = E5Action( |
1348 self.adblockAct = E5Action( |
1349 self.trUtf8('Ad Block'), |
1349 self.tr('Ad Block'), |
1350 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1350 UI.PixmapCache.getIcon("adBlockPlus.png"), |
1351 self.trUtf8('&Ad Block...'), |
1351 self.tr('&Ad Block...'), |
1352 0, 0, |
1352 0, 0, |
1353 self, 'help_adblock') |
1353 self, 'help_adblock') |
1354 self.adblockAct.setStatusTip(self.trUtf8( |
1354 self.adblockAct.setStatusTip(self.tr( |
1355 'Configure AdBlock subscriptions and rules')) |
1355 'Configure AdBlock subscriptions and rules')) |
1356 self.adblockAct.setWhatsThis(self.trUtf8( |
1356 self.adblockAct.setWhatsThis(self.tr( |
1357 """<b>Ad Block...</b>""" |
1357 """<b>Ad Block...</b>""" |
1358 """<p>Opens a dialog to configure AdBlock subscriptions and""" |
1358 """<p>Opens a dialog to configure AdBlock subscriptions and""" |
1359 """ rules.</p>""" |
1359 """ rules.</p>""" |
1360 )) |
1360 )) |
1361 if not self.initShortcutsOnly: |
1361 if not self.initShortcutsOnly: |
1362 self.adblockAct.triggered[()].connect(self.__showAdBlockDialog) |
1362 self.adblockAct.triggered[()].connect(self.__showAdBlockDialog) |
1363 self.__actions.append(self.adblockAct) |
1363 self.__actions.append(self.adblockAct) |
1364 |
1364 |
1365 self.flashblockAct = E5Action( |
1365 self.flashblockAct = E5Action( |
1366 self.trUtf8('ClickToFlash'), |
1366 self.tr('ClickToFlash'), |
1367 UI.PixmapCache.getIcon("flashBlock.png"), |
1367 UI.PixmapCache.getIcon("flashBlock.png"), |
1368 self.trUtf8('&ClickToFlash...'), |
1368 self.tr('&ClickToFlash...'), |
1369 0, 0, |
1369 0, 0, |
1370 self, 'help_flashblock') |
1370 self, 'help_flashblock') |
1371 self.flashblockAct.setStatusTip(self.trUtf8( |
1371 self.flashblockAct.setStatusTip(self.tr( |
1372 'Configure ClickToFlash whitelist')) |
1372 'Configure ClickToFlash whitelist')) |
1373 self.flashblockAct.setWhatsThis(self.trUtf8( |
1373 self.flashblockAct.setWhatsThis(self.tr( |
1374 """<b>ClickToFlash...</b>""" |
1374 """<b>ClickToFlash...</b>""" |
1375 """<p>Opens a dialog to configure the ClickToFlash""" |
1375 """<p>Opens a dialog to configure the ClickToFlash""" |
1376 """ whitelist.</p>""" |
1376 """ whitelist.</p>""" |
1377 )) |
1377 )) |
1378 if not self.initShortcutsOnly: |
1378 if not self.initShortcutsOnly: |
1380 self.__showClickToFlashDialog) |
1380 self.__showClickToFlashDialog) |
1381 self.__actions.append(self.flashblockAct) |
1381 self.__actions.append(self.flashblockAct) |
1382 |
1382 |
1383 if SSL_AVAILABLE: |
1383 if SSL_AVAILABLE: |
1384 self.certificatesAct = E5Action( |
1384 self.certificatesAct = E5Action( |
1385 self.trUtf8('Manage SSL Certificates'), |
1385 self.tr('Manage SSL Certificates'), |
1386 UI.PixmapCache.getIcon("certificates.png"), |
1386 UI.PixmapCache.getIcon("certificates.png"), |
1387 self.trUtf8('Manage SSL Certificates...'), |
1387 self.tr('Manage SSL Certificates...'), |
1388 0, 0, |
1388 0, 0, |
1389 self, 'help_manage_certificates') |
1389 self, 'help_manage_certificates') |
1390 self.certificatesAct.setStatusTip(self.trUtf8( |
1390 self.certificatesAct.setStatusTip(self.tr( |
1391 'Manage the saved SSL certificates')) |
1391 'Manage the saved SSL certificates')) |
1392 self.certificatesAct.setWhatsThis(self.trUtf8( |
1392 self.certificatesAct.setWhatsThis(self.tr( |
1393 """<b>Manage SSL Certificates...</b>""" |
1393 """<b>Manage SSL Certificates...</b>""" |
1394 """<p>Opens a dialog to manage the saved SSL""" |
1394 """<p>Opens a dialog to manage the saved SSL""" |
1395 """ certificates.</p>""" |
1395 """ certificates.</p>""" |
1396 )) |
1396 )) |
1397 if not self.initShortcutsOnly: |
1397 if not self.initShortcutsOnly: |
1398 self.certificatesAct.triggered[()].connect( |
1398 self.certificatesAct.triggered[()].connect( |
1399 self.__showCertificatesDialog) |
1399 self.__showCertificatesDialog) |
1400 self.__actions.append(self.certificatesAct) |
1400 self.__actions.append(self.certificatesAct) |
1401 |
1401 |
1402 self.toolsMonitorAct = E5Action( |
1402 self.toolsMonitorAct = E5Action( |
1403 self.trUtf8('Network Monitor'), |
1403 self.tr('Network Monitor'), |
1404 self.trUtf8('&Network Monitor...'), |
1404 self.tr('&Network Monitor...'), |
1405 0, 0, |
1405 0, 0, |
1406 self, 'help_tools_network_monitor') |
1406 self, 'help_tools_network_monitor') |
1407 self.toolsMonitorAct.setStatusTip(self.trUtf8( |
1407 self.toolsMonitorAct.setStatusTip(self.tr( |
1408 'Show the network monitor dialog')) |
1408 'Show the network monitor dialog')) |
1409 self.toolsMonitorAct.setWhatsThis(self.trUtf8( |
1409 self.toolsMonitorAct.setWhatsThis(self.tr( |
1410 """<b>Network Monitor...</b>""" |
1410 """<b>Network Monitor...</b>""" |
1411 """<p>Shows the network monitor dialog.</p>""" |
1411 """<p>Shows the network monitor dialog.</p>""" |
1412 )) |
1412 )) |
1413 if not self.initShortcutsOnly: |
1413 if not self.initShortcutsOnly: |
1414 self.toolsMonitorAct.triggered[()].connect( |
1414 self.toolsMonitorAct.triggered[()].connect( |
1415 self.__showNetworkMonitor) |
1415 self.__showNetworkMonitor) |
1416 self.__actions.append(self.toolsMonitorAct) |
1416 self.__actions.append(self.toolsMonitorAct) |
1417 |
1417 |
1418 self.showDownloadManagerAct = E5Action( |
1418 self.showDownloadManagerAct = E5Action( |
1419 self.trUtf8('Downloads'), |
1419 self.tr('Downloads'), |
1420 self.trUtf8('Downloads'), |
1420 self.tr('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.tr( |
1423 'Shows the downloads window')) |
1423 'Shows the downloads window')) |
1424 self.showDownloadManagerAct.setWhatsThis(self.trUtf8( |
1424 self.showDownloadManagerAct.setWhatsThis(self.tr( |
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) |
1432 |
1432 |
1433 self.feedsManagerAct = E5Action( |
1433 self.feedsManagerAct = E5Action( |
1434 self.trUtf8('RSS Feeds Dialog'), |
1434 self.tr('RSS Feeds Dialog'), |
1435 UI.PixmapCache.getIcon("rss22.png"), |
1435 UI.PixmapCache.getIcon("rss22.png"), |
1436 self.trUtf8('&RSS Feeds Dialog...'), |
1436 self.tr('&RSS Feeds Dialog...'), |
1437 QKeySequence(self.trUtf8("Ctrl+Shift+F", "Help|RSS Feeds Dialog")), |
1437 QKeySequence(self.tr("Ctrl+Shift+F", "Help|RSS Feeds Dialog")), |
1438 0, self, 'help_rss_feeds') |
1438 0, self, 'help_rss_feeds') |
1439 self.feedsManagerAct.setStatusTip(self.trUtf8( |
1439 self.feedsManagerAct.setStatusTip(self.tr( |
1440 'Open a dialog showing the configured RSS feeds.')) |
1440 'Open a dialog showing the configured RSS feeds.')) |
1441 self.feedsManagerAct.setWhatsThis(self.trUtf8( |
1441 self.feedsManagerAct.setWhatsThis(self.tr( |
1442 """<b>RSS Feeds Dialog...</b>""" |
1442 """<b>RSS Feeds Dialog...</b>""" |
1443 """<p>Open a dialog to show the configured RSS feeds.""" |
1443 """<p>Open a dialog to show the configured RSS feeds.""" |
1444 """ It can be used to mange the feeds and to show their""" |
1444 """ It can be used to mange the feeds and to show their""" |
1445 """ contents.</p>""" |
1445 """ contents.</p>""" |
1446 )) |
1446 )) |
1447 if not self.initShortcutsOnly: |
1447 if not self.initShortcutsOnly: |
1448 self.feedsManagerAct.triggered[()].connect(self.__showFeedsManager) |
1448 self.feedsManagerAct.triggered[()].connect(self.__showFeedsManager) |
1449 self.__actions.append(self.feedsManagerAct) |
1449 self.__actions.append(self.feedsManagerAct) |
1450 |
1450 |
1451 self.siteInfoAct = E5Action( |
1451 self.siteInfoAct = E5Action( |
1452 self.trUtf8('Siteinfo Dialog'), |
1452 self.tr('Siteinfo Dialog'), |
1453 UI.PixmapCache.getIcon("helpAbout.png"), |
1453 UI.PixmapCache.getIcon("helpAbout.png"), |
1454 self.trUtf8('&Siteinfo Dialog...'), |
1454 self.tr('&Siteinfo Dialog...'), |
1455 QKeySequence(self.trUtf8("Ctrl+Shift+I", "Help|Siteinfo Dialog")), |
1455 QKeySequence(self.tr("Ctrl+Shift+I", "Help|Siteinfo Dialog")), |
1456 0, self, 'help_siteinfo') |
1456 0, self, 'help_siteinfo') |
1457 self.siteInfoAct.setStatusTip(self.trUtf8( |
1457 self.siteInfoAct.setStatusTip(self.tr( |
1458 'Open a dialog showing some information about the current site.')) |
1458 'Open a dialog showing some information about the current site.')) |
1459 self.siteInfoAct.setWhatsThis(self.trUtf8( |
1459 self.siteInfoAct.setWhatsThis(self.tr( |
1460 """<b>Siteinfo Dialog...</b>""" |
1460 """<b>Siteinfo Dialog...</b>""" |
1461 """<p>Opens a dialog showing some information about the current""" |
1461 """<p>Opens a dialog showing some information about the current""" |
1462 """ site.</p>""" |
1462 """ site.</p>""" |
1463 )) |
1463 )) |
1464 if not self.initShortcutsOnly: |
1464 if not self.initShortcutsOnly: |
1465 self.siteInfoAct.triggered[()].connect(self.__showSiteinfoDialog) |
1465 self.siteInfoAct.triggered[()].connect(self.__showSiteinfoDialog) |
1466 self.__actions.append(self.siteInfoAct) |
1466 self.__actions.append(self.siteInfoAct) |
1467 |
1467 |
1468 self.userAgentManagerAct = E5Action( |
1468 self.userAgentManagerAct = E5Action( |
1469 self.trUtf8('Manage User Agent Settings'), |
1469 self.tr('Manage User Agent Settings'), |
1470 self.trUtf8('Manage &User Agent Settings'), |
1470 self.tr('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.tr( |
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.tr( |
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) |
1482 |
1482 |
1483 self.synchronizationAct = E5Action( |
1483 self.synchronizationAct = E5Action( |
1484 self.trUtf8('Synchronize data'), |
1484 self.tr('Synchronize data'), |
1485 UI.PixmapCache.getIcon("sync.png"), |
1485 UI.PixmapCache.getIcon("sync.png"), |
1486 self.trUtf8('&Synchronize Data...'), |
1486 self.tr('&Synchronize Data...'), |
1487 0, 0, self, 'help_synchronize_data') |
1487 0, 0, self, 'help_synchronize_data') |
1488 self.synchronizationAct.setStatusTip(self.trUtf8( |
1488 self.synchronizationAct.setStatusTip(self.tr( |
1489 'Shows a dialog to synchronize data via the network')) |
1489 'Shows a dialog to synchronize data via the network')) |
1490 self.synchronizationAct.setWhatsThis(self.trUtf8( |
1490 self.synchronizationAct.setWhatsThis(self.tr( |
1491 """<b>Synchronize Data...</b>""" |
1491 """<b>Synchronize Data...</b>""" |
1492 """<p>This shows a dialog to synchronize data via the""" |
1492 """<p>This shows a dialog to synchronize data via the""" |
1493 """ network.</p>""" |
1493 """ network.</p>""" |
1494 )) |
1494 )) |
1495 if not self.initShortcutsOnly: |
1495 if not self.initShortcutsOnly: |
1694 self.savePageScreenMenu.addAction(self.saveVisiblePageScreenAct) |
1694 self.savePageScreenMenu.addAction(self.saveVisiblePageScreenAct) |
1695 savePageScreenButton = filetb.widgetForAction(self.savePageScreenAct) |
1695 savePageScreenButton = filetb.widgetForAction(self.savePageScreenAct) |
1696 savePageScreenButton.setMenu(self.savePageScreenMenu) |
1696 savePageScreenButton.setMenu(self.savePageScreenMenu) |
1697 savePageScreenButton.setPopupMode(QToolButton.MenuButtonPopup) |
1697 savePageScreenButton.setPopupMode(QToolButton.MenuButtonPopup) |
1698 |
1698 |
1699 edittb = self.addToolBar(self.trUtf8("Edit")) |
1699 edittb = self.addToolBar(self.tr("Edit")) |
1700 edittb.setObjectName("EditToolBar") |
1700 edittb.setObjectName("EditToolBar") |
1701 edittb.setIconSize(UI.Config.ToolBarIconSize) |
1701 edittb.setIconSize(UI.Config.ToolBarIconSize) |
1702 edittb.addAction(self.copyAct) |
1702 edittb.addAction(self.copyAct) |
1703 |
1703 |
1704 viewtb = self.addToolBar(self.trUtf8("View")) |
1704 viewtb = self.addToolBar(self.tr("View")) |
1705 viewtb.setObjectName("ViewToolBar") |
1705 viewtb.setObjectName("ViewToolBar") |
1706 viewtb.setIconSize(UI.Config.ToolBarIconSize) |
1706 viewtb.setIconSize(UI.Config.ToolBarIconSize) |
1707 viewtb.addAction(self.zoomInAct) |
1707 viewtb.addAction(self.zoomInAct) |
1708 viewtb.addAction(self.zoomResetAct) |
1708 viewtb.addAction(self.zoomResetAct) |
1709 viewtb.addAction(self.zoomOutAct) |
1709 viewtb.addAction(self.zoomOutAct) |
1710 viewtb.addSeparator() |
1710 viewtb.addSeparator() |
1711 viewtb.addAction(self.fullScreenAct) |
1711 viewtb.addAction(self.fullScreenAct) |
1712 |
1712 |
1713 findtb = self.addToolBar(self.trUtf8("Find")) |
1713 findtb = self.addToolBar(self.tr("Find")) |
1714 findtb.setObjectName("FindToolBar") |
1714 findtb.setObjectName("FindToolBar") |
1715 findtb.setIconSize(UI.Config.ToolBarIconSize) |
1715 findtb.setIconSize(UI.Config.ToolBarIconSize) |
1716 findtb.addAction(self.findAct) |
1716 findtb.addAction(self.findAct) |
1717 findtb.addAction(self.findNextAct) |
1717 findtb.addAction(self.findNextAct) |
1718 findtb.addAction(self.findPrevAct) |
1718 findtb.addAction(self.findPrevAct) |
1719 |
1719 |
1720 if self.useQtHelp: |
1720 if self.useQtHelp: |
1721 filtertb = self.addToolBar(self.trUtf8("Filter")) |
1721 filtertb = self.addToolBar(self.tr("Filter")) |
1722 filtertb.setObjectName("FilterToolBar") |
1722 filtertb.setObjectName("FilterToolBar") |
1723 self.filterCombo = QComboBox() |
1723 self.filterCombo = QComboBox() |
1724 self.filterCombo.setMinimumWidth( |
1724 self.filterCombo.setMinimumWidth( |
1725 QFontMetrics(QFont()).width("ComboBoxWithEnoughWidth")) |
1725 QFontMetrics(QFont()).width("ComboBoxWithEnoughWidth")) |
1726 filtertb.addWidget(QLabel(self.trUtf8("Filtered by: "))) |
1726 filtertb.addWidget(QLabel(self.tr("Filtered by: "))) |
1727 filtertb.addWidget(self.filterCombo) |
1727 filtertb.addWidget(self.filterCombo) |
1728 self.__helpEngine.setupFinished.connect(self.__setupFilterCombo) |
1728 self.__helpEngine.setupFinished.connect(self.__setupFilterCombo) |
1729 self.filterCombo.activated[str].connect( |
1729 self.filterCombo.activated[str].connect( |
1730 self.__filterQtHelpDocumentation) |
1730 self.__filterQtHelpDocumentation) |
1731 self.__setupFilterCombo() |
1731 self.__setupFilterCombo() |
1732 |
1732 |
1733 settingstb = self.addToolBar(self.trUtf8("Settings")) |
1733 settingstb = self.addToolBar(self.tr("Settings")) |
1734 settingstb.setObjectName("SettingsToolBar") |
1734 settingstb.setObjectName("SettingsToolBar") |
1735 settingstb.setIconSize(UI.Config.ToolBarIconSize) |
1735 settingstb.setIconSize(UI.Config.ToolBarIconSize) |
1736 settingstb.addAction(self.prefAct) |
1736 settingstb.addAction(self.prefAct) |
1737 settingstb.addAction(self.acceptedLanguagesAct) |
1737 settingstb.addAction(self.acceptedLanguagesAct) |
1738 settingstb.addAction(self.cookiesAct) |
1738 settingstb.addAction(self.cookiesAct) |
1739 settingstb.addAction(self.offlineStorageAct) |
1739 settingstb.addAction(self.offlineStorageAct) |
1740 settingstb.addAction(self.personalDataAct) |
1740 settingstb.addAction(self.personalDataAct) |
1741 settingstb.addAction(self.greaseMonkeyAct) |
1741 settingstb.addAction(self.greaseMonkeyAct) |
1742 |
1742 |
1743 toolstb = self.addToolBar(self.trUtf8("Tools")) |
1743 toolstb = self.addToolBar(self.tr("Tools")) |
1744 toolstb.setObjectName("ToolsToolBar") |
1744 toolstb.setObjectName("ToolsToolBar") |
1745 toolstb.setIconSize(UI.Config.ToolBarIconSize) |
1745 toolstb.setIconSize(UI.Config.ToolBarIconSize) |
1746 toolstb.addAction(self.feedsManagerAct) |
1746 toolstb.addAction(self.feedsManagerAct) |
1747 toolstb.addAction(self.siteInfoAct) |
1747 toolstb.addAction(self.siteInfoAct) |
1748 toolstb.addSeparator() |
1748 toolstb.addSeparator() |
1749 toolstb.addAction(self.synchronizationAct) |
1749 toolstb.addAction(self.synchronizationAct) |
1750 |
1750 |
1751 helptb = self.addToolBar(self.trUtf8("Help")) |
1751 helptb = self.addToolBar(self.tr("Help")) |
1752 helptb.setObjectName("HelpToolBar") |
1752 helptb.setObjectName("HelpToolBar") |
1753 helptb.setIconSize(UI.Config.ToolBarIconSize) |
1753 helptb.setIconSize(UI.Config.ToolBarIconSize) |
1754 helptb.addAction(self.whatsThisAct) |
1754 helptb.addAction(self.whatsThisAct) |
1755 |
1755 |
1756 self.addToolBarBreak() |
1756 self.addToolBarBreak() |
1757 |
1757 |
1758 gotb = self.addToolBar(self.trUtf8("Go")) |
1758 gotb = self.addToolBar(self.tr("Go")) |
1759 gotb.setObjectName("GoToolBar") |
1759 gotb.setObjectName("GoToolBar") |
1760 gotb.setIconSize(UI.Config.ToolBarIconSize) |
1760 gotb.setIconSize(UI.Config.ToolBarIconSize) |
1761 gotb.addAction(self.backAct) |
1761 gotb.addAction(self.backAct) |
1762 gotb.addAction(self.forwardAct) |
1762 gotb.addAction(self.forwardAct) |
1763 gotb.addAction(self.reloadAct) |
1763 gotb.addAction(self.reloadAct) |