Mercurial > octave-nkf
comparison libgui/src/m-editor/file-editor.h @ 17628:99ffa521ecec
Add possibility to edit the function related to the actual keyword in editor
* octave-qscintilla.cc(get_actual_word): new internal function;
(context_help_doc): uses new function get_actual_word;
(contextMenuEvent): new context menu for editing function of actual keyword
(context_edit): function for edit action in editor file menu;
(contextmenu_edit): new slot for context menu;
* octave-qscintilla.h: new functions context_edit, contextmenu_edit,
get_actual_word
* file-editor-tab.cc(context_edit): new slot for editor menu action
* file-editor-tab.h: new slot context_edit
* file-editor.cc(request_context_edit): new slot for file menu entry;
(construct): new entry in file menu for editing function of actual keyword;
(add_file_editor_tab): connect new signal fetab_context_edit to the new
slot context_edit in file_editor_tab;
(set_shortcuts): enable/disable new shortcut when editor focus changes
(check_actions): enable/disable new action depending on existing tabs
* file-editor.h: new signal fetab_context_edit, new slot request_context_edit,
new edit function action
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 11 Oct 2013 14:12:37 +0200 |
parents | 811019b9ef57 |
children | 7945344506ae |
comparison
equal
deleted
inserted
replaced
17627:811019b9ef57 | 17628:99ffa521ecec |
---|---|
73 void fetab_redo (const QWidget* ID); | 73 void fetab_redo (const QWidget* ID); |
74 void fetab_copy (const QWidget* ID); | 74 void fetab_copy (const QWidget* ID); |
75 void fetab_cut (const QWidget* ID); | 75 void fetab_cut (const QWidget* ID); |
76 void fetab_paste (const QWidget* ID); | 76 void fetab_paste (const QWidget* ID); |
77 void fetab_context_help (const QWidget* ID, bool); | 77 void fetab_context_help (const QWidget* ID, bool); |
78 void fetab_context_edit (const QWidget* ID); | |
78 void fetab_save_file (const QWidget* ID); | 79 void fetab_save_file (const QWidget* ID); |
79 void fetab_save_file_as (const QWidget* ID); | 80 void fetab_save_file_as (const QWidget* ID); |
80 void fetab_print_file (const QWidget* ID); | 81 void fetab_print_file (const QWidget* ID); |
81 void fetab_run_file (const QWidget* ID); | 82 void fetab_run_file (const QWidget* ID); |
82 void fetab_toggle_bookmark (const QWidget* ID); | 83 void fetab_toggle_bookmark (const QWidget* ID); |
115 void request_copy (void); | 116 void request_copy (void); |
116 void request_cut (void); | 117 void request_cut (void); |
117 void request_paste (void); | 118 void request_paste (void); |
118 void request_context_help (bool); | 119 void request_context_help (bool); |
119 void request_context_doc (bool); | 120 void request_context_doc (bool); |
121 void request_context_edit (bool); | |
120 void request_save_file (void); | 122 void request_save_file (void); |
121 void request_save_file_as (void); | 123 void request_save_file_as (void); |
122 void request_run_file (void); | 124 void request_run_file (void); |
123 void request_toggle_bookmark (void); | 125 void request_toggle_bookmark (void); |
124 void request_next_bookmark (void); | 126 void request_next_bookmark (void); |
205 QAction * _remove_bookmark_action; | 207 QAction * _remove_bookmark_action; |
206 | 208 |
207 QAction *_print_action; | 209 QAction *_print_action; |
208 QAction *_run_action; | 210 QAction *_run_action; |
209 | 211 |
212 QAction *_context_edit_action; | |
210 QAction *_save_action; | 213 QAction *_save_action; |
211 QAction *_save_as_action; | 214 QAction *_save_as_action; |
212 QAction *_close_action; | 215 QAction *_close_action; |
213 QAction *_close_all_action; | 216 QAction *_close_all_action; |
214 QAction *_close_others_action; | 217 QAction *_close_others_action; |