Mercurial > octave-libgccjit
diff libgui/src/shortcut-manager.cc @ 18710:584b20e9112c gui-release
use shortcut manager for the main help menu
* main_window.cc (add_action): new parameter for the signal receiver;
(construct_help_menu): use add_action for the actions of the menu;
(construct_documentation_menu): use add_action for the actions of the menu;
(set_global_shortcuts): set/unset shortcuts
* main-window.h: actions are class variables, add_action with new parameter
* shortcut-manager.cc (do_init_data): initialize the shortcuts in the help menu
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 01 May 2014 12:12:08 +0200 |
parents | f31fde98c872 |
children | 9ef65c422f53 |
line wrap: on
line diff
--- a/libgui/src/shortcut-manager.cc Wed Apr 30 19:58:47 2014 +0200 +++ b/libgui/src/shortcut-manager.cc Thu May 01 12:12:08 2014 +0200 @@ -126,6 +126,16 @@ init (tr ("Documentation"), "main_window:doc", ctrl + Qt::Key_5); init (tr ("Reset Window Layout"), "main_window:reset", QKeySequence ()); + // help + init (tr ("Show Ondisk Documentation"), "main_help:ondisk_doc", QKeySequence ()); + init (tr ("Show Online Documentation"), "main_help:online_doc", QKeySequence ()); + init (tr ("Report a Bug"), "main_help:report_bug", QKeySequence ()); + init (tr ("Octave Packages"), "main_help:packages", QKeySequence ()); + init (tr ("Share Code"), "main_help:agora", QKeySequence ()); + init (tr ("Contribute to Octave"), "main_help:contribute", QKeySequence ()); + init (tr ("Octave Developer Resources"), "main_help:developer", QKeySequence ()); + init (tr ("About Octave"), "main_help:about", QKeySequence ()); + // actions of the editor // file