Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.h @ 18842: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-tab.h +++ b/libgui/src/m-editor/file-editor-tab.h @@ -116,6 +116,7 @@ void execute_command_in_terminal (const QString& command); void edit_area_has_focus (bool foucs); + void create_context_menu (QMenu *); signals: @@ -129,6 +130,7 @@ void run_file_signal (const QFileInfo& info); void execute_command_in_terminal_signal (const QString&); void set_global_edit_shortcuts_signal (bool); + void create_context_menu_tab_signal (QMenu *); protected: