548 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'), |
548 act = E5Action(QApplication.translate('ViewManager', 'Move left one character'), |
549 QApplication.translate('ViewManager', 'Move left one character'), |
549 QApplication.translate('ViewManager', 'Move left one character'), |
550 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, |
550 QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, |
551 self.editorActGrp, 'vm_edit_move_left_char') |
551 self.editorActGrp, 'vm_edit_move_left_char') |
552 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) |
552 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFT) |
553 act.triggered.connect(self.esm.map) |
553 act.triggered[()].connect(self.esm.map) |
554 self.editActions.append(act) |
554 self.editActions.append(act) |
555 |
555 |
556 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), |
556 act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), |
557 QApplication.translate('ViewManager', 'Move right one character'), |
557 QApplication.translate('ViewManager', 'Move right one character'), |
558 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, |
558 QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, |
559 self.editorActGrp, 'vm_edit_move_right_char') |
559 self.editorActGrp, 'vm_edit_move_right_char') |
560 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) |
560 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) |
561 act.triggered.connect(self.esm.map) |
561 act.triggered[()].connect(self.esm.map) |
562 self.editActions.append(act) |
562 self.editActions.append(act) |
563 |
563 |
564 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), |
564 act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), |
565 QApplication.translate('ViewManager', 'Move up one line'), |
565 QApplication.translate('ViewManager', 'Move up one line'), |
566 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, |
566 QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, |
567 self.editorActGrp, 'vm_edit_move_up_line') |
567 self.editorActGrp, 'vm_edit_move_up_line') |
568 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) |
568 self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) |
569 act.triggered.connect(self.esm.map) |
569 act.triggered[()].connect(self.esm.map) |
570 self.editActions.append(act) |
570 self.editActions.append(act) |
571 |
571 |
572 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), |
572 act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), |
573 QApplication.translate('ViewManager', 'Move down one line'), |
573 QApplication.translate('ViewManager', 'Move down one line'), |
574 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, |
574 QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, |
575 self.editorActGrp, 'vm_edit_move_down_line') |
575 self.editorActGrp, 'vm_edit_move_down_line') |
576 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) |
576 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) |
577 act.triggered.connect(self.esm.map) |
577 act.triggered[()].connect(self.esm.map) |
578 self.editActions.append(act) |
578 self.editActions.append(act) |
579 |
579 |
580 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), |
580 act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), |
581 QApplication.translate('ViewManager', 'Move left one word part'), |
581 QApplication.translate('ViewManager', 'Move left one word part'), |
582 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, |
582 QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, |
583 self.editorActGrp, 'vm_edit_move_left_word_part') |
583 self.editorActGrp, 'vm_edit_move_left_word_part') |
584 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) |
584 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) |
585 act.triggered.connect(self.esm.map) |
585 act.triggered[()].connect(self.esm.map) |
586 self.editActions.append(act) |
586 self.editActions.append(act) |
587 |
587 |
588 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), |
588 act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), |
589 QApplication.translate('ViewManager', 'Move right one word part'), |
589 QApplication.translate('ViewManager', 'Move right one word part'), |
590 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, |
590 QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, |
591 self.editorActGrp, 'vm_edit_move_right_word_part') |
591 self.editorActGrp, 'vm_edit_move_right_word_part') |
592 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) |
592 self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) |
593 act.triggered.connect(self.esm.map) |
593 act.triggered[()].connect(self.esm.map) |
594 self.editActions.append(act) |
594 self.editActions.append(act) |
595 |
595 |
596 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), |
596 act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), |
597 QApplication.translate('ViewManager', 'Move left one word'), |
597 QApplication.translate('ViewManager', 'Move left one word'), |
598 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, |
598 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, |
599 self.editorActGrp, 'vm_edit_move_left_word') |
599 self.editorActGrp, 'vm_edit_move_left_word') |
600 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) |
600 self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) |
601 act.triggered.connect(self.esm.map) |
601 act.triggered[()].connect(self.esm.map) |
602 self.editActions.append(act) |
602 self.editActions.append(act) |
603 |
603 |
604 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), |
604 act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), |
605 QApplication.translate('ViewManager', 'Move right one word'), |
605 QApplication.translate('ViewManager', 'Move right one word'), |
606 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), |
606 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), |
607 0, |
607 0, |
608 self.editorActGrp, 'vm_edit_move_right_word') |
608 self.editorActGrp, 'vm_edit_move_right_word') |
609 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) |
609 self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) |
610 act.triggered.connect(self.esm.map) |
610 act.triggered[()].connect(self.esm.map) |
611 self.editActions.append(act) |
611 self.editActions.append(act) |
612 |
612 |
613 act = E5Action(QApplication.translate('ViewManager', |
613 act = E5Action(QApplication.translate('ViewManager', |
614 'Move to first visible character in line'), |
614 'Move to first visible character in line'), |
615 QApplication.translate('ViewManager', |
615 QApplication.translate('ViewManager', |
616 'Move to first visible character in line'), |
616 'Move to first visible character in line'), |
617 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, |
617 QKeySequence(QApplication.translate('ViewManager', 'Home')), 0, |
618 self.editorActGrp, 'vm_edit_move_first_visible_char') |
618 self.editorActGrp, 'vm_edit_move_first_visible_char') |
619 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) |
619 self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) |
620 act.triggered.connect(self.esm.map) |
620 act.triggered[()].connect(self.esm.map) |
621 self.editActions.append(act) |
621 self.editActions.append(act) |
622 |
622 |
623 act = E5Action(QApplication.translate('ViewManager', |
623 act = E5Action(QApplication.translate('ViewManager', |
624 'Move to start of displayed line'), |
624 'Move to start of displayed line'), |
625 QApplication.translate('ViewManager', |
625 QApplication.translate('ViewManager', |
626 'Move to start of displayed line'), |
626 'Move to start of displayed line'), |
627 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, |
627 QKeySequence(QApplication.translate('ViewManager', 'Alt+Home')), 0, |
628 self.editorActGrp, 'vm_edit_move_start_line') |
628 self.editorActGrp, 'vm_edit_move_start_line') |
629 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) |
629 self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) |
630 act.triggered.connect(self.esm.map) |
630 act.triggered[()].connect(self.esm.map) |
631 self.editActions.append(act) |
631 self.editActions.append(act) |
632 |
632 |
633 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), |
633 act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), |
634 QApplication.translate('ViewManager', 'Move to end of line'), |
634 QApplication.translate('ViewManager', 'Move to end of line'), |
635 QKeySequence(QApplication.translate('ViewManager', 'End')), 0, |
635 QKeySequence(QApplication.translate('ViewManager', 'End')), 0, |
636 self.editorActGrp, 'vm_edit_move_end_line') |
636 self.editorActGrp, 'vm_edit_move_end_line') |
637 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) |
637 self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) |
638 act.triggered.connect(self.esm.map) |
638 act.triggered[()].connect(self.esm.map) |
639 self.editActions.append(act) |
639 self.editActions.append(act) |
640 |
640 |
641 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), |
641 act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), |
642 QApplication.translate('ViewManager', 'Scroll view down one line'), |
642 QApplication.translate('ViewManager', 'Scroll view down one line'), |
643 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, |
643 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, |
644 self.editorActGrp, 'vm_edit_scroll_down_line') |
644 self.editorActGrp, 'vm_edit_scroll_down_line') |
645 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) |
645 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) |
646 act.triggered.connect(self.esm.map) |
646 act.triggered[()].connect(self.esm.map) |
647 self.editActions.append(act) |
647 self.editActions.append(act) |
648 |
648 |
649 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), |
649 act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), |
650 QApplication.translate('ViewManager', 'Scroll view up one line'), |
650 QApplication.translate('ViewManager', 'Scroll view up one line'), |
651 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, |
651 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, |
652 self.editorActGrp, 'vm_edit_scroll_up_line') |
652 self.editorActGrp, 'vm_edit_scroll_up_line') |
653 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) |
653 self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) |
654 act.triggered.connect(self.esm.map) |
654 act.triggered[()].connect(self.esm.map) |
655 self.editActions.append(act) |
655 self.editActions.append(act) |
656 |
656 |
657 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), |
657 act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), |
658 QApplication.translate('ViewManager', 'Move up one paragraph'), |
658 QApplication.translate('ViewManager', 'Move up one paragraph'), |
659 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, |
659 QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, |
660 self.editorActGrp, 'vm_edit_move_up_para') |
660 self.editorActGrp, 'vm_edit_move_up_para') |
661 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) |
661 self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) |
662 act.triggered.connect(self.esm.map) |
662 act.triggered[()].connect(self.esm.map) |
663 self.editActions.append(act) |
663 self.editActions.append(act) |
664 |
664 |
665 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), |
665 act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), |
666 QApplication.translate('ViewManager', 'Move down one paragraph'), |
666 QApplication.translate('ViewManager', 'Move down one paragraph'), |
667 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, |
667 QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, |
668 self.editorActGrp, 'vm_edit_move_down_para') |
668 self.editorActGrp, 'vm_edit_move_down_para') |
669 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) |
669 self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) |
670 act.triggered.connect(self.esm.map) |
670 act.triggered[()].connect(self.esm.map) |
671 self.editActions.append(act) |
671 self.editActions.append(act) |
672 |
672 |
673 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), |
673 act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), |
674 QApplication.translate('ViewManager', 'Move up one page'), |
674 QApplication.translate('ViewManager', 'Move up one page'), |
675 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, |
675 QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, |
676 self.editorActGrp, 'vm_edit_move_up_page') |
676 self.editorActGrp, 'vm_edit_move_up_page') |
677 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) |
677 self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) |
678 act.triggered.connect(self.esm.map) |
678 act.triggered[()].connect(self.esm.map) |
679 self.editActions.append(act) |
679 self.editActions.append(act) |
680 |
680 |
681 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), |
681 act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), |
682 QApplication.translate('ViewManager', 'Move down one page'), |
682 QApplication.translate('ViewManager', 'Move down one page'), |
683 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, |
683 QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, |
684 self.editorActGrp, 'vm_edit_move_down_page') |
684 self.editorActGrp, 'vm_edit_move_down_page') |
685 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) |
685 self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) |
686 act.triggered.connect(self.esm.map) |
686 act.triggered[()].connect(self.esm.map) |
687 self.editActions.append(act) |
687 self.editActions.append(act) |
688 |
688 |
689 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), |
689 act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), |
690 QApplication.translate('ViewManager', 'Move to start of text'), |
690 QApplication.translate('ViewManager', 'Move to start of text'), |
691 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, |
691 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, |
692 self.editorActGrp, 'vm_edit_move_start_text') |
692 self.editorActGrp, 'vm_edit_move_start_text') |
693 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) |
693 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) |
694 act.triggered.connect(self.esm.map) |
694 act.triggered[()].connect(self.esm.map) |
695 self.editActions.append(act) |
695 self.editActions.append(act) |
696 |
696 |
697 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), |
697 act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), |
698 QApplication.translate('ViewManager', 'Move to end of text'), |
698 QApplication.translate('ViewManager', 'Move to end of text'), |
699 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, |
699 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, |
700 self.editorActGrp, 'vm_edit_move_end_text') |
700 self.editorActGrp, 'vm_edit_move_end_text') |
701 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) |
701 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) |
702 act.triggered.connect(self.esm.map) |
702 act.triggered[()].connect(self.esm.map) |
703 self.editActions.append(act) |
703 self.editActions.append(act) |
704 |
704 |
705 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), |
705 act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), |
706 QApplication.translate('ViewManager', 'Indent one level'), |
706 QApplication.translate('ViewManager', 'Indent one level'), |
707 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, |
707 QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, |
708 self.editorActGrp, 'vm_edit_indent_one_level') |
708 self.editorActGrp, 'vm_edit_indent_one_level') |
709 self.esm.setMapping(act, QsciScintilla.SCI_TAB) |
709 self.esm.setMapping(act, QsciScintilla.SCI_TAB) |
710 act.triggered.connect(self.esm.map) |
710 act.triggered[()].connect(self.esm.map) |
711 self.editActions.append(act) |
711 self.editActions.append(act) |
712 |
712 |
713 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), |
713 act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), |
714 QApplication.translate('ViewManager', 'Unindent one level'), |
714 QApplication.translate('ViewManager', 'Unindent one level'), |
715 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, |
715 QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, |
716 self.editorActGrp, 'vm_edit_unindent_one_level') |
716 self.editorActGrp, 'vm_edit_unindent_one_level') |
717 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) |
717 self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) |
718 act.triggered.connect(self.esm.map) |
718 act.triggered[()].connect(self.esm.map) |
719 self.editActions.append(act) |
719 self.editActions.append(act) |
720 |
720 |
721 act = E5Action(QApplication.translate('ViewManager', |
721 act = E5Action(QApplication.translate('ViewManager', |
722 'Extend selection left one character'), |
722 'Extend selection left one character'), |
723 QApplication.translate('ViewManager', |
723 QApplication.translate('ViewManager', |
724 'Extend selection left one character'), |
724 'Extend selection left one character'), |
725 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')), |
725 QKeySequence(QApplication.translate('ViewManager', 'Shift+Left')), |
726 0, |
726 0, |
727 self.editorActGrp, 'vm_edit_extend_selection_left_char') |
727 self.editorActGrp, 'vm_edit_extend_selection_left_char') |
728 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) |
728 self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) |
729 act.triggered.connect(self.esm.map) |
729 act.triggered[()].connect(self.esm.map) |
730 self.editActions.append(act) |
730 self.editActions.append(act) |
731 |
731 |
732 act = E5Action(QApplication.translate('ViewManager', |
732 act = E5Action(QApplication.translate('ViewManager', |
733 'Extend selection right one character'), |
733 'Extend selection right one character'), |
734 QApplication.translate('ViewManager', |
734 QApplication.translate('ViewManager', |
735 'Extend selection right one character'), |
735 'Extend selection right one character'), |
736 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')), |
736 QKeySequence(QApplication.translate('ViewManager', 'Shift+Right')), |
737 0, |
737 0, |
738 self.editorActGrp, 'vm_edit_extend_selection_right_char') |
738 self.editorActGrp, 'vm_edit_extend_selection_right_char') |
739 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) |
739 self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) |
740 act.triggered.connect(self.esm.map) |
740 act.triggered[()].connect(self.esm.map) |
741 self.editActions.append(act) |
741 self.editActions.append(act) |
742 |
742 |
743 act = E5Action(QApplication.translate('ViewManager', |
743 act = E5Action(QApplication.translate('ViewManager', |
744 'Extend selection up one line'), |
744 'Extend selection up one line'), |
745 QApplication.translate('ViewManager', |
745 QApplication.translate('ViewManager', |
746 'Extend selection up one line'), |
746 'Extend selection up one line'), |
747 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, |
747 QKeySequence(QApplication.translate('ViewManager', 'Shift+Up')), 0, |
748 self.editorActGrp, 'vm_edit_extend_selection_up_line') |
748 self.editorActGrp, 'vm_edit_extend_selection_up_line') |
749 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) |
749 self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) |
750 act.triggered.connect(self.esm.map) |
750 act.triggered[()].connect(self.esm.map) |
751 self.editActions.append(act) |
751 self.editActions.append(act) |
752 |
752 |
753 act = E5Action(QApplication.translate('ViewManager', |
753 act = E5Action(QApplication.translate('ViewManager', |
754 'Extend selection down one line'), |
754 'Extend selection down one line'), |
755 QApplication.translate('ViewManager', |
755 QApplication.translate('ViewManager', |
756 'Extend selection down one line'), |
756 'Extend selection down one line'), |
757 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')), |
757 QKeySequence(QApplication.translate('ViewManager', 'Shift+Down')), |
758 0, |
758 0, |
759 self.editorActGrp, 'vm_edit_extend_selection_down_line') |
759 self.editorActGrp, 'vm_edit_extend_selection_down_line') |
760 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) |
760 self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) |
761 act.triggered.connect(self.esm.map) |
761 act.triggered[()].connect(self.esm.map) |
762 self.editActions.append(act) |
762 self.editActions.append(act) |
763 |
763 |
764 act = E5Action(QApplication.translate('ViewManager', |
764 act = E5Action(QApplication.translate('ViewManager', |
765 'Extend selection left one word part'), |
765 'Extend selection left one word part'), |
766 QApplication.translate('ViewManager', |
766 QApplication.translate('ViewManager', |
906 QKeySequence(QApplication.translate('ViewManager', |
906 QKeySequence(QApplication.translate('ViewManager', |
907 'Ctrl+Shift+End')), |
907 'Ctrl+Shift+End')), |
908 0, |
908 0, |
909 self.editorActGrp, 'vm_edit_extend_selection_end_text') |
909 self.editorActGrp, 'vm_edit_extend_selection_end_text') |
910 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) |
910 self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) |
911 act.triggered.connect(self.esm.map) |
911 act.triggered[()].connect(self.esm.map) |
912 self.editActions.append(act) |
912 self.editActions.append(act) |
913 |
913 |
914 act = E5Action(QApplication.translate('ViewManager', |
914 act = E5Action(QApplication.translate('ViewManager', |
915 'Delete previous character'), |
915 'Delete previous character'), |
916 QApplication.translate('ViewManager', 'Delete previous character'), |
916 QApplication.translate('ViewManager', 'Delete previous character'), |
917 QKeySequence(QApplication.translate('ViewManager', 'Backspace')), |
917 QKeySequence(QApplication.translate('ViewManager', 'Backspace')), |
918 QKeySequence(QApplication.translate('ViewManager', |
918 QKeySequence(QApplication.translate('ViewManager', |
919 'Shift+Backspace')), |
919 'Shift+Backspace')), |
920 self.editorActGrp, 'vm_edit_delete_previous_char') |
920 self.editorActGrp, 'vm_edit_delete_previous_char') |
921 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) |
921 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) |
922 act.triggered.connect(self.esm.map) |
922 act.triggered[()].connect(self.esm.map) |
923 self.editActions.append(act) |
923 self.editActions.append(act) |
924 |
924 |
925 act = E5Action(QApplication.translate('ViewManager', |
925 act = E5Action(QApplication.translate('ViewManager', |
926 'Delete previous character if not at line start'), |
926 'Delete previous character if not at line start'), |
927 QApplication.translate('ViewManager', |
927 QApplication.translate('ViewManager', |
928 'Delete previous character if not at line start'), |
928 'Delete previous character if not at line start'), |
929 0, 0, |
929 0, 0, |
930 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') |
930 self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') |
931 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) |
931 self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) |
932 act.triggered.connect(self.esm.map) |
932 act.triggered[()].connect(self.esm.map) |
933 self.editActions.append(act) |
933 self.editActions.append(act) |
934 |
934 |
935 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), |
935 act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), |
936 QApplication.translate('ViewManager', 'Delete current character'), |
936 QApplication.translate('ViewManager', 'Delete current character'), |
937 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, |
937 QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, |
938 self.editorActGrp, 'vm_edit_delete_current_char') |
938 self.editorActGrp, 'vm_edit_delete_current_char') |
939 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) |
939 self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) |
940 act.triggered.connect(self.esm.map) |
940 act.triggered[()].connect(self.esm.map) |
941 self.editActions.append(act) |
941 self.editActions.append(act) |
942 |
942 |
943 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), |
943 act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), |
944 QApplication.translate('ViewManager', 'Delete word to left'), |
944 QApplication.translate('ViewManager', 'Delete word to left'), |
945 QKeySequence(QApplication.translate('ViewManager', |
945 QKeySequence(QApplication.translate('ViewManager', |
946 'Ctrl+Backspace')), |
946 'Ctrl+Backspace')), |
947 0, |
947 0, |
948 self.editorActGrp, 'vm_edit_delete_word_left') |
948 self.editorActGrp, 'vm_edit_delete_word_left') |
949 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) |
949 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) |
950 act.triggered.connect(self.esm.map) |
950 act.triggered[()].connect(self.esm.map) |
951 self.editActions.append(act) |
951 self.editActions.append(act) |
952 |
952 |
953 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), |
953 act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), |
954 QApplication.translate('ViewManager', 'Delete word to right'), |
954 QApplication.translate('ViewManager', 'Delete word to right'), |
955 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, |
955 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, |
956 self.editorActGrp, 'vm_edit_delete_word_right') |
956 self.editorActGrp, 'vm_edit_delete_word_right') |
957 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) |
957 self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) |
958 act.triggered.connect(self.esm.map) |
958 act.triggered[()].connect(self.esm.map) |
959 self.editActions.append(act) |
959 self.editActions.append(act) |
960 |
960 |
961 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), |
961 act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), |
962 QApplication.translate('ViewManager', 'Delete line to left'), |
962 QApplication.translate('ViewManager', 'Delete line to left'), |
963 QKeySequence(QApplication.translate('ViewManager', |
963 QKeySequence(QApplication.translate('ViewManager', |
964 'Ctrl+Shift+Backspace')), |
964 'Ctrl+Shift+Backspace')), |
965 0, |
965 0, |
966 self.editorActGrp, 'vm_edit_delete_line_left') |
966 self.editorActGrp, 'vm_edit_delete_line_left') |
967 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) |
967 self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) |
968 act.triggered.connect(self.esm.map) |
968 act.triggered[()].connect(self.esm.map) |
969 self.editActions.append(act) |
969 self.editActions.append(act) |
970 |
970 |
971 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), |
971 act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), |
972 QApplication.translate('ViewManager', 'Delete line to right'), |
972 QApplication.translate('ViewManager', 'Delete line to right'), |
973 QKeySequence(QApplication.translate('ViewManager', |
973 QKeySequence(QApplication.translate('ViewManager', |
974 'Ctrl+Shift+Del')), |
974 'Ctrl+Shift+Del')), |
975 0, |
975 0, |
976 self.editorActGrp, 'vm_edit_delete_line_right') |
976 self.editorActGrp, 'vm_edit_delete_line_right') |
977 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) |
977 self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) |
978 act.triggered.connect(self.esm.map) |
978 act.triggered[()].connect(self.esm.map) |
979 self.editActions.append(act) |
979 self.editActions.append(act) |
980 |
980 |
981 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), |
981 act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), |
982 QApplication.translate('ViewManager', 'Insert new line'), |
982 QApplication.translate('ViewManager', 'Insert new line'), |
983 QKeySequence(QApplication.translate('ViewManager', 'Return')), |
983 QKeySequence(QApplication.translate('ViewManager', 'Return')), |
984 QKeySequence(QApplication.translate('ViewManager', 'Enter')), |
984 QKeySequence(QApplication.translate('ViewManager', 'Enter')), |
985 self.editorActGrp, 'vm_edit_insert_line') |
985 self.editorActGrp, 'vm_edit_insert_line') |
986 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) |
986 self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) |
987 act.triggered.connect(self.esm.map) |
987 act.triggered[()].connect(self.esm.map) |
988 self.editActions.append(act) |
988 self.editActions.append(act) |
989 |
989 |
990 act = E5Action(QApplication.translate('ViewManager', |
990 act = E5Action(QApplication.translate('ViewManager', |
991 'Insert new line below current line'), |
991 'Insert new line below current line'), |
992 QApplication.translate('ViewManager', |
992 QApplication.translate('ViewManager', |
993 'Insert new line below current line'), |
993 'Insert new line below current line'), |
994 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), |
994 QKeySequence(QApplication.translate('ViewManager', 'Shift+Return')), |
995 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), |
995 QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), |
996 self.editorActGrp, 'vm_edit_insert_line_below') |
996 self.editorActGrp, 'vm_edit_insert_line_below') |
997 act.triggered.connect(self.__textEdit.newLineBelow) |
997 act.triggered[()].connect(self.__textEdit.newLineBelow) |
998 self.editActions.append(act) |
998 self.editActions.append(act) |
999 |
999 |
1000 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), |
1000 act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), |
1001 QApplication.translate('ViewManager', 'Delete current line'), |
1001 QApplication.translate('ViewManager', 'Delete current line'), |
1002 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), |
1002 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), |
1003 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), |
1003 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), |
1004 self.editorActGrp, 'vm_edit_delete_current_line') |
1004 self.editorActGrp, 'vm_edit_delete_current_line') |
1005 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) |
1005 self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) |
1006 act.triggered.connect(self.esm.map) |
1006 act.triggered[()].connect(self.esm.map) |
1007 self.editActions.append(act) |
1007 self.editActions.append(act) |
1008 |
1008 |
1009 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), |
1009 act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), |
1010 QApplication.translate('ViewManager', 'Duplicate current line'), |
1010 QApplication.translate('ViewManager', 'Duplicate current line'), |
1011 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, |
1011 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, |
1012 self.editorActGrp, 'vm_edit_duplicate_current_line') |
1012 self.editorActGrp, 'vm_edit_duplicate_current_line') |
1013 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) |
1013 self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) |
1014 act.triggered.connect(self.esm.map) |
1014 act.triggered[()].connect(self.esm.map) |
1015 self.editActions.append(act) |
1015 self.editActions.append(act) |
1016 |
1016 |
1017 act = E5Action(QApplication.translate('ViewManager', |
1017 act = E5Action(QApplication.translate('ViewManager', |
1018 'Swap current and previous lines'), |
1018 'Swap current and previous lines'), |
1019 QApplication.translate('ViewManager', |
1019 QApplication.translate('ViewManager', |
1020 'Swap current and previous lines'), |
1020 'Swap current and previous lines'), |
1021 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, |
1021 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, |
1022 self.editorActGrp, 'vm_edit_swap_current_previous_line') |
1022 self.editorActGrp, 'vm_edit_swap_current_previous_line') |
1023 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) |
1023 self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) |
1024 act.triggered.connect(self.esm.map) |
1024 act.triggered[()].connect(self.esm.map) |
1025 self.editActions.append(act) |
1025 self.editActions.append(act) |
1026 |
1026 |
1027 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), |
1027 act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), |
1028 QApplication.translate('ViewManager', 'Cut current line'), |
1028 QApplication.translate('ViewManager', 'Cut current line'), |
1029 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), |
1029 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), |
1030 0, |
1030 0, |
1031 self.editorActGrp, 'vm_edit_cut_current_line') |
1031 self.editorActGrp, 'vm_edit_cut_current_line') |
1032 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) |
1032 self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) |
1033 act.triggered.connect(self.esm.map) |
1033 act.triggered[()].connect(self.esm.map) |
1034 self.editActions.append(act) |
1034 self.editActions.append(act) |
1035 |
1035 |
1036 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), |
1036 act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), |
1037 QApplication.translate('ViewManager', 'Copy current line'), |
1037 QApplication.translate('ViewManager', 'Copy current line'), |
1038 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), |
1038 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), |
1039 0, |
1039 0, |
1040 self.editorActGrp, 'vm_edit_copy_current_line') |
1040 self.editorActGrp, 'vm_edit_copy_current_line') |
1041 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) |
1041 self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) |
1042 act.triggered.connect(self.esm.map) |
1042 act.triggered[()].connect(self.esm.map) |
1043 self.editActions.append(act) |
1043 self.editActions.append(act) |
1044 |
1044 |
1045 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), |
1045 act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), |
1046 QApplication.translate('ViewManager', 'Toggle insert/overtype'), |
1046 QApplication.translate('ViewManager', 'Toggle insert/overtype'), |
1047 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, |
1047 QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, |
1048 self.editorActGrp, 'vm_edit_toggle_insert_overtype') |
1048 self.editorActGrp, 'vm_edit_toggle_insert_overtype') |
1049 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) |
1049 self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) |
1050 act.triggered.connect(self.esm.map) |
1050 act.triggered[()].connect(self.esm.map) |
1051 self.editActions.append(act) |
1051 self.editActions.append(act) |
1052 |
1052 |
1053 act = E5Action(QApplication.translate('ViewManager', |
1053 act = E5Action(QApplication.translate('ViewManager', |
1054 'Convert selection to lower case'), |
1054 'Convert selection to lower case'), |
1055 QApplication.translate('ViewManager', |
1055 QApplication.translate('ViewManager', |
1056 'Convert selection to lower case'), |
1056 'Convert selection to lower case'), |
1057 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), |
1057 QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), |
1058 0, |
1058 0, |
1059 self.editorActGrp, 'vm_edit_convert_selection_lower') |
1059 self.editorActGrp, 'vm_edit_convert_selection_lower') |
1060 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) |
1060 self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) |
1061 act.triggered.connect(self.esm.map) |
1061 act.triggered[()].connect(self.esm.map) |
1062 self.editActions.append(act) |
1062 self.editActions.append(act) |
1063 |
1063 |
1064 act = E5Action(QApplication.translate('ViewManager', |
1064 act = E5Action(QApplication.translate('ViewManager', |
1065 'Convert selection to upper case'), |
1065 'Convert selection to upper case'), |
1066 QApplication.translate('ViewManager', |
1066 QApplication.translate('ViewManager', |
1067 'Convert selection to upper case'), |
1067 'Convert selection to upper case'), |
1068 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')), |
1068 QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+U')), |
1069 0, |
1069 0, |
1070 self.editorActGrp, 'vm_edit_convert_selection_upper') |
1070 self.editorActGrp, 'vm_edit_convert_selection_upper') |
1071 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) |
1071 self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) |
1072 act.triggered.connect(self.esm.map) |
1072 act.triggered[()].connect(self.esm.map) |
1073 self.editActions.append(act) |
1073 self.editActions.append(act) |
1074 |
1074 |
1075 act = E5Action(QApplication.translate('ViewManager', |
1075 act = E5Action(QApplication.translate('ViewManager', |
1076 'Move to end of displayed line'), |
1076 'Move to end of displayed line'), |
1077 QApplication.translate('ViewManager', |
1077 QApplication.translate('ViewManager', |
1078 'Move to end of displayed line'), |
1078 'Move to end of displayed line'), |
1079 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, |
1079 QKeySequence(QApplication.translate('ViewManager', 'Alt+End')), 0, |
1080 self.editorActGrp, 'vm_edit_move_end_displayed_line') |
1080 self.editorActGrp, 'vm_edit_move_end_displayed_line') |
1081 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) |
1081 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) |
1082 act.triggered.connect(self.esm.map) |
1082 act.triggered[()].connect(self.esm.map) |
1083 self.editActions.append(act) |
1083 self.editActions.append(act) |
1084 |
1084 |
1085 act = E5Action(QApplication.translate('ViewManager', |
1085 act = E5Action(QApplication.translate('ViewManager', |
1086 'Extend selection to end of displayed line'), |
1086 'Extend selection to end of displayed line'), |
1087 QApplication.translate('ViewManager', |
1087 QApplication.translate('ViewManager', |
1088 'Extend selection to end of displayed line'), |
1088 'Extend selection to end of displayed line'), |
1089 0, 0, |
1089 0, 0, |
1090 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') |
1090 self.editorActGrp, 'vm_edit_extend_selection_end_displayed_line') |
1091 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) |
1091 self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) |
1092 act.triggered.connect(self.esm.map) |
1092 act.triggered[()].connect(self.esm.map) |
1093 self.editActions.append(act) |
1093 self.editActions.append(act) |
1094 |
1094 |
1095 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), |
1095 act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), |
1096 QApplication.translate('ViewManager', 'Formfeed'), |
1096 QApplication.translate('ViewManager', 'Formfeed'), |
1097 0, 0, |
1097 0, 0, |
1098 self.editorActGrp, 'vm_edit_formfeed') |
1098 self.editorActGrp, 'vm_edit_formfeed') |
1099 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) |
1099 self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) |
1100 act.triggered.connect(self.esm.map) |
1100 act.triggered[()].connect(self.esm.map) |
1101 self.editActions.append(act) |
1101 self.editActions.append(act) |
1102 |
1102 |
1103 act = E5Action(QApplication.translate('ViewManager', 'Escape'), |
1103 act = E5Action(QApplication.translate('ViewManager', 'Escape'), |
1104 QApplication.translate('ViewManager', 'Escape'), |
1104 QApplication.translate('ViewManager', 'Escape'), |
1105 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, |
1105 QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, |
1106 self.editorActGrp, 'vm_edit_escape') |
1106 self.editorActGrp, 'vm_edit_escape') |
1107 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) |
1107 self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) |
1108 act.triggered.connect(self.esm.map) |
1108 act.triggered[()].connect(self.esm.map) |
1109 self.editActions.append(act) |
1109 self.editActions.append(act) |
1110 |
1110 |
1111 act = E5Action(QApplication.translate('ViewManager', |
1111 act = E5Action(QApplication.translate('ViewManager', |
1112 'Extend rectangular selection down one line'), |
1112 'Extend rectangular selection down one line'), |
1113 QApplication.translate('ViewManager', |
1113 QApplication.translate('ViewManager', |