Mercurial > octave
diff libgui/src/m-editor/file-editor.h @ 20693:7751bd56d0be
added actions and shortcuts for switching editor tabs
* file-editor.cc (add_action): allow actions added to the widget without menu
entry;
(construct): added action for switching to left/right tab;
(set_shortcuts): set the shortcuts to the new actions;
(switch_left_tab): slot for switching to left tab;
(switch_right_tab): slot for switching to right tab;
(switch_tab): common slot for switching tabs
* file-editor.h: new actions and slots for switching tabs
* shortcut-manager.cc (do_init_data): init the new shortcuts with the
default key sequences or the ones from the settings file;
(do_fill_treewidget): add tab navigation with the new shortcuts to the
tree widget in the settings dialog;
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 11 Nov 2015 20:09:31 +0100 |
parents | f7a805f02723 |
children | 632683d6396f |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h Sun Nov 08 21:34:44 2015 -0800 +++ b/libgui/src/m-editor/file-editor.h Wed Nov 11 20:09:31 2015 +0100 @@ -234,6 +234,9 @@ void zoom_out (bool); void zoom_normal (bool); + void switch_left_tab (); + void switch_right_tab (); + void create_context_menu (QMenu *); void edit_status_update (bool, bool); @@ -253,6 +256,8 @@ void toggle_preference (const QString& preference, bool def); + void switch_tab (int direction); + bool editor_tab_has_focus (); QWidget *find_tab_widget (const QString& openFileName) const; @@ -338,6 +343,9 @@ QAction *_preferences_action; QAction *_styles_preferences_action; + QAction *_switch_left_tab_action; + QAction *_switch_right_tab_action; + QAction *_toggle_breakpoint_action; QAction *_next_breakpoint_action; QAction *_previous_breakpoint_action;