Mercurial > octave
diff libgui/src/shortcut-manager.h @ 18656:1b289f45187f gui-release
add some qscintilla actions to the menu and to the shortcut manager
* file-editor.cc (request_delete_start_word, request_delete_end_word,
request_delete_start_line, request_delete_end_line, request_delete_line,
request_copy_line, request_cut_line, request_dupllicate_delection,
request_transpose_line, request_upper_case, request_lower_case): new slots
for the added actions;
(construct): added submenus "Commands" and "Format" witht the new actions
to the edit menu;
(set_shortcuts): settings shortcuts for the new actions;
(check_actions): enabling actions depending on existence of editor tabs;
* file-editor.h: new slots, menus and actions
* file-editor-tab.cc (scintilla_command): new slot for signals from file_editor
indicating scintilla commands
* file-editor-tab.h: new slot scintilla_command
* octave_qscintilla (constructor): disabling shortcuts for actions handled by
the gui editor;
(get_global_textcursor_pos): remove unecessary namespace specification
* shortcut-manager.cc (constructor): store settings objects in class variable;
(do_init_data): initialization of new actions;
(init, do_write_shortcuts, do_set_shortcut): code cleanup accessing settings;
(shortcut_dialog_finished) fix writing to wring column of tree view
* shortcut-manager.h: settings stored as class variable
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 18 Apr 2014 13:43:55 +0200 |
parents | 086093fbdc1a |
children | 95249367d6fa |
line wrap: on
line diff
--- a/libgui/src/shortcut-manager.h Thu Apr 17 09:01:03 2014 -0400 +++ b/libgui/src/shortcut-manager.h Fri Apr 18 13:43:55 2014 +0200 @@ -28,7 +28,7 @@ #include <QLineEdit> #include <QKeyEvent> #include <QLabel> - +#include <QSettings> class enter_shortcut : public QLineEdit { @@ -133,6 +133,8 @@ QLabel *_label_default; int _handled_index; + QSettings *_settings; + };