diff libgui/src/m-editor/file-editor.h @ 18721:99e26cb0f87f gui-release

use the actions from the editor for the context menu * octave-qscintilla.cc (contextMenuEvent): emit new signal for adding the actions from the editor to the edit areas context menu * octave-qscintilla.h: new signal * file-editor-tab.cc (create_context_menu): new slot for the new signal from the edit area, (constructor): connect the edit areas signal for creating the context menu to this new slot * file-edit-tab.h: new slot and new signal for the editor dock widget * file-editor.cc (create_context_menu): new slot for the new signal from the edit tab adding the actions from the editor menu to the context menu, (add_new_edit_tab): connect the edit tabs signal for creating the context menu to this new slot * file-editor.h: new slot
author Torsten <ttl@justmail.de>
date Sun, 27 Apr 2014 18:35:19 +0200
parents 74ef7fed8b9a
children fac35875f6eb
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Sun Apr 27 15:13:05 2014 +0200
+++ b/libgui/src/m-editor/file-editor.h	Sun Apr 27 18:35:19 2014 +0200
@@ -213,6 +213,8 @@
   void zoom_out (bool);
   void zoom_normal (bool);
 
+  void create_context_menu (QMenu *);
+
 protected:
 
   void dragEnterEvent(QDragEnterEvent *event);