Mercurial > octave
view libgui/src/terminal-dock-widget.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 | b04413e5a811 |
line wrap: on
line source
/* Copyright (C) 2013 John W. Eaton Copyright (C) 2011-2012 Jacob Dawid This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #ifndef TERMINALDOCKWIDGET_H #define TERMINALDOCKWIDGET_H #include <QString> #include "QTerminal.h" #include "octave-dock-widget.h" class terminal_dock_widget : public octave_dock_widget { Q_OBJECT public: terminal_dock_widget (QWidget *parent = 0); bool has_focus (void) const; signals: public slots: void notice_settings (const QSettings *settings); void copyClipboard (void); void pasteClipboard (void); void focus (void); signals: void notice_settings_signal (const QSettings *settings); void copyClipboard_signal (void); void pasteClipboard_signal (void); private: QTerminal *terminal; }; #endif // TERMINALDOCKWIDGET_H