843 """<b>Clear</b>""" |
843 """<b>Clear</b>""" |
844 """<p>Delete all text of the current editor.</p>""" |
844 """<p>Delete all text of the current editor.</p>""" |
845 )) |
845 )) |
846 self.deleteAct.triggered[()].connect(self.__editDelete) |
846 self.deleteAct.triggered[()].connect(self.__editDelete) |
847 self.editActions.append(self.deleteAct) |
847 self.editActions.append(self.deleteAct) |
|
848 |
|
849 self.joinAct = E5Action(QApplication.translate('ViewManager', 'Join Lines'), |
|
850 QApplication.translate('ViewManager', 'Join Lines'), |
|
851 QKeySequence(QApplication.translate('ViewManager', |
|
852 "Ctrl+J", "Edit|Join Lines")), |
|
853 0, |
|
854 self.copyActGrp, 'vm_edit_join_lines') |
|
855 self.joinAct.setStatusTip(QApplication.translate('ViewManager', |
|
856 'Join Lines')) |
|
857 self.joinAct.setWhatsThis(QApplication.translate('ViewManager', |
|
858 """<b>Join Lines</b>""" |
|
859 """<p>Join the current and the next lines.</p>""" |
|
860 )) |
|
861 self.joinAct.triggered[()].connect(self.__editJoin) |
|
862 self.editActions.append(self.joinAct) |
848 |
863 |
849 self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'), |
864 self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'), |
850 UI.PixmapCache.getIcon("editIndent.png"), |
865 UI.PixmapCache.getIcon("editIndent.png"), |
851 QApplication.translate('ViewManager', '&Indent'), |
866 QApplication.translate('ViewManager', '&Indent'), |
852 QKeySequence(QApplication.translate('ViewManager', |
867 QKeySequence(QApplication.translate('ViewManager', |
3801 e5App().getObject("Shell").clear() |
3816 e5App().getObject("Shell").clear() |
3802 elif QApplication.focusWidget() == e5App().getObject("Terminal"): |
3817 elif QApplication.focusWidget() == e5App().getObject("Terminal"): |
3803 e5App().getObject("Terminal").clear() |
3818 e5App().getObject("Terminal").clear() |
3804 else: |
3819 else: |
3805 self.activeWindow().clear() |
3820 self.activeWindow().clear() |
|
3821 |
|
3822 def __editJoin(self): |
|
3823 """ |
|
3824 Private method to handle the join action. |
|
3825 """ |
|
3826 self.activeWindow().joinLines() |
3806 |
3827 |
3807 def __editIndent(self): |
3828 def __editIndent(self): |
3808 """ |
3829 """ |
3809 Private method to handle the indent action. |
3830 Private method to handle the indent action. |
3810 """ |
3831 """ |