ViewManager/ViewManager.py

changeset 55
b5c84934de9c
parent 53
c3eb7cc1ff8b
child 65
ca6449ba4824
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
11 11
12 from PyQt4.QtCore import * 12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import * 13 from PyQt4.QtGui import *
14 from PyQt4.Qsci import QsciScintilla 14 from PyQt4.Qsci import QsciScintilla
15 15
16 from E4Gui.E4Application import e5App 16 from E5Gui.E5Application import e5App
17 17
18 from Globals import recentNameFiles 18 from Globals import recentNameFiles
19 19
20 import Preferences 20 import Preferences
21 21
34 import Utilities 34 import Utilities
35 35
36 import UI.PixmapCache 36 import UI.PixmapCache
37 import UI.Config 37 import UI.Config
38 38
39 from E4Gui.E4Action import E4Action, createActionGroup 39 from E5Gui.E5Action import E5Action, createActionGroup
40 40
41 class QuickSearchLineEdit(QLineEdit): 41 class QuickSearchLineEdit(QLineEdit):
42 """ 42 """
43 Class implementing a line edit that reacts to newline and cancel commands. 43 Class implementing a line edit that reacts to newline and cancel commands.
44 44
191 191
192 def setSbInfo(self, sbFile, sbLine, sbPos, sbWritable, sbEncoding, sbLanguage, sbEol): 192 def setSbInfo(self, sbFile, sbLine, sbPos, sbWritable, sbEncoding, sbLanguage, sbEol):
193 """ 193 """
194 Public method to transfer statusbar info from the user interface to viewmanager. 194 Public method to transfer statusbar info from the user interface to viewmanager.
195 195
196 @param sbFile reference to the file part of the statusbar (E4SqueezeLabelPath) 196 @param sbFile reference to the file part of the statusbar (E5SqueezeLabelPath)
197 @param sbLine reference to the line number part of the statusbar (QLabel) 197 @param sbLine reference to the line number part of the statusbar (QLabel)
198 @param sbPos reference to the character position part of the statusbar (QLabel) 198 @param sbPos reference to the character position part of the statusbar (QLabel)
199 @param sbWritable reference to the writability indicator part of 199 @param sbWritable reference to the writability indicator part of
200 the statusbar (QLabel) 200 the statusbar (QLabel)
201 @param sbEncoding reference to the encoding indicator part of the 201 @param sbEncoding reference to the encoding indicator part of the
451 451
452 def __initFileActions(self): 452 def __initFileActions(self):
453 """ 453 """
454 Private method defining the user interface actions for file handling. 454 Private method defining the user interface actions for file handling.
455 """ 455 """
456 self.newAct = E4Action(QApplication.translate('ViewManager', 'New'), 456 self.newAct = E5Action(QApplication.translate('ViewManager', 'New'),
457 UI.PixmapCache.getIcon("new.png"), 457 UI.PixmapCache.getIcon("new.png"),
458 QApplication.translate('ViewManager', '&New'), 458 QApplication.translate('ViewManager', '&New'),
459 QKeySequence(QApplication.translate('ViewManager', "Ctrl+N", "File|New")), 459 QKeySequence(QApplication.translate('ViewManager', "Ctrl+N", "File|New")),
460 0, self, 'vm_file_new') 460 0, self, 'vm_file_new')
461 self.newAct.setStatusTip(\ 461 self.newAct.setStatusTip(\
465 """<p>An empty editor window will be created.</p>""" 465 """<p>An empty editor window will be created.</p>"""
466 )) 466 ))
467 self.connect(self.newAct, SIGNAL('triggered()'), self.newEditor) 467 self.connect(self.newAct, SIGNAL('triggered()'), self.newEditor)
468 self.fileActions.append(self.newAct) 468 self.fileActions.append(self.newAct)
469 469
470 self.openAct = E4Action(QApplication.translate('ViewManager', 'Open'), 470 self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'),
471 UI.PixmapCache.getIcon("open.png"), 471 UI.PixmapCache.getIcon("open.png"),
472 QApplication.translate('ViewManager', '&Open...'), 472 QApplication.translate('ViewManager', '&Open...'),
473 QKeySequence(\ 473 QKeySequence(\
474 QApplication.translate('ViewManager', "Ctrl+O", "File|Open")), 474 QApplication.translate('ViewManager', "Ctrl+O", "File|Open")),
475 0, self, 'vm_file_open') 475 0, self, 'vm_file_open')
482 self.connect(self.openAct, SIGNAL('triggered()'), self.openFiles) 482 self.connect(self.openAct, SIGNAL('triggered()'), self.openFiles)
483 self.fileActions.append(self.openAct) 483 self.fileActions.append(self.openAct)
484 484
485 self.closeActGrp = createActionGroup(self) 485 self.closeActGrp = createActionGroup(self)
486 486
487 self.closeAct = E4Action(QApplication.translate('ViewManager', 'Close'), 487 self.closeAct = E5Action(QApplication.translate('ViewManager', 'Close'),
488 UI.PixmapCache.getIcon("close.png"), 488 UI.PixmapCache.getIcon("close.png"),
489 QApplication.translate('ViewManager', '&Close'), 489 QApplication.translate('ViewManager', '&Close'),
490 QKeySequence(\ 490 QKeySequence(\
491 QApplication.translate('ViewManager', "Ctrl+W", "File|Close")), 491 QApplication.translate('ViewManager', "Ctrl+W", "File|Close")),
492 0, self.closeActGrp, 'vm_file_close') 492 0, self.closeActGrp, 'vm_file_close')
497 """<p>Close the current window.</p>""" 497 """<p>Close the current window.</p>"""
498 )) 498 ))
499 self.connect(self.closeAct, SIGNAL('triggered()'), self.closeCurrentWindow) 499 self.connect(self.closeAct, SIGNAL('triggered()'), self.closeCurrentWindow)
500 self.fileActions.append(self.closeAct) 500 self.fileActions.append(self.closeAct)
501 501
502 self.closeAllAct = E4Action(QApplication.translate('ViewManager', 'Close All'), 502 self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'),
503 QApplication.translate('ViewManager', 'Clos&e All'), 503 QApplication.translate('ViewManager', 'Clos&e All'),
504 0, 0, self.closeActGrp, 'vm_file_close_all') 504 0, 0, self.closeActGrp, 'vm_file_close_all')
505 self.closeAllAct.setStatusTip(\ 505 self.closeAllAct.setStatusTip(\
506 QApplication.translate('ViewManager', 'Close all editor windows')) 506 QApplication.translate('ViewManager', 'Close all editor windows'))
507 self.closeAllAct.setWhatsThis(QApplication.translate('ViewManager', 507 self.closeAllAct.setWhatsThis(QApplication.translate('ViewManager',
513 513
514 self.closeActGrp.setEnabled(False) 514 self.closeActGrp.setEnabled(False)
515 515
516 self.saveActGrp = createActionGroup(self) 516 self.saveActGrp = createActionGroup(self)
517 517
518 self.saveAct = E4Action(QApplication.translate('ViewManager', 'Save'), 518 self.saveAct = E5Action(QApplication.translate('ViewManager', 'Save'),
519 UI.PixmapCache.getIcon("fileSave.png"), 519 UI.PixmapCache.getIcon("fileSave.png"),
520 QApplication.translate('ViewManager', '&Save'), 520 QApplication.translate('ViewManager', '&Save'),
521 QKeySequence(\ 521 QKeySequence(\
522 QApplication.translate('ViewManager', "Ctrl+S", "File|Save")), 522 QApplication.translate('ViewManager', "Ctrl+S", "File|Save")),
523 0, self.saveActGrp, 'vm_file_save') 523 0, self.saveActGrp, 'vm_file_save')
528 """<p>Save the contents of current editor window.</p>""" 528 """<p>Save the contents of current editor window.</p>"""
529 )) 529 ))
530 self.connect(self.saveAct, SIGNAL('triggered()'), self.saveCurrentEditor) 530 self.connect(self.saveAct, SIGNAL('triggered()'), self.saveCurrentEditor)
531 self.fileActions.append(self.saveAct) 531 self.fileActions.append(self.saveAct)
532 532
533 self.saveAsAct = E4Action(QApplication.translate('ViewManager', 'Save as'), 533 self.saveAsAct = E5Action(QApplication.translate('ViewManager', 'Save as'),
534 UI.PixmapCache.getIcon("fileSaveAs.png"), 534 UI.PixmapCache.getIcon("fileSaveAs.png"),
535 QApplication.translate('ViewManager', 'Save &as...'), 535 QApplication.translate('ViewManager', 'Save &as...'),
536 QKeySequence(QApplication.translate('ViewManager', 536 QKeySequence(QApplication.translate('ViewManager',
537 "Shift+Ctrl+S", "File|Save As")), 537 "Shift+Ctrl+S", "File|Save As")),
538 0, self.saveActGrp, 'vm_file_save_as') 538 0, self.saveActGrp, 'vm_file_save_as')
544 """ The file can be entered in a file selection dialog.</p>""" 544 """ The file can be entered in a file selection dialog.</p>"""
545 )) 545 ))
546 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.saveAsCurrentEditor) 546 self.connect(self.saveAsAct, SIGNAL('triggered()'), self.saveAsCurrentEditor)
547 self.fileActions.append(self.saveAsAct) 547 self.fileActions.append(self.saveAsAct)
548 548
549 self.saveAllAct = E4Action(QApplication.translate('ViewManager', 'Save all'), 549 self.saveAllAct = E5Action(QApplication.translate('ViewManager', 'Save all'),
550 UI.PixmapCache.getIcon("fileSaveAll.png"), 550 UI.PixmapCache.getIcon("fileSaveAll.png"),
551 QApplication.translate('ViewManager', 'Save a&ll...'), 551 QApplication.translate('ViewManager', 'Save a&ll...'),
552 0, 0, self.saveActGrp, 'vm_file_save_all') 552 0, 0, self.saveActGrp, 'vm_file_save_all')
553 self.saveAllAct.setStatusTip(QApplication.translate('ViewManager', 553 self.saveAllAct.setStatusTip(QApplication.translate('ViewManager',
554 'Save all files')) 554 'Save all files'))
559 self.connect(self.saveAllAct, SIGNAL('triggered()'), self.saveAllEditors) 559 self.connect(self.saveAllAct, SIGNAL('triggered()'), self.saveAllEditors)
560 self.fileActions.append(self.saveAllAct) 560 self.fileActions.append(self.saveAllAct)
561 561
562 self.saveActGrp.setEnabled(False) 562 self.saveActGrp.setEnabled(False)
563 563
564 self.saveToProjectAct = E4Action(QApplication.translate('ViewManager', 564 self.saveToProjectAct = E5Action(QApplication.translate('ViewManager',
565 'Save to Project'), 565 'Save to Project'),
566 UI.PixmapCache.getIcon("fileSaveProject.png"), 566 UI.PixmapCache.getIcon("fileSaveProject.png"),
567 QApplication.translate('ViewManager', 'Save to Pro&ject'), 567 QApplication.translate('ViewManager', 'Save to Pro&ject'),
568 0, 0,self, 'vm_file_save_to_project') 568 0, 0,self, 'vm_file_save_to_project')
569 self.saveToProjectAct.setStatusTip(QApplication.translate('ViewManager', 569 self.saveToProjectAct.setStatusTip(QApplication.translate('ViewManager',
577 self.connect(self.saveToProjectAct, SIGNAL('triggered()'), 577 self.connect(self.saveToProjectAct, SIGNAL('triggered()'),
578 self.saveCurrentEditorToProject) 578 self.saveCurrentEditorToProject)
579 self.saveToProjectAct.setEnabled(False) 579 self.saveToProjectAct.setEnabled(False)
580 self.fileActions.append(self.saveToProjectAct) 580 self.fileActions.append(self.saveToProjectAct)
581 581
582 self.printAct = E4Action(QApplication.translate('ViewManager', 'Print'), 582 self.printAct = E5Action(QApplication.translate('ViewManager', 'Print'),
583 UI.PixmapCache.getIcon("print.png"), 583 UI.PixmapCache.getIcon("print.png"),
584 QApplication.translate('ViewManager', '&Print'), 584 QApplication.translate('ViewManager', '&Print'),
585 QKeySequence(QApplication.translate('ViewManager', 585 QKeySequence(QApplication.translate('ViewManager',
586 "Ctrl+P", "File|Print")), 586 "Ctrl+P", "File|Print")),
587 0, self, 'vm_file_print') 587 0, self, 'vm_file_print')
594 self.connect(self.printAct, SIGNAL('triggered()'), self.printCurrentEditor) 594 self.connect(self.printAct, SIGNAL('triggered()'), self.printCurrentEditor)
595 self.printAct.setEnabled(False) 595 self.printAct.setEnabled(False)
596 self.fileActions.append(self.printAct) 596 self.fileActions.append(self.printAct)
597 597
598 self.printPreviewAct = \ 598 self.printPreviewAct = \
599 E4Action(QApplication.translate('ViewManager', 'Print Preview'), 599 E5Action(QApplication.translate('ViewManager', 'Print Preview'),
600 UI.PixmapCache.getIcon("printPreview.png"), 600 UI.PixmapCache.getIcon("printPreview.png"),
601 QApplication.translate('ViewManager', 'Print Preview'), 601 QApplication.translate('ViewManager', 'Print Preview'),
602 0, 0, self, 'vm_file_print_preview') 602 0, 0, self, 'vm_file_print_preview')
603 self.printPreviewAct.setStatusTip(QApplication.translate('ViewManager', 603 self.printPreviewAct.setStatusTip(QApplication.translate('ViewManager',
604 'Print preview of the current file')) 604 'Print preview of the current file'))
609 self.connect(self.printPreviewAct, SIGNAL('triggered()'), 609 self.connect(self.printPreviewAct, SIGNAL('triggered()'),
610 self.printPreviewCurrentEditor) 610 self.printPreviewCurrentEditor)
611 self.printPreviewAct.setEnabled(False) 611 self.printPreviewAct.setEnabled(False)
612 self.fileActions.append(self.printPreviewAct) 612 self.fileActions.append(self.printPreviewAct)
613 613
614 self.findFileNameAct = E4Action(QApplication.translate('ViewManager', 614 self.findFileNameAct = E5Action(QApplication.translate('ViewManager',
615 'Search File'), 615 'Search File'),
616 QApplication.translate('ViewManager', 'Search &File...'), 616 QApplication.translate('ViewManager', 'Search &File...'),
617 QKeySequence(QApplication.translate('ViewManager', 617 QKeySequence(QApplication.translate('ViewManager',
618 "Alt+Ctrl+F", "File|Search File")), 618 "Alt+Ctrl+F", "File|Search File")),
619 0, self, 'vm_file_search_file') 619 0, self, 'vm_file_search_file')
675 675
676 def initFileToolbar(self, toolbarManager): 676 def initFileToolbar(self, toolbarManager):
677 """ 677 """
678 Public method to create the File toolbar. 678 Public method to create the File toolbar.
679 679
680 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 680 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
681 @return the generated toolbar 681 @return the generated toolbar
682 """ 682 """
683 tb = QToolBar(QApplication.translate('ViewManager', 'File'), self.ui) 683 tb = QToolBar(QApplication.translate('ViewManager', 'File'), self.ui)
684 tb.setIconSize(UI.Config.ToolBarIconSize) 684 tb.setIconSize(UI.Config.ToolBarIconSize)
685 tb.setObjectName("FileToolbar") 685 tb.setObjectName("FileToolbar")
725 """ 725 """
726 Private method defining the user interface actions for the edit commands. 726 Private method defining the user interface actions for the edit commands.
727 """ 727 """
728 self.editActGrp = createActionGroup(self) 728 self.editActGrp = createActionGroup(self)
729 729
730 self.undoAct = E4Action(QApplication.translate('ViewManager', 'Undo'), 730 self.undoAct = E5Action(QApplication.translate('ViewManager', 'Undo'),
731 UI.PixmapCache.getIcon("editUndo.png"), 731 UI.PixmapCache.getIcon("editUndo.png"),
732 QApplication.translate('ViewManager', '&Undo'), 732 QApplication.translate('ViewManager', '&Undo'),
733 QKeySequence(QApplication.translate('ViewManager', 733 QKeySequence(QApplication.translate('ViewManager',
734 "Ctrl+Z", "Edit|Undo")), 734 "Ctrl+Z", "Edit|Undo")),
735 QKeySequence(QApplication.translate('ViewManager', 735 QKeySequence(QApplication.translate('ViewManager',
742 """<p>Undo the last change done in the current editor.</p>""" 742 """<p>Undo the last change done in the current editor.</p>"""
743 )) 743 ))
744 self.connect(self.undoAct, SIGNAL('triggered()'), self.__editUndo) 744 self.connect(self.undoAct, SIGNAL('triggered()'), self.__editUndo)
745 self.editActions.append(self.undoAct) 745 self.editActions.append(self.undoAct)
746 746
747 self.redoAct = E4Action(QApplication.translate('ViewManager', 'Redo'), 747 self.redoAct = E5Action(QApplication.translate('ViewManager', 'Redo'),
748 UI.PixmapCache.getIcon("editRedo.png"), 748 UI.PixmapCache.getIcon("editRedo.png"),
749 QApplication.translate('ViewManager', '&Redo'), 749 QApplication.translate('ViewManager', '&Redo'),
750 QKeySequence(QApplication.translate('ViewManager', 750 QKeySequence(QApplication.translate('ViewManager',
751 "Ctrl+Shift+Z", "Edit|Redo")), 751 "Ctrl+Shift+Z", "Edit|Redo")),
752 0, self.editActGrp, 'vm_edit_redo') 752 0, self.editActGrp, 'vm_edit_redo')
757 """<p>Redo the last change done in the current editor.</p>""" 757 """<p>Redo the last change done in the current editor.</p>"""
758 )) 758 ))
759 self.connect(self.redoAct, SIGNAL('triggered()'), self.__editRedo) 759 self.connect(self.redoAct, SIGNAL('triggered()'), self.__editRedo)
760 self.editActions.append(self.redoAct) 760 self.editActions.append(self.redoAct)
761 761
762 self.revertAct = E4Action(QApplication.translate('ViewManager', 762 self.revertAct = E5Action(QApplication.translate('ViewManager',
763 'Revert to last saved state'), 763 'Revert to last saved state'),
764 QApplication.translate('ViewManager', 'Re&vert to last saved state'), 764 QApplication.translate('ViewManager', 'Re&vert to last saved state'),
765 QKeySequence(QApplication.translate('ViewManager', 765 QKeySequence(QApplication.translate('ViewManager',
766 "Ctrl+Y", "Edit|Revert")), 766 "Ctrl+Y", "Edit|Revert")),
767 0, 767 0,
776 self.connect(self.revertAct, SIGNAL('triggered()'), self.__editRevert) 776 self.connect(self.revertAct, SIGNAL('triggered()'), self.__editRevert)
777 self.editActions.append(self.revertAct) 777 self.editActions.append(self.revertAct)
778 778
779 self.copyActGrp = createActionGroup(self.editActGrp) 779 self.copyActGrp = createActionGroup(self.editActGrp)
780 780
781 self.cutAct = E4Action(QApplication.translate('ViewManager', 'Cut'), 781 self.cutAct = E5Action(QApplication.translate('ViewManager', 'Cut'),
782 UI.PixmapCache.getIcon("editCut.png"), 782 UI.PixmapCache.getIcon("editCut.png"),
783 QApplication.translate('ViewManager', 'Cu&t'), 783 QApplication.translate('ViewManager', 'Cu&t'),
784 QKeySequence(QApplication.translate('ViewManager', "Ctrl+X", "Edit|Cut")), 784 QKeySequence(QApplication.translate('ViewManager', "Ctrl+X", "Edit|Cut")),
785 QKeySequence(QApplication.translate('ViewManager', 785 QKeySequence(QApplication.translate('ViewManager',
786 "Shift+Del", "Edit|Cut")), 786 "Shift+Del", "Edit|Cut")),
792 """<p>Cut the selected text of the current editor to the clipboard.</p>""" 792 """<p>Cut the selected text of the current editor to the clipboard.</p>"""
793 )) 793 ))
794 self.connect(self.cutAct, SIGNAL('triggered()'), self.__editCut) 794 self.connect(self.cutAct, SIGNAL('triggered()'), self.__editCut)
795 self.editActions.append(self.cutAct) 795 self.editActions.append(self.cutAct)
796 796
797 self.copyAct = E4Action(QApplication.translate('ViewManager', 'Copy'), 797 self.copyAct = E5Action(QApplication.translate('ViewManager', 'Copy'),
798 UI.PixmapCache.getIcon("editCopy.png"), 798 UI.PixmapCache.getIcon("editCopy.png"),
799 QApplication.translate('ViewManager', '&Copy'), 799 QApplication.translate('ViewManager', '&Copy'),
800 QKeySequence(QApplication.translate('ViewManager', 800 QKeySequence(QApplication.translate('ViewManager',
801 "Ctrl+C", "Edit|Copy")), 801 "Ctrl+C", "Edit|Copy")),
802 QKeySequence(QApplication.translate('ViewManager', 802 QKeySequence(QApplication.translate('ViewManager',
809 """<p>Copy the selected text of the current editor to the clipboard.</p>""" 809 """<p>Copy the selected text of the current editor to the clipboard.</p>"""
810 )) 810 ))
811 self.connect(self.copyAct, SIGNAL('triggered()'), self.__editCopy) 811 self.connect(self.copyAct, SIGNAL('triggered()'), self.__editCopy)
812 self.editActions.append(self.copyAct) 812 self.editActions.append(self.copyAct)
813 813
814 self.pasteAct = E4Action(QApplication.translate('ViewManager', 'Paste'), 814 self.pasteAct = E5Action(QApplication.translate('ViewManager', 'Paste'),
815 UI.PixmapCache.getIcon("editPaste.png"), 815 UI.PixmapCache.getIcon("editPaste.png"),
816 QApplication.translate('ViewManager', '&Paste'), 816 QApplication.translate('ViewManager', '&Paste'),
817 QKeySequence(QApplication.translate('ViewManager', 817 QKeySequence(QApplication.translate('ViewManager',
818 "Ctrl+V", "Edit|Paste")), 818 "Ctrl+V", "Edit|Paste")),
819 QKeySequence(QApplication.translate('ViewManager', 819 QKeySequence(QApplication.translate('ViewManager',
827 """ the current editor.</p>""" 827 """ the current editor.</p>"""
828 )) 828 ))
829 self.connect(self.pasteAct, SIGNAL('triggered()'), self.__editPaste) 829 self.connect(self.pasteAct, SIGNAL('triggered()'), self.__editPaste)
830 self.editActions.append(self.pasteAct) 830 self.editActions.append(self.pasteAct)
831 831
832 self.deleteAct = E4Action(QApplication.translate('ViewManager', 'Clear'), 832 self.deleteAct = E5Action(QApplication.translate('ViewManager', 'Clear'),
833 UI.PixmapCache.getIcon("editDelete.png"), 833 UI.PixmapCache.getIcon("editDelete.png"),
834 QApplication.translate('ViewManager', 'Cl&ear'), 834 QApplication.translate('ViewManager', 'Cl&ear'),
835 QKeySequence(QApplication.translate('ViewManager', 835 QKeySequence(QApplication.translate('ViewManager',
836 "Alt+Shift+C", "Edit|Clear")), 836 "Alt+Shift+C", "Edit|Clear")),
837 0, 837 0,
843 """<p>Delete all text of the current editor.</p>""" 843 """<p>Delete all text of the current editor.</p>"""
844 )) 844 ))
845 self.connect(self.deleteAct, SIGNAL('triggered()'), self.__editDelete) 845 self.connect(self.deleteAct, SIGNAL('triggered()'), self.__editDelete)
846 self.editActions.append(self.deleteAct) 846 self.editActions.append(self.deleteAct)
847 847
848 self.indentAct = E4Action(QApplication.translate('ViewManager', 'Indent'), 848 self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'),
849 UI.PixmapCache.getIcon("editIndent.png"), 849 UI.PixmapCache.getIcon("editIndent.png"),
850 QApplication.translate('ViewManager', '&Indent'), 850 QApplication.translate('ViewManager', '&Indent'),
851 QKeySequence(QApplication.translate('ViewManager', 851 QKeySequence(QApplication.translate('ViewManager',
852 "Ctrl+I", "Edit|Indent")), 852 "Ctrl+I", "Edit|Indent")),
853 0, 853 0,
859 """ selection by one level.</p>""" 859 """ selection by one level.</p>"""
860 )) 860 ))
861 self.connect(self.indentAct, SIGNAL('triggered()'), self.__editIndent) 861 self.connect(self.indentAct, SIGNAL('triggered()'), self.__editIndent)
862 self.editActions.append(self.indentAct) 862 self.editActions.append(self.indentAct)
863 863
864 self.unindentAct = E4Action(QApplication.translate('ViewManager', 'Unindent'), 864 self.unindentAct = E5Action(QApplication.translate('ViewManager', 'Unindent'),
865 UI.PixmapCache.getIcon("editUnindent.png"), 865 UI.PixmapCache.getIcon("editUnindent.png"),
866 QApplication.translate('ViewManager', 'U&nindent'), 866 QApplication.translate('ViewManager', 'U&nindent'),
867 QKeySequence(QApplication.translate('ViewManager', 867 QKeySequence(QApplication.translate('ViewManager',
868 "Ctrl+Shift+I", "Edit|Unindent")), 868 "Ctrl+Shift+I", "Edit|Unindent")),
869 0, 869 0,
876 """ selection by one level.</p>""" 876 """ selection by one level.</p>"""
877 )) 877 ))
878 self.connect(self.unindentAct, SIGNAL('triggered()'), self.__editUnindent) 878 self.connect(self.unindentAct, SIGNAL('triggered()'), self.__editUnindent)
879 self.editActions.append(self.unindentAct) 879 self.editActions.append(self.unindentAct)
880 880
881 self.smartIndentAct = E4Action(QApplication.translate('ViewManager', 881 self.smartIndentAct = E5Action(QApplication.translate('ViewManager',
882 'Smart indent'), 882 'Smart indent'),
883 UI.PixmapCache.getIcon("editSmartIndent.png"), 883 UI.PixmapCache.getIcon("editSmartIndent.png"),
884 QApplication.translate('ViewManager', 'Smart indent'), 884 QApplication.translate('ViewManager', 'Smart indent'),
885 QKeySequence(QApplication.translate('ViewManager', 885 QKeySequence(QApplication.translate('ViewManager',
886 "Ctrl+Alt+I", "Edit|Smart indent")), 886 "Ctrl+Alt+I", "Edit|Smart indent")),
894 """ current selection smartly.</p>""" 894 """ current selection smartly.</p>"""
895 )) 895 ))
896 self.connect(self.smartIndentAct, SIGNAL('triggered()'), self.__editSmartIndent) 896 self.connect(self.smartIndentAct, SIGNAL('triggered()'), self.__editSmartIndent)
897 self.editActions.append(self.smartIndentAct) 897 self.editActions.append(self.smartIndentAct)
898 898
899 self.commentAct = E4Action(QApplication.translate('ViewManager', 'Comment'), 899 self.commentAct = E5Action(QApplication.translate('ViewManager', 'Comment'),
900 UI.PixmapCache.getIcon("editComment.png"), 900 UI.PixmapCache.getIcon("editComment.png"),
901 QApplication.translate('ViewManager', 'C&omment'), 901 QApplication.translate('ViewManager', 'C&omment'),
902 QKeySequence(QApplication.translate('ViewManager', 902 QKeySequence(QApplication.translate('ViewManager',
903 "Ctrl+M", "Edit|Comment")), 903 "Ctrl+M", "Edit|Comment")),
904 0, 904 0,
911 """ current selection.</p>""" 911 """ current selection.</p>"""
912 )) 912 ))
913 self.connect(self.commentAct, SIGNAL('triggered()'), self.__editComment) 913 self.connect(self.commentAct, SIGNAL('triggered()'), self.__editComment)
914 self.editActions.append(self.commentAct) 914 self.editActions.append(self.commentAct)
915 915
916 self.uncommentAct = E4Action(QApplication.translate('ViewManager', 'Uncomment'), 916 self.uncommentAct = E5Action(QApplication.translate('ViewManager', 'Uncomment'),
917 UI.PixmapCache.getIcon("editUncomment.png"), 917 UI.PixmapCache.getIcon("editUncomment.png"),
918 QApplication.translate('ViewManager', 'Unco&mment'), 918 QApplication.translate('ViewManager', 'Unco&mment'),
919 QKeySequence(QApplication.translate('ViewManager', 919 QKeySequence(QApplication.translate('ViewManager',
920 "Alt+Ctrl+M", "Edit|Uncomment")), 920 "Alt+Ctrl+M", "Edit|Uncomment")),
921 0, 921 0,
928 """ current selection.</p>""" 928 """ current selection.</p>"""
929 )) 929 ))
930 self.connect(self.uncommentAct, SIGNAL('triggered()'), self.__editUncomment) 930 self.connect(self.uncommentAct, SIGNAL('triggered()'), self.__editUncomment)
931 self.editActions.append(self.uncommentAct) 931 self.editActions.append(self.uncommentAct)
932 932
933 self.streamCommentAct = E4Action(QApplication.translate('ViewManager', 933 self.streamCommentAct = E5Action(QApplication.translate('ViewManager',
934 'Stream Comment'), 934 'Stream Comment'),
935 QApplication.translate('ViewManager', 'Stream Comment'), 935 QApplication.translate('ViewManager', 'Stream Comment'),
936 0, 0, self.editActGrp, 'vm_edit_stream_comment') 936 0, 0, self.editActGrp, 'vm_edit_stream_comment')
937 self.streamCommentAct.setStatusTip(QApplication.translate('ViewManager', 937 self.streamCommentAct.setStatusTip(QApplication.translate('ViewManager',
938 'Stream Comment Line or Selection')) 938 'Stream Comment Line or Selection'))
942 )) 942 ))
943 self.connect(self.streamCommentAct, SIGNAL('triggered()'), 943 self.connect(self.streamCommentAct, SIGNAL('triggered()'),
944 self.__editStreamComment) 944 self.__editStreamComment)
945 self.editActions.append(self.streamCommentAct) 945 self.editActions.append(self.streamCommentAct)
946 946
947 self.boxCommentAct = E4Action(QApplication.translate('ViewManager', 947 self.boxCommentAct = E5Action(QApplication.translate('ViewManager',
948 'Box Comment'), 948 'Box Comment'),
949 QApplication.translate('ViewManager', 'Box Comment'), 949 QApplication.translate('ViewManager', 'Box Comment'),
950 0, 0, self.editActGrp, 'vm_edit_box_comment') 950 0, 0, self.editActGrp, 'vm_edit_box_comment')
951 self.boxCommentAct.setStatusTip(QApplication.translate('ViewManager', 951 self.boxCommentAct.setStatusTip(QApplication.translate('ViewManager',
952 'Box Comment Line or Selection')) 952 'Box Comment Line or Selection'))
956 """ current selection.</p>""" 956 """ current selection.</p>"""
957 )) 957 ))
958 self.connect(self.boxCommentAct, SIGNAL('triggered()'), self.__editBoxComment) 958 self.connect(self.boxCommentAct, SIGNAL('triggered()'), self.__editBoxComment)
959 self.editActions.append(self.boxCommentAct) 959 self.editActions.append(self.boxCommentAct)
960 960
961 self.selectBraceAct = E4Action(QApplication.translate('ViewManager', 961 self.selectBraceAct = E5Action(QApplication.translate('ViewManager',
962 'Select to brace'), 962 'Select to brace'),
963 QApplication.translate('ViewManager', 'Select to &brace'), 963 QApplication.translate('ViewManager', 'Select to &brace'),
964 QKeySequence(QApplication.translate('ViewManager', 964 QKeySequence(QApplication.translate('ViewManager',
965 "Ctrl+E", "Edit|Select to brace")), 965 "Ctrl+E", "Edit|Select to brace")),
966 0, 966 0,
972 """<p>Select text of the current editor to the matching brace.</p>""" 972 """<p>Select text of the current editor to the matching brace.</p>"""
973 )) 973 ))
974 self.connect(self.selectBraceAct, SIGNAL('triggered()'), self.__editSelectBrace) 974 self.connect(self.selectBraceAct, SIGNAL('triggered()'), self.__editSelectBrace)
975 self.editActions.append(self.selectBraceAct) 975 self.editActions.append(self.selectBraceAct)
976 976
977 self.selectAllAct = E4Action(QApplication.translate('ViewManager', 'Select all'), 977 self.selectAllAct = E5Action(QApplication.translate('ViewManager', 'Select all'),
978 QApplication.translate('ViewManager', '&Select all'), 978 QApplication.translate('ViewManager', '&Select all'),
979 QKeySequence(QApplication.translate('ViewManager', 979 QKeySequence(QApplication.translate('ViewManager',
980 "Ctrl+A", "Edit|Select all")), 980 "Ctrl+A", "Edit|Select all")),
981 0, 981 0,
982 self.editActGrp, 'vm_edit_select_all') 982 self.editActGrp, 'vm_edit_select_all')
987 """<p>Select all text of the current editor.</p>""" 987 """<p>Select all text of the current editor.</p>"""
988 )) 988 ))
989 self.connect(self.selectAllAct, SIGNAL('triggered()'), self.__editSelectAll) 989 self.connect(self.selectAllAct, SIGNAL('triggered()'), self.__editSelectAll)
990 self.editActions.append(self.selectAllAct) 990 self.editActions.append(self.selectAllAct)
991 991
992 self.deselectAllAct = E4Action(QApplication.translate('ViewManager', 992 self.deselectAllAct = E5Action(QApplication.translate('ViewManager',
993 'Deselect all'), 993 'Deselect all'),
994 QApplication.translate('ViewManager', '&Deselect all'), 994 QApplication.translate('ViewManager', '&Deselect all'),
995 QKeySequence(QApplication.translate('ViewManager', 995 QKeySequence(QApplication.translate('ViewManager',
996 "Alt+Ctrl+A", "Edit|Deselect all")), 996 "Alt+Ctrl+A", "Edit|Deselect all")),
997 0, 997 0,
1003 """<p>Deselect all text of the current editor.</p>""" 1003 """<p>Deselect all text of the current editor.</p>"""
1004 )) 1004 ))
1005 self.connect(self.deselectAllAct, SIGNAL('triggered()'), self.__editDeselectAll) 1005 self.connect(self.deselectAllAct, SIGNAL('triggered()'), self.__editDeselectAll)
1006 self.editActions.append(self.deselectAllAct) 1006 self.editActions.append(self.deselectAllAct)
1007 1007
1008 self.convertEOLAct = E4Action(QApplication.translate('ViewManager', 1008 self.convertEOLAct = E5Action(QApplication.translate('ViewManager',
1009 'Convert Line End Characters'), 1009 'Convert Line End Characters'),
1010 QApplication.translate('ViewManager', 'Convert &Line End Characters'), 1010 QApplication.translate('ViewManager', 'Convert &Line End Characters'),
1011 0, 0, self.editActGrp, 'vm_edit_convert_eol') 1011 0, 0, self.editActGrp, 'vm_edit_convert_eol')
1012 self.convertEOLAct.setStatusTip(QApplication.translate('ViewManager', 1012 self.convertEOLAct.setStatusTip(QApplication.translate('ViewManager',
1013 'Convert Line End Characters')) 1013 'Convert Line End Characters'))
1016 """<p>Convert the line end characters to the currently set type.</p>""" 1016 """<p>Convert the line end characters to the currently set type.</p>"""
1017 )) 1017 ))
1018 self.connect(self.convertEOLAct, SIGNAL('triggered()'), self.__convertEOL) 1018 self.connect(self.convertEOLAct, SIGNAL('triggered()'), self.__convertEOL)
1019 self.editActions.append(self.convertEOLAct) 1019 self.editActions.append(self.convertEOLAct)
1020 1020
1021 self.shortenEmptyAct = E4Action(QApplication.translate('ViewManager', 1021 self.shortenEmptyAct = E5Action(QApplication.translate('ViewManager',
1022 'Shorten empty lines'), 1022 'Shorten empty lines'),
1023 QApplication.translate('ViewManager', 'Shorten empty lines'), 1023 QApplication.translate('ViewManager', 'Shorten empty lines'),
1024 0, 0, self.editActGrp, 'vm_edit_shorten_empty_lines') 1024 0, 0, self.editActGrp, 'vm_edit_shorten_empty_lines')
1025 self.shortenEmptyAct.setStatusTip(QApplication.translate('ViewManager', 1025 self.shortenEmptyAct.setStatusTip(QApplication.translate('ViewManager',
1026 'Shorten empty lines')) 1026 'Shorten empty lines'))
1030 )) 1030 ))
1031 self.connect(self.shortenEmptyAct, SIGNAL('triggered()'), 1031 self.connect(self.shortenEmptyAct, SIGNAL('triggered()'),
1032 self.__shortenEmptyLines) 1032 self.__shortenEmptyLines)
1033 self.editActions.append(self.shortenEmptyAct) 1033 self.editActions.append(self.shortenEmptyAct)
1034 1034
1035 self.autoCompleteAct = E4Action(QApplication.translate('ViewManager', 1035 self.autoCompleteAct = E5Action(QApplication.translate('ViewManager',
1036 'Autocomplete'), 1036 'Autocomplete'),
1037 QApplication.translate('ViewManager', '&Autocomplete'), 1037 QApplication.translate('ViewManager', '&Autocomplete'),
1038 QKeySequence(QApplication.translate('ViewManager', 1038 QKeySequence(QApplication.translate('ViewManager',
1039 "Ctrl+Space", "Edit|Autocomplete")), 1039 "Ctrl+Space", "Edit|Autocomplete")),
1040 0, 1040 0,
1046 """<p>Performs an autocompletion of the word containing the cursor.</p>""" 1046 """<p>Performs an autocompletion of the word containing the cursor.</p>"""
1047 )) 1047 ))
1048 self.connect(self.autoCompleteAct, SIGNAL('triggered()'), self.__editAutoComplete) 1048 self.connect(self.autoCompleteAct, SIGNAL('triggered()'), self.__editAutoComplete)
1049 self.editActions.append(self.autoCompleteAct) 1049 self.editActions.append(self.autoCompleteAct)
1050 1050
1051 self.autoCompleteFromDocAct = E4Action(QApplication.translate('ViewManager', 1051 self.autoCompleteFromDocAct = E5Action(QApplication.translate('ViewManager',
1052 'Autocomplete from Document'), 1052 'Autocomplete from Document'),
1053 QApplication.translate('ViewManager', 'Autocomplete from Document'), 1053 QApplication.translate('ViewManager', 'Autocomplete from Document'),
1054 QKeySequence(QApplication.translate('ViewManager', "Ctrl+Shift+Space", 1054 QKeySequence(QApplication.translate('ViewManager', "Ctrl+Shift+Space",
1055 "Edit|Autocomplete from Document")), 1055 "Edit|Autocomplete from Document")),
1056 0, self.editActGrp, 'vm_edit_autocomplete_from_document') 1056 0, self.editActGrp, 'vm_edit_autocomplete_from_document')
1063 )) 1063 ))
1064 self.connect(self.autoCompleteFromDocAct, SIGNAL('triggered()'), 1064 self.connect(self.autoCompleteFromDocAct, SIGNAL('triggered()'),
1065 self.__editAutoCompleteFromDoc) 1065 self.__editAutoCompleteFromDoc)
1066 self.editActions.append(self.autoCompleteFromDocAct) 1066 self.editActions.append(self.autoCompleteFromDocAct)
1067 1067
1068 self.autoCompleteFromAPIsAct = E4Action(QApplication.translate('ViewManager', 1068 self.autoCompleteFromAPIsAct = E5Action(QApplication.translate('ViewManager',
1069 'Autocomplete from APIs'), 1069 'Autocomplete from APIs'),
1070 QApplication.translate('ViewManager', 'Autocomplete from APIs'), 1070 QApplication.translate('ViewManager', 'Autocomplete from APIs'),
1071 QKeySequence(QApplication.translate('ViewManager', "Ctrl+Alt+Space", 1071 QKeySequence(QApplication.translate('ViewManager', "Ctrl+Alt+Space",
1072 "Edit|Autocomplete from APIs")), 1072 "Edit|Autocomplete from APIs")),
1073 0, self.editActGrp, 'vm_edit_autocomplete_from_api') 1073 0, self.editActGrp, 'vm_edit_autocomplete_from_api')
1080 )) 1080 ))
1081 self.connect(self.autoCompleteFromAPIsAct, SIGNAL('triggered()'), 1081 self.connect(self.autoCompleteFromAPIsAct, SIGNAL('triggered()'),
1082 self.__editAutoCompleteFromAPIs) 1082 self.__editAutoCompleteFromAPIs)
1083 self.editActions.append(self.autoCompleteFromAPIsAct) 1083 self.editActions.append(self.autoCompleteFromAPIsAct)
1084 1084
1085 self.autoCompleteFromAllAct = E4Action(\ 1085 self.autoCompleteFromAllAct = E5Action(\
1086 QApplication.translate('ViewManager', 1086 QApplication.translate('ViewManager',
1087 'Autocomplete from Document and APIs'), 1087 'Autocomplete from Document and APIs'),
1088 QApplication.translate('ViewManager', 1088 QApplication.translate('ViewManager',
1089 'Autocomplete from Document and APIs'), 1089 'Autocomplete from Document and APIs'),
1090 QKeySequence(QApplication.translate('ViewManager', "Alt+Shift+Space", 1090 QKeySequence(QApplication.translate('ViewManager', "Alt+Shift+Space",
1099 )) 1099 ))
1100 self.connect(self.autoCompleteFromAllAct, SIGNAL('triggered()'), 1100 self.connect(self.autoCompleteFromAllAct, SIGNAL('triggered()'),
1101 self.__editAutoCompleteFromAll) 1101 self.__editAutoCompleteFromAll)
1102 self.editActions.append(self.autoCompleteFromAllAct) 1102 self.editActions.append(self.autoCompleteFromAllAct)
1103 1103
1104 self.calltipsAct = E4Action(QApplication.translate('ViewManager', 1104 self.calltipsAct = E5Action(QApplication.translate('ViewManager',
1105 'Calltip'), 1105 'Calltip'),
1106 QApplication.translate('ViewManager', '&Calltip'), 1106 QApplication.translate('ViewManager', '&Calltip'),
1107 QKeySequence(QApplication.translate('ViewManager', 1107 QKeySequence(QApplication.translate('ViewManager',
1108 "Alt+Space", "Edit|Calltip")), 1108 "Alt+Space", "Edit|Calltip")),
1109 0, 1109 0,
1128 self.esm = QSignalMapper(self) 1128 self.esm = QSignalMapper(self)
1129 self.connect(self.esm, SIGNAL('mapped(int)'), self.__editorCommand) 1129 self.connect(self.esm, SIGNAL('mapped(int)'), self.__editorCommand)
1130 1130
1131 self.editorActGrp = createActionGroup(self.editActGrp) 1131 self.editorActGrp = createActionGroup(self.editActGrp)
1132 1132
1133 act = E4Action(QApplication.translate('ViewManager', 'Move left one character'), 1133 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'),
1134 QApplication.translate('ViewManager', 'Move left one character'), 1134 QApplication.translate('ViewManager', 'Move left one character'),
1135 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, 1135 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0,
1136 self.editorActGrp, 'vm_edit_move_left_char') 1136 self.editorActGrp, 'vm_edit_move_left_char')
1137 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) 1137 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT)
1138 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1138 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1139 self.editActions.append(act) 1139 self.editActions.append(act)
1140 1140
1141 act = E4Action(QApplication.translate('ViewManager', 'Move right one character'), 1141 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'),
1142 QApplication.translate('ViewManager', 'Move right one character'), 1142 QApplication.translate('ViewManager', 'Move right one character'),
1143 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, 1143 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0,
1144 self.editorActGrp, 'vm_edit_move_right_char') 1144 self.editorActGrp, 'vm_edit_move_right_char')
1145 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) 1145 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT)
1146 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1146 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1147 self.editActions.append(act) 1147 self.editActions.append(act)
1148 1148
1149 act = E4Action(QApplication.translate('ViewManager', 'Move up one line'), 1149 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'),
1150 QApplication.translate('ViewManager', 'Move up one line'), 1150 QApplication.translate('ViewManager', 'Move up one line'),
1151 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, 1151 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0,
1152 self.editorActGrp, 'vm_edit_move_up_line') 1152 self.editorActGrp, 'vm_edit_move_up_line')
1153 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) 1153 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP)
1154 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1154 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1155 self.editActions.append(act) 1155 self.editActions.append(act)
1156 1156
1157 act = E4Action(QApplication.translate('ViewManager', 'Move down one line'), 1157 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'),
1158 QApplication.translate('ViewManager', 'Move down one line'), 1158 QApplication.translate('ViewManager', 'Move down one line'),
1159 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, 1159 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0,
1160 self.editorActGrp, 'vm_edit_move_down_line') 1160 self.editorActGrp, 'vm_edit_move_down_line')
1161 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) 1161 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN)
1162 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1162 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1163 self.editActions.append(act) 1163 self.editActions.append(act)
1164 1164
1165 act = E4Action(QApplication.translate('ViewManager', 'Move left one word part'), 1165 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'),
1166 QApplication.translate('ViewManager', 'Move left one word part'), 1166 QApplication.translate('ViewManager', 'Move left one word part'),
1167 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, 1167 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0,
1168 self.editorActGrp, 'vm_edit_move_left_word_part') 1168 self.editorActGrp, 'vm_edit_move_left_word_part')
1169 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) 1169 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT)
1170 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1170 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1171 self.editActions.append(act) 1171 self.editActions.append(act)
1172 1172
1173 act = E4Action(QApplication.translate('ViewManager', 'Move right one word part'), 1173 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'),
1174 QApplication.translate('ViewManager', 'Move right one word part'), 1174 QApplication.translate('ViewManager', 'Move right one word part'),
1175 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, 1175 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0,
1176 self.editorActGrp, 'vm_edit_move_right_word_part') 1176 self.editorActGrp, 'vm_edit_move_right_word_part')
1177 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) 1177 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT)
1178 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1178 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1179 self.editActions.append(act) 1179 self.editActions.append(act)
1180 1180
1181 act = E4Action(QApplication.translate('ViewManager', 'Move left one word'), 1181 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'),
1182 QApplication.translate('ViewManager', 'Move left one word'), 1182 QApplication.translate('ViewManager', 'Move left one word'),
1183 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, 1183 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0,
1184 self.editorActGrp, 'vm_edit_move_left_word') 1184 self.editorActGrp, 'vm_edit_move_left_word')
1185 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) 1185 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT)
1186 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1186 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1187 self.editActions.append(act) 1187 self.editActions.append(act)
1188 1188
1189 act = E4Action(QApplication.translate('ViewManager', 'Move right one word'), 1189 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'),
1190 QApplication.translate('ViewManager', 'Move right one word'), 1190 QApplication.translate('ViewManager', 'Move right one word'),
1191 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), 1191 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')),
1192 0, 1192 0,
1193 self.editorActGrp, 'vm_edit_move_right_word') 1193 self.editorActGrp, 'vm_edit_move_right_word')
1194 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) 1194 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT)
1195 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1195 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1196 self.editActions.append(act) 1196 self.editActions.append(act)
1197 1197
1198 act = E4Action(QApplication.translate('ViewManager', 1198 act = E5Action(QApplication.translate('ViewManager',
1199 'Move to first visible character in line'), 1199 'Move to first visible character in line'),
1200 QApplication.translate('ViewManager', 1200 QApplication.translate('ViewManager',
1201 'Move to first visible character in line'), 1201 'Move to first visible character in line'),
1202 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, 1202 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0,
1203 self.editorActGrp, 'vm_edit_move_first_visible_char') 1203 self.editorActGrp, 'vm_edit_move_first_visible_char')
1204 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) 1204 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME)
1205 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1205 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1206 self.editActions.append(act) 1206 self.editActions.append(act)
1207 1207
1208 act = E4Action(QApplication.translate('ViewManager', 1208 act = E5Action(QApplication.translate('ViewManager',
1209 'Move to start of displayed line'), 1209 'Move to start of displayed line'),
1210 QApplication.translate('ViewManager', 1210 QApplication.translate('ViewManager',
1211 'Move to start of displayed line'), 1211 'Move to start of displayed line'),
1212 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, 1212 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0,
1213 self.editorActGrp, 'vm_edit_move_start_line') 1213 self.editorActGrp, 'vm_edit_move_start_line')
1214 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) 1214 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY)
1215 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1215 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1216 self.editActions.append(act) 1216 self.editActions.append(act)
1217 1217
1218 act = E4Action(QApplication.translate('ViewManager', 'Move to end of line'), 1218 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'),
1219 QApplication.translate('ViewManager', 'Move to end of line'), 1219 QApplication.translate('ViewManager', 'Move to end of line'),
1220 QKeySequence(QApplication.translate('ViewManager', 'End')), 0, 1220 QKeySequence(QApplication.translate('ViewManager', 'End')), 0,
1221 self.editorActGrp, 'vm_edit_move_end_line') 1221 self.editorActGrp, 'vm_edit_move_end_line')
1222 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) 1222 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND)
1223 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1223 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1224 self.editActions.append(act) 1224 self.editActions.append(act)
1225 1225
1226 act = E4Action(QApplication.translate('ViewManager', 'Scroll view down one line'), 1226 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'),
1227 QApplication.translate('ViewManager', 'Scroll view down one line'), 1227 QApplication.translate('ViewManager', 'Scroll view down one line'),
1228 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, 1228 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0,
1229 self.editorActGrp, 'vm_edit_scroll_down_line') 1229 self.editorActGrp, 'vm_edit_scroll_down_line')
1230 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) 1230 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN)
1231 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1231 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1232 self.editActions.append(act) 1232 self.editActions.append(act)
1233 1233
1234 act = E4Action(QApplication.translate('ViewManager', 'Scroll view up one line'), 1234 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'),
1235 QApplication.translate('ViewManager', 'Scroll view up one line'), 1235 QApplication.translate('ViewManager', 'Scroll view up one line'),
1236 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, 1236 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0,
1237 self.editorActGrp, 'vm_edit_scroll_up_line') 1237 self.editorActGrp, 'vm_edit_scroll_up_line')
1238 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) 1238 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP)
1239 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1239 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1240 self.editActions.append(act) 1240 self.editActions.append(act)
1241 1241
1242 act = E4Action(QApplication.translate('ViewManager', 'Move up one paragraph'), 1242 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'),
1243 QApplication.translate('ViewManager', 'Move up one paragraph'), 1243 QApplication.translate('ViewManager', 'Move up one paragraph'),
1244 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, 1244 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0,
1245 self.editorActGrp, 'vm_edit_move_up_para') 1245 self.editorActGrp, 'vm_edit_move_up_para')
1246 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) 1246 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP)
1247 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1247 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1248 self.editActions.append(act) 1248 self.editActions.append(act)
1249 1249
1250 act = E4Action(QApplication.translate('ViewManager', 'Move down one paragraph'), 1250 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'),
1251 QApplication.translate('ViewManager', 'Move down one paragraph'), 1251 QApplication.translate('ViewManager', 'Move down one paragraph'),
1252 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, 1252 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0,
1253 self.editorActGrp, 'vm_edit_move_down_para') 1253 self.editorActGrp, 'vm_edit_move_down_para')
1254 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) 1254 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN)
1255 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1255 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1256 self.editActions.append(act) 1256 self.editActions.append(act)
1257 1257
1258 act = E4Action(QApplication.translate('ViewManager', 'Move up one page'), 1258 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'),
1259 QApplication.translate('ViewManager', 'Move up one page'), 1259 QApplication.translate('ViewManager', 'Move up one page'),
1260 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, 1260 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0,
1261 self.editorActGrp, 'vm_edit_move_up_page') 1261 self.editorActGrp, 'vm_edit_move_up_page')
1262 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) 1262 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP)
1263 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1263 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1264 self.editActions.append(act) 1264 self.editActions.append(act)
1265 1265
1266 act = E4Action(QApplication.translate('ViewManager', 'Move down one page'), 1266 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'),
1267 QApplication.translate('ViewManager', 'Move down one page'), 1267 QApplication.translate('ViewManager', 'Move down one page'),
1268 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, 1268 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0,
1269 self.editorActGrp, 'vm_edit_move_down_page') 1269 self.editorActGrp, 'vm_edit_move_down_page')
1270 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) 1270 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN)
1271 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1271 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1272 self.editActions.append(act) 1272 self.editActions.append(act)
1273 1273
1274 act = E4Action(QApplication.translate('ViewManager', 'Move to start of text'), 1274 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'),
1275 QApplication.translate('ViewManager', 'Move to start of text'), 1275 QApplication.translate('ViewManager', 'Move to start of text'),
1276 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, 1276 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0,
1277 self.editorActGrp, 'vm_edit_move_start_text') 1277 self.editorActGrp, 'vm_edit_move_start_text')
1278 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) 1278 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART)
1279 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1279 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1280 self.editActions.append(act) 1280 self.editActions.append(act)
1281 1281
1282 act = E4Action(QApplication.translate('ViewManager', 'Move to end of text'), 1282 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'),
1283 QApplication.translate('ViewManager', 'Move to end of text'), 1283 QApplication.translate('ViewManager', 'Move to end of text'),
1284 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, 1284 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0,
1285 self.editorActGrp, 'vm_edit_move_end_text') 1285 self.editorActGrp, 'vm_edit_move_end_text')
1286 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) 1286 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND)
1287 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1287 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1288 self.editActions.append(act) 1288 self.editActions.append(act)
1289 1289
1290 act = E4Action(QApplication.translate('ViewManager', 'Indent one level'), 1290 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'),
1291 QApplication.translate('ViewManager', 'Indent one level'), 1291 QApplication.translate('ViewManager', 'Indent one level'),
1292 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, 1292 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0,
1293 self.editorActGrp, 'vm_edit_indent_one_level') 1293 self.editorActGrp, 'vm_edit_indent_one_level')
1294 self.esm.setMapping(act, QsciScintilla.SCI_TAB) 1294 self.esm.setMapping(act, QsciScintilla.SCI_TAB)
1295 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1295 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1296 self.editActions.append(act) 1296 self.editActions.append(act)
1297 1297
1298 act = E4Action(QApplication.translate('ViewManager', 'Unindent one level'), 1298 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'),
1299 QApplication.translate('ViewManager', 'Unindent one level'), 1299 QApplication.translate('ViewManager', 'Unindent one level'),
1300 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, 1300 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0,
1301 self.editorActGrp, 'vm_edit_unindent_one_level') 1301 self.editorActGrp, 'vm_edit_unindent_one_level')
1302 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) 1302 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB)
1303 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1303 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1304 self.editActions.append(act) 1304 self.editActions.append(act)
1305 1305
1306 act = E4Action(QApplication.translate('ViewManager', 1306 act = E5Action(QApplication.translate('ViewManager',
1307 'Extend selection left one character'), 1307 'Extend selection left one character'),
1308 QApplication.translate('ViewManager', 1308 QApplication.translate('ViewManager',
1309 'Extend selection left one character'), 1309 'Extend selection left one character'),
1310 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')), 1310 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')),
1311 0, 1311 0,
1312 self.editorActGrp, 'vm_edit_extend_selection_left_char') 1312 self.editorActGrp, 'vm_edit_extend_selection_left_char')
1313 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) 1313 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND)
1314 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1314 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1315 self.editActions.append(act) 1315 self.editActions.append(act)
1316 1316
1317 act = E4Action(QApplication.translate('ViewManager', 1317 act = E5Action(QApplication.translate('ViewManager',
1318 'Extend selection right one character'), 1318 'Extend selection right one character'),
1319 QApplication.translate('ViewManager', 1319 QApplication.translate('ViewManager',
1320 'Extend selection right one character'), 1320 'Extend selection right one character'),
1321 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')), 1321 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')),
1322 0, 1322 0,
1323 self.editorActGrp, 'vm_edit_extend_selection_right_char') 1323 self.editorActGrp, 'vm_edit_extend_selection_right_char')
1324 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) 1324 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND)
1325 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1325 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1326 self.editActions.append(act) 1326 self.editActions.append(act)
1327 1327
1328 act = E4Action(QApplication.translate('ViewManager', 1328 act = E5Action(QApplication.translate('ViewManager',
1329 'Extend selection up one line'), 1329 'Extend selection up one line'),
1330 QApplication.translate('ViewManager', 1330 QApplication.translate('ViewManager',
1331 'Extend selection up one line'), 1331 'Extend selection up one line'),
1332 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, 1332 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0,
1333 self.editorActGrp, 'vm_edit_extend_selection_up_line') 1333 self.editorActGrp, 'vm_edit_extend_selection_up_line')
1334 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) 1334 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND)
1335 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1335 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1336 self.editActions.append(act) 1336 self.editActions.append(act)
1337 1337
1338 act = E4Action(QApplication.translate('ViewManager', 1338 act = E5Action(QApplication.translate('ViewManager',
1339 'Extend selection down one line'), 1339 'Extend selection down one line'),
1340 QApplication.translate('ViewManager', 1340 QApplication.translate('ViewManager',
1341 'Extend selection down one line'), 1341 'Extend selection down one line'),
1342 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')), 1342 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')),
1343 0, 1343 0,
1344 self.editorActGrp, 'vm_edit_extend_selection_down_line') 1344 self.editorActGrp, 'vm_edit_extend_selection_down_line')
1345 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) 1345 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND)
1346 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1346 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1347 self.editActions.append(act) 1347 self.editActions.append(act)
1348 1348
1349 act = E4Action(QApplication.translate('ViewManager', 1349 act = E5Action(QApplication.translate('ViewManager',
1350 'Extend selection left one word part'), 1350 'Extend selection left one word part'),
1351 QApplication.translate('ViewManager', 1351 QApplication.translate('ViewManager',
1352 'Extend selection left one word part'), 1352 'Extend selection left one word part'),
1353 QKeySequence(QApplication.translate('ViewManager', 1353 QKeySequence(QApplication.translate('ViewManager',
1354 'Alt+Shift+Left')), 1354 'Alt+Shift+Left')),
1356 self.editorActGrp, 'vm_edit_extend_selection_left_word_part') 1356 self.editorActGrp, 'vm_edit_extend_selection_left_word_part')
1357 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) 1357 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND)
1358 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1358 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1359 self.editActions.append(act) 1359 self.editActions.append(act)
1360 1360
1361 act = E4Action(QApplication.translate('ViewManager', 1361 act = E5Action(QApplication.translate('ViewManager',
1362 'Extend selection right one word part'), 1362 'Extend selection right one word part'),
1363 QApplication.translate('ViewManager', 1363 QApplication.translate('ViewManager',
1364 'Extend selection right one word part'), 1364 'Extend selection right one word part'),
1365 QKeySequence(QApplication.translate('ViewManager', 1365 QKeySequence(QApplication.translate('ViewManager',
1366 'Alt+Shift+Right')), 1366 'Alt+Shift+Right')),
1368 self.editorActGrp, 'vm_edit_extend_selection_right_word_part') 1368 self.editorActGrp, 'vm_edit_extend_selection_right_word_part')
1369 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) 1369 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND)
1370 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1370 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1371 self.editActions.append(act) 1371 self.editActions.append(act)
1372 1372
1373 act = E4Action(QApplication.translate('ViewManager', 1373 act = E5Action(QApplication.translate('ViewManager',
1374 'Extend selection left one word'), 1374 'Extend selection left one word'),
1375 QApplication.translate('ViewManager', 1375 QApplication.translate('ViewManager',
1376 'Extend selection left one word'), 1376 'Extend selection left one word'),
1377 QKeySequence(QApplication.translate('ViewManager', 1377 QKeySequence(QApplication.translate('ViewManager',
1378 'Ctrl+Shift+Left')), 1378 'Ctrl+Shift+Left')),
1380 self.editorActGrp, 'vm_edit_extend_selection_left_word') 1380 self.editorActGrp, 'vm_edit_extend_selection_left_word')
1381 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) 1381 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND)
1382 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1382 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1383 self.editActions.append(act) 1383 self.editActions.append(act)
1384 1384
1385 act = E4Action(QApplication.translate('ViewManager', 1385 act = E5Action(QApplication.translate('ViewManager',
1386 'Extend selection right one word'), 1386 'Extend selection right one word'),
1387 QApplication.translate('ViewManager', 1387 QApplication.translate('ViewManager',
1388 'Extend selection right one word'), 1388 'Extend selection right one word'),
1389 QKeySequence(QApplication.translate('ViewManager', 1389 QKeySequence(QApplication.translate('ViewManager',
1390 'Ctrl+Shift+Right')), 1390 'Ctrl+Shift+Right')),
1392 self.editorActGrp, 'vm_edit_extend_selection_right_word') 1392 self.editorActGrp, 'vm_edit_extend_selection_right_word')
1393 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) 1393 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND)
1394 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1394 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1395 self.editActions.append(act) 1395 self.editActions.append(act)
1396 1396
1397 act = E4Action(QApplication.translate('ViewManager', 1397 act = E5Action(QApplication.translate('ViewManager',
1398 'Extend selection to first visible character in line'), 1398 'Extend selection to first visible character in line'),
1399 QApplication.translate('ViewManager', 1399 QApplication.translate('ViewManager',
1400 'Extend selection to first visible character in line'), 1400 'Extend selection to first visible character in line'),
1401 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')), 1401 QKeySequence(QApplication.translate('ViewManager', 'Shift+Home')),
1402 0, 1402 0,
1403 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char') 1403 self.editorActGrp, 'vm_edit_extend_selection_first_visible_char')
1404 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) 1404 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND)
1405 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1405 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1406 self.editActions.append(act) 1406 self.editActions.append(act)
1407 1407
1408 act = E4Action(QApplication.translate('ViewManager', 1408 act = E5Action(QApplication.translate('ViewManager',
1409 'Extend selection to start of line'), 1409 'Extend selection to start of line'),
1410 QApplication.translate('ViewManager', 1410 QApplication.translate('ViewManager',
1411 'Extend selection to start of line'), 1411 'Extend selection to start of line'),
1412 QKeySequence(QApplication.translate('ViewManager', 1412 QKeySequence(QApplication.translate('ViewManager',
1413 'Alt+Shift+Home')), 1413 'Alt+Shift+Home')),
1415 self.editorActGrp, 'vm_edit_extend_selection_start_line') 1415 self.editorActGrp, 'vm_edit_extend_selection_start_line')
1416 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) 1416 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND)
1417 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1417 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1418 self.editActions.append(act) 1418 self.editActions.append(act)
1419 1419
1420 act = E4Action(QApplication.translate('ViewManager', 1420 act = E5Action(QApplication.translate('ViewManager',
1421 'Extend selection to end of line'), 1421 'Extend selection to end of line'),
1422 QApplication.translate('ViewManager', 1422 QApplication.translate('ViewManager',
1423 'Extend selection to end of line'), 1423 'Extend selection to end of line'),
1424 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0, 1424 QKeySequence(QApplication.translate('ViewManager', 'Shift+End')), 0,
1425 self.editorActGrp, 'vm_edit_extend_selection_end_line') 1425 self.editorActGrp, 'vm_edit_extend_selection_end_line')
1426 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) 1426 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND)
1427 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1427 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1428 self.editActions.append(act) 1428 self.editActions.append(act)
1429 1429
1430 act = E4Action(QApplication.translate('ViewManager', 1430 act = E5Action(QApplication.translate('ViewManager',
1431 'Extend selection up one paragraph'), 1431 'Extend selection up one paragraph'),
1432 QApplication.translate('ViewManager', 1432 QApplication.translate('ViewManager',
1433 'Extend selection up one paragraph'), 1433 'Extend selection up one paragraph'),
1434 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')), 1434 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+Up')),
1435 0, 1435 0,
1436 self.editorActGrp, 'vm_edit_extend_selection_up_para') 1436 self.editorActGrp, 'vm_edit_extend_selection_up_para')
1437 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) 1437 self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND)
1438 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1438 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1439 self.editActions.append(act) 1439 self.editActions.append(act)
1440 1440
1441 act = E4Action(QApplication.translate('ViewManager', 1441 act = E5Action(QApplication.translate('ViewManager',
1442 'Extend selection down one paragraph'), 1442 'Extend selection down one paragraph'),
1443 QApplication.translate('ViewManager', 1443 QApplication.translate('ViewManager',
1444 'Extend selection down one paragraph'), 1444 'Extend selection down one paragraph'),
1445 QKeySequence(QApplication.translate('ViewManager', 1445 QKeySequence(QApplication.translate('ViewManager',
1446 'Alt+Shift+Down')), 1446 'Alt+Shift+Down')),
1448 self.editorActGrp, 'vm_edit_extend_selection_down_para') 1448 self.editorActGrp, 'vm_edit_extend_selection_down_para')
1449 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) 1449 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND)
1450 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1450 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1451 self.editActions.append(act) 1451 self.editActions.append(act)
1452 1452
1453 act = E4Action(QApplication.translate('ViewManager', 1453 act = E5Action(QApplication.translate('ViewManager',
1454 'Extend selection up one page'), 1454 'Extend selection up one page'),
1455 QApplication.translate('ViewManager', 1455 QApplication.translate('ViewManager',
1456 'Extend selection up one page'), 1456 'Extend selection up one page'),
1457 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')), 1457 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')),
1458 0, 1458 0,
1459 self.editorActGrp, 'vm_edit_extend_selection_up_page') 1459 self.editorActGrp, 'vm_edit_extend_selection_up_page')
1460 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) 1460 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND)
1461 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1461 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1462 self.editActions.append(act) 1462 self.editActions.append(act)
1463 1463
1464 act = E4Action(QApplication.translate('ViewManager', 1464 act = E5Action(QApplication.translate('ViewManager',
1465 'Extend selection down one page'), 1465 'Extend selection down one page'),
1466 QApplication.translate('ViewManager', 1466 QApplication.translate('ViewManager',
1467 'Extend selection down one page'), 1467 'Extend selection down one page'),
1468 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')), 1468 QKeySequence(QApplication.translate('ViewManager', 'Shift+PgDown')),
1469 0, 1469 0,
1470 self.editorActGrp, 'vm_edit_extend_selection_down_page') 1470 self.editorActGrp, 'vm_edit_extend_selection_down_page')
1471 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) 1471 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND)
1472 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1472 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1473 self.editActions.append(act) 1473 self.editActions.append(act)
1474 1474
1475 act = E4Action(QApplication.translate('ViewManager', 1475 act = E5Action(QApplication.translate('ViewManager',
1476 'Extend selection to start of text'), 1476 'Extend selection to start of text'),
1477 QApplication.translate('ViewManager', 1477 QApplication.translate('ViewManager',
1478 'Extend selection to start of text'), 1478 'Extend selection to start of text'),
1479 QKeySequence(QApplication.translate('ViewManager', 1479 QKeySequence(QApplication.translate('ViewManager',
1480 'Ctrl+Shift+Home')), 1480 'Ctrl+Shift+Home')),
1482 self.editorActGrp, 'vm_edit_extend_selection_start_text') 1482 self.editorActGrp, 'vm_edit_extend_selection_start_text')
1483 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) 1483 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND)
1484 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1484 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1485 self.editActions.append(act) 1485 self.editActions.append(act)
1486 1486
1487 act = E4Action(QApplication.translate('ViewManager', 1487 act = E5Action(QApplication.translate('ViewManager',
1488 'Extend selection to end of text'), 1488 'Extend selection to end of text'),
1489 QApplication.translate('ViewManager', 1489 QApplication.translate('ViewManager',
1490 'Extend selection to end of text'), 1490 'Extend selection to end of text'),
1491 QKeySequence(QApplication.translate('ViewManager', 1491 QKeySequence(QApplication.translate('ViewManager',
1492 'Ctrl+Shift+End')), 1492 'Ctrl+Shift+End')),
1494 self.editorActGrp, 'vm_edit_extend_selection_end_text') 1494 self.editorActGrp, 'vm_edit_extend_selection_end_text')
1495 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) 1495 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND)
1496 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1496 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1497 self.editActions.append(act) 1497 self.editActions.append(act)
1498 1498
1499 act = E4Action(QApplication.translate('ViewManager', 1499 act = E5Action(QApplication.translate('ViewManager',
1500 'Delete previous character'), 1500 'Delete previous character'),
1501 QApplication.translate('ViewManager', 'Delete previous character'), 1501 QApplication.translate('ViewManager', 'Delete previous character'),
1502 QKeySequence(QApplication.translate('ViewManager', 'Backspace')), 1502 QKeySequence(QApplication.translate('ViewManager', 'Backspace')),
1503 QKeySequence(QApplication.translate('ViewManager', 1503 QKeySequence(QApplication.translate('ViewManager',
1504 'Shift+Backspace')), 1504 'Shift+Backspace')),
1505 self.editorActGrp, 'vm_edit_delete_previous_char') 1505 self.editorActGrp, 'vm_edit_delete_previous_char')
1506 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) 1506 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK)
1507 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1507 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1508 self.editActions.append(act) 1508 self.editActions.append(act)
1509 1509
1510 act = E4Action(QApplication.translate('ViewManager', 1510 act = E5Action(QApplication.translate('ViewManager',
1511 'Delete previous character if not at line start'), 1511 'Delete previous character if not at line start'),
1512 QApplication.translate('ViewManager', 1512 QApplication.translate('ViewManager',
1513 'Delete previous character if not at line start'), 1513 'Delete previous character if not at line start'),
1514 0, 0, 1514 0, 0,
1515 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') 1515 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start')
1516 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) 1516 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE)
1517 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1517 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1518 self.editActions.append(act) 1518 self.editActions.append(act)
1519 1519
1520 act = E4Action(QApplication.translate('ViewManager', 'Delete current character'), 1520 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'),
1521 QApplication.translate('ViewManager', 'Delete current character'), 1521 QApplication.translate('ViewManager', 'Delete current character'),
1522 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, 1522 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0,
1523 self.editorActGrp, 'vm_edit_delete_current_char') 1523 self.editorActGrp, 'vm_edit_delete_current_char')
1524 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) 1524 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR)
1525 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1525 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1526 self.editActions.append(act) 1526 self.editActions.append(act)
1527 1527
1528 act = E4Action(QApplication.translate('ViewManager', 'Delete word to left'), 1528 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'),
1529 QApplication.translate('ViewManager', 'Delete word to left'), 1529 QApplication.translate('ViewManager', 'Delete word to left'),
1530 QKeySequence(QApplication.translate('ViewManager', 1530 QKeySequence(QApplication.translate('ViewManager',
1531 'Ctrl+Backspace')), 1531 'Ctrl+Backspace')),
1532 0, 1532 0,
1533 self.editorActGrp, 'vm_edit_delete_word_left') 1533 self.editorActGrp, 'vm_edit_delete_word_left')
1534 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) 1534 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT)
1535 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1535 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1536 self.editActions.append(act) 1536 self.editActions.append(act)
1537 1537
1538 act = E4Action(QApplication.translate('ViewManager', 'Delete word to right'), 1538 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'),
1539 QApplication.translate('ViewManager', 'Delete word to right'), 1539 QApplication.translate('ViewManager', 'Delete word to right'),
1540 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, 1540 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0,
1541 self.editorActGrp, 'vm_edit_delete_word_right') 1541 self.editorActGrp, 'vm_edit_delete_word_right')
1542 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) 1542 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT)
1543 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1543 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1544 self.editActions.append(act) 1544 self.editActions.append(act)
1545 1545
1546 act = E4Action(QApplication.translate('ViewManager', 'Delete line to left'), 1546 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'),
1547 QApplication.translate('ViewManager', 'Delete line to left'), 1547 QApplication.translate('ViewManager', 'Delete line to left'),
1548 QKeySequence(QApplication.translate('ViewManager', 1548 QKeySequence(QApplication.translate('ViewManager',
1549 'Ctrl+Shift+Backspace')), 1549 'Ctrl+Shift+Backspace')),
1550 0, 1550 0,
1551 self.editorActGrp, 'vm_edit_delete_line_left') 1551 self.editorActGrp, 'vm_edit_delete_line_left')
1552 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) 1552 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT)
1553 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1553 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1554 self.editActions.append(act) 1554 self.editActions.append(act)
1555 1555
1556 act = E4Action(QApplication.translate('ViewManager', 'Delete line to right'), 1556 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'),
1557 QApplication.translate('ViewManager', 'Delete line to right'), 1557 QApplication.translate('ViewManager', 'Delete line to right'),
1558 QKeySequence(QApplication.translate('ViewManager', 1558 QKeySequence(QApplication.translate('ViewManager',
1559 'Ctrl+Shift+Del')), 1559 'Ctrl+Shift+Del')),
1560 0, 1560 0,
1561 self.editorActGrp, 'vm_edit_delete_line_right') 1561 self.editorActGrp, 'vm_edit_delete_line_right')
1562 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) 1562 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT)
1563 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1563 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1564 self.editActions.append(act) 1564 self.editActions.append(act)
1565 1565
1566 act = E4Action(QApplication.translate('ViewManager', 'Insert new line'), 1566 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'),
1567 QApplication.translate('ViewManager', 'Insert new line'), 1567 QApplication.translate('ViewManager', 'Insert new line'),
1568 QKeySequence(QApplication.translate('ViewManager', 'Return')), 1568 QKeySequence(QApplication.translate('ViewManager', 'Return')),
1569 QKeySequence(QApplication.translate('ViewManager', 'Enter')), 1569 QKeySequence(QApplication.translate('ViewManager', 'Enter')),
1570 self.editorActGrp, 'vm_edit_insert_line') 1570 self.editorActGrp, 'vm_edit_insert_line')
1571 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) 1571 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE)
1572 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1572 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1573 self.editActions.append(act) 1573 self.editActions.append(act)
1574 1574
1575 act = E4Action(QApplication.translate('ViewManager', 1575 act = E5Action(QApplication.translate('ViewManager',
1576 'Insert new line below current line'), 1576 'Insert new line below current line'),
1577 QApplication.translate('ViewManager', 1577 QApplication.translate('ViewManager',
1578 'Insert new line below current line'), 1578 'Insert new line below current line'),
1579 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), 1579 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')),
1580 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), 1580 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')),
1581 self.editorActGrp, 'vm_edit_insert_line_below') 1581 self.editorActGrp, 'vm_edit_insert_line_below')
1582 self.connect(act, SIGNAL('triggered()'), self.__newLineBelow) 1582 self.connect(act, SIGNAL('triggered()'), self.__newLineBelow)
1583 self.editActions.append(act) 1583 self.editActions.append(act)
1584 1584
1585 act = E4Action(QApplication.translate('ViewManager', 'Delete current line'), 1585 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'),
1586 QApplication.translate('ViewManager', 'Delete current line'), 1586 QApplication.translate('ViewManager', 'Delete current line'),
1587 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), 1587 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')),
1588 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), 1588 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')),
1589 self.editorActGrp, 'vm_edit_delete_current_line') 1589 self.editorActGrp, 'vm_edit_delete_current_line')
1590 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) 1590 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE)
1591 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1591 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1592 self.editActions.append(act) 1592 self.editActions.append(act)
1593 1593
1594 act = E4Action(QApplication.translate('ViewManager', 'Duplicate current line'), 1594 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'),
1595 QApplication.translate('ViewManager', 'Duplicate current line'), 1595 QApplication.translate('ViewManager', 'Duplicate current line'),
1596 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, 1596 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0,
1597 self.editorActGrp, 'vm_edit_duplicate_current_line') 1597 self.editorActGrp, 'vm_edit_duplicate_current_line')
1598 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) 1598 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE)
1599 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1599 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1600 self.editActions.append(act) 1600 self.editActions.append(act)
1601 1601
1602 act = E4Action(QApplication.translate('ViewManager', 1602 act = E5Action(QApplication.translate('ViewManager',
1603 'Swap current and previous lines'), 1603 'Swap current and previous lines'),
1604 QApplication.translate('ViewManager', 1604 QApplication.translate('ViewManager',
1605 'Swap current and previous lines'), 1605 'Swap current and previous lines'),
1606 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, 1606 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0,
1607 self.editorActGrp, 'vm_edit_swap_current_previous_line') 1607 self.editorActGrp, 'vm_edit_swap_current_previous_line')
1608 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) 1608 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE)
1609 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1609 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1610 self.editActions.append(act) 1610 self.editActions.append(act)
1611 1611
1612 act = E4Action(QApplication.translate('ViewManager', 'Cut current line'), 1612 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'),
1613 QApplication.translate('ViewManager', 'Cut current line'), 1613 QApplication.translate('ViewManager', 'Cut current line'),
1614 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 1614 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')),
1615 0, 1615 0,
1616 self.editorActGrp, 'vm_edit_cut_current_line') 1616 self.editorActGrp, 'vm_edit_cut_current_line')
1617 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) 1617 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT)
1618 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1618 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1619 self.editActions.append(act) 1619 self.editActions.append(act)
1620 1620
1621 act = E4Action(QApplication.translate('ViewManager', 'Copy current line'), 1621 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'),
1622 QApplication.translate('ViewManager', 'Copy current line'), 1622 QApplication.translate('ViewManager', 'Copy current line'),
1623 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), 1623 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')),
1624 0, 1624 0,
1625 self.editorActGrp, 'vm_edit_copy_current_line') 1625 self.editorActGrp, 'vm_edit_copy_current_line')
1626 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) 1626 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY)
1627 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1627 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1628 self.editActions.append(act) 1628 self.editActions.append(act)
1629 1629
1630 act = E4Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1630 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1631 QApplication.translate('ViewManager', 'Toggle insert/overtype'), 1631 QApplication.translate('ViewManager', 'Toggle insert/overtype'),
1632 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, 1632 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0,
1633 self.editorActGrp, 'vm_edit_toggle_insert_overtype') 1633 self.editorActGrp, 'vm_edit_toggle_insert_overtype')
1634 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) 1634 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE)
1635 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1635 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1636 self.editActions.append(act) 1636 self.editActions.append(act)
1637 1637
1638 act = E4Action(QApplication.translate('ViewManager', 1638 act = E5Action(QApplication.translate('ViewManager',
1639 'Convert selection to lower case'), 1639 'Convert selection to lower case'),
1640 QApplication.translate('ViewManager', 1640 QApplication.translate('ViewManager',
1641 'Convert selection to lower case'), 1641 'Convert selection to lower case'),
1642 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), 1642 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')),
1643 0, 1643 0,
1644 self.editorActGrp, 'vm_edit_convert_selection_lower') 1644 self.editorActGrp, 'vm_edit_convert_selection_lower')
1645 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) 1645 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE)
1646 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1646 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1647 self.editActions.append(act) 1647 self.editActions.append(act)
1648 1648
1649 act = E4Action(QApplication.translate('ViewManager', 1649 act = E5Action(QApplication.translate('ViewManager',
1650 'Convert selection to upper case'), 1650 'Convert selection to upper case'),
1651 QApplication.translate('ViewManager', 1651 QApplication.translate('ViewManager',
1652 'Convert selection to upper case'), 1652 'Convert selection to upper case'),
1653 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')), 1653 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')),
1654 0, 1654 0,
1655 self.editorActGrp, 'vm_edit_convert_selection_upper') 1655 self.editorActGrp, 'vm_edit_convert_selection_upper')
1656 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) 1656 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE)
1657 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1657 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1658 self.editActions.append(act) 1658 self.editActions.append(act)
1659 1659
1660 act = E4Action(QApplication.translate('ViewManager', 1660 act = E5Action(QApplication.translate('ViewManager',
1661 'Move to end of displayed line'), 1661 'Move to end of displayed line'),
1662 QApplication.translate('ViewManager', 1662 QApplication.translate('ViewManager',
1663 'Move to end of displayed line'), 1663 'Move to end of displayed line'),
1664 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, 1664 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0,
1665 self.editorActGrp, 'vm_edit_move_end_displayed_line') 1665 self.editorActGrp, 'vm_edit_move_end_displayed_line')
1666 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) 1666 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY)
1667 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1667 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1668 self.editActions.append(act) 1668 self.editActions.append(act)
1669 1669
1670 act = E4Action(QApplication.translate('ViewManager', 1670 act = E5Action(QApplication.translate('ViewManager',
1671 'Extend selection to end of displayed line'), 1671 'Extend selection to end of displayed line'),
1672 QApplication.translate('ViewManager', 1672 QApplication.translate('ViewManager',
1673 'Extend selection to end of displayed line'), 1673 'Extend selection to end of displayed line'),
1674 0, 0, 1674 0, 0,
1675 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') 1675 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line')
1676 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) 1676 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND)
1677 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1677 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1678 self.editActions.append(act) 1678 self.editActions.append(act)
1679 1679
1680 act = E4Action(QApplication.translate('ViewManager', 'Formfeed'), 1680 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'),
1681 QApplication.translate('ViewManager', 'Formfeed'), 1681 QApplication.translate('ViewManager', 'Formfeed'),
1682 0, 0, 1682 0, 0,
1683 self.editorActGrp, 'vm_edit_formfeed') 1683 self.editorActGrp, 'vm_edit_formfeed')
1684 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) 1684 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED)
1685 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1685 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1686 self.editActions.append(act) 1686 self.editActions.append(act)
1687 1687
1688 act = E4Action(QApplication.translate('ViewManager', 'Escape'), 1688 act = E5Action(QApplication.translate('ViewManager', 'Escape'),
1689 QApplication.translate('ViewManager', 'Escape'), 1689 QApplication.translate('ViewManager', 'Escape'),
1690 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, 1690 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0,
1691 self.editorActGrp, 'vm_edit_escape') 1691 self.editorActGrp, 'vm_edit_escape')
1692 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) 1692 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL)
1693 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1693 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1694 self.editActions.append(act) 1694 self.editActions.append(act)
1695 1695
1696 act = E4Action(QApplication.translate('ViewManager', 1696 act = E5Action(QApplication.translate('ViewManager',
1697 'Extend rectangular selection down one line'), 1697 'Extend rectangular selection down one line'),
1698 QApplication.translate('ViewManager', 1698 QApplication.translate('ViewManager',
1699 'Extend rectangular selection down one line'), 1699 'Extend rectangular selection down one line'),
1700 QKeySequence(QApplication.translate('ViewManager', 1700 QKeySequence(QApplication.translate('ViewManager',
1701 'Alt+Ctrl+Down')), 1701 'Alt+Ctrl+Down')),
1703 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line') 1703 self.editorActGrp, 'vm_edit_extend_rect_selection_down_line')
1704 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) 1704 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND)
1705 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1705 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1706 self.editActions.append(act) 1706 self.editActions.append(act)
1707 1707
1708 act = E4Action(QApplication.translate('ViewManager', 1708 act = E5Action(QApplication.translate('ViewManager',
1709 'Extend rectangular selection up one line'), 1709 'Extend rectangular selection up one line'),
1710 QApplication.translate('ViewManager', 1710 QApplication.translate('ViewManager',
1711 'Extend rectangular selection up one line'), 1711 'Extend rectangular selection up one line'),
1712 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')), 1712 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+Up')),
1713 0, 1713 0,
1714 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line') 1714 self.editorActGrp, 'vm_edit_extend_rect_selection_up_line')
1715 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) 1715 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND)
1716 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1716 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1717 self.editActions.append(act) 1717 self.editActions.append(act)
1718 1718
1719 act = E4Action(QApplication.translate('ViewManager', 1719 act = E5Action(QApplication.translate('ViewManager',
1720 'Extend rectangular selection left one character'), 1720 'Extend rectangular selection left one character'),
1721 QApplication.translate('ViewManager', 1721 QApplication.translate('ViewManager',
1722 'Extend rectangular selection left one character'), 1722 'Extend rectangular selection left one character'),
1723 QKeySequence(QApplication.translate('ViewManager', 1723 QKeySequence(QApplication.translate('ViewManager',
1724 'Alt+Ctrl+Left')), 1724 'Alt+Ctrl+Left')),
1726 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char') 1726 self.editorActGrp, 'vm_edit_extend_rect_selection_left_char')
1727 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) 1727 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND)
1728 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1728 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1729 self.editActions.append(act) 1729 self.editActions.append(act)
1730 1730
1731 act = E4Action(QApplication.translate('ViewManager', 1731 act = E5Action(QApplication.translate('ViewManager',
1732 'Extend rectangular selection right one character'), 1732 'Extend rectangular selection right one character'),
1733 QApplication.translate('ViewManager', 1733 QApplication.translate('ViewManager',
1734 'Extend rectangular selection right one character'), 1734 'Extend rectangular selection right one character'),
1735 QKeySequence(QApplication.translate('ViewManager', 1735 QKeySequence(QApplication.translate('ViewManager',
1736 'Alt+Ctrl+Right')), 1736 'Alt+Ctrl+Right')),
1738 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char') 1738 self.editorActGrp, 'vm_edit_extend_rect_selection_right_char')
1739 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) 1739 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND)
1740 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1740 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1741 self.editActions.append(act) 1741 self.editActions.append(act)
1742 1742
1743 act = E4Action(QApplication.translate('ViewManager', 1743 act = E5Action(QApplication.translate('ViewManager',
1744 'Extend rectangular selection to first' 1744 'Extend rectangular selection to first'
1745 ' visible character in line'), 1745 ' visible character in line'),
1746 QApplication.translate('ViewManager', 1746 QApplication.translate('ViewManager',
1747 'Extend rectangular selection to first' 1747 'Extend rectangular selection to first'
1748 ' visible character in line'), 1748 ' visible character in line'),
1753 'vm_edit_extend_rect_selection_first_visible_char') 1753 'vm_edit_extend_rect_selection_first_visible_char')
1754 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) 1754 self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND)
1755 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1755 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1756 self.editActions.append(act) 1756 self.editActions.append(act)
1757 1757
1758 act = E4Action(QApplication.translate('ViewManager', 1758 act = E5Action(QApplication.translate('ViewManager',
1759 'Extend rectangular selection to end of line'), 1759 'Extend rectangular selection to end of line'),
1760 QApplication.translate('ViewManager', 1760 QApplication.translate('ViewManager',
1761 'Extend rectangular selection to end of line'), 1761 'Extend rectangular selection to end of line'),
1762 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')), 1762 QKeySequence(QApplication.translate('ViewManager', 'Alt+Ctrl+End')),
1763 0, 1763 0,
1764 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line') 1764 self.editorActGrp, 'vm_edit_extend_rect_selection_end_line')
1765 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) 1765 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND)
1766 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1766 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1767 self.editActions.append(act) 1767 self.editActions.append(act)
1768 1768
1769 act = E4Action(QApplication.translate('ViewManager', 1769 act = E5Action(QApplication.translate('ViewManager',
1770 'Extend rectangular selection up one page'), 1770 'Extend rectangular selection up one page'),
1771 QApplication.translate('ViewManager', 1771 QApplication.translate('ViewManager',
1772 'Extend rectangular selection up one page'), 1772 'Extend rectangular selection up one page'),
1773 QKeySequence(QApplication.translate('ViewManager', 1773 QKeySequence(QApplication.translate('ViewManager',
1774 'Alt+Ctrl+PgUp')), 1774 'Alt+Ctrl+PgUp')),
1776 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') 1776 self.editorActGrp, 'vm_edit_extend_rect_selection_up_page')
1777 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) 1777 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND)
1778 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1778 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1779 self.editActions.append(act) 1779 self.editActions.append(act)
1780 1780
1781 act = E4Action(QApplication.translate('ViewManager', 1781 act = E5Action(QApplication.translate('ViewManager',
1782 'Extend rectangular selection down one page'), 1782 'Extend rectangular selection down one page'),
1783 QApplication.translate('ViewManager', 1783 QApplication.translate('ViewManager',
1784 'Extend rectangular selection down one page'), 1784 'Extend rectangular selection down one page'),
1785 QKeySequence(QApplication.translate('ViewManager', 1785 QKeySequence(QApplication.translate('ViewManager',
1786 'Alt+Ctrl+PgDown')), 1786 'Alt+Ctrl+PgDown')),
1788 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page') 1788 self.editorActGrp, 'vm_edit_extend_rect_selection_down_page')
1789 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) 1789 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND)
1790 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) 1790 self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()'))
1791 self.editActions.append(act) 1791 self.editActions.append(act)
1792 1792
1793 act = E4Action(QApplication.translate('ViewManager', 1793 act = E5Action(QApplication.translate('ViewManager',
1794 'Duplicate current selection'), 1794 'Duplicate current selection'),
1795 QApplication.translate('ViewManager', 1795 QApplication.translate('ViewManager',
1796 'Duplicate current selection'), 1796 'Duplicate current selection'),
1797 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')), 1797 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+D')),
1798 0, 1798 0,
1872 1872
1873 def initEditToolbar(self, toolbarManager): 1873 def initEditToolbar(self, toolbarManager):
1874 """ 1874 """
1875 Public method to create the Edit toolbar 1875 Public method to create the Edit toolbar
1876 1876
1877 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 1877 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
1878 @return the generated toolbar 1878 @return the generated toolbar
1879 """ 1879 """
1880 tb = QToolBar(QApplication.translate('ViewManager', 'Edit'), self.ui) 1880 tb = QToolBar(QApplication.translate('ViewManager', 'Edit'), self.ui)
1881 tb.setIconSize(UI.Config.ToolBarIconSize) 1881 tb.setIconSize(UI.Config.ToolBarIconSize)
1882 tb.setObjectName("EditToolbar") 1882 tb.setObjectName("EditToolbar")
1909 """ 1909 """
1910 Private method defining the user interface actions for the search commands. 1910 Private method defining the user interface actions for the search commands.
1911 """ 1911 """
1912 self.searchActGrp = createActionGroup(self) 1912 self.searchActGrp = createActionGroup(self)
1913 1913
1914 self.searchAct = E4Action(QApplication.translate('ViewManager', 'Search'), 1914 self.searchAct = E5Action(QApplication.translate('ViewManager', 'Search'),
1915 UI.PixmapCache.getIcon("find.png"), 1915 UI.PixmapCache.getIcon("find.png"),
1916 QApplication.translate('ViewManager', '&Search...'), 1916 QApplication.translate('ViewManager', '&Search...'),
1917 QKeySequence(QApplication.translate('ViewManager', 1917 QKeySequence(QApplication.translate('ViewManager',
1918 "Ctrl+F", "Search|Search")), 1918 "Ctrl+F", "Search|Search")),
1919 0, 1919 0,
1927 """ for the search.</p>""" 1927 """ for the search.</p>"""
1928 )) 1928 ))
1929 self.connect(self.searchAct, SIGNAL('triggered()'), self.__search) 1929 self.connect(self.searchAct, SIGNAL('triggered()'), self.__search)
1930 self.searchActions.append(self.searchAct) 1930 self.searchActions.append(self.searchAct)
1931 1931
1932 self.searchNextAct = E4Action(QApplication.translate('ViewManager', 1932 self.searchNextAct = E5Action(QApplication.translate('ViewManager',
1933 'Search next'), 1933 'Search next'),
1934 UI.PixmapCache.getIcon("findNext.png"), 1934 UI.PixmapCache.getIcon("findNext.png"),
1935 QApplication.translate('ViewManager', 'Search &next'), 1935 QApplication.translate('ViewManager', 'Search &next'),
1936 QKeySequence(QApplication.translate('ViewManager', 1936 QKeySequence(QApplication.translate('ViewManager',
1937 "F3", "Search|Search next")), 1937 "F3", "Search|Search next")),
1945 """ The previously entered searchtext and options are reused.</p>""" 1945 """ The previously entered searchtext and options are reused.</p>"""
1946 )) 1946 ))
1947 self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext) 1947 self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext)
1948 self.searchActions.append(self.searchNextAct) 1948 self.searchActions.append(self.searchNextAct)
1949 1949
1950 self.searchPrevAct = E4Action(QApplication.translate('ViewManager', 1950 self.searchPrevAct = E5Action(QApplication.translate('ViewManager',
1951 'Search previous'), 1951 'Search previous'),
1952 UI.PixmapCache.getIcon("findPrev.png"), 1952 UI.PixmapCache.getIcon("findPrev.png"),
1953 QApplication.translate('ViewManager', 'Search &previous'), 1953 QApplication.translate('ViewManager', 'Search &previous'),
1954 QKeySequence(QApplication.translate('ViewManager', 1954 QKeySequence(QApplication.translate('ViewManager',
1955 "Shift+F3", "Search|Search previous")), 1955 "Shift+F3", "Search|Search previous")),
1963 """ The previously entered searchtext and options are reused.</p>""" 1963 """ The previously entered searchtext and options are reused.</p>"""
1964 )) 1964 ))
1965 self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev) 1965 self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev)
1966 self.searchActions.append(self.searchPrevAct) 1966 self.searchActions.append(self.searchPrevAct)
1967 1967
1968 self.searchClearMarkersAct = E4Action(QApplication.translate('ViewManager', 1968 self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager',
1969 'Clear search markers'), 1969 'Clear search markers'),
1970 UI.PixmapCache.getIcon("findClear.png"), 1970 UI.PixmapCache.getIcon("findClear.png"),
1971 QApplication.translate('ViewManager', 'Clear search markers'), 1971 QApplication.translate('ViewManager', 'Clear search markers'),
1972 QKeySequence(QApplication.translate('ViewManager', 1972 QKeySequence(QApplication.translate('ViewManager',
1973 "Ctrl+3", "Search|Clear search markers")), 1973 "Ctrl+3", "Search|Clear search markers")),
1981 )) 1981 ))
1982 self.connect(self.searchClearMarkersAct, SIGNAL('triggered()'), 1982 self.connect(self.searchClearMarkersAct, SIGNAL('triggered()'),
1983 self.__searchClearMarkers) 1983 self.__searchClearMarkers)
1984 self.searchActions.append(self.searchClearMarkersAct) 1984 self.searchActions.append(self.searchClearMarkersAct)
1985 1985
1986 self.replaceAct = E4Action(QApplication.translate('ViewManager', 'Replace'), 1986 self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'),
1987 QApplication.translate('ViewManager', '&Replace...'), 1987 QApplication.translate('ViewManager', '&Replace...'),
1988 QKeySequence(QApplication.translate('ViewManager', 1988 QKeySequence(QApplication.translate('ViewManager',
1989 "Ctrl+R", "Search|Replace")), 1989 "Ctrl+R", "Search|Replace")),
1990 0, 1990 0,
1991 self.searchActGrp, 'vm_search_replace') 1991 self.searchActGrp, 'vm_search_replace')
1998 """ and options for the search and replace.</p>""" 1998 """ and options for the search and replace.</p>"""
1999 )) 1999 ))
2000 self.connect(self.replaceAct, SIGNAL('triggered()'), self.__replace) 2000 self.connect(self.replaceAct, SIGNAL('triggered()'), self.__replace)
2001 self.searchActions.append(self.replaceAct) 2001 self.searchActions.append(self.replaceAct)
2002 2002
2003 self.quickSearchAct = E4Action(QApplication.translate('ViewManager', 2003 self.quickSearchAct = E5Action(QApplication.translate('ViewManager',
2004 'Quicksearch'), 2004 'Quicksearch'),
2005 UI.PixmapCache.getIcon("quickFindNext.png"), 2005 UI.PixmapCache.getIcon("quickFindNext.png"),
2006 QApplication.translate('ViewManager', '&Quicksearch'), 2006 QApplication.translate('ViewManager', '&Quicksearch'),
2007 QKeySequence(QApplication.translate('ViewManager', 2007 QKeySequence(QApplication.translate('ViewManager',
2008 "Ctrl+Shift+K", "Search|Quicksearch")), 2008 "Ctrl+Shift+K", "Search|Quicksearch")),
2018 """ next occurrence of this text.</p>""" 2018 """ next occurrence of this text.</p>"""
2019 )) 2019 ))
2020 self.connect(self.quickSearchAct, SIGNAL('triggered()'), self.__quickSearch) 2020 self.connect(self.quickSearchAct, SIGNAL('triggered()'), self.__quickSearch)
2021 self.searchActions.append(self.quickSearchAct) 2021 self.searchActions.append(self.quickSearchAct)
2022 2022
2023 self.quickSearchBackAct = E4Action(QApplication.translate('ViewManager', 2023 self.quickSearchBackAct = E5Action(QApplication.translate('ViewManager',
2024 'Quicksearch backwards'), 2024 'Quicksearch backwards'),
2025 UI.PixmapCache.getIcon("quickFindPrev.png"), 2025 UI.PixmapCache.getIcon("quickFindPrev.png"),
2026 QApplication.translate('ViewManager', 'Quicksearch &backwards'), 2026 QApplication.translate('ViewManager', 'Quicksearch &backwards'),
2027 QKeySequence(QApplication.translate('ViewManager', 2027 QKeySequence(QApplication.translate('ViewManager',
2028 "Ctrl+Shift+J", "Search|Quicksearch backwards")), 2028 "Ctrl+Shift+J", "Search|Quicksearch backwards")),
2035 )) 2035 ))
2036 self.connect(self.quickSearchBackAct, SIGNAL('triggered()'), 2036 self.connect(self.quickSearchBackAct, SIGNAL('triggered()'),
2037 self.__quickSearchPrev) 2037 self.__quickSearchPrev)
2038 self.searchActions.append(self.quickSearchBackAct) 2038 self.searchActions.append(self.quickSearchBackAct)
2039 2039
2040 self.quickSearchExtendAct = E4Action(QApplication.translate('ViewManager', 2040 self.quickSearchExtendAct = E5Action(QApplication.translate('ViewManager',
2041 'Quicksearch extend'), 2041 'Quicksearch extend'),
2042 UI.PixmapCache.getIcon("quickFindExtend.png"), 2042 UI.PixmapCache.getIcon("quickFindExtend.png"),
2043 QApplication.translate('ViewManager', 'Quicksearch e&xtend'), 2043 QApplication.translate('ViewManager', 'Quicksearch e&xtend'),
2044 QKeySequence(QApplication.translate('ViewManager', 2044 QKeySequence(QApplication.translate('ViewManager',
2045 "Ctrl+Shift+H", "Search|Quicksearch extend")), 2045 "Ctrl+Shift+H", "Search|Quicksearch extend")),
2054 )) 2054 ))
2055 self.connect(self.quickSearchExtendAct, SIGNAL('triggered()'), 2055 self.connect(self.quickSearchExtendAct, SIGNAL('triggered()'),
2056 self.__quickSearchExtend) 2056 self.__quickSearchExtend)
2057 self.searchActions.append(self.quickSearchExtendAct) 2057 self.searchActions.append(self.quickSearchExtendAct)
2058 2058
2059 self.gotoAct = E4Action(QApplication.translate('ViewManager', 'Goto Line'), 2059 self.gotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Line'),
2060 UI.PixmapCache.getIcon("goto.png"), 2060 UI.PixmapCache.getIcon("goto.png"),
2061 QApplication.translate('ViewManager', '&Goto Line...'), 2061 QApplication.translate('ViewManager', '&Goto Line...'),
2062 QKeySequence(QApplication.translate('ViewManager', 2062 QKeySequence(QApplication.translate('ViewManager',
2063 "Ctrl+G", "Search|Goto Line")), 2063 "Ctrl+G", "Search|Goto Line")),
2064 0, 2064 0,
2070 """ A dialog is shown to enter the linenumber.</p>""" 2070 """ A dialog is shown to enter the linenumber.</p>"""
2071 )) 2071 ))
2072 self.connect(self.gotoAct, SIGNAL('triggered()'), self.__goto) 2072 self.connect(self.gotoAct, SIGNAL('triggered()'), self.__goto)
2073 self.searchActions.append(self.gotoAct) 2073 self.searchActions.append(self.gotoAct)
2074 2074
2075 self.gotoBraceAct = E4Action(QApplication.translate('ViewManager', 'Goto Brace'), 2075 self.gotoBraceAct = E5Action(QApplication.translate('ViewManager', 'Goto Brace'),
2076 UI.PixmapCache.getIcon("gotoBrace.png"), 2076 UI.PixmapCache.getIcon("gotoBrace.png"),
2077 QApplication.translate('ViewManager', 'Goto &Brace'), 2077 QApplication.translate('ViewManager', 'Goto &Brace'),
2078 QKeySequence(QApplication.translate('ViewManager', 2078 QKeySequence(QApplication.translate('ViewManager',
2079 "Ctrl+L", "Search|Goto Brace")), 2079 "Ctrl+L", "Search|Goto Brace")),
2080 0, 2080 0,
2088 self.connect(self.gotoBraceAct, SIGNAL('triggered()'), self.__gotoBrace) 2088 self.connect(self.gotoBraceAct, SIGNAL('triggered()'), self.__gotoBrace)
2089 self.searchActions.append(self.gotoBraceAct) 2089 self.searchActions.append(self.gotoBraceAct)
2090 2090
2091 self.searchActGrp.setEnabled(False) 2091 self.searchActGrp.setEnabled(False)
2092 2092
2093 self.searchFilesAct = E4Action(QApplication.translate('ViewManager', 2093 self.searchFilesAct = E5Action(QApplication.translate('ViewManager',
2094 'Search in Files'), 2094 'Search in Files'),
2095 UI.PixmapCache.getIcon("projectFind.png"), 2095 UI.PixmapCache.getIcon("projectFind.png"),
2096 QApplication.translate('ViewManager', 'Search in &Files...'), 2096 QApplication.translate('ViewManager', 'Search in &Files...'),
2097 QKeySequence(QApplication.translate('ViewManager', 2097 QKeySequence(QApplication.translate('ViewManager',
2098 "Shift+Ctrl+F", "Search|Search Files")), 2098 "Shift+Ctrl+F", "Search|Search Files")),
2107 """ and options for the search and to display the result.</p>""" 2107 """ and options for the search and to display the result.</p>"""
2108 )) 2108 ))
2109 self.connect(self.searchFilesAct, SIGNAL('triggered()'), self.__searchFiles) 2109 self.connect(self.searchFilesAct, SIGNAL('triggered()'), self.__searchFiles)
2110 self.searchActions.append(self.searchFilesAct) 2110 self.searchActions.append(self.searchFilesAct)
2111 2111
2112 self.replaceFilesAct = E4Action(QApplication.translate('ViewManager', 2112 self.replaceFilesAct = E5Action(QApplication.translate('ViewManager',
2113 'Replace in Files'), 2113 'Replace in Files'),
2114 QApplication.translate('ViewManager', 'Replace in F&iles...'), 2114 QApplication.translate('ViewManager', 'Replace in F&iles...'),
2115 QKeySequence(QApplication.translate('ViewManager', 2115 QKeySequence(QApplication.translate('ViewManager',
2116 "Shift+Ctrl+R", "Search|Replace in Files")), 2116 "Shift+Ctrl+R", "Search|Replace in Files")),
2117 0, 2117 0,
2130 2130
2131 def initSearchToolbars(self, toolbarManager): 2131 def initSearchToolbars(self, toolbarManager):
2132 """ 2132 """
2133 Public method to create the Search toolbars 2133 Public method to create the Search toolbars
2134 2134
2135 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 2135 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
2136 @return a tuple of the generated toolbar (search, quicksearch) 2136 @return a tuple of the generated toolbar (search, quicksearch)
2137 """ 2137 """
2138 qtb = QToolBar(QApplication.translate('ViewManager', 'Quicksearch'), self.ui) 2138 qtb = QToolBar(QApplication.translate('ViewManager', 'Quicksearch'), self.ui)
2139 qtb.setIconSize(UI.Config.ToolBarIconSize) 2139 qtb.setIconSize(UI.Config.ToolBarIconSize)
2140 qtb.setObjectName("QuicksearchToolbar") 2140 qtb.setObjectName("QuicksearchToolbar")
2223 Private method defining the user interface actions for the view commands. 2223 Private method defining the user interface actions for the view commands.
2224 """ 2224 """
2225 self.viewActGrp = createActionGroup(self) 2225 self.viewActGrp = createActionGroup(self)
2226 self.viewFoldActGrp = createActionGroup(self) 2226 self.viewFoldActGrp = createActionGroup(self)
2227 2227
2228 self.zoomInAct = E4Action(QApplication.translate('ViewManager', 'Zoom in'), 2228 self.zoomInAct = E5Action(QApplication.translate('ViewManager', 'Zoom in'),
2229 UI.PixmapCache.getIcon("zoomIn.png"), 2229 UI.PixmapCache.getIcon("zoomIn.png"),
2230 QApplication.translate('ViewManager', 'Zoom &in'), 2230 QApplication.translate('ViewManager', 'Zoom &in'),
2231 QKeySequence(QApplication.translate('ViewManager', 2231 QKeySequence(QApplication.translate('ViewManager',
2232 "Ctrl++", "View|Zoom in")), 2232 "Ctrl++", "View|Zoom in")),
2233 0, 2233 0,
2239 """<p>Zoom in on the text. This makes the text bigger.</p>""" 2239 """<p>Zoom in on the text. This makes the text bigger.</p>"""
2240 )) 2240 ))
2241 self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) 2241 self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn)
2242 self.viewActions.append(self.zoomInAct) 2242 self.viewActions.append(self.zoomInAct)
2243 2243
2244 self.zoomOutAct = E4Action(QApplication.translate('ViewManager', 'Zoom out'), 2244 self.zoomOutAct = E5Action(QApplication.translate('ViewManager', 'Zoom out'),
2245 UI.PixmapCache.getIcon("zoomOut.png"), 2245 UI.PixmapCache.getIcon("zoomOut.png"),
2246 QApplication.translate('ViewManager', 'Zoom &out'), 2246 QApplication.translate('ViewManager', 'Zoom &out'),
2247 QKeySequence(QApplication.translate('ViewManager', 2247 QKeySequence(QApplication.translate('ViewManager',
2248 "Ctrl+-", "View|Zoom out")), 2248 "Ctrl+-", "View|Zoom out")),
2249 0, 2249 0,
2255 """<p>Zoom out on the text. This makes the text smaller.</p>""" 2255 """<p>Zoom out on the text. This makes the text smaller.</p>"""
2256 )) 2256 ))
2257 self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) 2257 self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut)
2258 self.viewActions.append(self.zoomOutAct) 2258 self.viewActions.append(self.zoomOutAct)
2259 2259
2260 self.zoomToAct = E4Action(QApplication.translate('ViewManager', 'Zoom'), 2260 self.zoomToAct = E5Action(QApplication.translate('ViewManager', 'Zoom'),
2261 UI.PixmapCache.getIcon("zoomTo.png"), 2261 UI.PixmapCache.getIcon("zoomTo.png"),
2262 QApplication.translate('ViewManager', '&Zoom'), 2262 QApplication.translate('ViewManager', '&Zoom'),
2263 QKeySequence(QApplication.translate('ViewManager', 2263 QKeySequence(QApplication.translate('ViewManager',
2264 "Ctrl+#", "View|Zoom")), 2264 "Ctrl+#", "View|Zoom")),
2265 0, 2265 0,
2272 """ desired size can be entered.</p>""" 2272 """ desired size can be entered.</p>"""
2273 )) 2273 ))
2274 self.connect(self.zoomToAct, SIGNAL('triggered()'), self.__zoom) 2274 self.connect(self.zoomToAct, SIGNAL('triggered()'), self.__zoom)
2275 self.viewActions.append(self.zoomToAct) 2275 self.viewActions.append(self.zoomToAct)
2276 2276
2277 self.toggleAllAct = E4Action(QApplication.translate('ViewManager', 2277 self.toggleAllAct = E5Action(QApplication.translate('ViewManager',
2278 'Toggle all folds'), 2278 'Toggle all folds'),
2279 QApplication.translate('ViewManager', 'Toggle &all folds'), 2279 QApplication.translate('ViewManager', 'Toggle &all folds'),
2280 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds') 2280 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds')
2281 self.toggleAllAct.setStatusTip(QApplication.translate('ViewManager', 2281 self.toggleAllAct.setStatusTip(QApplication.translate('ViewManager',
2282 'Toggle all folds')) 2282 'Toggle all folds'))
2286 )) 2286 ))
2287 self.connect(self.toggleAllAct, SIGNAL('triggered()'), self.__toggleAll) 2287 self.connect(self.toggleAllAct, SIGNAL('triggered()'), self.__toggleAll)
2288 self.viewActions.append(self.toggleAllAct) 2288 self.viewActions.append(self.toggleAllAct)
2289 2289
2290 self.toggleAllChildrenAct = \ 2290 self.toggleAllChildrenAct = \
2291 E4Action(QApplication.translate('ViewManager', 2291 E5Action(QApplication.translate('ViewManager',
2292 'Toggle all folds (including children)'), 2292 'Toggle all folds (including children)'),
2293 QApplication.translate('ViewManager', 2293 QApplication.translate('ViewManager',
2294 'Toggle all &folds (including children)'), 2294 'Toggle all &folds (including children)'),
2295 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds_children') 2295 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds_children')
2296 self.toggleAllChildrenAct.setStatusTip(QApplication.translate('ViewManager', 2296 self.toggleAllChildrenAct.setStatusTip(QApplication.translate('ViewManager',
2302 )) 2302 ))
2303 self.connect(self.toggleAllChildrenAct, SIGNAL('triggered()'), 2303 self.connect(self.toggleAllChildrenAct, SIGNAL('triggered()'),
2304 self.__toggleAllChildren) 2304 self.__toggleAllChildren)
2305 self.viewActions.append(self.toggleAllChildrenAct) 2305 self.viewActions.append(self.toggleAllChildrenAct)
2306 2306
2307 self.toggleCurrentAct = E4Action(QApplication.translate('ViewManager', 2307 self.toggleCurrentAct = E5Action(QApplication.translate('ViewManager',
2308 'Toggle current fold'), 2308 'Toggle current fold'),
2309 QApplication.translate('ViewManager', 'Toggle &current fold'), 2309 QApplication.translate('ViewManager', 'Toggle &current fold'),
2310 0, 0, self.viewFoldActGrp, 'vm_view_toggle_current_fold') 2310 0, 0, self.viewFoldActGrp, 'vm_view_toggle_current_fold')
2311 self.toggleCurrentAct.setStatusTip(QApplication.translate('ViewManager', 2311 self.toggleCurrentAct.setStatusTip(QApplication.translate('ViewManager',
2312 'Toggle current fold')) 2312 'Toggle current fold'))
2315 """<p>Toggle the folds of the current line of the current editor.</p>""" 2315 """<p>Toggle the folds of the current line of the current editor.</p>"""
2316 )) 2316 ))
2317 self.connect(self.toggleCurrentAct, SIGNAL('triggered()'), self.__toggleCurrent) 2317 self.connect(self.toggleCurrentAct, SIGNAL('triggered()'), self.__toggleCurrent)
2318 self.viewActions.append(self.toggleCurrentAct) 2318 self.viewActions.append(self.toggleCurrentAct)
2319 2319
2320 self.unhighlightAct = E4Action(QApplication.translate('ViewManager', 2320 self.unhighlightAct = E5Action(QApplication.translate('ViewManager',
2321 'Remove all highlights'), 2321 'Remove all highlights'),
2322 UI.PixmapCache.getIcon("unhighlight.png"), 2322 UI.PixmapCache.getIcon("unhighlight.png"),
2323 QApplication.translate('ViewManager', 2323 QApplication.translate('ViewManager',
2324 'Remove all highlights'), 2324 'Remove all highlights'),
2325 0, 0, self, 'vm_view_unhighlight') 2325 0, 0, self, 'vm_view_unhighlight')
2330 """<p>Remove the highlights of all editors.</p>""" 2330 """<p>Remove the highlights of all editors.</p>"""
2331 )) 2331 ))
2332 self.connect(self.unhighlightAct, SIGNAL('triggered()'), self.unhighlight) 2332 self.connect(self.unhighlightAct, SIGNAL('triggered()'), self.unhighlight)
2333 self.viewActions.append(self.unhighlightAct) 2333 self.viewActions.append(self.unhighlightAct)
2334 2334
2335 self.splitViewAct = E4Action(QApplication.translate('ViewManager', 'Split view'), 2335 self.splitViewAct = E5Action(QApplication.translate('ViewManager', 'Split view'),
2336 UI.PixmapCache.getIcon("splitVertical.png"), 2336 UI.PixmapCache.getIcon("splitVertical.png"),
2337 QApplication.translate('ViewManager', '&Split view'), 2337 QApplication.translate('ViewManager', '&Split view'),
2338 0, 0, self, 'vm_view_split_view') 2338 0, 0, self, 'vm_view_split_view')
2339 self.splitViewAct.setStatusTip(QApplication.translate('ViewManager', 2339 self.splitViewAct.setStatusTip(QApplication.translate('ViewManager',
2340 'Add a split to the view')) 2340 'Add a split to the view'))
2343 """<p>Add a split to the view.</p>""" 2343 """<p>Add a split to the view.</p>"""
2344 )) 2344 ))
2345 self.connect(self.splitViewAct, SIGNAL('triggered()'), self.__splitView) 2345 self.connect(self.splitViewAct, SIGNAL('triggered()'), self.__splitView)
2346 self.viewActions.append(self.splitViewAct) 2346 self.viewActions.append(self.splitViewAct)
2347 2347
2348 self.splitOrientationAct = E4Action(QApplication.translate('ViewManager', 2348 self.splitOrientationAct = E5Action(QApplication.translate('ViewManager',
2349 'Arrange horizontally'), 2349 'Arrange horizontally'),
2350 QApplication.translate('ViewManager', 2350 QApplication.translate('ViewManager',
2351 'Arrange &horizontally'), 2351 'Arrange &horizontally'),
2352 0, 0, self, 'vm_view_arrange_horizontally', True) 2352 0, 0, self, 'vm_view_arrange_horizontally', True)
2353 self.splitOrientationAct.setStatusTip(QApplication.translate('ViewManager', 2353 self.splitOrientationAct.setStatusTip(QApplication.translate('ViewManager',
2359 self.splitOrientationAct.setChecked(False) 2359 self.splitOrientationAct.setChecked(False)
2360 self.connect(self.splitOrientationAct, SIGNAL('toggled(bool)'), 2360 self.connect(self.splitOrientationAct, SIGNAL('toggled(bool)'),
2361 self.__splitOrientation) 2361 self.__splitOrientation)
2362 self.viewActions.append(self.splitOrientationAct) 2362 self.viewActions.append(self.splitOrientationAct)
2363 2363
2364 self.splitRemoveAct = E4Action(QApplication.translate('ViewManager', 2364 self.splitRemoveAct = E5Action(QApplication.translate('ViewManager',
2365 'Remove split'), 2365 'Remove split'),
2366 UI.PixmapCache.getIcon("remsplitVertical.png"), 2366 UI.PixmapCache.getIcon("remsplitVertical.png"),
2367 QApplication.translate('ViewManager', '&Remove split'), 2367 QApplication.translate('ViewManager', '&Remove split'),
2368 0, 0, self, 'vm_view_remove_split') 2368 0, 0, self, 'vm_view_remove_split')
2369 self.splitRemoveAct.setStatusTip(QApplication.translate('ViewManager', 2369 self.splitRemoveAct.setStatusTip(QApplication.translate('ViewManager',
2373 """<p>Remove the current split.</p>""" 2373 """<p>Remove the current split.</p>"""
2374 )) 2374 ))
2375 self.connect(self.splitRemoveAct, SIGNAL('triggered()'), self.removeSplit) 2375 self.connect(self.splitRemoveAct, SIGNAL('triggered()'), self.removeSplit)
2376 self.viewActions.append(self.splitRemoveAct) 2376 self.viewActions.append(self.splitRemoveAct)
2377 2377
2378 self.nextSplitAct = E4Action(QApplication.translate('ViewManager', 'Next split'), 2378 self.nextSplitAct = E5Action(QApplication.translate('ViewManager', 'Next split'),
2379 QApplication.translate('ViewManager', '&Next split'), 2379 QApplication.translate('ViewManager', '&Next split'),
2380 QKeySequence(QApplication.translate('ViewManager', 2380 QKeySequence(QApplication.translate('ViewManager',
2381 "Ctrl+Alt+N", "View|Next split")), 2381 "Ctrl+Alt+N", "View|Next split")),
2382 0, 2382 0,
2383 self, 'vm_next_split') 2383 self, 'vm_next_split')
2388 """<p>Move to the next split.</p>""" 2388 """<p>Move to the next split.</p>"""
2389 )) 2389 ))
2390 self.connect(self.nextSplitAct, SIGNAL('triggered()'), self.nextSplit) 2390 self.connect(self.nextSplitAct, SIGNAL('triggered()'), self.nextSplit)
2391 self.viewActions.append(self.nextSplitAct) 2391 self.viewActions.append(self.nextSplitAct)
2392 2392
2393 self.prevSplitAct = E4Action(QApplication.translate('ViewManager', 2393 self.prevSplitAct = E5Action(QApplication.translate('ViewManager',
2394 'Previous split'), 2394 'Previous split'),
2395 QApplication.translate('ViewManager', '&Previous split'), 2395 QApplication.translate('ViewManager', '&Previous split'),
2396 QKeySequence(QApplication.translate('ViewManager', 2396 QKeySequence(QApplication.translate('ViewManager',
2397 "Ctrl+Alt+P", "View|Previous split")), 2397 "Ctrl+Alt+P", "View|Previous split")),
2398 0, self, 'vm_previous_split') 2398 0, self, 'vm_previous_split')
2439 2439
2440 def initViewToolbar(self, toolbarManager): 2440 def initViewToolbar(self, toolbarManager):
2441 """ 2441 """
2442 Public method to create the View toolbar 2442 Public method to create the View toolbar
2443 2443
2444 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 2444 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
2445 @return the generated toolbar 2445 @return the generated toolbar
2446 """ 2446 """
2447 tb = QToolBar(QApplication.translate('ViewManager', 'View'), self.ui) 2447 tb = QToolBar(QApplication.translate('ViewManager', 'View'), self.ui)
2448 tb.setIconSize(UI.Config.ToolBarIconSize) 2448 tb.setIconSize(UI.Config.ToolBarIconSize)
2449 tb.setObjectName("ViewToolbar") 2449 tb.setObjectName("ViewToolbar")
2466 """ 2466 """
2467 Private method defining the user interface actions for the macro commands. 2467 Private method defining the user interface actions for the macro commands.
2468 """ 2468 """
2469 self.macroActGrp = createActionGroup(self) 2469 self.macroActGrp = createActionGroup(self)
2470 2470
2471 self.macroStartRecAct = E4Action(QApplication.translate('ViewManager', 2471 self.macroStartRecAct = E5Action(QApplication.translate('ViewManager',
2472 'Start Macro Recording'), 2472 'Start Macro Recording'),
2473 QApplication.translate('ViewManager', 2473 QApplication.translate('ViewManager',
2474 'S&tart Macro Recording'), 2474 'S&tart Macro Recording'),
2475 0, 0, self.macroActGrp, 'vm_macro_start_recording') 2475 0, 0, self.macroActGrp, 'vm_macro_start_recording')
2476 self.macroStartRecAct.setStatusTip(QApplication.translate('ViewManager', 2476 self.macroStartRecAct.setStatusTip(QApplication.translate('ViewManager',
2481 )) 2481 ))
2482 self.connect(self.macroStartRecAct, SIGNAL('triggered()'), 2482 self.connect(self.macroStartRecAct, SIGNAL('triggered()'),
2483 self.__macroStartRecording) 2483 self.__macroStartRecording)
2484 self.macroActions.append(self.macroStartRecAct) 2484 self.macroActions.append(self.macroStartRecAct)
2485 2485
2486 self.macroStopRecAct = E4Action(QApplication.translate('ViewManager', 2486 self.macroStopRecAct = E5Action(QApplication.translate('ViewManager',
2487 'Stop Macro Recording'), 2487 'Stop Macro Recording'),
2488 QApplication.translate('ViewManager', 2488 QApplication.translate('ViewManager',
2489 'Sto&p Macro Recording'), 2489 'Sto&p Macro Recording'),
2490 0, 0, self.macroActGrp, 'vm_macro_stop_recording') 2490 0, 0, self.macroActGrp, 'vm_macro_stop_recording')
2491 self.macroStopRecAct.setStatusTip(QApplication.translate('ViewManager', 2491 self.macroStopRecAct.setStatusTip(QApplication.translate('ViewManager',
2496 )) 2496 ))
2497 self.connect(self.macroStopRecAct, SIGNAL('triggered()'), 2497 self.connect(self.macroStopRecAct, SIGNAL('triggered()'),
2498 self.__macroStopRecording) 2498 self.__macroStopRecording)
2499 self.macroActions.append(self.macroStopRecAct) 2499 self.macroActions.append(self.macroStopRecAct)
2500 2500
2501 self.macroRunAct = E4Action(QApplication.translate('ViewManager', 'Run Macro'), 2501 self.macroRunAct = E5Action(QApplication.translate('ViewManager', 'Run Macro'),
2502 QApplication.translate('ViewManager', '&Run Macro'), 2502 QApplication.translate('ViewManager', '&Run Macro'),
2503 0, 0, self.macroActGrp, 'vm_macro_run') 2503 0, 0, self.macroActGrp, 'vm_macro_run')
2504 self.macroRunAct.setStatusTip(QApplication.translate('ViewManager', 'Run Macro')) 2504 self.macroRunAct.setStatusTip(QApplication.translate('ViewManager', 'Run Macro'))
2505 self.macroRunAct.setWhatsThis(QApplication.translate('ViewManager', 2505 self.macroRunAct.setWhatsThis(QApplication.translate('ViewManager',
2506 """<b>Run Macro</b>""" 2506 """<b>Run Macro</b>"""
2507 """<p>Run a previously recorded editor macro.</p>""" 2507 """<p>Run a previously recorded editor macro.</p>"""
2508 )) 2508 ))
2509 self.connect(self.macroRunAct, SIGNAL('triggered()'), self.__macroRun) 2509 self.connect(self.macroRunAct, SIGNAL('triggered()'), self.__macroRun)
2510 self.macroActions.append(self.macroRunAct) 2510 self.macroActions.append(self.macroRunAct)
2511 2511
2512 self.macroDeleteAct = E4Action(QApplication.translate('ViewManager', 2512 self.macroDeleteAct = E5Action(QApplication.translate('ViewManager',
2513 'Delete Macro'), 2513 'Delete Macro'),
2514 QApplication.translate('ViewManager', '&Delete Macro'), 2514 QApplication.translate('ViewManager', '&Delete Macro'),
2515 0, 0, self.macroActGrp, 'vm_macro_delete') 2515 0, 0, self.macroActGrp, 'vm_macro_delete')
2516 self.macroDeleteAct.setStatusTip(QApplication.translate('ViewManager', 2516 self.macroDeleteAct.setStatusTip(QApplication.translate('ViewManager',
2517 'Delete Macro')) 2517 'Delete Macro'))
2520 """<p>Delete a previously recorded editor macro.</p>""" 2520 """<p>Delete a previously recorded editor macro.</p>"""
2521 )) 2521 ))
2522 self.connect(self.macroDeleteAct, SIGNAL('triggered()'), self.__macroDelete) 2522 self.connect(self.macroDeleteAct, SIGNAL('triggered()'), self.__macroDelete)
2523 self.macroActions.append(self.macroDeleteAct) 2523 self.macroActions.append(self.macroDeleteAct)
2524 2524
2525 self.macroLoadAct = E4Action(QApplication.translate('ViewManager', 'Load Macro'), 2525 self.macroLoadAct = E5Action(QApplication.translate('ViewManager', 'Load Macro'),
2526 QApplication.translate('ViewManager', '&Load Macro'), 2526 QApplication.translate('ViewManager', '&Load Macro'),
2527 0, 0, self.macroActGrp, 'vm_macro_load') 2527 0, 0, self.macroActGrp, 'vm_macro_load')
2528 self.macroLoadAct.setStatusTip(QApplication.translate('ViewManager', 2528 self.macroLoadAct.setStatusTip(QApplication.translate('ViewManager',
2529 'Load Macro')) 2529 'Load Macro'))
2530 self.macroLoadAct.setWhatsThis(QApplication.translate('ViewManager', 2530 self.macroLoadAct.setWhatsThis(QApplication.translate('ViewManager',
2532 """<p>Load an editor macro from a file.</p>""" 2532 """<p>Load an editor macro from a file.</p>"""
2533 )) 2533 ))
2534 self.connect(self.macroLoadAct, SIGNAL('triggered()'), self.__macroLoad) 2534 self.connect(self.macroLoadAct, SIGNAL('triggered()'), self.__macroLoad)
2535 self.macroActions.append(self.macroLoadAct) 2535 self.macroActions.append(self.macroLoadAct)
2536 2536
2537 self.macroSaveAct = E4Action(QApplication.translate('ViewManager', 'Save Macro'), 2537 self.macroSaveAct = E5Action(QApplication.translate('ViewManager', 'Save Macro'),
2538 QApplication.translate('ViewManager', '&Save Macro'), 2538 QApplication.translate('ViewManager', '&Save Macro'),
2539 0, 0, self.macroActGrp, 'vm_macro_save') 2539 0, 0, self.macroActGrp, 'vm_macro_save')
2540 self.macroSaveAct.setStatusTip(QApplication.translate('ViewManager', 2540 self.macroSaveAct.setStatusTip(QApplication.translate('ViewManager',
2541 'Save Macro')) 2541 'Save Macro'))
2542 self.macroSaveAct.setWhatsThis(QApplication.translate('ViewManager', 2542 self.macroSaveAct.setWhatsThis(QApplication.translate('ViewManager',
2568 """ 2568 """
2569 Private method defining the user interface actions for the bookmarks commands. 2569 Private method defining the user interface actions for the bookmarks commands.
2570 """ 2570 """
2571 self.bookmarkActGrp = createActionGroup(self) 2571 self.bookmarkActGrp = createActionGroup(self)
2572 2572
2573 self.bookmarkToggleAct = E4Action(QApplication.translate('ViewManager', 2573 self.bookmarkToggleAct = E5Action(QApplication.translate('ViewManager',
2574 'Toggle Bookmark'), 2574 'Toggle Bookmark'),
2575 UI.PixmapCache.getIcon("bookmarkToggle.png"), 2575 UI.PixmapCache.getIcon("bookmarkToggle.png"),
2576 QApplication.translate('ViewManager', '&Toggle Bookmark'), 2576 QApplication.translate('ViewManager', '&Toggle Bookmark'),
2577 QKeySequence(QApplication.translate('ViewManager', 2577 QKeySequence(QApplication.translate('ViewManager',
2578 "Alt+Ctrl+T", "Bookmark|Toggle")), 0, 2578 "Alt+Ctrl+T", "Bookmark|Toggle")), 0,
2584 """<p>Toggle a bookmark at the current line of the current editor.</p>""" 2584 """<p>Toggle a bookmark at the current line of the current editor.</p>"""
2585 )) 2585 ))
2586 self.connect(self.bookmarkToggleAct, SIGNAL('triggered()'), self.__toggleBookmark) 2586 self.connect(self.bookmarkToggleAct, SIGNAL('triggered()'), self.__toggleBookmark)
2587 self.bookmarkActions.append(self.bookmarkToggleAct) 2587 self.bookmarkActions.append(self.bookmarkToggleAct)
2588 2588
2589 self.bookmarkNextAct = E4Action(QApplication.translate('ViewManager', 2589 self.bookmarkNextAct = E5Action(QApplication.translate('ViewManager',
2590 'Next Bookmark'), 2590 'Next Bookmark'),
2591 UI.PixmapCache.getIcon("bookmarkNext.png"), 2591 UI.PixmapCache.getIcon("bookmarkNext.png"),
2592 QApplication.translate('ViewManager', '&Next Bookmark'), 2592 QApplication.translate('ViewManager', '&Next Bookmark'),
2593 QKeySequence(QApplication.translate('ViewManager', 2593 QKeySequence(QApplication.translate('ViewManager',
2594 "Ctrl+PgDown", "Bookmark|Next")), 0, 2594 "Ctrl+PgDown", "Bookmark|Next")), 0,
2600 """<p>Go to next bookmark of the current editor.</p>""" 2600 """<p>Go to next bookmark of the current editor.</p>"""
2601 )) 2601 ))
2602 self.connect(self.bookmarkNextAct, SIGNAL('triggered()'), self.__nextBookmark) 2602 self.connect(self.bookmarkNextAct, SIGNAL('triggered()'), self.__nextBookmark)
2603 self.bookmarkActions.append(self.bookmarkNextAct) 2603 self.bookmarkActions.append(self.bookmarkNextAct)
2604 2604
2605 self.bookmarkPreviousAct = E4Action(QApplication.translate('ViewManager', 2605 self.bookmarkPreviousAct = E5Action(QApplication.translate('ViewManager',
2606 'Previous Bookmark'), 2606 'Previous Bookmark'),
2607 UI.PixmapCache.getIcon("bookmarkPrevious.png"), 2607 UI.PixmapCache.getIcon("bookmarkPrevious.png"),
2608 QApplication.translate('ViewManager', '&Previous Bookmark'), 2608 QApplication.translate('ViewManager', '&Previous Bookmark'),
2609 QKeySequence(QApplication.translate('ViewManager', 2609 QKeySequence(QApplication.translate('ViewManager',
2610 "Ctrl+PgUp", "Bookmark|Previous")), 2610 "Ctrl+PgUp", "Bookmark|Previous")),
2617 )) 2617 ))
2618 self.connect(self.bookmarkPreviousAct, SIGNAL('triggered()'), 2618 self.connect(self.bookmarkPreviousAct, SIGNAL('triggered()'),
2619 self.__previousBookmark) 2619 self.__previousBookmark)
2620 self.bookmarkActions.append(self.bookmarkPreviousAct) 2620 self.bookmarkActions.append(self.bookmarkPreviousAct)
2621 2621
2622 self.bookmarkClearAct = E4Action(QApplication.translate('ViewManager', 2622 self.bookmarkClearAct = E5Action(QApplication.translate('ViewManager',
2623 'Clear Bookmarks'), 2623 'Clear Bookmarks'),
2624 QApplication.translate('ViewManager', '&Clear Bookmarks'), 2624 QApplication.translate('ViewManager', '&Clear Bookmarks'),
2625 QKeySequence(QApplication.translate('ViewManager', 2625 QKeySequence(QApplication.translate('ViewManager',
2626 "Alt+Ctrl+C", "Bookmark|Clear")), 2626 "Alt+Ctrl+C", "Bookmark|Clear")),
2627 0, 2627 0,
2634 )) 2634 ))
2635 self.connect(self.bookmarkClearAct, SIGNAL('triggered()'), 2635 self.connect(self.bookmarkClearAct, SIGNAL('triggered()'),
2636 self.__clearAllBookmarks) 2636 self.__clearAllBookmarks)
2637 self.bookmarkActions.append(self.bookmarkClearAct) 2637 self.bookmarkActions.append(self.bookmarkClearAct)
2638 2638
2639 self.syntaxErrorGotoAct = E4Action(QApplication.translate('ViewManager', 2639 self.syntaxErrorGotoAct = E5Action(QApplication.translate('ViewManager',
2640 'Goto Syntax Error'), 2640 'Goto Syntax Error'),
2641 UI.PixmapCache.getIcon("syntaxErrorGoto.png"), 2641 UI.PixmapCache.getIcon("syntaxErrorGoto.png"),
2642 QApplication.translate('ViewManager', '&Goto Syntax Error'), 2642 QApplication.translate('ViewManager', '&Goto Syntax Error'),
2643 0, 0, 2643 0, 0,
2644 self.bookmarkActGrp, 'vm_syntaxerror_goto') 2644 self.bookmarkActGrp, 'vm_syntaxerror_goto')
2649 """<p>Go to next syntax error of the current editor.</p>""" 2649 """<p>Go to next syntax error of the current editor.</p>"""
2650 )) 2650 ))
2651 self.connect(self.syntaxErrorGotoAct, SIGNAL('triggered()'), self.__gotoSyntaxError) 2651 self.connect(self.syntaxErrorGotoAct, SIGNAL('triggered()'), self.__gotoSyntaxError)
2652 self.bookmarkActions.append(self.syntaxErrorGotoAct) 2652 self.bookmarkActions.append(self.syntaxErrorGotoAct)
2653 2653
2654 self.syntaxErrorClearAct = E4Action(QApplication.translate('ViewManager', 2654 self.syntaxErrorClearAct = E5Action(QApplication.translate('ViewManager',
2655 'Clear Syntax Errors'), 2655 'Clear Syntax Errors'),
2656 QApplication.translate('ViewManager', 'Clear &Syntax Errors'), 2656 QApplication.translate('ViewManager', 'Clear &Syntax Errors'),
2657 0, 0, 2657 0, 0,
2658 self.bookmarkActGrp, 'vm_syntaxerror_clear') 2658 self.bookmarkActGrp, 'vm_syntaxerror_clear')
2659 self.syntaxErrorClearAct.setStatusTip(QApplication.translate('ViewManager', 2659 self.syntaxErrorClearAct.setStatusTip(QApplication.translate('ViewManager',
2664 )) 2664 ))
2665 self.connect(self.syntaxErrorClearAct, SIGNAL('triggered()'), 2665 self.connect(self.syntaxErrorClearAct, SIGNAL('triggered()'),
2666 self.__clearAllSyntaxErrors) 2666 self.__clearAllSyntaxErrors)
2667 self.bookmarkActions.append(self.syntaxErrorClearAct) 2667 self.bookmarkActions.append(self.syntaxErrorClearAct)
2668 2668
2669 self.notcoveredNextAct = E4Action(QApplication.translate('ViewManager', 2669 self.notcoveredNextAct = E5Action(QApplication.translate('ViewManager',
2670 'Next uncovered line'), 2670 'Next uncovered line'),
2671 UI.PixmapCache.getIcon("notcoveredNext.png"), 2671 UI.PixmapCache.getIcon("notcoveredNext.png"),
2672 QApplication.translate('ViewManager', '&Next uncovered line'), 2672 QApplication.translate('ViewManager', '&Next uncovered line'),
2673 0, 0, 2673 0, 0,
2674 self.bookmarkActGrp, 'vm_uncovered_next') 2674 self.bookmarkActGrp, 'vm_uncovered_next')
2679 """<p>Go to next line of the current editor marked as not covered.</p>""" 2679 """<p>Go to next line of the current editor marked as not covered.</p>"""
2680 )) 2680 ))
2681 self.connect(self.notcoveredNextAct, SIGNAL('triggered()'), self.__nextUncovered) 2681 self.connect(self.notcoveredNextAct, SIGNAL('triggered()'), self.__nextUncovered)
2682 self.bookmarkActions.append(self.notcoveredNextAct) 2682 self.bookmarkActions.append(self.notcoveredNextAct)
2683 2683
2684 self.notcoveredPreviousAct = E4Action(QApplication.translate('ViewManager', 2684 self.notcoveredPreviousAct = E5Action(QApplication.translate('ViewManager',
2685 'Previous uncovered line'), 2685 'Previous uncovered line'),
2686 UI.PixmapCache.getIcon("notcoveredPrev.png"), 2686 UI.PixmapCache.getIcon("notcoveredPrev.png"),
2687 QApplication.translate('ViewManager', 2687 QApplication.translate('ViewManager',
2688 '&Previous uncovered line'), 2688 '&Previous uncovered line'),
2689 0, 0, 2689 0, 0,
2697 )) 2697 ))
2698 self.connect(self.notcoveredPreviousAct, SIGNAL('triggered()'), 2698 self.connect(self.notcoveredPreviousAct, SIGNAL('triggered()'),
2699 self.__previousUncovered) 2699 self.__previousUncovered)
2700 self.bookmarkActions.append(self.notcoveredPreviousAct) 2700 self.bookmarkActions.append(self.notcoveredPreviousAct)
2701 2701
2702 self.taskNextAct = E4Action(QApplication.translate('ViewManager', 2702 self.taskNextAct = E5Action(QApplication.translate('ViewManager',
2703 'Next Task'), 2703 'Next Task'),
2704 UI.PixmapCache.getIcon("taskNext.png"), 2704 UI.PixmapCache.getIcon("taskNext.png"),
2705 QApplication.translate('ViewManager', '&Next Task'), 2705 QApplication.translate('ViewManager', '&Next Task'),
2706 0, 0, 2706 0, 0,
2707 self.bookmarkActGrp, 'vm_task_next') 2707 self.bookmarkActGrp, 'vm_task_next')
2712 """<p>Go to next line of the current editor having a task.</p>""" 2712 """<p>Go to next line of the current editor having a task.</p>"""
2713 )) 2713 ))
2714 self.connect(self.taskNextAct, SIGNAL('triggered()'), self.__nextTask) 2714 self.connect(self.taskNextAct, SIGNAL('triggered()'), self.__nextTask)
2715 self.bookmarkActions.append(self.taskNextAct) 2715 self.bookmarkActions.append(self.taskNextAct)
2716 2716
2717 self.taskPreviousAct = E4Action(QApplication.translate('ViewManager', 2717 self.taskPreviousAct = E5Action(QApplication.translate('ViewManager',
2718 'Previous Task'), 2718 'Previous Task'),
2719 UI.PixmapCache.getIcon("taskPrev.png"), 2719 UI.PixmapCache.getIcon("taskPrev.png"),
2720 QApplication.translate('ViewManager', 2720 QApplication.translate('ViewManager',
2721 '&Previous Task'), 2721 '&Previous Task'),
2722 0, 0, 2722 0, 0,
2769 2769
2770 def initBookmarkToolbar(self, toolbarManager): 2770 def initBookmarkToolbar(self, toolbarManager):
2771 """ 2771 """
2772 Public method to create the Bookmark toolbar 2772 Public method to create the Bookmark toolbar
2773 2773
2774 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 2774 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
2775 @return the generated toolbar 2775 @return the generated toolbar
2776 """ 2776 """
2777 tb = QToolBar(QApplication.translate('ViewManager', 'Bookmarks'), self.ui) 2777 tb = QToolBar(QApplication.translate('ViewManager', 'Bookmarks'), self.ui)
2778 tb.setIconSize(UI.Config.ToolBarIconSize) 2778 tb.setIconSize(UI.Config.ToolBarIconSize)
2779 tb.setObjectName("BookmarksToolbar") 2779 tb.setObjectName("BookmarksToolbar")
2802 """ 2802 """
2803 Private method to initialize the spell checking actions. 2803 Private method to initialize the spell checking actions.
2804 """ 2804 """
2805 self.spellingActGrp = createActionGroup(self) 2805 self.spellingActGrp = createActionGroup(self)
2806 2806
2807 self.spellCheckAct = E4Action(QApplication.translate('ViewManager', 2807 self.spellCheckAct = E5Action(QApplication.translate('ViewManager',
2808 'Spell check'), 2808 'Spell check'),
2809 UI.PixmapCache.getIcon("spellchecking.png"), 2809 UI.PixmapCache.getIcon("spellchecking.png"),
2810 QApplication.translate('ViewManager', 2810 QApplication.translate('ViewManager',
2811 '&Spell Check...'), 2811 '&Spell Check...'),
2812 QKeySequence(QApplication.translate('ViewManager', 2812 QKeySequence(QApplication.translate('ViewManager',
2820 """<p>Perform a spell check of the current editor.</p>""" 2820 """<p>Perform a spell check of the current editor.</p>"""
2821 )) 2821 ))
2822 self.connect(self.spellCheckAct, SIGNAL('triggered()'), self.__spellCheck) 2822 self.connect(self.spellCheckAct, SIGNAL('triggered()'), self.__spellCheck)
2823 self.spellingActions.append(self.spellCheckAct) 2823 self.spellingActions.append(self.spellCheckAct)
2824 2824
2825 self.autoSpellCheckAct = E4Action(QApplication.translate('ViewManager', 2825 self.autoSpellCheckAct = E5Action(QApplication.translate('ViewManager',
2826 'Automatic spell checking'), 2826 'Automatic spell checking'),
2827 UI.PixmapCache.getIcon("autospellchecking.png"), 2827 UI.PixmapCache.getIcon("autospellchecking.png"),
2828 QApplication.translate('ViewManager', 2828 QApplication.translate('ViewManager',
2829 '&Automatic spell checking'), 2829 '&Automatic spell checking'),
2830 0, 0, 2830 0, 0,
2864 2864
2865 def initSpellingToolbar(self, toolbarManager): 2865 def initSpellingToolbar(self, toolbarManager):
2866 """ 2866 """
2867 Public method to create the Spelling toolbar 2867 Public method to create the Spelling toolbar
2868 2868
2869 @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) 2869 @param toolbarManager reference to a toolbar manager object (E5ToolBarManager)
2870 @return the generated toolbar 2870 @return the generated toolbar
2871 """ 2871 """
2872 tb = QToolBar(QApplication.translate('ViewManager', 'Spelling'), self.ui) 2872 tb = QToolBar(QApplication.translate('ViewManager', 'Spelling'), self.ui)
2873 tb.setIconSize(UI.Config.ToolBarIconSize) 2873 tb.setIconSize(UI.Config.ToolBarIconSize)
2874 tb.setObjectName("SpellingToolbar") 2874 tb.setObjectName("SpellingToolbar")
4693 4693
4694 @param type string denoting the action set to get. 4694 @param type string denoting the action set to get.
4695 It must be one of "edit", "file", "search", 4695 It must be one of "edit", "file", "search",
4696 "view", "window", "macro", "bookmark" or 4696 "view", "window", "macro", "bookmark" or
4697 "spelling". 4697 "spelling".
4698 @return list of all actions (list of E4Action) 4698 @return list of all actions (list of E5Action)
4699 """ 4699 """
4700 try: 4700 try:
4701 return self.__actions[type][:] 4701 return self.__actions[type][:]
4702 except KeyError: 4702 except KeyError:
4703 return [] 4703 return []

eric ide

mercurial