Mercurial > hg > octave-nkf
comparison libgui/src/main-window.h @ 16576:2754c5fd6ae0
keep focus in the command window after dbstop, dbstep, etc.
* main-window.h, main-window.cc
(main_window::command_window_has_focus,
main_window::handle_insert_debugger_pointer_request,
main_window::handle_delete_debugger_pointer_request,
main_window::handle_update_breakpoint_marker_request): New functions.
(main_window::insert_debugger_pointer_signal
main_window::delete_debugger_pointer_signal,
main_window::update_breakpoint_marker_signal): New signals.
(main_window::construct): Connect
main_window::insert_debugger_pointer_signal to
editor_window::handle_insert_debugger_pointer_request.
Connect main_window::delete_debugger_pointer_signal to
editor_window::handle_delete_debugger_pointer_request.
Connect main_window::update_breakpoint_marker_signal to
editor_window::handle_update_breakpoint_marker_request.
(main_window::construct_octave_qt_link): Connect
_octave_qt_link::insert_debugger_pointer_signal to
main_window::handle_insert_debugger_pointer_request instead of
editor_window::handle_insert_debugger_pointer_request.
Connect _octave_qt_link::delete_debugger_pointer_signal to
main_window::handle_delete_debugger_pointer_request instead of
editor_window::handle_delete_debugger_pointer_request.
Connect _octave_qt_link::update_breakpoint_marker_signal to
main_window::handle_update_breakpoint_marker_request instead of
editor_window::handle_update_breakpoint_marker_request.
* terminal-dock-widget.h, terminal-dock-widget.cc
(terminal_dock_widget::has_focus): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 28 Apr 2013 01:21:16 -0400 |
parents | d5ae5aa80d42 |
children | 7f8db1942dc0 |
comparison
equal
deleted
inserted
replaced
16575:1a1f8199b5bb | 16576:2754c5fd6ae0 |
---|---|
70 | 70 |
71 main_window (QWidget *parent = 0); | 71 main_window (QWidget *parent = 0); |
72 | 72 |
73 ~main_window (void); | 73 ~main_window (void); |
74 | 74 |
75 bool command_window_has_focus (void) const; | |
76 | |
75 void focus_command_window (void); | 77 void focus_command_window (void); |
76 | 78 |
77 signals: | 79 signals: |
78 void settings_changed (const QSettings *); | 80 void settings_changed (const QSettings *); |
79 void new_file_signal (const QString&); | 81 void new_file_signal (const QString&); |
80 void open_file_signal (const QString&); | 82 void open_file_signal (const QString&); |
83 | |
84 void insert_debugger_pointer_signal (const QString& file, int line); | |
85 void delete_debugger_pointer_signal (const QString& file, int line); | |
86 void update_breakpoint_marker_signal (bool insert, const QString& file, | |
87 int line); | |
81 | 88 |
82 public slots: | 89 public slots: |
83 void report_status_message (const QString& statusMessage); | 90 void report_status_message (const QString& statusMessage); |
84 void handle_save_workspace_request (void); | 91 void handle_save_workspace_request (void); |
85 void handle_load_workspace_request (const QString& file = QString ()); | 92 void handle_load_workspace_request (const QString& file = QString ()); |
120 void debug_step_into (void); | 127 void debug_step_into (void); |
121 void debug_step_over (void); | 128 void debug_step_over (void); |
122 void debug_step_out (void); | 129 void debug_step_out (void); |
123 void debug_quit (void); | 130 void debug_quit (void); |
124 | 131 |
132 void handle_insert_debugger_pointer_request (const QString& file, int line); | |
133 void handle_delete_debugger_pointer_request (const QString& file, int line); | |
134 void handle_update_breakpoint_marker_request (bool insert, | |
135 const QString& file, int line); | |
136 | |
125 void read_settings (void); | 137 void read_settings (void); |
126 void write_settings (void); | 138 void write_settings (void); |
127 void connect_visibility_changed (void); | 139 void connect_visibility_changed (void); |
128 | 140 |
129 void connect_uiwidget_links (); | 141 void connect_uiwidget_links (); |