Mercurial > hg > octave-lyh
comparison libgui/src/m-editor/file-editor.h @ 15980:6c0fce0632a4
gui: set keyboard focus when switching between dock widgets (bug #36957)
* main-window.cc (handle_command_window_visible, handle_command_history_visible,
handle_current_directory_visible, handle_workspace_visible,
handle_editor_visible, handle_documentation_visible): slots for signal
visibilityChanged, emitted when widgets get visible
* main-window.cc (construct): connect signal visibilityChanged to slots
* main-window.cc (focus_editor): call editor's own function for setting focus
* main-window.h: declaration of new slots
* file-editor.cc (set_focus): new function: setting focus to actual editor tab
* file-editor.cc (add_file_editor_tab): connect signal fetab_set_focus to the
slot set_focus of file_editor_tab
* file-editor.h: new function set_focus and new signal fetab_set_focus
* file-editor-interface.h: new virtual function set_focus
* file-editor-tab.cc (set_focus): new slot for singal fetab_set_focus from
file_editor, setting the focus to edit area
* file-edtortab.h: new slot set_focus
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 26 Jan 2013 20:33:46 +0100 |
parents | feba9ff6e6a8 |
children | 131d40cd805b |
comparison
equal
deleted
inserted
replaced
15979:3cd3b548f90b | 15980:6c0fce0632a4 |
---|---|
52 void loadFile (const QString& fileName); | 52 void loadFile (const QString& fileName); |
53 | 53 |
54 QMenu * debug_menu (); | 54 QMenu * debug_menu (); |
55 QToolBar * toolbar (); | 55 QToolBar * toolbar (); |
56 | 56 |
57 void set_focus (); | |
57 void handle_entered_debug_mode (); | 58 void handle_entered_debug_mode (); |
58 void handle_quit_debug_mode (); | 59 void handle_quit_debug_mode (); |
59 | 60 |
60 signals: | 61 signals: |
61 void fetab_settings_changed (); | 62 void fetab_settings_changed (); |
83 void fetab_previous_breakpoint (const QWidget* ID); | 84 void fetab_previous_breakpoint (const QWidget* ID); |
84 void fetab_remove_all_breakpoints (const QWidget* ID); | 85 void fetab_remove_all_breakpoints (const QWidget* ID); |
85 void fetab_comment_selected_text (const QWidget* ID); | 86 void fetab_comment_selected_text (const QWidget* ID); |
86 void fetab_uncomment_selected_text (const QWidget* ID); | 87 void fetab_uncomment_selected_text (const QWidget* ID); |
87 void fetab_find (const QWidget* ID); | 88 void fetab_find (const QWidget* ID); |
89 void fetab_set_focus (const QWidget* ID); | |
88 | 90 |
89 public slots: | 91 public slots: |
90 void request_new_file (); | 92 void request_new_file (); |
91 void request_open_file (); | 93 void request_open_file (); |
92 void request_mru_open_file (); | 94 void request_mru_open_file (); |