GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
terminal-dock-widget.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2011-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_terminal_dock_widget_h)
27#define octave_terminal_dock_widget_h 1
28
29#include <QString>
30
31#include "octave-dock-widget.h"
32
33class QTerminal;
34
35namespace octave
36{
37 class command_widget;
38 class base_qobject;
39
41 {
42 Q_OBJECT
43
44 public:
45
46 terminal_dock_widget (QWidget *parent, base_qobject& oct_qobj);
47
48 ~terminal_dock_widget (void) = default;
49
50 bool has_focus (void) const;
51
52 // FIXME: The next two functions could be eliminated (or combined)
53 // if we had a common interface for the old and new terminal
54 // widgets.
55
56 // Only valid if using the old terminal widget.
57 QTerminal * get_qterminal (void);
58
59 // Only valid if using the new terminal widget.
61
62 signals:
63
65
66 // Note: UPDATE_PROMPT_SIGNAL and INTERPRETER_OUTPUT_SIGNAL are
67 // currently only used by the new experimental terminal widget.
68
69 void update_prompt_signal (const QString&);
70
71 void interpreter_output_signal (const QString&);
72
73 public slots:
74
76
77 // Note: INTERPRETER_OUTPUT and UPDATE_PROMPT are currently only
78 // used by the new experimental terminal widget.
79
80 void interpreter_output (const QString&);
81
82 void update_prompt (const QString&);
83
84 private:
85
87
88 // FIXME!!! Maybe my_term should just be derived from QTerminal?
90 };
91}
92
93#endif
Base class for Octave interfaces that use Qt.
void settings_changed(const gui_settings *settings)
command_widget * get_command_widget(void)
void interpreter_output_signal(const QString &)
void notice_settings(const gui_settings *settings)
void update_prompt_signal(const QString &)
void interpreter_output(const QString &)
void update_prompt(const QString &)
terminal_dock_widget(QWidget *parent, base_qobject &oct_qobj)
~terminal_dock_widget(void)=default