Mercurial > hg > octave-nkf
changeset 18920:64bd9afac22c gui-release
Add back main menu copy,paste,select all in editor
* libgui/src/m-editor/file-editor.cc, libgui/src/m-editor/file-editor.h:
(file_editor::copyClipboard): add back function from cs 86eca5d178a6.
(file_editor::pasteClipboard): add back function from cs 86eca5d178a6.
(file_editor::selectAll): add back function from cs 86eca5d178a6.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 11 May 2014 13:22:57 -0400 |
parents | c23e9e29a499 |
children | be569698970c |
files | libgui/src/m-editor/file-editor.cc libgui/src/m-editor/file-editor.h |
diffstat | 2 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc +++ b/libgui/src/m-editor/file-editor.cc @@ -1550,6 +1550,37 @@ } void +file_editor::copyClipboard () +{ + QWidget * foc_w = focusWidget (); + + if (foc_w && foc_w->inherits ("octave_qscintilla")) + { + request_copy (true); + } +} +void +file_editor::pasteClipboard () +{ + QWidget * foc_w = focusWidget (); + + if (foc_w && foc_w->inherits ("octave_qscintilla")) + { + request_paste (true); + } +} +void +file_editor::selectAll () +{ + QWidget * foc_w = focusWidget (); + + if (foc_w && foc_w->inherits ("octave_qscintilla")) + { + request_selectall (true); + } +} + +void file_editor::set_shortcuts () { // File menu