Mercurial > octave-libgccjit
diff libgui/src/shortcut-manager.cc @ 18697:908523bd79b4 gui-release
use shortcut manager for the debug menu
* main-window.cc (add_action): new function for adding actions to menus and
setting Qt::ApplicationShortcut to the actions;
(construct_debug_menu_item): do not set shortcuts but the slot here;
(construct_debug_menu): update calls to construct_debug_menu_item;
(set_global_shortcuts): set the shortcut for the actions and the settings key
* main-window.h: new function add_action, changed paramters of
construct_debug_menu_item
* shortcut-manager.cc (do_init_data): init the shortcuts for the debug menus
author | Torsten <ttl@justmail.de> |
---|---|
date | Mon, 28 Apr 2014 22:48:28 +0200 |
parents | 03edfcd943db |
children | f31fde98c872 |
line wrap: on
line diff
--- a/libgui/src/shortcut-manager.cc Mon Apr 28 11:38:56 2014 -0700 +++ b/libgui/src/shortcut-manager.cc Mon Apr 28 22:48:28 2014 +0200 @@ -102,6 +102,13 @@ init (tr ("Clear Command History"), "main_edit:clear_history", QKeySequence () ); init (tr ("Clear Workspace"), "main_edit:clear_workspace", QKeySequence () ); + // debug + init (tr ("Step Over"), "main_debug:step_over", QKeySequence (Qt::Key_F10)); + init (tr ("Step Into"), "main_debug:step_into", QKeySequence (Qt::Key_F11)); + init (tr ("Step Out"), "main_debug:step_out", QKeySequence (Qt::ShiftModifier + Qt::Key_F11)); + init (tr ("Continue"), "main_debug:continue", QKeySequence (Qt::Key_F5)); + init (tr ("Quit Debug Mode"), "main_debug:quit", QKeySequence (Qt::ShiftModifier + Qt::Key_F5)); + // actions of the editor // file