ViewManager/ViewManager.py

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

eric ide

mercurial