Mercurial > octave
comparison libgui/src/shortcut-manager.cc @ 31647:431f80aba37a
maint: Merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 06 Dec 2022 15:37:43 -0500 |
parents | ca7d58406f82 c6d54dd31a7e |
children | deb553ac2c54 |
comparison
equal
deleted
inserted
replaced
31645:bd9da634f00d | 31647:431f80aba37a |
---|---|
46 #include "gui-preferences-global.h" | 46 #include "gui-preferences-global.h" |
47 #include "gui-preferences-sc.h" | 47 #include "gui-preferences-sc.h" |
48 #include "gui-settings.h" | 48 #include "gui-settings.h" |
49 #include "error.h" | 49 #include "error.h" |
50 | 50 |
51 namespace octave | 51 OCTAVE_BEGIN_NAMESPACE(octave) |
52 { | 52 |
53 // enter_shortcut: | 53 // enter_shortcut: |
54 // class derived from QLineEdit for directly entering key sequences which | 54 // class derived from QLineEdit for directly entering key sequences which |
55 | 55 |
56 enter_shortcut::enter_shortcut (QWidget *p) : QLineEdit (p) | 56 enter_shortcut::enter_shortcut (QWidget *p) : QLineEdit (p) |
57 { | 57 { |
105 if (state) | 105 if (state) |
106 m_shift_modifier = true; // the shortcut is directly entered | 106 m_shift_modifier = true; // the shortcut is directly entered |
107 else | 107 else |
108 m_shift_modifier = false; // the shortcut has to be written as text | 108 m_shift_modifier = false; // the shortcut has to be written as text |
109 } | 109 } |
110 | |
111 | 110 |
112 shortcut_manager::shortcut_manager (void) | 111 shortcut_manager::shortcut_manager (void) |
113 { | 112 { |
114 setObjectName ("Shortcut_Manager"); | 113 setObjectName ("Shortcut_Manager"); |
115 | 114 |
295 init (tr ("Run Selection"), sc_edit_run_run_selection); | 294 init (tr ("Run Selection"), sc_edit_run_run_selection); |
296 | 295 |
297 // help | 296 // help |
298 init (tr ("Help on Keyword"), sc_edit_help_help_keyword); | 297 init (tr ("Help on Keyword"), sc_edit_help_help_keyword); |
299 init (tr ("Document on Keyword"), sc_edit_help_doc_keyword); | 298 init (tr ("Document on Keyword"), sc_edit_help_doc_keyword); |
300 | |
301 | 299 |
302 // Documentation browser | 300 // Documentation browser |
303 init (tr ("Go to Homepage"), sc_doc_go_home); | 301 init (tr ("Go to Homepage"), sc_doc_go_home); |
304 init (tr ("Go Back one Page"), sc_doc_go_back); | 302 init (tr ("Go Back one Page"), sc_doc_go_back); |
305 init (tr ("Go Forward one Page"), sc_doc_go_next); | 303 init (tr ("Go Forward one Page"), sc_doc_go_next); |
817 return true; // go ahead | 815 return true; // go ahead |
818 } | 816 } |
819 | 817 |
820 return false; // abort the import | 818 return false; // abort the import |
821 } | 819 } |
822 } | 820 |
821 OCTAVE_END_NAMESPACE(octave) |