diff libgui/src/m-editor/file-editor.cc @ 18782: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 834f6e604dc3
children 095fdef3d67c
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc	Mon Apr 28 09:50:00 2014 +0200
+++ b/libgui/src/m-editor/file-editor.cc	Sun May 11 13:22:57 2014 -0400
@@ -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