ViewManager/ViewManager.py

changeset 454
d28d558f7484
parent 453
a81097a85889
child 461
34528aaedf1c
equal deleted inserted replaced
453:a81097a85889 454:d28d558f7484
467 QApplication.translate('ViewManager', 'Open an empty editor window')) 467 QApplication.translate('ViewManager', 'Open an empty editor window'))
468 self.newAct.setWhatsThis(QApplication.translate('ViewManager', 468 self.newAct.setWhatsThis(QApplication.translate('ViewManager',
469 """<b>New</b>""" 469 """<b>New</b>"""
470 """<p>An empty editor window will be created.</p>""" 470 """<p>An empty editor window will be created.</p>"""
471 )) 471 ))
472 self.newAct.triggered.connect(self.newEditor) 472 self.newAct.triggered[()].connect(self.newEditor)
473 self.fileActions.append(self.newAct) 473 self.fileActions.append(self.newAct)
474 474
475 self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'), 475 self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'),
476 UI.PixmapCache.getIcon("open.png"), 476 UI.PixmapCache.getIcon("open.png"),
477 QApplication.translate('ViewManager', '&Open...'), 477 QApplication.translate('ViewManager', '&Open...'),
482 self.openAct.setWhatsThis(QApplication.translate('ViewManager', 482 self.openAct.setWhatsThis(QApplication.translate('ViewManager',
483 """<b>Open a file</b>""" 483 """<b>Open a file</b>"""
484 """<p>You will be asked for the name of a file to be opened""" 484 """<p>You will be asked for the name of a file to be opened"""
485 """ in an editor window.</p>""" 485 """ in an editor window.</p>"""
486 )) 486 ))
487 self.openAct.triggered.connect(self.openFiles) 487 self.openAct.triggered[()].connect(self.openFiles)
488 self.fileActions.append(self.openAct) 488 self.fileActions.append(self.openAct)
489 489
490 self.closeActGrp = createActionGroup(self) 490 self.closeActGrp = createActionGroup(self)
491 491
492 self.closeAct = E5Action(QApplication.translate('ViewManager', 'Close'), 492 self.closeAct = E5Action(QApplication.translate('ViewManager', 'Close'),
499 QApplication.translate('ViewManager', 'Close the current window')) 499 QApplication.translate('ViewManager', 'Close the current window'))
500 self.closeAct.setWhatsThis(QApplication.translate('ViewManager', 500 self.closeAct.setWhatsThis(QApplication.translate('ViewManager',
501 """<b>Close Window</b>""" 501 """<b>Close Window</b>"""
502 """<p>Close the current window.</p>""" 502 """<p>Close the current window.</p>"""
503 )) 503 ))
504 self.closeAct.triggered.connect(self.closeCurrentWindow) 504 self.closeAct.triggered[()].connect(self.closeCurrentWindow)
505 self.fileActions.append(self.closeAct) 505 self.fileActions.append(self.closeAct)
506 506
507 self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'), 507 self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'),
508 QApplication.translate('ViewManager', 'Clos&e All'), 508 QApplication.translate('ViewManager', 'Clos&e All'),
509 0, 0, self.closeActGrp, 'vm_file_close_all') 509 0, 0, self.closeActGrp, 'vm_file_close_all')
511 QApplication.translate('ViewManager', 'Close all editor windows')) 511 QApplication.translate('ViewManager', 'Close all editor windows'))
512 self.closeAllAct.setWhatsThis(QApplication.translate('ViewManager', 512 self.closeAllAct.setWhatsThis(QApplication.translate('ViewManager',
513 """<b>Close All Windows</b>""" 513 """<b>Close All Windows</b>"""
514 """<p>Close all editor windows.</p>""" 514 """<p>Close all editor windows.</p>"""
515 )) 515 ))
516 self.closeAllAct.triggered.connect(self.closeAllWindows) 516 self.closeAllAct.triggered[()].connect(self.closeAllWindows)
517 self.fileActions.append(self.closeAllAct) 517 self.fileActions.append(self.closeAllAct)
518 518
519 self.closeActGrp.setEnabled(False) 519 self.closeActGrp.setEnabled(False)
520 520
521 self.saveActGrp = createActionGroup(self) 521 self.saveActGrp = createActionGroup(self)
530 QApplication.translate('ViewManager', 'Save the current file')) 530 QApplication.translate('ViewManager', 'Save the current file'))
531 self.saveAct.setWhatsThis(QApplication.translate('ViewManager', 531 self.saveAct.setWhatsThis(QApplication.translate('ViewManager',
532 """<b>Save File</b>""" 532 """<b>Save File</b>"""
533 """<p>Save the contents of current editor window.</p>""" 533 """<p>Save the contents of current editor window.</p>"""
534 )) 534 ))
535 self.saveAct.triggered.connect(self.saveCurrentEditor) 535 self.saveAct.triggered[()].connect(self.saveCurrentEditor)
536 self.fileActions.append(self.saveAct) 536 self.fileActions.append(self.saveAct)
537 537
538 self.saveAsAct = E5Action(QApplication.translate('ViewManager', 'Save as'), 538 self.saveAsAct = E5Action(QApplication.translate('ViewManager', 'Save as'),
539 UI.PixmapCache.getIcon("fileSaveAs.png"), 539 UI.PixmapCache.getIcon("fileSaveAs.png"),
540 QApplication.translate('ViewManager', 'Save &as...'), 540 QApplication.translate('ViewManager', 'Save &as...'),
546 self.saveAsAct.setWhatsThis(QApplication.translate('ViewManager', 546 self.saveAsAct.setWhatsThis(QApplication.translate('ViewManager',
547 """<b>Save File as</b>""" 547 """<b>Save File as</b>"""
548 """<p>Save the contents of current editor window to a new file.""" 548 """<p>Save the contents of current editor window to a new file."""
549 """ The file can be entered in a file selection dialog.</p>""" 549 """ The file can be entered in a file selection dialog.</p>"""
550 )) 550 ))
551 self.saveAsAct.triggered.connect(self.saveAsCurrentEditor) 551 self.saveAsAct.triggered[()].connect(self.saveAsCurrentEditor)
552 self.fileActions.append(self.saveAsAct) 552 self.fileActions.append(self.saveAsAct)
553 553
554 self.saveAllAct = E5Action(QApplication.translate('ViewManager', 'Save all'), 554 self.saveAllAct = E5Action(QApplication.translate('ViewManager', 'Save all'),
555 UI.PixmapCache.getIcon("fileSaveAll.png"), 555 UI.PixmapCache.getIcon("fileSaveAll.png"),
556 QApplication.translate('ViewManager', 'Save a&ll...'), 556 QApplication.translate('ViewManager', 'Save a&ll...'),
559 'Save all files')) 559 'Save all files'))
560 self.saveAllAct.setWhatsThis(QApplication.translate('ViewManager', 560 self.saveAllAct.setWhatsThis(QApplication.translate('ViewManager',
561 """<b>Save All Files</b>""" 561 """<b>Save All Files</b>"""
562 """<p>Save the contents of all editor windows.</p>""" 562 """<p>Save the contents of all editor windows.</p>"""
563 )) 563 ))
564 self.saveAllAct.triggered.connect(self.saveAllEditors) 564 self.saveAllAct.triggered[()].connect(self.saveAllEditors)
565 self.fileActions.append(self.saveAllAct) 565 self.fileActions.append(self.saveAllAct)
566 566
567 self.saveActGrp.setEnabled(False) 567 self.saveActGrp.setEnabled(False)
568 568
569 self.saveToProjectAct = E5Action(QApplication.translate('ViewManager', 569 self.saveToProjectAct = E5Action(QApplication.translate('ViewManager',
577 """<b>Save to Project</b>""" 577 """<b>Save to Project</b>"""
578 """<p>Save the contents of the current editor window to the""" 578 """<p>Save the contents of the current editor window to the"""
579 """ current project. After the file has been saved, it is""" 579 """ current project. After the file has been saved, it is"""
580 """ automatically added to the current project.</p>""" 580 """ automatically added to the current project.</p>"""
581 )) 581 ))
582 self.saveToProjectAct.triggered.connect(self.saveCurrentEditorToProject) 582 self.saveToProjectAct.triggered[()].connect(self.saveCurrentEditorToProject)
583 self.saveToProjectAct.setEnabled(False) 583 self.saveToProjectAct.setEnabled(False)
584 self.fileActions.append(self.saveToProjectAct) 584 self.fileActions.append(self.saveToProjectAct)
585 585
586 self.printAct = E5Action(QApplication.translate('ViewManager', 'Print'), 586 self.printAct = E5Action(QApplication.translate('ViewManager', 'Print'),
587 UI.PixmapCache.getIcon("print.png"), 587 UI.PixmapCache.getIcon("print.png"),
593 'Print the current file')) 593 'Print the current file'))
594 self.printAct.setWhatsThis(QApplication.translate('ViewManager', 594 self.printAct.setWhatsThis(QApplication.translate('ViewManager',
595 """<b>Print File</b>""" 595 """<b>Print File</b>"""
596 """<p>Print the contents of current editor window.</p>""" 596 """<p>Print the contents of current editor window.</p>"""
597 )) 597 ))
598 self.printAct.triggered.connect(self.printCurrentEditor) 598 self.printAct.triggered[()].connect(self.printCurrentEditor)
599 self.printAct.setEnabled(False) 599 self.printAct.setEnabled(False)
600 self.fileActions.append(self.printAct) 600 self.fileActions.append(self.printAct)
601 601
602 self.printPreviewAct = \ 602 self.printPreviewAct = \
603 E5Action(QApplication.translate('ViewManager', 'Print Preview'), 603 E5Action(QApplication.translate('ViewManager', 'Print Preview'),
608 'Print preview of the current file')) 608 'Print preview of the current file'))
609 self.printPreviewAct.setWhatsThis(QApplication.translate('ViewManager', 609 self.printPreviewAct.setWhatsThis(QApplication.translate('ViewManager',
610 """<b>Print Preview</b>""" 610 """<b>Print Preview</b>"""
611 """<p>Print preview of the current editor window.</p>""" 611 """<p>Print preview of the current editor window.</p>"""
612 )) 612 ))
613 self.printPreviewAct.triggered.connect(self.printPreviewCurrentEditor) 613 self.printPreviewAct.triggered[()].connect(self.printPreviewCurrentEditor)
614 self.printPreviewAct.setEnabled(False) 614 self.printPreviewAct.setEnabled(False)
615 self.fileActions.append(self.printPreviewAct) 615 self.fileActions.append(self.printPreviewAct)
616 616
617 self.findFileNameAct = E5Action(QApplication.translate('ViewManager', 617 self.findFileNameAct = E5Action(QApplication.translate('ViewManager',
618 'Search File'), 618 'Search File'),
624 'Search for a file')) 624 'Search for a file'))
625 self.findFileNameAct.setWhatsThis(QApplication.translate('ViewManager', 625 self.findFileNameAct.setWhatsThis(QApplication.translate('ViewManager',
626 """<b>Search File</b>""" 626 """<b>Search File</b>"""
627 """<p>Search for a file.</p>""" 627 """<p>Search for a file.</p>"""
628 )) 628 ))
629 self.findFileNameAct.triggered.connect(self.__findFileName) 629 self.findFileNameAct.triggered[()].connect(self.__findFileName)
630 self.fileActions.append(self.findFileNameAct) 630 self.fileActions.append(self.findFileNameAct)
631 631
632 def initFileMenu(self): 632 def initFileMenu(self):
633 """ 633 """
634 Public method to create the File menu. 634 Public method to create the File menu.
742 'Undo the last change')) 742 'Undo the last change'))
743 self.undoAct.setWhatsThis(QApplication.translate('ViewManager', 743 self.undoAct.setWhatsThis(QApplication.translate('ViewManager',
744 """<b>Undo</b>""" 744 """<b>Undo</b>"""
745 """<p>Undo the last change done in the current editor.</p>""" 745 """<p>Undo the last change done in the current editor.</p>"""
746 )) 746 ))
747 self.undoAct.triggered.connect(self.__editUndo) 747 self.undoAct.triggered[()].connect(self.__editUndo)
748 self.editActions.append(self.undoAct) 748 self.editActions.append(self.undoAct)
749 749
750 self.redoAct = E5Action(QApplication.translate('ViewManager', 'Redo'), 750 self.redoAct = E5Action(QApplication.translate('ViewManager', 'Redo'),
751 UI.PixmapCache.getIcon("editRedo.png"), 751 UI.PixmapCache.getIcon("editRedo.png"),
752 QApplication.translate('ViewManager', '&Redo'), 752 QApplication.translate('ViewManager', '&Redo'),
757 'Redo the last change')) 757 'Redo the last change'))
758 self.redoAct.setWhatsThis(QApplication.translate('ViewManager', 758 self.redoAct.setWhatsThis(QApplication.translate('ViewManager',
759 """<b>Redo</b>""" 759 """<b>Redo</b>"""
760 """<p>Redo the last change done in the current editor.</p>""" 760 """<p>Redo the last change done in the current editor.</p>"""
761 )) 761 ))
762 self.redoAct.triggered.connect(self.__editRedo) 762 self.redoAct.triggered[()].connect(self.__editRedo)
763 self.editActions.append(self.redoAct) 763 self.editActions.append(self.redoAct)
764 764
765 self.revertAct = E5Action(QApplication.translate('ViewManager', 765 self.revertAct = E5Action(QApplication.translate('ViewManager',
766 'Revert to last saved state'), 766 'Revert to last saved state'),
767 QApplication.translate('ViewManager', 'Re&vert to last saved state'), 767 QApplication.translate('ViewManager', 'Re&vert to last saved state'),
774 self.revertAct.setWhatsThis(QApplication.translate('ViewManager', 774 self.revertAct.setWhatsThis(QApplication.translate('ViewManager',
775 """<b>Revert to last saved state</b>""" 775 """<b>Revert to last saved state</b>"""
776 """<p>Undo all changes up to the last saved state""" 776 """<p>Undo all changes up to the last saved state"""
777 """ of the current editor.</p>""" 777 """ of the current editor.</p>"""
778 )) 778 ))
779 self.revertAct.triggered.connect(self.__editRevert) 779 self.revertAct.triggered[()].connect(self.__editRevert)
780 self.editActions.append(self.revertAct) 780 self.editActions.append(self.revertAct)
781 781
782 self.copyActGrp = createActionGroup(self.editActGrp) 782 self.copyActGrp = createActionGroup(self.editActGrp)
783 783
784 self.cutAct = E5Action(QApplication.translate('ViewManager', 'Cut'), 784 self.cutAct = E5Action(QApplication.translate('ViewManager', 'Cut'),
792 'Cut the selection')) 792 'Cut the selection'))
793 self.cutAct.setWhatsThis(QApplication.translate('ViewManager', 793 self.cutAct.setWhatsThis(QApplication.translate('ViewManager',
794 """<b>Cut</b>""" 794 """<b>Cut</b>"""
795 """<p>Cut the selected text of the current editor to the clipboard.</p>""" 795 """<p>Cut the selected text of the current editor to the clipboard.</p>"""
796 )) 796 ))
797 self.cutAct.triggered.connect(self.__editCut) 797 self.cutAct.triggered[()].connect(self.__editCut)
798 self.editActions.append(self.cutAct) 798 self.editActions.append(self.cutAct)
799 799
800 self.copyAct = E5Action(QApplication.translate('ViewManager', 'Copy'), 800 self.copyAct = E5Action(QApplication.translate('ViewManager', 'Copy'),
801 UI.PixmapCache.getIcon("editCopy.png"), 801 UI.PixmapCache.getIcon("editCopy.png"),
802 QApplication.translate('ViewManager', '&Copy'), 802 QApplication.translate('ViewManager', '&Copy'),
809 'Copy the selection')) 809 'Copy the selection'))
810 self.copyAct.setWhatsThis(QApplication.translate('ViewManager', 810 self.copyAct.setWhatsThis(QApplication.translate('ViewManager',
811 """<b>Copy</b>""" 811 """<b>Copy</b>"""
812 """<p>Copy the selected text of the current editor to the clipboard.</p>""" 812 """<p>Copy the selected text of the current editor to the clipboard.</p>"""
813 )) 813 ))
814 self.copyAct.triggered.connect(self.__editCopy) 814 self.copyAct.triggered[()].connect(self.__editCopy)
815 self.editActions.append(self.copyAct) 815 self.editActions.append(self.copyAct)
816 816
817 self.pasteAct = E5Action(QApplication.translate('ViewManager', 'Paste'), 817 self.pasteAct = E5Action(QApplication.translate('ViewManager', 'Paste'),
818 UI.PixmapCache.getIcon("editPaste.png"), 818 UI.PixmapCache.getIcon("editPaste.png"),
819 QApplication.translate('ViewManager', '&Paste'), 819 QApplication.translate('ViewManager', '&Paste'),
827 self.pasteAct.setWhatsThis(QApplication.translate('ViewManager', 827 self.pasteAct.setWhatsThis(QApplication.translate('ViewManager',
828 """<b>Paste</b>""" 828 """<b>Paste</b>"""
829 """<p>Paste the last cut/copied text from the clipboard to""" 829 """<p>Paste the last cut/copied text from the clipboard to"""
830 """ the current editor.</p>""" 830 """ the current editor.</p>"""
831 )) 831 ))
832 self.pasteAct.triggered.connect(self.__editPaste) 832 self.pasteAct.triggered[()].connect(self.__editPaste)
833 self.editActions.append(self.pasteAct) 833 self.editActions.append(self.pasteAct)
834 834
835 self.deleteAct = E5Action(QApplication.translate('ViewManager', 'Clear'), 835 self.deleteAct = E5Action(QApplication.translate('ViewManager', 'Clear'),
836 UI.PixmapCache.getIcon("editDelete.png"), 836 UI.PixmapCache.getIcon("editDelete.png"),
837 QApplication.translate('ViewManager', 'Cl&ear'), 837 QApplication.translate('ViewManager', 'Cl&ear'),
843 'Clear all text')) 843 'Clear all text'))
844 self.deleteAct.setWhatsThis(QApplication.translate('ViewManager', 844 self.deleteAct.setWhatsThis(QApplication.translate('ViewManager',
845 """<b>Clear</b>""" 845 """<b>Clear</b>"""
846 """<p>Delete all text of the current editor.</p>""" 846 """<p>Delete all text of the current editor.</p>"""
847 )) 847 ))
848 self.deleteAct.triggered.connect(self.__editDelete) 848 self.deleteAct.triggered[()].connect(self.__editDelete)
849 self.editActions.append(self.deleteAct) 849 self.editActions.append(self.deleteAct)
850 850
851 self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'), 851 self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'),
852 UI.PixmapCache.getIcon("editIndent.png"), 852 UI.PixmapCache.getIcon("editIndent.png"),
853 QApplication.translate('ViewManager', '&Indent'), 853 QApplication.translate('ViewManager', '&Indent'),
859 self.indentAct.setWhatsThis(QApplication.translate('ViewManager', 859 self.indentAct.setWhatsThis(QApplication.translate('ViewManager',
860 """<b>Indent</b>""" 860 """<b>Indent</b>"""
861 """<p>Indents the current line or the lines of the""" 861 """<p>Indents the current line or the lines of the"""
862 """ selection by one level.</p>""" 862 """ selection by one level.</p>"""
863 )) 863 ))
864 self.indentAct.triggered.connect(self.__editIndent) 864 self.indentAct.triggered[()].connect(self.__editIndent)
865 self.editActions.append(self.indentAct) 865 self.editActions.append(self.indentAct)
866 866
867 self.unindentAct = E5Action(QApplication.translate('ViewManager', 'Unindent'), 867 self.unindentAct = E5Action(QApplication.translate('ViewManager', 'Unindent'),
868 UI.PixmapCache.getIcon("editUnindent.png"), 868 UI.PixmapCache.getIcon("editUnindent.png"),
869 QApplication.translate('ViewManager', 'U&nindent'), 869 QApplication.translate('ViewManager', 'U&nindent'),
876 self.unindentAct.setWhatsThis(QApplication.translate('ViewManager', 876 self.unindentAct.setWhatsThis(QApplication.translate('ViewManager',
877 """<b>Unindent</b>""" 877 """<b>Unindent</b>"""
878 """<p>Unindents the current line or the lines of the""" 878 """<p>Unindents the current line or the lines of the"""
879 """ selection by one level.</p>""" 879 """ selection by one level.</p>"""
880 )) 880 ))
881 self.unindentAct.triggered.connect(self.__editUnindent) 881 self.unindentAct.triggered[()].connect(self.__editUnindent)
882 self.editActions.append(self.unindentAct) 882 self.editActions.append(self.unindentAct)
883 883
884 self.smartIndentAct = E5Action(QApplication.translate('ViewManager', 884 self.smartIndentAct = E5Action(QApplication.translate('ViewManager',
885 'Smart indent'), 885 'Smart indent'),
886 UI.PixmapCache.getIcon("editSmartIndent.png"), 886 UI.PixmapCache.getIcon("editSmartIndent.png"),
894 self.smartIndentAct.setWhatsThis(QApplication.translate('ViewManager', 894 self.smartIndentAct.setWhatsThis(QApplication.translate('ViewManager',
895 """<b>Smart indent</b>""" 895 """<b>Smart indent</b>"""
896 """<p>Indents the current line or the lines of the""" 896 """<p>Indents the current line or the lines of the"""
897 """ current selection smartly.</p>""" 897 """ current selection smartly.</p>"""
898 )) 898 ))
899 self.smartIndentAct.triggered.connect(self.__editSmartIndent) 899 self.smartIndentAct.triggered[()].connect(self.__editSmartIndent)
900 self.editActions.append(self.smartIndentAct) 900 self.editActions.append(self.smartIndentAct)
901 901
902 self.commentAct = E5Action(QApplication.translate('ViewManager', 'Comment'), 902 self.commentAct = E5Action(QApplication.translate('ViewManager', 'Comment'),
903 UI.PixmapCache.getIcon("editComment.png"), 903 UI.PixmapCache.getIcon("editComment.png"),
904 QApplication.translate('ViewManager', 'C&omment'), 904 QApplication.translate('ViewManager', 'C&omment'),
911 self.commentAct.setWhatsThis(QApplication.translate('ViewManager', 911 self.commentAct.setWhatsThis(QApplication.translate('ViewManager',
912 """<b>Comment</b>""" 912 """<b>Comment</b>"""
913 """<p>Comments the current line or the lines of the""" 913 """<p>Comments the current line or the lines of the"""
914 """ current selection.</p>""" 914 """ current selection.</p>"""
915 )) 915 ))
916 self.commentAct.triggered.connect(self.__editComment) 916 self.commentAct.triggered[()].connect(self.__editComment)
917 self.editActions.append(self.commentAct) 917 self.editActions.append(self.commentAct)
918 918
919 self.uncommentAct = E5Action(QApplication.translate('ViewManager', 'Uncomment'), 919 self.uncommentAct = E5Action(QApplication.translate('ViewManager', 'Uncomment'),
920 UI.PixmapCache.getIcon("editUncomment.png"), 920 UI.PixmapCache.getIcon("editUncomment.png"),
921 QApplication.translate('ViewManager', 'Unco&mment'), 921 QApplication.translate('ViewManager', 'Unco&mment'),
928 self.uncommentAct.setWhatsThis(QApplication.translate('ViewManager', 928 self.uncommentAct.setWhatsThis(QApplication.translate('ViewManager',
929 """<b>Uncomment</b>""" 929 """<b>Uncomment</b>"""
930 """<p>Uncomments the current line or the lines of the""" 930 """<p>Uncomments the current line or the lines of the"""
931 """ current selection.</p>""" 931 """ current selection.</p>"""
932 )) 932 ))
933 self.uncommentAct.triggered.connect(self.__editUncomment) 933 self.uncommentAct.triggered[()].connect(self.__editUncomment)
934 self.editActions.append(self.uncommentAct) 934 self.editActions.append(self.uncommentAct)
935 935
936 self.streamCommentAct = E5Action(QApplication.translate('ViewManager', 936 self.streamCommentAct = E5Action(QApplication.translate('ViewManager',
937 'Stream Comment'), 937 'Stream Comment'),
938 QApplication.translate('ViewManager', 'Stream Comment'), 938 QApplication.translate('ViewManager', 'Stream Comment'),
941 'Stream Comment Line or Selection')) 941 'Stream Comment Line or Selection'))
942 self.streamCommentAct.setWhatsThis(QApplication.translate('ViewManager', 942 self.streamCommentAct.setWhatsThis(QApplication.translate('ViewManager',
943 """<b>Stream Comment</b>""" 943 """<b>Stream Comment</b>"""
944 """<p>Stream comments the current line or the current selection.</p>""" 944 """<p>Stream comments the current line or the current selection.</p>"""
945 )) 945 ))
946 self.streamCommentAct.triggered.connect(self.__editStreamComment) 946 self.streamCommentAct.triggered[()].connect(self.__editStreamComment)
947 self.editActions.append(self.streamCommentAct) 947 self.editActions.append(self.streamCommentAct)
948 948
949 self.boxCommentAct = E5Action(QApplication.translate('ViewManager', 949 self.boxCommentAct = E5Action(QApplication.translate('ViewManager',
950 'Box Comment'), 950 'Box Comment'),
951 QApplication.translate('ViewManager', 'Box Comment'), 951 QApplication.translate('ViewManager', 'Box Comment'),
955 self.boxCommentAct.setWhatsThis(QApplication.translate('ViewManager', 955 self.boxCommentAct.setWhatsThis(QApplication.translate('ViewManager',
956 """<b>Box Comment</b>""" 956 """<b>Box Comment</b>"""
957 """<p>Box comments the current line or the lines of the""" 957 """<p>Box comments the current line or the lines of the"""
958 """ current selection.</p>""" 958 """ current selection.</p>"""
959 )) 959 ))
960 self.boxCommentAct.triggered.connect(self.__editBoxComment) 960 self.boxCommentAct.triggered[()].connect(self.__editBoxComment)
961 self.editActions.append(self.boxCommentAct) 961 self.editActions.append(self.boxCommentAct)
962 962
963 self.selectBraceAct = E5Action(QApplication.translate('ViewManager', 963 self.selectBraceAct = E5Action(QApplication.translate('ViewManager',
964 'Select to brace'), 964 'Select to brace'),
965 QApplication.translate('ViewManager', 'Select to &brace'), 965 QApplication.translate('ViewManager', 'Select to &brace'),
971 'Select text to the matching brace')) 971 'Select text to the matching brace'))
972 self.selectBraceAct.setWhatsThis(QApplication.translate('ViewManager', 972 self.selectBraceAct.setWhatsThis(QApplication.translate('ViewManager',
973 """<b>Select to brace</b>""" 973 """<b>Select to brace</b>"""
974 """<p>Select text of the current editor to the matching brace.</p>""" 974 """<p>Select text of the current editor to the matching brace.</p>"""
975 )) 975 ))
976 self.selectBraceAct.triggered.connect(self.__editSelectBrace) 976 self.selectBraceAct.triggered[()].connect(self.__editSelectBrace)
977 self.editActions.append(self.selectBraceAct) 977 self.editActions.append(self.selectBraceAct)
978 978
979 self.selectAllAct = E5Action(QApplication.translate('ViewManager', 'Select all'), 979 self.selectAllAct = E5Action(QApplication.translate('ViewManager', 'Select all'),
980 QApplication.translate('ViewManager', '&Select all'), 980 QApplication.translate('ViewManager', '&Select all'),
981 QKeySequence(QApplication.translate('ViewManager', 981 QKeySequence(QApplication.translate('ViewManager',
986 'Select all text')) 986 'Select all text'))
987 self.selectAllAct.setWhatsThis(QApplication.translate('ViewManager', 987 self.selectAllAct.setWhatsThis(QApplication.translate('ViewManager',
988 """<b>Select All</b>""" 988 """<b>Select All</b>"""
989 """<p>Select all text of the current editor.</p>""" 989 """<p>Select all text of the current editor.</p>"""
990 )) 990 ))
991 self.selectAllAct.triggered.connect(self.__editSelectAll) 991 self.selectAllAct.triggered[()].connect(self.__editSelectAll)
992 self.editActions.append(self.selectAllAct) 992 self.editActions.append(self.selectAllAct)
993 993
994 self.deselectAllAct = E5Action(QApplication.translate('ViewManager', 994 self.deselectAllAct = E5Action(QApplication.translate('ViewManager',
995 'Deselect all'), 995 'Deselect all'),
996 QApplication.translate('ViewManager', '&Deselect all'), 996 QApplication.translate('ViewManager', '&Deselect all'),
1002 'Deselect all text')) 1002 'Deselect all text'))
1003 self.deselectAllAct.setWhatsThis(QApplication.translate('ViewManager', 1003 self.deselectAllAct.setWhatsThis(QApplication.translate('ViewManager',
1004 """<b>Deselect All</b>""" 1004 """<b>Deselect All</b>"""
1005 """<p>Deselect all text of the current editor.</p>""" 1005 """<p>Deselect all text of the current editor.</p>"""
1006 )) 1006 ))
1007 self.deselectAllAct.triggered.connect(self.__editDeselectAll) 1007 self.deselectAllAct.triggered[()].connect(self.__editDeselectAll)
1008 self.editActions.append(self.deselectAllAct) 1008 self.editActions.append(self.deselectAllAct)
1009 1009
1010 self.convertEOLAct = E5Action(QApplication.translate('ViewManager', 1010 self.convertEOLAct = E5Action(QApplication.translate('ViewManager',
1011 'Convert Line End Characters'), 1011 'Convert Line End Characters'),
1012 QApplication.translate('ViewManager', 'Convert &Line End Characters'), 1012 QApplication.translate('ViewManager', 'Convert &Line End Characters'),
1015 'Convert Line End Characters')) 1015 'Convert Line End Characters'))
1016 self.convertEOLAct.setWhatsThis(QApplication.translate('ViewManager', 1016 self.convertEOLAct.setWhatsThis(QApplication.translate('ViewManager',
1017 """<b>Convert Line End Characters</b>""" 1017 """<b>Convert Line End Characters</b>"""
1018 """<p>Convert the line end characters to the currently set type.</p>""" 1018 """<p>Convert the line end characters to the currently set type.</p>"""
1019 )) 1019 ))
1020 self.convertEOLAct.triggered.connect(self.__convertEOL) 1020 self.convertEOLAct.triggered[()].connect(self.__convertEOL)
1021 self.editActions.append(self.convertEOLAct) 1021 self.editActions.append(self.convertEOLAct)
1022 1022
1023 self.shortenEmptyAct = E5Action(QApplication.translate('ViewManager', 1023 self.shortenEmptyAct = E5Action(QApplication.translate('ViewManager',
1024 'Shorten empty lines'), 1024 'Shorten empty lines'),
1025 QApplication.translate('ViewManager', 'Shorten empty lines'), 1025 QApplication.translate('ViewManager', 'Shorten empty lines'),
1028 'Shorten empty lines')) 1028 'Shorten empty lines'))
1029 self.shortenEmptyAct.setWhatsThis(QApplication.translate('ViewManager', 1029 self.shortenEmptyAct.setWhatsThis(QApplication.translate('ViewManager',
1030 """<b>Shorten empty lines</b>""" 1030 """<b>Shorten empty lines</b>"""
1031 """<p>Shorten lines consisting solely of whitespace characters.</p>""" 1031 """<p>Shorten lines consisting solely of whitespace characters.</p>"""
1032 )) 1032 ))
1033 self.shortenEmptyAct.triggered.connect(self.__shortenEmptyLines) 1033 self.shortenEmptyAct.triggered[()].connect(self.__shortenEmptyLines)
1034 self.editActions.append(self.shortenEmptyAct) 1034 self.editActions.append(self.shortenEmptyAct)
1035 1035
1036 self.autoCompleteAct = E5Action(QApplication.translate('ViewManager', 1036 self.autoCompleteAct = E5Action(QApplication.translate('ViewManager',
1037 'Autocomplete'), 1037 'Autocomplete'),
1038 QApplication.translate('ViewManager', '&Autocomplete'), 1038 QApplication.translate('ViewManager', '&Autocomplete'),
1044 'Autocomplete current word')) 1044 'Autocomplete current word'))
1045 self.autoCompleteAct.setWhatsThis(QApplication.translate('ViewManager', 1045 self.autoCompleteAct.setWhatsThis(QApplication.translate('ViewManager',
1046 """<b>Autocomplete</b>""" 1046 """<b>Autocomplete</b>"""
1047 """<p>Performs an autocompletion of the word containing the cursor.</p>""" 1047 """<p>Performs an autocompletion of the word containing the cursor.</p>"""
1048 )) 1048 ))
1049 self.autoCompleteAct.triggered.connect(self.__editAutoComplete) 1049 self.autoCompleteAct.triggered[()].connect(self.__editAutoComplete)
1050 self.editActions.append(self.autoCompleteAct) 1050 self.editActions.append(self.autoCompleteAct)
1051 1051
1052 self.autoCompleteFromDocAct = E5Action(QApplication.translate('ViewManager', 1052 self.autoCompleteFromDocAct = E5Action(QApplication.translate('ViewManager',
1053 'Autocomplete from Document'), 1053 'Autocomplete from Document'),
1054 QApplication.translate('ViewManager', 'Autocomplete from Document'), 1054 QApplication.translate('ViewManager', 'Autocomplete from Document'),
1060 self.autoCompleteFromDocAct.setWhatsThis(QApplication.translate('ViewManager', 1060 self.autoCompleteFromDocAct.setWhatsThis(QApplication.translate('ViewManager',
1061 """<b>Autocomplete from Document</b>""" 1061 """<b>Autocomplete from Document</b>"""
1062 """<p>Performs an autocompletion from document of the word""" 1062 """<p>Performs an autocompletion from document of the word"""
1063 """ containing the cursor.</p>""" 1063 """ containing the cursor.</p>"""
1064 )) 1064 ))
1065 self.autoCompleteFromDocAct.triggered.connect(self.__editAutoCompleteFromDoc) 1065 self.autoCompleteFromDocAct.triggered[()].connect(self.__editAutoCompleteFromDoc)
1066 self.editActions.append(self.autoCompleteFromDocAct) 1066 self.editActions.append(self.autoCompleteFromDocAct)
1067 1067
1068 self.autoCompleteFromAPIsAct = E5Action(QApplication.translate('ViewManager', 1068 self.autoCompleteFromAPIsAct = E5Action(QApplication.translate('ViewManager',
1069 'Autocomplete from APIs'), 1069 'Autocomplete from APIs'),
1070 QApplication.translate('ViewManager', 'Autocomplete from APIs'), 1070 QApplication.translate('ViewManager', 'Autocomplete from APIs'),
1076 self.autoCompleteFromAPIsAct.setWhatsThis(QApplication.translate('ViewManager', 1076 self.autoCompleteFromAPIsAct.setWhatsThis(QApplication.translate('ViewManager',
1077 """<b>Autocomplete from APIs</b>""" 1077 """<b>Autocomplete from APIs</b>"""
1078 """<p>Performs an autocompletion from APIs of the word containing""" 1078 """<p>Performs an autocompletion from APIs of the word containing"""
1079 """ the cursor.</p>""" 1079 """ the cursor.</p>"""
1080 )) 1080 ))
1081 self.autoCompleteFromAPIsAct.triggered.connect(self.__editAutoCompleteFromAPIs) 1081 self.autoCompleteFromAPIsAct.triggered[()].connect(self.__editAutoCompleteFromAPIs)
1082 self.editActions.append(self.autoCompleteFromAPIsAct) 1082 self.editActions.append(self.autoCompleteFromAPIsAct)
1083 1083
1084 self.autoCompleteFromAllAct = E5Action(\ 1084 self.autoCompleteFromAllAct = E5Action(\
1085 QApplication.translate('ViewManager', 1085 QApplication.translate('ViewManager',
1086 'Autocomplete from Document and APIs'), 1086 'Autocomplete from Document and APIs'),
1094 self.autoCompleteFromAllAct.setWhatsThis(QApplication.translate('ViewManager', 1094 self.autoCompleteFromAllAct.setWhatsThis(QApplication.translate('ViewManager',
1095 """<b>Autocomplete from Document and APIs</b>""" 1095 """<b>Autocomplete from Document and APIs</b>"""
1096 """<p>Performs an autocompletion from document and APIs""" 1096 """<p>Performs an autocompletion from document and APIs"""
1097 """ of the word containing the cursor.</p>""" 1097 """ of the word containing the cursor.</p>"""
1098 )) 1098 ))
1099 self.autoCompleteFromAllAct.triggered.connect(self.__editAutoCompleteFromAll) 1099 self.autoCompleteFromAllAct.triggered[()].connect(self.__editAutoCompleteFromAll)
1100 self.editActions.append(self.autoCompleteFromAllAct) 1100 self.editActions.append(self.autoCompleteFromAllAct)
1101 1101
1102 self.calltipsAct = E5Action(QApplication.translate('ViewManager', 1102 self.calltipsAct = E5Action(QApplication.translate('ViewManager',
1103 'Calltip'), 1103 'Calltip'),
1104 QApplication.translate('ViewManager', '&Calltip'), 1104 QApplication.translate('ViewManager', '&Calltip'),
1111 self.calltipsAct.setWhatsThis(QApplication.translate('ViewManager', 1111 self.calltipsAct.setWhatsThis(QApplication.translate('ViewManager',
1112 """<b>Calltip</b>""" 1112 """<b>Calltip</b>"""
1113 """<p>Show calltips based on the characters immediately to the""" 1113 """<p>Show calltips based on the characters immediately to the"""
1114 """ left of the cursor.</p>""" 1114 """ left of the cursor.</p>"""
1115 )) 1115 ))
1116 self.calltipsAct.triggered.connect(self.__editShowCallTips) 1116 self.calltipsAct.triggered[()].connect(self.__editShowCallTips)
1117 self.editActions.append(self.calltipsAct) 1117 self.editActions.append(self.calltipsAct)
1118 1118
1119 self.editActGrp.setEnabled(False) 1119 self.editActGrp.setEnabled(False)
1120 self.copyActGrp.setEnabled(False) 1120 self.copyActGrp.setEnabled(False)
1121 1121
1131 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'), 1131 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'),
1132 QApplication.translate('ViewManager', 'Move left one character'), 1132 QApplication.translate('ViewManager', 'Move left one character'),
1133 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, 1133 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0,
1134 self.editorActGrp, 'vm_edit_move_left_char') 1134 self.editorActGrp, 'vm_edit_move_left_char')
1135 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) 1135 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT)
1136 act.triggered.connect(self.esm.map) 1136 act.triggered[()].connect(self.esm.map)
1137 self.editActions.append(act) 1137 self.editActions.append(act)
1138 1138
1139 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), 1139 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'),
1140 QApplication.translate('ViewManager', 'Move right one character'), 1140 QApplication.translate('ViewManager', 'Move right one character'),
1141 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, 1141 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0,
1142 self.editorActGrp, 'vm_edit_move_right_char') 1142 self.editorActGrp, 'vm_edit_move_right_char')
1143 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) 1143 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT)
1144 act.triggered.connect(self.esm.map) 1144 act.triggered[()].connect(self.esm.map)
1145 self.editActions.append(act) 1145 self.editActions.append(act)
1146 1146
1147 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), 1147 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'),
1148 QApplication.translate('ViewManager', 'Move up one line'), 1148 QApplication.translate('ViewManager', 'Move up one line'),
1149 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, 1149 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0,
1150 self.editorActGrp, 'vm_edit_move_up_line') 1150 self.editorActGrp, 'vm_edit_move_up_line')
1151 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) 1151 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP)
1152 act.triggered.connect(self.esm.map) 1152 act.triggered[()].connect(self.esm.map)
1153 self.editActions.append(act) 1153 self.editActions.append(act)
1154 1154
1155 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), 1155 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'),
1156 QApplication.translate('ViewManager', 'Move down one line'), 1156 QApplication.translate('ViewManager', 'Move down one line'),
1157 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, 1157 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0,
1158 self.editorActGrp, 'vm_edit_move_down_line') 1158 self.editorActGrp, 'vm_edit_move_down_line')
1159 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) 1159 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN)
1160 act.triggered.connect(self.esm.map) 1160 act.triggered[()].connect(self.esm.map)
1161 self.editActions.append(act) 1161 self.editActions.append(act)
1162 1162
1163 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), 1163 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'),
1164 QApplication.translate('ViewManager', 'Move left one word part'), 1164 QApplication.translate('ViewManager', 'Move left one word part'),
1165 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, 1165 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0,
1166 self.editorActGrp, 'vm_edit_move_left_word_part') 1166 self.editorActGrp, 'vm_edit_move_left_word_part')
1167 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) 1167 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT)
1168 act.triggered.connect(self.esm.map) 1168 act.triggered[()].connect(self.esm.map)
1169 self.editActions.append(act) 1169 self.editActions.append(act)
1170 1170
1171 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), 1171 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'),
1172 QApplication.translate('ViewManager', 'Move right one word part'), 1172 QApplication.translate('ViewManager', 'Move right one word part'),
1173 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, 1173 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0,
1174 self.editorActGrp, 'vm_edit_move_right_word_part') 1174 self.editorActGrp, 'vm_edit_move_right_word_part')
1175 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) 1175 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT)
1176 act.triggered.connect(self.esm.map) 1176 act.triggered[()].connect(self.esm.map)
1177 self.editActions.append(act) 1177 self.editActions.append(act)
1178 1178
1179 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), 1179 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'),
1180 QApplication.translate('ViewManager', 'Move left one word'), 1180 QApplication.translate('ViewManager', 'Move left one word'),
1181 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, 1181 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0,
1182 self.editorActGrp, 'vm_edit_move_left_word') 1182 self.editorActGrp, 'vm_edit_move_left_word')
1183 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) 1183 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT)
1184 act.triggered.connect(self.esm.map) 1184 act.triggered[()].connect(self.esm.map)
1185 self.editActions.append(act) 1185 self.editActions.append(act)
1186 1186
1187 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), 1187 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'),
1188 QApplication.translate('ViewManager', 'Move right one word'), 1188 QApplication.translate('ViewManager', 'Move right one word'),
1189 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), 1189 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')),
1190 0, 1190 0,
1191 self.editorActGrp, 'vm_edit_move_right_word') 1191 self.editorActGrp, 'vm_edit_move_right_word')
1192 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) 1192 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT)
1193 act.triggered.connect(self.esm.map) 1193 act.triggered[()].connect(self.esm.map)
1194 self.editActions.append(act) 1194 self.editActions.append(act)
1195 1195
1196 act = E5Action(QApplication.translate('ViewManager', 1196 act = E5Action(QApplication.translate('ViewManager',
1197 'Move to first visible character in line'), 1197 'Move to first visible character in line'),
1198 QApplication.translate('ViewManager', 1198 QApplication.translate('ViewManager',
1199 'Move to first visible character in line'), 1199 'Move to first visible character in line'),
1200 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, 1200 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0,
1201 self.editorActGrp, 'vm_edit_move_first_visible_char') 1201 self.editorActGrp, 'vm_edit_move_first_visible_char')
1202 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) 1202 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME)
1203 act.triggered.connect(self.esm.map) 1203 act.triggered[()].connect(self.esm.map)
1204 self.editActions.append(act) 1204 self.editActions.append(act)
1205 1205
1206 act = E5Action(QApplication.translate('ViewManager', 1206 act = E5Action(QApplication.translate('ViewManager',
1207 'Move to start of displayed line'), 1207 'Move to start of displayed line'),
1208 QApplication.translate('ViewManager', 1208 QApplication.translate('ViewManager',
1209 'Move to start of displayed line'), 1209 'Move to start of displayed line'),
1210 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, 1210 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0,
1211 self.editorActGrp, 'vm_edit_move_start_line') 1211 self.editorActGrp, 'vm_edit_move_start_line')
1212 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) 1212 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY)
1213 act.triggered.connect(self.esm.map) 1213 act.triggered[()].connect(self.esm.map)
1214 self.editActions.append(act) 1214 self.editActions.append(act)
1215 1215
1216 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), 1216 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'),
1217 QApplication.translate('ViewManager', 'Move to end of line'), 1217 QApplication.translate('ViewManager', 'Move to end of line'),
1218 QKeySequence(QApplication.translate('ViewManager', 'End')), 0, 1218 QKeySequence(QApplication.translate('ViewManager', 'End')), 0,
1219 self.editorActGrp, 'vm_edit_move_end_line') 1219 self.editorActGrp, 'vm_edit_move_end_line')
1220 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) 1220 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND)
1221 act.triggered.connect(self.esm.map) 1221 act.triggered[()].connect(self.esm.map)
1222 self.editActions.append(act) 1222 self.editActions.append(act)
1223 1223
1224 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), 1224 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'),
1225 QApplication.translate('ViewManager', 'Scroll view down one line'), 1225 QApplication.translate('ViewManager', 'Scroll view down one line'),
1226 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, 1226 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0,
1227 self.editorActGrp, 'vm_edit_scroll_down_line') 1227 self.editorActGrp, 'vm_edit_scroll_down_line')
1228 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) 1228 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN)
1229 act.triggered.connect(self.esm.map) 1229 act.triggered[()].connect(self.esm.map)
1230 self.editActions.append(act) 1230 self.editActions.append(act)
1231 1231
1232 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), 1232 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'),
1233 QApplication.translate('ViewManager', 'Scroll view up one line'), 1233 QApplication.translate('ViewManager', 'Scroll view up one line'),
1234 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, 1234 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0,
1235 self.editorActGrp, 'vm_edit_scroll_up_line') 1235 self.editorActGrp, 'vm_edit_scroll_up_line')
1236 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) 1236 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP)
1237 act.triggered.connect(self.esm.map) 1237 act.triggered[()].connect(self.esm.map)
1238 self.editActions.append(act) 1238 self.editActions.append(act)
1239 1239
1240 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), 1240 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'),
1241 QApplication.translate('ViewManager', 'Move up one paragraph'), 1241 QApplication.translate('ViewManager', 'Move up one paragraph'),
1242 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, 1242 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0,
1243 self.editorActGrp, 'vm_edit_move_up_para') 1243 self.editorActGrp, 'vm_edit_move_up_para')
1244 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) 1244 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP)
1245 act.triggered.connect(self.esm.map) 1245 act.triggered[()].connect(self.esm.map)
1246 self.editActions.append(act) 1246 self.editActions.append(act)
1247 1247
1248 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), 1248 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'),
1249 QApplication.translate('ViewManager', 'Move down one paragraph'), 1249 QApplication.translate('ViewManager', 'Move down one paragraph'),
1250 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, 1250 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0,
1251 self.editorActGrp, 'vm_edit_move_down_para') 1251 self.editorActGrp, 'vm_edit_move_down_para')
1252 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) 1252 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN)
1253 act.triggered.connect(self.esm.map) 1253 act.triggered[()].connect(self.esm.map)
1254 self.editActions.append(act) 1254 self.editActions.append(act)
1255 1255
1256 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), 1256 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'),
1257 QApplication.translate('ViewManager', 'Move up one page'), 1257 QApplication.translate('ViewManager', 'Move up one page'),
1258 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, 1258 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0,
1259 self.editorActGrp, 'vm_edit_move_up_page') 1259 self.editorActGrp, 'vm_edit_move_up_page')
1260 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) 1260 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP)
1261 act.triggered.connect(self.esm.map) 1261 act.triggered[()].connect(self.esm.map)
1262 self.editActions.append(act) 1262 self.editActions.append(act)
1263 1263
1264 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), 1264 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'),
1265 QApplication.translate('ViewManager', 'Move down one page'), 1265 QApplication.translate('ViewManager', 'Move down one page'),
1266 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, 1266 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0,
1267 self.editorActGrp, 'vm_edit_move_down_page') 1267 self.editorActGrp, 'vm_edit_move_down_page')
1268 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) 1268 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN)
1269 act.triggered.connect(self.esm.map) 1269 act.triggered[()].connect(self.esm.map)
1270 self.editActions.append(act) 1270 self.editActions.append(act)
1271 1271
1272 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), 1272 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'),
1273 QApplication.translate('ViewManager', 'Move to start of text'), 1273 QApplication.translate('ViewManager', 'Move to start of text'),
1274 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, 1274 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0,
1275 self.editorActGrp, 'vm_edit_move_start_text') 1275 self.editorActGrp, 'vm_edit_move_start_text')
1276 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) 1276 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART)
1277 act.triggered.connect(self.esm.map) 1277 act.triggered[()].connect(self.esm.map)
1278 self.editActions.append(act) 1278 self.editActions.append(act)
1279 1279
1280 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), 1280 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'),
1281 QApplication.translate('ViewManager', 'Move to end of text'), 1281 QApplication.translate('ViewManager', 'Move to end of text'),
1282 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, 1282 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0,
1283 self.editorActGrp, 'vm_edit_move_end_text') 1283 self.editorActGrp, 'vm_edit_move_end_text')
1284 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) 1284 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND)
1285 act.triggered.connect(self.esm.map) 1285 act.triggered[()].connect(self.esm.map)
1286 self.editActions.append(act) 1286 self.editActions.append(act)
1287 1287
1288 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), 1288 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'),
1289 QApplication.translate('ViewManager', 'Indent one level'), 1289 QApplication.translate('ViewManager', 'Indent one level'),
1290 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, 1290 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0,
1291 self.editorActGrp, 'vm_edit_indent_one_level') 1291 self.editorActGrp, 'vm_edit_indent_one_level')
1292 self.esm.setMapping(act, QsciScintilla.SCI_TAB) 1292 self.esm.setMapping(act, QsciScintilla.SCI_TAB)
1293 act.triggered.connect(self.esm.map) 1293 act.triggered[()].connect(self.esm.map)
1294 self.editActions.append(act) 1294 self.editActions.append(act)
1295 1295
1296 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), 1296 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'),
1297 QApplication.translate('ViewManager', 'Unindent one level'), 1297 QApplication.translate('ViewManager', 'Unindent one level'),
1298 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, 1298 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0,
1299 self.editorActGrp, 'vm_edit_unindent_one_level') 1299 self.editorActGrp, 'vm_edit_unindent_one_level')
1300 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) 1300 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB)
1301 act.triggered.connect(self.esm.map) 1301 act.triggered[()].connect(self.esm.map)
1302 self.editActions.append(act) 1302 self.editActions.append(act)
1303 1303
1304 act = E5Action(QApplication.translate('ViewManager', 1304 act = E5Action(QApplication.translate('ViewManager',
1305 'Extend selection left one character'), 1305 'Extend selection left one character'),
1306 QApplication.translate('ViewManager', 1306 QApplication.translate('ViewManager',
1307 'Extend selection left one character'), 1307 'Extend selection left one character'),
1308 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')), 1308 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')),
1309 0, 1309 0,
1310 self.editorActGrp, 'vm_edit_extend_selection_left_char') 1310 self.editorActGrp, 'vm_edit_extend_selection_left_char')
1311 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) 1311 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND)
1312 act.triggered.connect(self.esm.map) 1312 act.triggered[()].connect(self.esm.map)
1313 self.editActions.append(act) 1313 self.editActions.append(act)
1314 1314
1315 act = E5Action(QApplication.translate('ViewManager', 1315 act = E5Action(QApplication.translate('ViewManager',
1316 'Extend selection right one character'), 1316 'Extend selection right one character'),
1317 QApplication.translate('ViewManager', 1317 QApplication.translate('ViewManager',
1318 'Extend selection right one character'), 1318 'Extend selection right one character'),
1319 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')), 1319 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')),
1320 0, 1320 0,
1321 self.editorActGrp, 'vm_edit_extend_selection_right_char') 1321 self.editorActGrp, 'vm_edit_extend_selection_right_char')
1322 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) 1322 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND)
1323 act.triggered.connect(self.esm.map) 1323 act.triggered[()].connect(self.esm.map)
1324 self.editActions.append(act) 1324 self.editActions.append(act)
1325 1325
1326 act = E5Action(QApplication.translate('ViewManager', 1326 act = E5Action(QApplication.translate('ViewManager',
1327 'Extend selection up one line'), 1327 'Extend selection up one line'),
1328 QApplication.translate('ViewManager', 1328 QApplication.translate('ViewManager',
1329 'Extend selection up one line'), 1329 'Extend selection up one line'),
1330 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, 1330 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0,
1331 self.editorActGrp, 'vm_edit_extend_selection_up_line') 1331 self.editorActGrp, 'vm_edit_extend_selection_up_line')
1332 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) 1332 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND)
1333 act.triggered.connect(self.esm.map) 1333 act.triggered[()].connect(self.esm.map)
1334 self.editActions.append(act) 1334 self.editActions.append(act)
1335 1335
1336 act = E5Action(QApplication.translate('ViewManager', 1336 act = E5Action(QApplication.translate('ViewManager',
1337 'Extend selection down one line'), 1337 'Extend selection down one line'),
1338 QApplication.translate('ViewManager', 1338 QApplication.translate('ViewManager',
1339 'Extend selection down one line'), 1339 'Extend selection down one line'),
1340 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')), 1340 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')),
1341 0, 1341 0,
1342 self.editorActGrp, 'vm_edit_extend_selection_down_line') 1342 self.editorActGrp, 'vm_edit_extend_selection_down_line')
1343 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) 1343 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND)
1344 act.triggered.connect(self.esm.map) 1344 act.triggered[()].connect(self.esm.map)
1345 self.editActions.append(act) 1345 self.editActions.append(act)
1346 1346
1347 act = E5Action(QApplication.translate('ViewManager', 1347 act = E5Action(QApplication.translate('ViewManager',
1348 'Extend selection left one word part'), 1348 'Extend selection left one word part'),
1349 QApplication.translate('ViewManager', 1349 QApplication.translate('ViewManager',
1351 QKeySequence(QApplication.translate('ViewManager', 1351 QKeySequence(QApplication.translate('ViewManager',
1352 'Alt+Shift+Left')), 1352 'Alt+Shift+Left')),
1353 0, 1353 0,
1354 self.editorActGrp, 'vm_edit_extend_selection_left_word_part') 1354 self.editorActGrp, 'vm_edit_extend_selection_left_word_part')
1355 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) 1355 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND)
1356 act.triggered.connect(self.esm.map) 1356 act.triggered[()].connect(self.esm.map)
1357 self.editActions.append(act) 1357 self.editActions.append(act)
1358 1358
1359 act = E5Action(QApplication.translate('ViewManager', 1359 act = E5Action(QApplication.translate('ViewManager',
1360 'Extend selection right one word part'), 1360 'Extend selection right one word part'),
1361 QApplication.translate('ViewManager', 1361 QApplication.translate('ViewManager',
1363 QKeySequence(QApplication.translate('ViewManager', 1363 QKeySequence(QApplication.translate('ViewManager',
1364 'Alt+Shift+Right')), 1364 'Alt+Shift+Right')),
1365 0, 1365 0,
1366 self.editorActGrp, 'vm_edit_extend_selection_right_word_part') 1366 self.editorActGrp, 'vm_edit_extend_selection_right_word_part')
1367 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) 1367 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND)
1368 act.triggered.connect(self.esm.map) 1368 act.triggered[()].connect(self.esm.map)
1369 self.editActions.append(act) 1369 self.editActions.append(act)
1370 1370
1371 act = E5Action(QApplication.translate('ViewManager', 1371 act = E5Action(QApplication.translate('ViewManager',
1372 'Extend selection left one word'), 1372 'Extend selection left one word'),
1373 QApplication.translate('ViewManager', 1373 QApplication.translate('ViewManager',
1375 QKeySequence(QApplication.translate('ViewManager', 1375 QKeySequence(QApplication.translate('ViewManager',
1376 'Ctrl+Shift+Left')), 1376 'Ctrl+Shift+Left')),
1377 0, 1377 0,
1378 self.editorActGrp, 'vm_edit_extend_selection_left_word') 1378 self.editorActGrp, 'vm_edit_extend_selection_left_word')
1379 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) 1379 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND)
1380 act.triggered.connect(self.esm.map) 1380 act.triggered[()].connect(self.esm.map)
1381 self.editActions.append(act) 1381 self.editActions.append(act)
1382 1382
1383 act = E5Action(QApplication.translate('ViewManager', 1383 act = E5Action(QApplication.translate('ViewManager',
1384 'Extend selection right one word'), 1384 'Extend selection right one word'),
1385 QApplication.translate('ViewManager', 1385 QApplication.translate('ViewManager',
1387 QKeySequence(QApplication.translate('ViewManager', 1387 QKeySequence(QApplication.translate('ViewManager',
1388 'Ctrl+Shift+Right')), 1388 'Ctrl+Shift+Right')),
1389 0, 1389 0,
1390 self.editorActGrp, 'vm_edit_extend_selection_right_word') 1390 self.editorActGrp, 'vm_edit_extend_selection_right_word')
1391 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) 1391 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND)
1392 act.triggered.connect(self.esm.map) 1392 act.triggered[()].connect(self.esm.map)
1393 self.editActions.append(act) 1393 self.editActions.append(act)
1394 1394
1395 act = E5Action(QApplication.translate('ViewManager', 1395 act = E5Action(QApplication.translate('ViewManager',
1396 'Extend selection to first visible character in line'), 1396 'Extend selection to first visible character in line'),
1397 QApplication.translate('ViewManager', 1397 QApplication.translate('ViewManager',
1398 'Extend selection to first visible character in line'), 1398 'Extend selection to first visible character in line'),
1399 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')), 1399 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')),
1400 0, 1400 0,
1401 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char') 1401 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char')
1402 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) 1402 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND)
1403 act.triggered.connect(self.esm.map) 1403 act.triggered[()].connect(self.esm.map)
1404 self.editActions.append(act) 1404 self.editActions.append(act)
1405 1405
1406 act = E5Action(QApplication.translate('ViewManager', 1406 act = E5Action(QApplication.translate('ViewManager',
1407 'Extend selection to start of line'), 1407 'Extend selection to start of line'),
1408 QApplication.translate('ViewManager', 1408 QApplication.translate('ViewManager',
1410 QKeySequence(QApplication.translate('ViewManager', 1410 QKeySequence(QApplication.translate('ViewManager',
1411 'Alt+Shift+Home')), 1411 'Alt+Shift+Home')),
1412 0, 1412 0,
1413 self.editorActGrp, 'vm_edit_extend_selection_start_line') 1413 self.editorActGrp, 'vm_edit_extend_selection_start_line')
1414 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) 1414 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND)
1415 act.triggered.connect(self.esm.map) 1415 act.triggered[()].connect(self.esm.map)
1416 self.editActions.append(act) 1416 self.editActions.append(act)
1417 1417
1418 act = E5Action(QApplication.translate('ViewManager', 1418 act = E5Action(QApplication.translate('ViewManager',
1419 'Extend selection to end of line'), 1419 'Extend selection to end of line'),
1420 QApplication.translate('ViewManager', 1420 QApplication.translate('ViewManager',
1421 'Extend selection to end of line'), 1421 'Extend selection to end of line'),
1422 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0, 1422 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0,
1423 self.editorActGrp, 'vm_edit_extend_selection_end_line') 1423 self.editorActGrp, 'vm_edit_extend_selection_end_line')
1424 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) 1424 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND)
1425 act.triggered.connect(self.esm.map) 1425 act.triggered[()].connect(self.esm.map)
1426 self.editActions.append(act) 1426 self.editActions.append(act)
1427 1427
1428 act = E5Action(QApplication.translate('ViewManager', 1428 act = E5Action(QApplication.translate('ViewManager',
1429 'Extend selection up one paragraph'), 1429 'Extend selection up one paragraph'),
1430 QApplication.translate('ViewManager', 1430 QApplication.translate('ViewManager',
1431 'Extend selection up one paragraph'), 1431 'Extend selection up one paragraph'),
1432 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')), 1432 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')),
1433 0, 1433 0,
1434 self.editorActGrp, 'vm_edit_extend_selection_up_para') 1434 self.editorActGrp, 'vm_edit_extend_selection_up_para')
1435 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) 1435 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND)
1436 act.triggered.connect(self.esm.map) 1436 act.triggered[()].connect(self.esm.map)
1437 self.editActions.append(act) 1437 self.editActions.append(act)
1438 1438
1439 act = E5Action(QApplication.translate('ViewManager', 1439 act = E5Action(QApplication.translate('ViewManager',
1440 'Extend selection down one paragraph'), 1440 'Extend selection down one paragraph'),
1441 QApplication.translate('ViewManager', 1441 QApplication.translate('ViewManager',
1443 QKeySequence(QApplication.translate('ViewManager', 1443 QKeySequence(QApplication.translate('ViewManager',
1444 'Alt+Shift+Down')), 1444 'Alt+Shift+Down')),
1445 0, 1445 0,
1446 self.editorActGrp, 'vm_edit_extend_selection_down_para') 1446 self.editorActGrp, 'vm_edit_extend_selection_down_para')
1447 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) 1447 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND)
1448 act.triggered.connect(self.esm.map) 1448 act.triggered[()].connect(self.esm.map)
1449 self.editActions.append(act) 1449 self.editActions.append(act)
1450 1450
1451 act = E5Action(QApplication.translate('ViewManager', 1451 act = E5Action(QApplication.translate('ViewManager',
1452 'Extend selection up one page'), 1452 'Extend selection up one page'),
1453 QApplication.translate('ViewManager', 1453 QApplication.translate('ViewManager',
1454 'Extend selection up one page'), 1454 'Extend selection up one page'),
1455 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')), 1455 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')),
1456 0, 1456 0,
1457 self.editorActGrp, 'vm_edit_extend_selection_up_page') 1457 self.editorActGrp, 'vm_edit_extend_selection_up_page')
1458 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) 1458 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND)
1459 act.triggered.connect(self.esm.map) 1459 act.triggered[()].connect(self.esm.map)
1460 self.editActions.append(act) 1460 self.editActions.append(act)
1461 1461
1462 act = E5Action(QApplication.translate('ViewManager', 1462 act = E5Action(QApplication.translate('ViewManager',
1463 'Extend selection down one page'), 1463 'Extend selection down one page'),
1464 QApplication.translate('ViewManager', 1464 QApplication.translate('ViewManager',
1465 'Extend selection down one page'), 1465 'Extend selection down one page'),
1466 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')), 1466 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')),
1467 0, 1467 0,
1468 self.editorActGrp, 'vm_edit_extend_selection_down_page') 1468 self.editorActGrp, 'vm_edit_extend_selection_down_page')
1469 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) 1469 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND)
1470 act.triggered.connect(self.esm.map) 1470 act.triggered[()].connect(self.esm.map)
1471 self.editActions.append(act) 1471 self.editActions.append(act)
1472 1472
1473 act = E5Action(QApplication.translate('ViewManager', 1473 act = E5Action(QApplication.translate('ViewManager',
1474 'Extend selection to start of text'), 1474 'Extend selection to start of text'),
1475 QApplication.translate('ViewManager', 1475 QApplication.translate('ViewManager',
1477 QKeySequence(QApplication.translate('ViewManager', 1477 QKeySequence(QApplication.translate('ViewManager',
1478 'Ctrl+Shift+Home')), 1478 'Ctrl+Shift+Home')),
1479 0, 1479 0,
1480 self.editorActGrp, 'vm_edit_extend_selection_start_text') 1480 self.editorActGrp, 'vm_edit_extend_selection_start_text')
1481 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) 1481 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND)
1482 act.triggered.connect(self.esm.map) 1482 act.triggered[()].connect(self.esm.map)
1483 self.editActions.append(act) 1483 self.editActions.append(act)
1484 1484
1485 act = E5Action(QApplication.translate('ViewManager', 1485 act = E5Action(QApplication.translate('ViewManager',
1486 'Extend selection to end of text'), 1486 'Extend selection to end of text'),
1487 QApplication.translate('ViewManager', 1487 QApplication.translate('ViewManager',
1489 QKeySequence(QApplication.translate('ViewManager', 1489 QKeySequence(QApplication.translate('ViewManager',
1490 'Ctrl+Shift+End')), 1490 'Ctrl+Shift+End')),
1491 0, 1491 0,
1492 self.editorActGrp, 'vm_edit_extend_selection_end_text') 1492 self.editorActGrp, 'vm_edit_extend_selection_end_text')
1493 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) 1493 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND)
1494 act.triggered.connect(self.esm.map) 1494 act.triggered[()].connect(self.esm.map)
1495 self.editActions.append(act) 1495 self.editActions.append(act)
1496 1496
1497 act = E5Action(QApplication.translate('ViewManager', 1497 act = E5Action(QApplication.translate('ViewManager',
1498 'Delete previous character'), 1498 'Delete previous character'),
1499 QApplication.translate('ViewManager', 'Delete previous character'), 1499 QApplication.translate('ViewManager', 'Delete previous character'),
1500 QKeySequence(QApplication.translate('ViewManager', 'Backspace')), 1500 QKeySequence(QApplication.translate('ViewManager', 'Backspace')),
1501 QKeySequence(QApplication.translate('ViewManager', 1501 QKeySequence(QApplication.translate('ViewManager',
1502 'Shift+Backspace')), 1502 'Shift+Backspace')),
1503 self.editorActGrp, 'vm_edit_delete_previous_char') 1503 self.editorActGrp, 'vm_edit_delete_previous_char')
1504 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) 1504 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK)
1505 act.triggered.connect(self.esm.map) 1505 act.triggered[()].connect(self.esm.map)
1506 self.editActions.append(act) 1506 self.editActions.append(act)
1507 1507
1508 act = E5Action(QApplication.translate('ViewManager', 1508 act = E5Action(QApplication.translate('ViewManager',
1509 'Delete previous character if not at line start'), 1509 'Delete previous character if not at line start'),
1510 QApplication.translate('ViewManager', 1510 QApplication.translate('ViewManager',
1511 'Delete previous character if not at line start'), 1511 'Delete previous character if not at line start'),
1512 0, 0, 1512 0, 0,
1513 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') 1513 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start')
1514 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) 1514 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE)
1515 act.triggered.connect(self.esm.map) 1515 act.triggered[()].connect(self.esm.map)
1516 self.editActions.append(act) 1516 self.editActions.append(act)
1517 1517
1518 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), 1518 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'),
1519 QApplication.translate('ViewManager', 'Delete current character'), 1519 QApplication.translate('ViewManager', 'Delete current character'),
1520 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, 1520 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0,
1521 self.editorActGrp, 'vm_edit_delete_current_char') 1521 self.editorActGrp, 'vm_edit_delete_current_char')
1522 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) 1522 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR)
1523 act.triggered.connect(self.esm.map) 1523 act.triggered[()].connect(self.esm.map)
1524 self.editActions.append(act) 1524 self.editActions.append(act)
1525 1525
1526 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), 1526 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'),
1527 QApplication.translate('ViewManager', 'Delete word to left'), 1527 QApplication.translate('ViewManager', 'Delete word to left'),
1528 QKeySequence(QApplication.translate('ViewManager', 1528 QKeySequence(QApplication.translate('ViewManager',
1529 'Ctrl+Backspace')), 1529 'Ctrl+Backspace')),
1530 0, 1530 0,
1531 self.editorActGrp, 'vm_edit_delete_word_left') 1531 self.editorActGrp, 'vm_edit_delete_word_left')
1532 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) 1532 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT)
1533 act.triggered.connect(self.esm.map) 1533 act.triggered[()].connect(self.esm.map)
1534 self.editActions.append(act) 1534 self.editActions.append(act)
1535 1535
1536 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), 1536 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'),
1537 QApplication.translate('ViewManager', 'Delete word to right'), 1537 QApplication.translate('ViewManager', 'Delete word to right'),
1538 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, 1538 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0,
1539 self.editorActGrp, 'vm_edit_delete_word_right') 1539 self.editorActGrp, 'vm_edit_delete_word_right')
1540 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) 1540 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT)
1541 act.triggered.connect(self.esm.map) 1541 act.triggered[()].connect(self.esm.map)
1542 self.editActions.append(act) 1542 self.editActions.append(act)
1543 1543
1544 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), 1544 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'),
1545 QApplication.translate('ViewManager', 'Delete line to left'), 1545 QApplication.translate('ViewManager', 'Delete line to left'),
1546 QKeySequence(QApplication.translate('ViewManager', 1546 QKeySequence(QApplication.translate('ViewManager',
1547 'Ctrl+Shift+Backspace')), 1547 'Ctrl+Shift+Backspace')),
1548 0, 1548 0,
1549 self.editorActGrp, 'vm_edit_delete_line_left') 1549 self.editorActGrp, 'vm_edit_delete_line_left')
1550 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) 1550 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT)
1551 act.triggered.connect(self.esm.map) 1551 act.triggered[()].connect(self.esm.map)
1552 self.editActions.append(act) 1552 self.editActions.append(act)
1553 1553
1554 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), 1554 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'),
1555 QApplication.translate('ViewManager', 'Delete line to right'), 1555 QApplication.translate('ViewManager', 'Delete line to right'),
1556 QKeySequence(QApplication.translate('ViewManager', 1556 QKeySequence(QApplication.translate('ViewManager',
1557 'Ctrl+Shift+Del')), 1557 'Ctrl+Shift+Del')),
1558 0, 1558 0,
1559 self.editorActGrp, 'vm_edit_delete_line_right') 1559 self.editorActGrp, 'vm_edit_delete_line_right')
1560 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) 1560 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT)
1561 act.triggered.connect(self.esm.map) 1561 act.triggered[()].connect(self.esm.map)
1562 self.editActions.append(act) 1562 self.editActions.append(act)
1563 1563
1564 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), 1564 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'),
1565 QApplication.translate('ViewManager', 'Insert new line'), 1565 QApplication.translate('ViewManager', 'Insert new line'),
1566 QKeySequence(QApplication.translate('ViewManager', 'Return')), 1566 QKeySequence(QApplication.translate('ViewManager', 'Return')),
1567 QKeySequence(QApplication.translate('ViewManager', 'Enter')), 1567 QKeySequence(QApplication.translate('ViewManager', 'Enter')),
1568 self.editorActGrp, 'vm_edit_insert_line') 1568 self.editorActGrp, 'vm_edit_insert_line')
1569 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) 1569 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE)
1570 act.triggered.connect(self.esm.map) 1570 act.triggered[()].connect(self.esm.map)
1571 self.editActions.append(act) 1571 self.editActions.append(act)
1572 1572
1573 act = E5Action(QApplication.translate('ViewManager', 1573 act = E5Action(QApplication.translate('ViewManager',
1574 'Insert new line below current line'), 1574 'Insert new line below current line'),
1575 QApplication.translate('ViewManager', 1575 QApplication.translate('ViewManager',
1576 'Insert new line below current line'), 1576 'Insert new line below current line'),
1577 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), 1577 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')),
1578 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), 1578 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')),
1579 self.editorActGrp, 'vm_edit_insert_line_below') 1579 self.editorActGrp, 'vm_edit_insert_line_below')
1580 act.triggered.connect(self.__newLineBelow) 1580 act.triggered[()].connect(self.__newLineBelow)
1581 self.editActions.append(act) 1581 self.editActions.append(act)
1582 1582
1583 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), 1583 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'),
1584 QApplication.translate('ViewManager', 'Delete current line'), 1584 QApplication.translate('ViewManager', 'Delete current line'),
1585 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), 1585 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')),
1586 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), 1586 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')),
1587 self.editorActGrp, 'vm_edit_delete_current_line') 1587 self.editorActGrp, 'vm_edit_delete_current_line')
1588 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) 1588 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE)
1589 act.triggered.connect(self.esm.map) 1589 act.triggered[()].connect(self.esm.map)
1590 self.editActions.append(act) 1590 self.editActions.append(act)
1591 1591
1592 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), 1592 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'),
1593 QApplication.translate('ViewManager', 'Duplicate current line'), 1593 QApplication.translate('ViewManager', 'Duplicate current line'),
1594 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, 1594 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0,
1595 self.editorActGrp, 'vm_edit_duplicate_current_line') 1595 self.editorActGrp, 'vm_edit_duplicate_current_line')
1596 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) 1596 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE)
1597 act.triggered.connect(self.esm.map) 1597 act.triggered[()].connect(self.esm.map)
1598 self.editActions.append(act) 1598 self.editActions.append(act)
1599 1599
1600 act = E5Action(QApplication.translate('ViewManager', 1600 act = E5Action(QApplication.translate('ViewManager',
1601 'Swap current and previous lines'), 1601 'Swap current and previous lines'),
1602 QApplication.translate('ViewManager', 1602 QApplication.translate('ViewManager',
1603 'Swap current and previous lines'), 1603 'Swap current and previous lines'),
1604 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, 1604 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0,
1605 self.editorActGrp, 'vm_edit_swap_current_previous_line') 1605 self.editorActGrp, 'vm_edit_swap_current_previous_line')
1606 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) 1606 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE)
1607 act.triggered.connect(self.esm.map) 1607 act.triggered[()].connect(self.esm.map)
1608 self.editActions.append(act) 1608 self.editActions.append(act)
1609 1609
1610 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), 1610 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'),
1611 QApplication.translate('ViewManager', 'Cut current line'), 1611 QApplication.translate('ViewManager', 'Cut current line'),
1612 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 1612 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')),
1613 0, 1613 0,
1614 self.editorActGrp, 'vm_edit_cut_current_line') 1614 self.editorActGrp, 'vm_edit_cut_current_line')
1615 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) 1615 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT)
1616 act.triggered.connect(self.esm.map) 1616 act.triggered[()].connect(self.esm.map)
1617 self.editActions.append(act) 1617 self.editActions.append(act)
1618 1618
1619 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), 1619 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'),
1620 QApplication.translate('ViewManager', 'Copy current line'), 1620 QApplication.translate('ViewManager', 'Copy current line'),
1621 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), 1621 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')),
1622 0, 1622 0,
1623 self.editorActGrp, 'vm_edit_copy_current_line') 1623 self.editorActGrp, 'vm_edit_copy_current_line')
1624 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) 1624 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY)
1625 act.triggered.connect(self.esm.map) 1625 act.triggered[()].connect(self.esm.map)
1626 self.editActions.append(act) 1626 self.editActions.append(act)
1627 1627
1628 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1628 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1629 QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1629 QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1630 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, 1630 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0,
1631 self.editorActGrp, 'vm_edit_toggle_insert_overtype') 1631 self.editorActGrp, 'vm_edit_toggle_insert_overtype')
1632 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) 1632 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE)
1633 act.triggered.connect(self.esm.map) 1633 act.triggered[()].connect(self.esm.map)
1634 self.editActions.append(act) 1634 self.editActions.append(act)
1635 1635
1636 act = E5Action(QApplication.translate('ViewManager', 1636 act = E5Action(QApplication.translate('ViewManager',
1637 'Convert selection to lower case'), 1637 'Convert selection to lower case'),
1638 QApplication.translate('ViewManager', 1638 QApplication.translate('ViewManager',
1639 'Convert selection to lower case'), 1639 'Convert selection to lower case'),
1640 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), 1640 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')),
1641 0, 1641 0,
1642 self.editorActGrp, 'vm_edit_convert_selection_lower') 1642 self.editorActGrp, 'vm_edit_convert_selection_lower')
1643 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) 1643 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE)
1644 act.triggered.connect(self.esm.map) 1644 act.triggered[()].connect(self.esm.map)
1645 self.editActions.append(act) 1645 self.editActions.append(act)
1646 1646
1647 act = E5Action(QApplication.translate('ViewManager', 1647 act = E5Action(QApplication.translate('ViewManager',
1648 'Convert selection to upper case'), 1648 'Convert selection to upper case'),
1649 QApplication.translate('ViewManager', 1649 QApplication.translate('ViewManager',
1650 'Convert selection to upper case'), 1650 'Convert selection to upper case'),
1651 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')), 1651 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')),
1652 0, 1652 0,
1653 self.editorActGrp, 'vm_edit_convert_selection_upper') 1653 self.editorActGrp, 'vm_edit_convert_selection_upper')
1654 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) 1654 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE)
1655 act.triggered.connect(self.esm.map) 1655 act.triggered[()].connect(self.esm.map)
1656 self.editActions.append(act) 1656 self.editActions.append(act)
1657 1657
1658 act = E5Action(QApplication.translate('ViewManager', 1658 act = E5Action(QApplication.translate('ViewManager',
1659 'Move to end of displayed line'), 1659 'Move to end of displayed line'),
1660 QApplication.translate('ViewManager', 1660 QApplication.translate('ViewManager',
1661 'Move to end of displayed line'), 1661 'Move to end of displayed line'),
1662 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, 1662 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0,
1663 self.editorActGrp, 'vm_edit_move_end_displayed_line') 1663 self.editorActGrp, 'vm_edit_move_end_displayed_line')
1664 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) 1664 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY)
1665 act.triggered.connect(self.esm.map) 1665 act.triggered[()].connect(self.esm.map)
1666 self.editActions.append(act) 1666 self.editActions.append(act)
1667 1667
1668 act = E5Action(QApplication.translate('ViewManager', 1668 act = E5Action(QApplication.translate('ViewManager',
1669 'Extend selection to end of displayed line'), 1669 'Extend selection to end of displayed line'),
1670 QApplication.translate('ViewManager', 1670 QApplication.translate('ViewManager',
1671 'Extend selection to end of displayed line'), 1671 'Extend selection to end of displayed line'),
1672 0, 0, 1672 0, 0,
1673 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') 1673 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line')
1674 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) 1674 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND)
1675 act.triggered.connect(self.esm.map) 1675 act.triggered[()].connect(self.esm.map)
1676 self.editActions.append(act) 1676 self.editActions.append(act)
1677 1677
1678 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), 1678 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'),
1679 QApplication.translate('ViewManager', 'Formfeed'), 1679 QApplication.translate('ViewManager', 'Formfeed'),
1680 0, 0, 1680 0, 0,
1681 self.editorActGrp, 'vm_edit_formfeed') 1681 self.editorActGrp, 'vm_edit_formfeed')
1682 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) 1682 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED)
1683 act.triggered.connect(self.esm.map) 1683 act.triggered[()].connect(self.esm.map)
1684 self.editActions.append(act) 1684 self.editActions.append(act)
1685 1685
1686 act = E5Action(QApplication.translate('ViewManager', 'Escape'), 1686 act = E5Action(QApplication.translate('ViewManager', 'Escape'),
1687 QApplication.translate('ViewManager', 'Escape'), 1687 QApplication.translate('ViewManager', 'Escape'),
1688 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, 1688 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0,
1689 self.editorActGrp, 'vm_edit_escape') 1689 self.editorActGrp, 'vm_edit_escape')
1690 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) 1690 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL)
1691 act.triggered.connect(self.esm.map) 1691 act.triggered[()].connect(self.esm.map)
1692 self.editActions.append(act) 1692 self.editActions.append(act)
1693 1693
1694 act = E5Action(QApplication.translate('ViewManager', 1694 act = E5Action(QApplication.translate('ViewManager',
1695 'Extend rectangular selection down one line'), 1695 'Extend rectangular selection down one line'),
1696 QApplication.translate('ViewManager', 1696 QApplication.translate('ViewManager',
1698 QKeySequence(QApplication.translate('ViewManager', 1698 QKeySequence(QApplication.translate('ViewManager',
1699 'Alt+Ctrl+Down')), 1699 'Alt+Ctrl+Down')),
1700 0, 1700 0,
1701 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line') 1701 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line')
1702 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) 1702 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND)
1703 act.triggered.connect(self.esm.map) 1703 act.triggered[()].connect(self.esm.map)
1704 self.editActions.append(act) 1704 self.editActions.append(act)
1705 1705
1706 act = E5Action(QApplication.translate('ViewManager', 1706 act = E5Action(QApplication.translate('ViewManager',
1707 'Extend rectangular selection up one line'), 1707 'Extend rectangular selection up one line'),
1708 QApplication.translate('ViewManager', 1708 QApplication.translate('ViewManager',
1709 'Extend rectangular selection up one line'), 1709 'Extend rectangular selection up one line'),
1710 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')), 1710 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')),
1711 0, 1711 0,
1712 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line') 1712 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line')
1713 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) 1713 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND)
1714 act.triggered.connect(self.esm.map) 1714 act.triggered[()].connect(self.esm.map)
1715 self.editActions.append(act) 1715 self.editActions.append(act)
1716 1716
1717 act = E5Action(QApplication.translate('ViewManager', 1717 act = E5Action(QApplication.translate('ViewManager',
1718 'Extend rectangular selection left one character'), 1718 'Extend rectangular selection left one character'),
1719 QApplication.translate('ViewManager', 1719 QApplication.translate('ViewManager',
1721 QKeySequence(QApplication.translate('ViewManager', 1721 QKeySequence(QApplication.translate('ViewManager',
1722 'Alt+Ctrl+Left')), 1722 'Alt+Ctrl+Left')),
1723 0, 1723 0,
1724 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char') 1724 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char')
1725 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) 1725 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND)
1726 act.triggered.connect(self.esm.map) 1726 act.triggered[()].connect(self.esm.map)
1727 self.editActions.append(act) 1727 self.editActions.append(act)
1728 1728
1729 act = E5Action(QApplication.translate('ViewManager', 1729 act = E5Action(QApplication.translate('ViewManager',
1730 'Extend rectangular selection right one character'), 1730 'Extend rectangular selection right one character'),
1731 QApplication.translate('ViewManager', 1731 QApplication.translate('ViewManager',
1733 QKeySequence(QApplication.translate('ViewManager', 1733 QKeySequence(QApplication.translate('ViewManager',
1734 'Alt+Ctrl+Right')), 1734 'Alt+Ctrl+Right')),
1735 0, 1735 0,
1736 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char') 1736 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char')
1737 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) 1737 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND)
1738 act.triggered.connect(self.esm.map) 1738 act.triggered[()].connect(self.esm.map)
1739 self.editActions.append(act) 1739 self.editActions.append(act)
1740 1740
1741 act = E5Action(QApplication.translate('ViewManager', 1741 act = E5Action(QApplication.translate('ViewManager',
1742 'Extend rectangular selection to first' 1742 'Extend rectangular selection to first'
1743 ' visible character in line'), 1743 ' visible character in line'),
1748 'Alt+Ctrl+Home')), 1748 'Alt+Ctrl+Home')),
1749 0, 1749 0,
1750 self.editorActGrp, 1750 self.editorActGrp,
1751 'vm_edit_extend_rect_selection_first_visible_char') 1751 'vm_edit_extend_rect_selection_first_visible_char')
1752 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) 1752 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND)
1753 act.triggered.connect(self.esm.map) 1753 act.triggered[()].connect(self.esm.map)
1754 self.editActions.append(act) 1754 self.editActions.append(act)
1755 1755
1756 act = E5Action(QApplication.translate('ViewManager', 1756 act = E5Action(QApplication.translate('ViewManager',
1757 'Extend rectangular selection to end of line'), 1757 'Extend rectangular selection to end of line'),
1758 QApplication.translate('ViewManager', 1758 QApplication.translate('ViewManager',
1759 'Extend rectangular selection to end of line'), 1759 'Extend rectangular selection to end of line'),
1760 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')), 1760 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')),
1761 0, 1761 0,
1762 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line') 1762 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line')
1763 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) 1763 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND)
1764 act.triggered.connect(self.esm.map) 1764 act.triggered[()].connect(self.esm.map)
1765 self.editActions.append(act) 1765 self.editActions.append(act)
1766 1766
1767 act = E5Action(QApplication.translate('ViewManager', 1767 act = E5Action(QApplication.translate('ViewManager',
1768 'Extend rectangular selection up one page'), 1768 'Extend rectangular selection up one page'),
1769 QApplication.translate('ViewManager', 1769 QApplication.translate('ViewManager',
1771 QKeySequence(QApplication.translate('ViewManager', 1771 QKeySequence(QApplication.translate('ViewManager',
1772 'Alt+Ctrl+PgUp')), 1772 'Alt+Ctrl+PgUp')),
1773 0, 1773 0,
1774 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') 1774 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page')
1775 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) 1775 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND)
1776 act.triggered.connect(self.esm.map) 1776 act.triggered[()].connect(self.esm.map)
1777 self.editActions.append(act) 1777 self.editActions.append(act)
1778 1778
1779 act = E5Action(QApplication.translate('ViewManager', 1779 act = E5Action(QApplication.translate('ViewManager',
1780 'Extend rectangular selection down one page'), 1780 'Extend rectangular selection down one page'),
1781 QApplication.translate('ViewManager', 1781 QApplication.translate('ViewManager',
1783 QKeySequence(QApplication.translate('ViewManager', 1783 QKeySequence(QApplication.translate('ViewManager',
1784 'Alt+Ctrl+PgDown')), 1784 'Alt+Ctrl+PgDown')),
1785 0, 1785 0,
1786 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page') 1786 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page')
1787 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) 1787 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND)
1788 act.triggered.connect(self.esm.map) 1788 act.triggered[()].connect(self.esm.map)
1789 self.editActions.append(act) 1789 self.editActions.append(act)
1790 1790
1791 act = E5Action(QApplication.translate('ViewManager', 1791 act = E5Action(QApplication.translate('ViewManager',
1792 'Duplicate current selection'), 1792 'Duplicate current selection'),
1793 QApplication.translate('ViewManager', 1793 QApplication.translate('ViewManager',
1794 'Duplicate current selection'), 1794 'Duplicate current selection'),
1795 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')), 1795 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')),
1796 0, 1796 0,
1797 self.editorActGrp, 'vm_edit_duplicate_current_selection') 1797 self.editorActGrp, 'vm_edit_duplicate_current_selection')
1798 self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) 1798 self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE)
1799 act.triggered.connect(self.esm.map) 1799 act.triggered[()].connect(self.esm.map)
1800 self.editActions.append(act) 1800 self.editActions.append(act)
1801 1801
1802 self.editorActGrp.setEnabled(False) 1802 self.editorActGrp.setEnabled(False)
1803 1803
1804 def initEditMenu(self): 1804 def initEditMenu(self):
1922 """<b>Search</b>""" 1922 """<b>Search</b>"""
1923 """<p>Search for some text in the current editor. A""" 1923 """<p>Search for some text in the current editor. A"""
1924 """ dialog is shown to enter the searchtext and options""" 1924 """ dialog is shown to enter the searchtext and options"""
1925 """ for the search.</p>""" 1925 """ for the search.</p>"""
1926 )) 1926 ))
1927 self.searchAct.triggered.connect(self.__search) 1927 self.searchAct.triggered[()].connect(self.__search)
1928 self.searchActions.append(self.searchAct) 1928 self.searchActions.append(self.searchAct)
1929 1929
1930 self.searchNextAct = E5Action(QApplication.translate('ViewManager', 1930 self.searchNextAct = E5Action(QApplication.translate('ViewManager',
1931 'Search next'), 1931 'Search next'),
1932 UI.PixmapCache.getIcon("findNext.png"), 1932 UI.PixmapCache.getIcon("findNext.png"),
1940 self.searchNextAct.setWhatsThis(QApplication.translate('ViewManager', 1940 self.searchNextAct.setWhatsThis(QApplication.translate('ViewManager',
1941 """<b>Search next</b>""" 1941 """<b>Search next</b>"""
1942 """<p>Search the next occurrence of some text in the current editor.""" 1942 """<p>Search the next occurrence of some text in the current editor."""
1943 """ The previously entered searchtext and options are reused.</p>""" 1943 """ The previously entered searchtext and options are reused.</p>"""
1944 )) 1944 ))
1945 self.searchNextAct.triggered.connect(self.searchDlg.findNext) 1945 self.searchNextAct.triggered[()].connect(self.searchDlg.findNext)
1946 self.searchActions.append(self.searchNextAct) 1946 self.searchActions.append(self.searchNextAct)
1947 1947
1948 self.searchPrevAct = E5Action(QApplication.translate('ViewManager', 1948 self.searchPrevAct = E5Action(QApplication.translate('ViewManager',
1949 'Search previous'), 1949 'Search previous'),
1950 UI.PixmapCache.getIcon("findPrev.png"), 1950 UI.PixmapCache.getIcon("findPrev.png"),
1958 self.searchPrevAct.setWhatsThis(QApplication.translate('ViewManager', 1958 self.searchPrevAct.setWhatsThis(QApplication.translate('ViewManager',
1959 """<b>Search previous</b>""" 1959 """<b>Search previous</b>"""
1960 """<p>Search the previous occurrence of some text in the current editor.""" 1960 """<p>Search the previous occurrence of some text in the current editor."""
1961 """ The previously entered searchtext and options are reused.</p>""" 1961 """ The previously entered searchtext and options are reused.</p>"""
1962 )) 1962 ))
1963 self.searchPrevAct.triggered.connect(self.searchDlg.findPrev) 1963 self.searchPrevAct.triggered[()].connect(self.searchDlg.findPrev)
1964 self.searchActions.append(self.searchPrevAct) 1964 self.searchActions.append(self.searchPrevAct)
1965 1965
1966 self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager', 1966 self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager',
1967 'Clear search markers'), 1967 'Clear search markers'),
1968 UI.PixmapCache.getIcon("findClear.png"), 1968 UI.PixmapCache.getIcon("findClear.png"),
1975 'Clear all displayed search markers')) 1975 'Clear all displayed search markers'))
1976 self.searchClearMarkersAct.setWhatsThis(QApplication.translate('ViewManager', 1976 self.searchClearMarkersAct.setWhatsThis(QApplication.translate('ViewManager',
1977 """<b>Clear search markers</b>""" 1977 """<b>Clear search markers</b>"""
1978 """<p>Clear all displayed search markers.</p>""" 1978 """<p>Clear all displayed search markers.</p>"""
1979 )) 1979 ))
1980 self.searchClearMarkersAct.triggered.connect(self.__searchClearMarkers) 1980 self.searchClearMarkersAct.triggered[()].connect(self.__searchClearMarkers)
1981 self.searchActions.append(self.searchClearMarkersAct) 1981 self.searchActions.append(self.searchClearMarkersAct)
1982 1982
1983 self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'), 1983 self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'),
1984 QApplication.translate('ViewManager', '&Replace...'), 1984 QApplication.translate('ViewManager', '&Replace...'),
1985 QKeySequence(QApplication.translate('ViewManager', 1985 QKeySequence(QApplication.translate('ViewManager',
1992 """<b>Replace</b>""" 1992 """<b>Replace</b>"""
1993 """<p>Search for some text in the current editor and replace it. A""" 1993 """<p>Search for some text in the current editor and replace it. A"""
1994 """ dialog is shown to enter the searchtext, the replacement text""" 1994 """ dialog is shown to enter the searchtext, the replacement text"""
1995 """ and options for the search and replace.</p>""" 1995 """ and options for the search and replace.</p>"""
1996 )) 1996 ))
1997 self.replaceAct.triggered.connect(self.__replace) 1997 self.replaceAct.triggered[()].connect(self.__replace)
1998 self.searchActions.append(self.replaceAct) 1998 self.searchActions.append(self.replaceAct)
1999 1999
2000 self.quickSearchAct = E5Action(QApplication.translate('ViewManager', 2000 self.quickSearchAct = E5Action(QApplication.translate('ViewManager',
2001 'Quicksearch'), 2001 'Quicksearch'),
2002 UI.PixmapCache.getIcon("quickFindNext.png"), 2002 UI.PixmapCache.getIcon("quickFindNext.png"),
2012 """<p>This activates the quicksearch function of the IDE by""" 2012 """<p>This activates the quicksearch function of the IDE by"""
2013 """ giving focus to the quicksearch entry field. If this field""" 2013 """ giving focus to the quicksearch entry field. If this field"""
2014 """ is already active and contains text, it searches for the""" 2014 """ is already active and contains text, it searches for the"""
2015 """ next occurrence of this text.</p>""" 2015 """ next occurrence of this text.</p>"""
2016 )) 2016 ))
2017 self.quickSearchAct.triggered.connect(self.__quickSearch) 2017 self.quickSearchAct.triggered[()].connect(self.__quickSearch)
2018 self.searchActions.append(self.quickSearchAct) 2018 self.searchActions.append(self.quickSearchAct)
2019 2019
2020 self.quickSearchBackAct = E5Action(QApplication.translate('ViewManager', 2020 self.quickSearchBackAct = E5Action(QApplication.translate('ViewManager',
2021 'Quicksearch backwards'), 2021 'Quicksearch backwards'),
2022 UI.PixmapCache.getIcon("quickFindPrev.png"), 2022 UI.PixmapCache.getIcon("quickFindPrev.png"),
2028 'Perform a quicksearch backwards')) 2028 'Perform a quicksearch backwards'))
2029 self.quickSearchBackAct.setWhatsThis(QApplication.translate('ViewManager', 2029 self.quickSearchBackAct.setWhatsThis(QApplication.translate('ViewManager',
2030 """<b>Quicksearch backwards</b>""" 2030 """<b>Quicksearch backwards</b>"""
2031 """<p>This searches the previous occurrence of the quicksearch text.</p>""" 2031 """<p>This searches the previous occurrence of the quicksearch text.</p>"""
2032 )) 2032 ))
2033 self.quickSearchBackAct.triggered.connect(self.__quickSearchPrev) 2033 self.quickSearchBackAct.triggered[()].connect(self.__quickSearchPrev)
2034 self.searchActions.append(self.quickSearchBackAct) 2034 self.searchActions.append(self.quickSearchBackAct)
2035 2035
2036 self.quickSearchExtendAct = E5Action(QApplication.translate('ViewManager', 2036 self.quickSearchExtendAct = E5Action(QApplication.translate('ViewManager',
2037 'Quicksearch extend'), 2037 'Quicksearch extend'),
2038 UI.PixmapCache.getIcon("quickFindExtend.png"), 2038 UI.PixmapCache.getIcon("quickFindExtend.png"),
2046 self.quickSearchExtendAct.setWhatsThis(QApplication.translate('ViewManager', 2046 self.quickSearchExtendAct.setWhatsThis(QApplication.translate('ViewManager',
2047 """<b>Quicksearch extend</b>""" 2047 """<b>Quicksearch extend</b>"""
2048 """<p>This extends the quicksearch text to the end of the word""" 2048 """<p>This extends the quicksearch text to the end of the word"""
2049 """ currently found.</p>""" 2049 """ currently found.</p>"""
2050 )) 2050 ))
2051 self.quickSearchExtendAct.triggered.connect(self.__quickSearchExtend) 2051 self.quickSearchExtendAct.triggered[()].connect(self.__quickSearchExtend)
2052 self.searchActions.append(self.quickSearchExtendAct) 2052 self.searchActions.append(self.quickSearchExtendAct)
2053 2053
2054 self.gotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Line'), 2054 self.gotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Line'),
2055 UI.PixmapCache.getIcon("goto.png"), 2055 UI.PixmapCache.getIcon("goto.png"),
2056 QApplication.translate('ViewManager', '&Goto Line...'), 2056 QApplication.translate('ViewManager', '&Goto Line...'),
2062 self.gotoAct.setWhatsThis(QApplication.translate('ViewManager', 2062 self.gotoAct.setWhatsThis(QApplication.translate('ViewManager',
2063 """<b>Goto Line</b>""" 2063 """<b>Goto Line</b>"""
2064 """<p>Go to a specific line of text in the current editor.""" 2064 """<p>Go to a specific line of text in the current editor."""
2065 """ A dialog is shown to enter the linenumber.</p>""" 2065 """ A dialog is shown to enter the linenumber.</p>"""
2066 )) 2066 ))
2067 self.gotoAct.triggered.connect(self.__goto) 2067 self.gotoAct.triggered[()].connect(self.__goto)
2068 self.searchActions.append(self.gotoAct) 2068 self.searchActions.append(self.gotoAct)
2069 2069
2070 self.gotoBraceAct = E5Action(QApplication.translate('ViewManager', 'Goto Brace'), 2070 self.gotoBraceAct = E5Action(QApplication.translate('ViewManager', 'Goto Brace'),
2071 UI.PixmapCache.getIcon("gotoBrace.png"), 2071 UI.PixmapCache.getIcon("gotoBrace.png"),
2072 QApplication.translate('ViewManager', 'Goto &Brace'), 2072 QApplication.translate('ViewManager', 'Goto &Brace'),
2078 'Goto Brace')) 2078 'Goto Brace'))
2079 self.gotoBraceAct.setWhatsThis(QApplication.translate('ViewManager', 2079 self.gotoBraceAct.setWhatsThis(QApplication.translate('ViewManager',
2080 """<b>Goto Brace</b>""" 2080 """<b>Goto Brace</b>"""
2081 """<p>Go to the matching brace in the current editor.</p>""" 2081 """<p>Go to the matching brace in the current editor.</p>"""
2082 )) 2082 ))
2083 self.gotoBraceAct.triggered.connect(self.__gotoBrace) 2083 self.gotoBraceAct.triggered[()].connect(self.__gotoBrace)
2084 self.searchActions.append(self.gotoBraceAct) 2084 self.searchActions.append(self.gotoBraceAct)
2085 2085
2086 self.searchActGrp.setEnabled(False) 2086 self.searchActGrp.setEnabled(False)
2087 2087
2088 self.searchFilesAct = E5Action(QApplication.translate('ViewManager', 2088 self.searchFilesAct = E5Action(QApplication.translate('ViewManager',
2099 """<b>Search in Files</b>""" 2099 """<b>Search in Files</b>"""
2100 """<p>Search for some text in the files of a directory tree""" 2100 """<p>Search for some text in the files of a directory tree"""
2101 """ or the project. A dialog is shown to enter the searchtext""" 2101 """ or the project. A dialog is shown to enter the searchtext"""
2102 """ and options for the search and to display the result.</p>""" 2102 """ and options for the search and to display the result.</p>"""
2103 )) 2103 ))
2104 self.searchFilesAct.triggered.connect(self.__searchFiles) 2104 self.searchFilesAct.triggered[()].connect(self.__searchFiles)
2105 self.searchActions.append(self.searchFilesAct) 2105 self.searchActions.append(self.searchFilesAct)
2106 2106
2107 self.replaceFilesAct = E5Action(QApplication.translate('ViewManager', 2107 self.replaceFilesAct = E5Action(QApplication.translate('ViewManager',
2108 'Replace in Files'), 2108 'Replace in Files'),
2109 QApplication.translate('ViewManager', 'Replace in F&iles...'), 2109 QApplication.translate('ViewManager', 'Replace in F&iles...'),
2118 """<p>Search for some text in the files of a directory tree""" 2118 """<p>Search for some text in the files of a directory tree"""
2119 """ or the project and replace it. A dialog is shown to enter""" 2119 """ or the project and replace it. A dialog is shown to enter"""
2120 """ the searchtext, the replacement text and options for the""" 2120 """ the searchtext, the replacement text and options for the"""
2121 """ search and to display the result.</p>""" 2121 """ search and to display the result.</p>"""
2122 )) 2122 ))
2123 self.replaceFilesAct.triggered.connect(self.__replaceFiles) 2123 self.replaceFilesAct.triggered[()].connect(self.__replaceFiles)
2124 self.searchActions.append(self.replaceFilesAct) 2124 self.searchActions.append(self.replaceFilesAct)
2125 2125
2126 def initSearchToolbars(self, toolbarManager): 2126 def initSearchToolbars(self, toolbarManager):
2127 """ 2127 """
2128 Public method to create the Search toolbars 2128 Public method to create the Search toolbars
2231 'Zoom in on the text')) 2231 'Zoom in on the text'))
2232 self.zoomInAct.setWhatsThis(QApplication.translate('ViewManager', 2232 self.zoomInAct.setWhatsThis(QApplication.translate('ViewManager',
2233 """<b>Zoom in</b>""" 2233 """<b>Zoom in</b>"""
2234 """<p>Zoom in on the text. This makes the text bigger.</p>""" 2234 """<p>Zoom in on the text. This makes the text bigger.</p>"""
2235 )) 2235 ))
2236 self.zoomInAct.triggered.connect(self.__zoomIn) 2236 self.zoomInAct.triggered[()].connect(self.__zoomIn)
2237 self.viewActions.append(self.zoomInAct) 2237 self.viewActions.append(self.zoomInAct)
2238 2238
2239 self.zoomOutAct = E5Action(QApplication.translate('ViewManager', 'Zoom out'), 2239 self.zoomOutAct = E5Action(QApplication.translate('ViewManager', 'Zoom out'),
2240 UI.PixmapCache.getIcon("zoomOut.png"), 2240 UI.PixmapCache.getIcon("zoomOut.png"),
2241 QApplication.translate('ViewManager', 'Zoom &out'), 2241 QApplication.translate('ViewManager', 'Zoom &out'),
2247 'Zoom out on the text')) 2247 'Zoom out on the text'))
2248 self.zoomOutAct.setWhatsThis(QApplication.translate('ViewManager', 2248 self.zoomOutAct.setWhatsThis(QApplication.translate('ViewManager',
2249 """<b>Zoom out</b>""" 2249 """<b>Zoom out</b>"""
2250 """<p>Zoom out on the text. This makes the text smaller.</p>""" 2250 """<p>Zoom out on the text. This makes the text smaller.</p>"""
2251 )) 2251 ))
2252 self.zoomOutAct.triggered.connect(self.__zoomOut) 2252 self.zoomOutAct.triggered[()].connect(self.__zoomOut)
2253 self.viewActions.append(self.zoomOutAct) 2253 self.viewActions.append(self.zoomOutAct)
2254 2254
2255 self.zoomToAct = E5Action(QApplication.translate('ViewManager', 'Zoom'), 2255 self.zoomToAct = E5Action(QApplication.translate('ViewManager', 'Zoom'),
2256 UI.PixmapCache.getIcon("zoomTo.png"), 2256 UI.PixmapCache.getIcon("zoomTo.png"),
2257 QApplication.translate('ViewManager', '&Zoom'), 2257 QApplication.translate('ViewManager', '&Zoom'),
2264 self.zoomToAct.setWhatsThis(QApplication.translate('ViewManager', 2264 self.zoomToAct.setWhatsThis(QApplication.translate('ViewManager',
2265 """<b>Zoom</b>""" 2265 """<b>Zoom</b>"""
2266 """<p>Zoom the text. This opens a dialog where the""" 2266 """<p>Zoom the text. This opens a dialog where the"""
2267 """ desired size can be entered.</p>""" 2267 """ desired size can be entered.</p>"""
2268 )) 2268 ))
2269 self.zoomToAct.triggered.connect(self.__zoom) 2269 self.zoomToAct.triggered[()].connect(self.__zoom)
2270 self.viewActions.append(self.zoomToAct) 2270 self.viewActions.append(self.zoomToAct)
2271 2271
2272 self.toggleAllAct = E5Action(QApplication.translate('ViewManager', 2272 self.toggleAllAct = E5Action(QApplication.translate('ViewManager',
2273 'Toggle all folds'), 2273 'Toggle all folds'),
2274 QApplication.translate('ViewManager', 'Toggle &all folds'), 2274 QApplication.translate('ViewManager', 'Toggle &all folds'),
2277 'Toggle all folds')) 2277 'Toggle all folds'))
2278 self.toggleAllAct.setWhatsThis(QApplication.translate('ViewManager', 2278 self.toggleAllAct.setWhatsThis(QApplication.translate('ViewManager',
2279 """<b>Toggle all folds</b>""" 2279 """<b>Toggle all folds</b>"""
2280 """<p>Toggle all folds of the current editor.</p>""" 2280 """<p>Toggle all folds of the current editor.</p>"""
2281 )) 2281 ))
2282 self.toggleAllAct.triggered.connect(self.__toggleAll) 2282 self.toggleAllAct.triggered[()].connect(self.__toggleAll)
2283 self.viewActions.append(self.toggleAllAct) 2283 self.viewActions.append(self.toggleAllAct)
2284 2284
2285 self.toggleAllChildrenAct = \ 2285 self.toggleAllChildrenAct = \
2286 E5Action(QApplication.translate('ViewManager', 2286 E5Action(QApplication.translate('ViewManager',
2287 'Toggle all folds (including children)'), 2287 'Toggle all folds (including children)'),
2293 self.toggleAllChildrenAct.setWhatsThis(QApplication.translate('ViewManager', 2293 self.toggleAllChildrenAct.setWhatsThis(QApplication.translate('ViewManager',
2294 """<b>Toggle all folds (including children)</b>""" 2294 """<b>Toggle all folds (including children)</b>"""
2295 """<p>Toggle all folds of the current editor including""" 2295 """<p>Toggle all folds of the current editor including"""
2296 """ all children.</p>""" 2296 """ all children.</p>"""
2297 )) 2297 ))
2298 self.toggleAllChildrenAct.triggered.connect(self.__toggleAllChildren) 2298 self.toggleAllChildrenAct.triggered[()].connect(self.__toggleAllChildren)
2299 self.viewActions.append(self.toggleAllChildrenAct) 2299 self.viewActions.append(self.toggleAllChildrenAct)
2300 2300
2301 self.toggleCurrentAct = E5Action(QApplication.translate('ViewManager', 2301 self.toggleCurrentAct = E5Action(QApplication.translate('ViewManager',
2302 'Toggle current fold'), 2302 'Toggle current fold'),
2303 QApplication.translate('ViewManager', 'Toggle &current fold'), 2303 QApplication.translate('ViewManager', 'Toggle &current fold'),
2306 'Toggle current fold')) 2306 'Toggle current fold'))
2307 self.toggleCurrentAct.setWhatsThis(QApplication.translate('ViewManager', 2307 self.toggleCurrentAct.setWhatsThis(QApplication.translate('ViewManager',
2308 """<b>Toggle current fold</b>""" 2308 """<b>Toggle current fold</b>"""
2309 """<p>Toggle the folds of the current line of the current editor.</p>""" 2309 """<p>Toggle the folds of the current line of the current editor.</p>"""
2310 )) 2310 ))
2311 self.toggleCurrentAct.triggered.connect(self.__toggleCurrent) 2311 self.toggleCurrentAct.triggered[()].connect(self.__toggleCurrent)
2312 self.viewActions.append(self.toggleCurrentAct) 2312 self.viewActions.append(self.toggleCurrentAct)
2313 2313
2314 self.unhighlightAct = E5Action(QApplication.translate('ViewManager', 2314 self.unhighlightAct = E5Action(QApplication.translate('ViewManager',
2315 'Remove all highlights'), 2315 'Remove all highlights'),
2316 UI.PixmapCache.getIcon("unhighlight.png"), 2316 UI.PixmapCache.getIcon("unhighlight.png"),
2321 'Remove all highlights')) 2321 'Remove all highlights'))
2322 self.unhighlightAct.setWhatsThis(QApplication.translate('ViewManager', 2322 self.unhighlightAct.setWhatsThis(QApplication.translate('ViewManager',
2323 """<b>Remove all highlights</b>""" 2323 """<b>Remove all highlights</b>"""
2324 """<p>Remove the highlights of all editors.</p>""" 2324 """<p>Remove the highlights of all editors.</p>"""
2325 )) 2325 ))
2326 self.unhighlightAct.triggered.connect(self.unhighlight) 2326 self.unhighlightAct.triggered[()].connect(self.unhighlight)
2327 self.viewActions.append(self.unhighlightAct) 2327 self.viewActions.append(self.unhighlightAct)
2328 2328
2329 self.splitViewAct = E5Action(QApplication.translate('ViewManager', 'Split view'), 2329 self.splitViewAct = E5Action(QApplication.translate('ViewManager', 'Split view'),
2330 UI.PixmapCache.getIcon("splitVertical.png"), 2330 UI.PixmapCache.getIcon("splitVertical.png"),
2331 QApplication.translate('ViewManager', '&Split view'), 2331 QApplication.translate('ViewManager', '&Split view'),
2334 'Add a split to the view')) 2334 'Add a split to the view'))
2335 self.splitViewAct.setWhatsThis(QApplication.translate('ViewManager', 2335 self.splitViewAct.setWhatsThis(QApplication.translate('ViewManager',
2336 """<b>Split view</b>""" 2336 """<b>Split view</b>"""
2337 """<p>Add a split to the view.</p>""" 2337 """<p>Add a split to the view.</p>"""
2338 )) 2338 ))
2339 self.splitViewAct.triggered.connect(self.__splitView) 2339 self.splitViewAct.triggered[()].connect(self.__splitView)
2340 self.viewActions.append(self.splitViewAct) 2340 self.viewActions.append(self.splitViewAct)
2341 2341
2342 self.splitOrientationAct = E5Action(QApplication.translate('ViewManager', 2342 self.splitOrientationAct = E5Action(QApplication.translate('ViewManager',
2343 'Arrange horizontally'), 2343 'Arrange horizontally'),
2344 QApplication.translate('ViewManager', 2344 QApplication.translate('ViewManager',
2364 'Remove the current split')) 2364 'Remove the current split'))
2365 self.splitRemoveAct.setWhatsThis(QApplication.translate('ViewManager', 2365 self.splitRemoveAct.setWhatsThis(QApplication.translate('ViewManager',
2366 """<b>Remove split</b>""" 2366 """<b>Remove split</b>"""
2367 """<p>Remove the current split.</p>""" 2367 """<p>Remove the current split.</p>"""
2368 )) 2368 ))
2369 self.splitRemoveAct.triggered.connect(self.removeSplit) 2369 self.splitRemoveAct.triggered[()].connect(self.removeSplit)
2370 self.viewActions.append(self.splitRemoveAct) 2370 self.viewActions.append(self.splitRemoveAct)
2371 2371
2372 self.nextSplitAct = E5Action(QApplication.translate('ViewManager', 'Next split'), 2372 self.nextSplitAct = E5Action(QApplication.translate('ViewManager', 'Next split'),
2373 QApplication.translate('ViewManager', '&Next split'), 2373 QApplication.translate('ViewManager', '&Next split'),
2374 QKeySequence(QApplication.translate('ViewManager', 2374 QKeySequence(QApplication.translate('ViewManager',
2379 'Move to the next split')) 2379 'Move to the next split'))
2380 self.nextSplitAct.setWhatsThis(QApplication.translate('ViewManager', 2380 self.nextSplitAct.setWhatsThis(QApplication.translate('ViewManager',
2381 """<b>Next split</b>""" 2381 """<b>Next split</b>"""
2382 """<p>Move to the next split.</p>""" 2382 """<p>Move to the next split.</p>"""
2383 )) 2383 ))
2384 self.nextSplitAct.triggered.connect(self.nextSplit) 2384 self.nextSplitAct.triggered[()].connect(self.nextSplit)
2385 self.viewActions.append(self.nextSplitAct) 2385 self.viewActions.append(self.nextSplitAct)
2386 2386
2387 self.prevSplitAct = E5Action(QApplication.translate('ViewManager', 2387 self.prevSplitAct = E5Action(QApplication.translate('ViewManager',
2388 'Previous split'), 2388 'Previous split'),
2389 QApplication.translate('ViewManager', '&Previous split'), 2389 QApplication.translate('ViewManager', '&Previous split'),
2394 'Move to the previous split')) 2394 'Move to the previous split'))
2395 self.prevSplitAct.setWhatsThis(QApplication.translate('ViewManager', 2395 self.prevSplitAct.setWhatsThis(QApplication.translate('ViewManager',
2396 """<b>Previous split</b>""" 2396 """<b>Previous split</b>"""
2397 """<p>Move to the previous split.</p>""" 2397 """<p>Move to the previous split.</p>"""
2398 )) 2398 ))
2399 self.prevSplitAct.triggered.connect(self.prevSplit) 2399 self.prevSplitAct.triggered[()].connect(self.prevSplit)
2400 self.viewActions.append(self.prevSplitAct) 2400 self.viewActions.append(self.prevSplitAct)
2401 2401
2402 self.viewActGrp.setEnabled(False) 2402 self.viewActGrp.setEnabled(False)
2403 self.viewFoldActGrp.setEnabled(False) 2403 self.viewFoldActGrp.setEnabled(False)
2404 self.unhighlightAct.setEnabled(False) 2404 self.unhighlightAct.setEnabled(False)
2471 'Start Macro Recording')) 2471 'Start Macro Recording'))
2472 self.macroStartRecAct.setWhatsThis(QApplication.translate('ViewManager', 2472 self.macroStartRecAct.setWhatsThis(QApplication.translate('ViewManager',
2473 """<b>Start Macro Recording</b>""" 2473 """<b>Start Macro Recording</b>"""
2474 """<p>Start recording editor commands into a new macro.</p>""" 2474 """<p>Start recording editor commands into a new macro.</p>"""
2475 )) 2475 ))
2476 self.macroStartRecAct.triggered.connect(self.__macroStartRecording) 2476 self.macroStartRecAct.triggered[()].connect(self.__macroStartRecording)
2477 self.macroActions.append(self.macroStartRecAct) 2477 self.macroActions.append(self.macroStartRecAct)
2478 2478
2479 self.macroStopRecAct = E5Action(QApplication.translate('ViewManager', 2479 self.macroStopRecAct = E5Action(QApplication.translate('ViewManager',
2480 'Stop Macro Recording'), 2480 'Stop Macro Recording'),
2481 QApplication.translate('ViewManager', 2481 QApplication.translate('ViewManager',
2485 'Stop Macro Recording')) 2485 'Stop Macro Recording'))
2486 self.macroStopRecAct.setWhatsThis(QApplication.translate('ViewManager', 2486 self.macroStopRecAct.setWhatsThis(QApplication.translate('ViewManager',
2487 """<b>Stop Macro Recording</b>""" 2487 """<b>Stop Macro Recording</b>"""
2488 """<p>Stop recording editor commands into a new macro.</p>""" 2488 """<p>Stop recording editor commands into a new macro.</p>"""
2489 )) 2489 ))
2490 self.macroStopRecAct.triggered.connect(self.__macroStopRecording) 2490 self.macroStopRecAct.triggered[()].connect(self.__macroStopRecording)
2491 self.macroActions.append(self.macroStopRecAct) 2491 self.macroActions.append(self.macroStopRecAct)
2492 2492
2493 self.macroRunAct = E5Action(QApplication.translate('ViewManager', 'Run Macro'), 2493 self.macroRunAct = E5Action(QApplication.translate('ViewManager', 'Run Macro'),
2494 QApplication.translate('ViewManager', '&Run Macro'), 2494 QApplication.translate('ViewManager', '&Run Macro'),
2495 0, 0, self.macroActGrp, 'vm_macro_run') 2495 0, 0, self.macroActGrp, 'vm_macro_run')
2496 self.macroRunAct.setStatusTip(QApplication.translate('ViewManager', 'Run Macro')) 2496 self.macroRunAct.setStatusTip(QApplication.translate('ViewManager', 'Run Macro'))
2497 self.macroRunAct.setWhatsThis(QApplication.translate('ViewManager', 2497 self.macroRunAct.setWhatsThis(QApplication.translate('ViewManager',
2498 """<b>Run Macro</b>""" 2498 """<b>Run Macro</b>"""
2499 """<p>Run a previously recorded editor macro.</p>""" 2499 """<p>Run a previously recorded editor macro.</p>"""
2500 )) 2500 ))
2501 self.macroRunAct.triggered.connect(self.__macroRun) 2501 self.macroRunAct.triggered[()].connect(self.__macroRun)
2502 self.macroActions.append(self.macroRunAct) 2502 self.macroActions.append(self.macroRunAct)
2503 2503
2504 self.macroDeleteAct = E5Action(QApplication.translate('ViewManager', 2504 self.macroDeleteAct = E5Action(QApplication.translate('ViewManager',
2505 'Delete Macro'), 2505 'Delete Macro'),
2506 QApplication.translate('ViewManager', '&Delete Macro'), 2506 QApplication.translate('ViewManager', '&Delete Macro'),
2509 'Delete Macro')) 2509 'Delete Macro'))
2510 self.macroDeleteAct.setWhatsThis(QApplication.translate('ViewManager', 2510 self.macroDeleteAct.setWhatsThis(QApplication.translate('ViewManager',
2511 """<b>Delete Macro</b>""" 2511 """<b>Delete Macro</b>"""
2512 """<p>Delete a previously recorded editor macro.</p>""" 2512 """<p>Delete a previously recorded editor macro.</p>"""
2513 )) 2513 ))
2514 self.macroDeleteAct.triggered.connect(self.__macroDelete) 2514 self.macroDeleteAct.triggered[()].connect(self.__macroDelete)
2515 self.macroActions.append(self.macroDeleteAct) 2515 self.macroActions.append(self.macroDeleteAct)
2516 2516
2517 self.macroLoadAct = E5Action(QApplication.translate('ViewManager', 'Load Macro'), 2517 self.macroLoadAct = E5Action(QApplication.translate('ViewManager', 'Load Macro'),
2518 QApplication.translate('ViewManager', '&Load Macro'), 2518 QApplication.translate('ViewManager', '&Load Macro'),
2519 0, 0, self.macroActGrp, 'vm_macro_load') 2519 0, 0, self.macroActGrp, 'vm_macro_load')
2521 'Load Macro')) 2521 'Load Macro'))
2522 self.macroLoadAct.setWhatsThis(QApplication.translate('ViewManager', 2522 self.macroLoadAct.setWhatsThis(QApplication.translate('ViewManager',
2523 """<b>Load Macro</b>""" 2523 """<b>Load Macro</b>"""
2524 """<p>Load an editor macro from a file.</p>""" 2524 """<p>Load an editor macro from a file.</p>"""
2525 )) 2525 ))
2526 self.macroLoadAct.triggered.connect(self.__macroLoad) 2526 self.macroLoadAct.triggered[()].connect(self.__macroLoad)
2527 self.macroActions.append(self.macroLoadAct) 2527 self.macroActions.append(self.macroLoadAct)
2528 2528
2529 self.macroSaveAct = E5Action(QApplication.translate('ViewManager', 'Save Macro'), 2529 self.macroSaveAct = E5Action(QApplication.translate('ViewManager', 'Save Macro'),
2530 QApplication.translate('ViewManager', '&Save Macro'), 2530 QApplication.translate('ViewManager', '&Save Macro'),
2531 0, 0, self.macroActGrp, 'vm_macro_save') 2531 0, 0, self.macroActGrp, 'vm_macro_save')
2533 'Save Macro')) 2533 'Save Macro'))
2534 self.macroSaveAct.setWhatsThis(QApplication.translate('ViewManager', 2534 self.macroSaveAct.setWhatsThis(QApplication.translate('ViewManager',
2535 """<b>Save Macro</b>""" 2535 """<b>Save Macro</b>"""
2536 """<p>Save a previously recorded editor macro to a file.</p>""" 2536 """<p>Save a previously recorded editor macro to a file.</p>"""
2537 )) 2537 ))
2538 self.macroSaveAct.triggered.connect(self.__macroSave) 2538 self.macroSaveAct.triggered[()].connect(self.__macroSave)
2539 self.macroActions.append(self.macroSaveAct) 2539 self.macroActions.append(self.macroSaveAct)
2540 2540
2541 self.macroActGrp.setEnabled(False) 2541 self.macroActGrp.setEnabled(False)
2542 2542
2543 def initMacroMenu(self): 2543 def initMacroMenu(self):
2573 'Toggle Bookmark')) 2573 'Toggle Bookmark'))
2574 self.bookmarkToggleAct.setWhatsThis(QApplication.translate('ViewManager', 2574 self.bookmarkToggleAct.setWhatsThis(QApplication.translate('ViewManager',
2575 """<b>Toggle Bookmark</b>""" 2575 """<b>Toggle Bookmark</b>"""
2576 """<p>Toggle a bookmark at the current line of the current editor.</p>""" 2576 """<p>Toggle a bookmark at the current line of the current editor.</p>"""
2577 )) 2577 ))
2578 self.bookmarkToggleAct.triggered.connect(self.__toggleBookmark) 2578 self.bookmarkToggleAct.triggered[()].connect(self.__toggleBookmark)
2579 self.bookmarkActions.append(self.bookmarkToggleAct) 2579 self.bookmarkActions.append(self.bookmarkToggleAct)
2580 2580
2581 self.bookmarkNextAct = E5Action(QApplication.translate('ViewManager', 2581 self.bookmarkNextAct = E5Action(QApplication.translate('ViewManager',
2582 'Next Bookmark'), 2582 'Next Bookmark'),
2583 UI.PixmapCache.getIcon("bookmarkNext.png"), 2583 UI.PixmapCache.getIcon("bookmarkNext.png"),
2589 'Next Bookmark')) 2589 'Next Bookmark'))
2590 self.bookmarkNextAct.setWhatsThis(QApplication.translate('ViewManager', 2590 self.bookmarkNextAct.setWhatsThis(QApplication.translate('ViewManager',
2591 """<b>Next Bookmark</b>""" 2591 """<b>Next Bookmark</b>"""
2592 """<p>Go to next bookmark of the current editor.</p>""" 2592 """<p>Go to next bookmark of the current editor.</p>"""
2593 )) 2593 ))
2594 self.bookmarkNextAct.triggered.connect(self.__nextBookmark) 2594 self.bookmarkNextAct.triggered[()].connect(self.__nextBookmark)
2595 self.bookmarkActions.append(self.bookmarkNextAct) 2595 self.bookmarkActions.append(self.bookmarkNextAct)
2596 2596
2597 self.bookmarkPreviousAct = E5Action(QApplication.translate('ViewManager', 2597 self.bookmarkPreviousAct = E5Action(QApplication.translate('ViewManager',
2598 'Previous Bookmark'), 2598 'Previous Bookmark'),
2599 UI.PixmapCache.getIcon("bookmarkPrevious.png"), 2599 UI.PixmapCache.getIcon("bookmarkPrevious.png"),
2605 'Previous Bookmark')) 2605 'Previous Bookmark'))
2606 self.bookmarkPreviousAct.setWhatsThis(QApplication.translate('ViewManager', 2606 self.bookmarkPreviousAct.setWhatsThis(QApplication.translate('ViewManager',
2607 """<b>Previous Bookmark</b>""" 2607 """<b>Previous Bookmark</b>"""
2608 """<p>Go to previous bookmark of the current editor.</p>""" 2608 """<p>Go to previous bookmark of the current editor.</p>"""
2609 )) 2609 ))
2610 self.bookmarkPreviousAct.triggered.connect(self.__previousBookmark) 2610 self.bookmarkPreviousAct.triggered[()].connect(self.__previousBookmark)
2611 self.bookmarkActions.append(self.bookmarkPreviousAct) 2611 self.bookmarkActions.append(self.bookmarkPreviousAct)
2612 2612
2613 self.bookmarkClearAct = E5Action(QApplication.translate('ViewManager', 2613 self.bookmarkClearAct = E5Action(QApplication.translate('ViewManager',
2614 'Clear Bookmarks'), 2614 'Clear Bookmarks'),
2615 QApplication.translate('ViewManager', '&Clear Bookmarks'), 2615 QApplication.translate('ViewManager', '&Clear Bookmarks'),
2621 'Clear Bookmarks')) 2621 'Clear Bookmarks'))
2622 self.bookmarkClearAct.setWhatsThis(QApplication.translate('ViewManager', 2622 self.bookmarkClearAct.setWhatsThis(QApplication.translate('ViewManager',
2623 """<b>Clear Bookmarks</b>""" 2623 """<b>Clear Bookmarks</b>"""
2624 """<p>Clear bookmarks of all editors.</p>""" 2624 """<p>Clear bookmarks of all editors.</p>"""
2625 )) 2625 ))
2626 self.bookmarkClearAct.triggered.connect(self.__clearAllBookmarks) 2626 self.bookmarkClearAct.triggered[()].connect(self.__clearAllBookmarks)
2627 self.bookmarkActions.append(self.bookmarkClearAct) 2627 self.bookmarkActions.append(self.bookmarkClearAct)
2628 2628
2629 self.syntaxErrorGotoAct = E5Action(QApplication.translate('ViewManager', 2629 self.syntaxErrorGotoAct = E5Action(QApplication.translate('ViewManager',
2630 'Goto Syntax Error'), 2630 'Goto Syntax Error'),
2631 UI.PixmapCache.getIcon("syntaxErrorGoto.png"), 2631 UI.PixmapCache.getIcon("syntaxErrorGoto.png"),
2636 'Goto Syntax Error')) 2636 'Goto Syntax Error'))
2637 self.syntaxErrorGotoAct.setWhatsThis(QApplication.translate('ViewManager', 2637 self.syntaxErrorGotoAct.setWhatsThis(QApplication.translate('ViewManager',
2638 """<b>Goto Syntax Error</b>""" 2638 """<b>Goto Syntax Error</b>"""
2639 """<p>Go to next syntax error of the current editor.</p>""" 2639 """<p>Go to next syntax error of the current editor.</p>"""
2640 )) 2640 ))
2641 self.syntaxErrorGotoAct.triggered.connect(self.__gotoSyntaxError) 2641 self.syntaxErrorGotoAct.triggered[()].connect(self.__gotoSyntaxError)
2642 self.bookmarkActions.append(self.syntaxErrorGotoAct) 2642 self.bookmarkActions.append(self.syntaxErrorGotoAct)
2643 2643
2644 self.syntaxErrorClearAct = E5Action(QApplication.translate('ViewManager', 2644 self.syntaxErrorClearAct = E5Action(QApplication.translate('ViewManager',
2645 'Clear Syntax Errors'), 2645 'Clear Syntax Errors'),
2646 QApplication.translate('ViewManager', 'Clear &Syntax Errors'), 2646 QApplication.translate('ViewManager', 'Clear &Syntax Errors'),
2650 'Clear Syntax Errors')) 2650 'Clear Syntax Errors'))
2651 self.syntaxErrorClearAct.setWhatsThis(QApplication.translate('ViewManager', 2651 self.syntaxErrorClearAct.setWhatsThis(QApplication.translate('ViewManager',
2652 """<b>Clear Syntax Errors</b>""" 2652 """<b>Clear Syntax Errors</b>"""
2653 """<p>Clear syntax errors of all editors.</p>""" 2653 """<p>Clear syntax errors of all editors.</p>"""
2654 )) 2654 ))
2655 self.syntaxErrorClearAct.triggered.connect(self.__clearAllSyntaxErrors) 2655 self.syntaxErrorClearAct.triggered[()].connect(self.__clearAllSyntaxErrors)
2656 self.bookmarkActions.append(self.syntaxErrorClearAct) 2656 self.bookmarkActions.append(self.syntaxErrorClearAct)
2657 2657
2658 self.warningsNextAct = E5Action(QApplication.translate('ViewManager', 2658 self.warningsNextAct = E5Action(QApplication.translate('ViewManager',
2659 'Next warning message'), 2659 'Next warning message'),
2660 UI.PixmapCache.getIcon("warningNext.png"), 2660 UI.PixmapCache.getIcon("warningNext.png"),
2667 self.warningsNextAct.setWhatsThis(QApplication.translate('ViewManager', 2667 self.warningsNextAct.setWhatsThis(QApplication.translate('ViewManager',
2668 """<b>Next warning message</b>""" 2668 """<b>Next warning message</b>"""
2669 """<p>Go to next line of the current editor""" 2669 """<p>Go to next line of the current editor"""
2670 """ having a py3flakes warning.</p>""" 2670 """ having a py3flakes warning.</p>"""
2671 )) 2671 ))
2672 self.warningsNextAct.triggered.connect(self.__nextWarning) 2672 self.warningsNextAct.triggered[()].connect(self.__nextWarning)
2673 self.bookmarkActions.append(self.warningsNextAct) 2673 self.bookmarkActions.append(self.warningsNextAct)
2674 2674
2675 self.warningsPreviousAct = E5Action(QApplication.translate('ViewManager', 2675 self.warningsPreviousAct = E5Action(QApplication.translate('ViewManager',
2676 'Previous warning message'), 2676 'Previous warning message'),
2677 UI.PixmapCache.getIcon("warningPrev.png"), 2677 UI.PixmapCache.getIcon("warningPrev.png"),
2684 self.warningsPreviousAct.setWhatsThis(QApplication.translate('ViewManager', 2684 self.warningsPreviousAct.setWhatsThis(QApplication.translate('ViewManager',
2685 """<b>Previous warning message</b>""" 2685 """<b>Previous warning message</b>"""
2686 """<p>Go to previous line of the current editor""" 2686 """<p>Go to previous line of the current editor"""
2687 """ having a py3flakes warning.</p>""" 2687 """ having a py3flakes warning.</p>"""
2688 )) 2688 ))
2689 self.warningsPreviousAct.triggered.connect(self.__previousWarning) 2689 self.warningsPreviousAct.triggered[()].connect(self.__previousWarning)
2690 self.bookmarkActions.append(self.warningsPreviousAct) 2690 self.bookmarkActions.append(self.warningsPreviousAct)
2691 2691
2692 self.warningsClearAct = E5Action(QApplication.translate('ViewManager', 2692 self.warningsClearAct = E5Action(QApplication.translate('ViewManager',
2693 'Clear Warning Messages'), 2693 'Clear Warning Messages'),
2694 QApplication.translate('ViewManager', 2694 QApplication.translate('ViewManager',
2699 'Clear Warning Messages')) 2699 'Clear Warning Messages'))
2700 self.warningsClearAct.setWhatsThis(QApplication.translate('ViewManager', 2700 self.warningsClearAct.setWhatsThis(QApplication.translate('ViewManager',
2701 """<b>Clear Warning Messages</b>""" 2701 """<b>Clear Warning Messages</b>"""
2702 """<p>Clear py3flakes warning messages of all editors.</p>""" 2702 """<p>Clear py3flakes warning messages of all editors.</p>"""
2703 )) 2703 ))
2704 self.warningsClearAct.triggered.connect(self.__clearAllWarnings) 2704 self.warningsClearAct.triggered[()].connect(self.__clearAllWarnings)
2705 self.bookmarkActions.append(self.warningsClearAct) 2705 self.bookmarkActions.append(self.warningsClearAct)
2706 2706
2707 self.notcoveredNextAct = E5Action(QApplication.translate('ViewManager', 2707 self.notcoveredNextAct = E5Action(QApplication.translate('ViewManager',
2708 'Next uncovered line'), 2708 'Next uncovered line'),
2709 UI.PixmapCache.getIcon("notcoveredNext.png"), 2709 UI.PixmapCache.getIcon("notcoveredNext.png"),
2714 'Next uncovered line')) 2714 'Next uncovered line'))
2715 self.notcoveredNextAct.setWhatsThis(QApplication.translate('ViewManager', 2715 self.notcoveredNextAct.setWhatsThis(QApplication.translate('ViewManager',
2716 """<b>Next uncovered line</b>""" 2716 """<b>Next uncovered line</b>"""
2717 """<p>Go to next line of the current editor marked as not covered.</p>""" 2717 """<p>Go to next line of the current editor marked as not covered.</p>"""
2718 )) 2718 ))
2719 self.notcoveredNextAct.triggered.connect(self.__nextUncovered) 2719 self.notcoveredNextAct.triggered[()].connect(self.__nextUncovered)
2720 self.bookmarkActions.append(self.notcoveredNextAct) 2720 self.bookmarkActions.append(self.notcoveredNextAct)
2721 2721
2722 self.notcoveredPreviousAct = E5Action(QApplication.translate('ViewManager', 2722 self.notcoveredPreviousAct = E5Action(QApplication.translate('ViewManager',
2723 'Previous uncovered line'), 2723 'Previous uncovered line'),
2724 UI.PixmapCache.getIcon("notcoveredPrev.png"), 2724 UI.PixmapCache.getIcon("notcoveredPrev.png"),
2731 self.notcoveredPreviousAct.setWhatsThis(QApplication.translate('ViewManager', 2731 self.notcoveredPreviousAct.setWhatsThis(QApplication.translate('ViewManager',
2732 """<b>Previous uncovered line</b>""" 2732 """<b>Previous uncovered line</b>"""
2733 """<p>Go to previous line of the current editor marked""" 2733 """<p>Go to previous line of the current editor marked"""
2734 """ as not covered.</p>""" 2734 """ as not covered.</p>"""
2735 )) 2735 ))
2736 self.notcoveredPreviousAct.triggered.connect(self.__previousUncovered) 2736 self.notcoveredPreviousAct.triggered[()].connect(self.__previousUncovered)
2737 self.bookmarkActions.append(self.notcoveredPreviousAct) 2737 self.bookmarkActions.append(self.notcoveredPreviousAct)
2738 2738
2739 self.taskNextAct = E5Action(QApplication.translate('ViewManager', 2739 self.taskNextAct = E5Action(QApplication.translate('ViewManager',
2740 'Next Task'), 2740 'Next Task'),
2741 UI.PixmapCache.getIcon("taskNext.png"), 2741 UI.PixmapCache.getIcon("taskNext.png"),
2746 'Next Task')) 2746 'Next Task'))
2747 self.taskNextAct.setWhatsThis(QApplication.translate('ViewManager', 2747 self.taskNextAct.setWhatsThis(QApplication.translate('ViewManager',
2748 """<b>Next Task</b>""" 2748 """<b>Next Task</b>"""
2749 """<p>Go to next line of the current editor having a task.</p>""" 2749 """<p>Go to next line of the current editor having a task.</p>"""
2750 )) 2750 ))
2751 self.taskNextAct.triggered.connect(self.__nextTask) 2751 self.taskNextAct.triggered[()].connect(self.__nextTask)
2752 self.bookmarkActions.append(self.taskNextAct) 2752 self.bookmarkActions.append(self.taskNextAct)
2753 2753
2754 self.taskPreviousAct = E5Action(QApplication.translate('ViewManager', 2754 self.taskPreviousAct = E5Action(QApplication.translate('ViewManager',
2755 'Previous Task'), 2755 'Previous Task'),
2756 UI.PixmapCache.getIcon("taskPrev.png"), 2756 UI.PixmapCache.getIcon("taskPrev.png"),
2762 'Previous Task')) 2762 'Previous Task'))
2763 self.taskPreviousAct.setWhatsThis(QApplication.translate('ViewManager', 2763 self.taskPreviousAct.setWhatsThis(QApplication.translate('ViewManager',
2764 """<b>Previous Task</b>""" 2764 """<b>Previous Task</b>"""
2765 """<p>Go to previous line of the current editor having a task.</p>""" 2765 """<p>Go to previous line of the current editor having a task.</p>"""
2766 )) 2766 ))
2767 self.taskPreviousAct.triggered.connect(self.__previousTask) 2767 self.taskPreviousAct.triggered[()].connect(self.__previousTask)
2768 self.bookmarkActions.append(self.taskPreviousAct) 2768 self.bookmarkActions.append(self.taskPreviousAct)
2769 2769
2770 self.bookmarkActGrp.setEnabled(False) 2770 self.bookmarkActGrp.setEnabled(False)
2771 2771
2772 def initBookmarkMenu(self): 2772 def initBookmarkMenu(self):
2861 'Perform spell check of current editor')) 2861 'Perform spell check of current editor'))
2862 self.spellCheckAct.setWhatsThis(QApplication.translate('ViewManager', 2862 self.spellCheckAct.setWhatsThis(QApplication.translate('ViewManager',
2863 """<b>Spell check</b>""" 2863 """<b>Spell check</b>"""
2864 """<p>Perform a spell check of the current editor.</p>""" 2864 """<p>Perform a spell check of the current editor.</p>"""
2865 )) 2865 ))
2866 self.spellCheckAct.triggered.connect(self.__spellCheck) 2866 self.spellCheckAct.triggered[()].connect(self.__spellCheck)
2867 self.spellingActions.append(self.spellCheckAct) 2867 self.spellingActions.append(self.spellCheckAct)
2868 2868
2869 self.autoSpellCheckAct = E5Action(QApplication.translate('ViewManager', 2869 self.autoSpellCheckAct = E5Action(QApplication.translate('ViewManager',
2870 'Automatic spell checking'), 2870 'Automatic spell checking'),
2871 UI.PixmapCache.getIcon("autospellchecking.png"), 2871 UI.PixmapCache.getIcon("autospellchecking.png"),
2881 """ all editors.</p>""" 2881 """ all editors.</p>"""
2882 )) 2882 ))
2883 self.autoSpellCheckAct.setCheckable(True) 2883 self.autoSpellCheckAct.setCheckable(True)
2884 self.autoSpellCheckAct.setChecked( 2884 self.autoSpellCheckAct.setChecked(
2885 Preferences.getEditor("AutoSpellCheckingEnabled")) 2885 Preferences.getEditor("AutoSpellCheckingEnabled"))
2886 self.autoSpellCheckAct.triggered.connect(self.__setAutoSpellChecking) 2886 self.autoSpellCheckAct.triggered[()].connect(self.__setAutoSpellChecking)
2887 self.spellingActions.append(self.autoSpellCheckAct) 2887 self.spellingActions.append(self.autoSpellCheckAct)
2888 2888
2889 self.__enableSpellingActions() 2889 self.__enableSpellingActions()
2890 2890
2891 def __enableSpellingActions(self): 2891 def __enableSpellingActions(self):

eric ide

mercurial