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
33
class
QTerminal
;
34
35
namespace
octave
36
{
37
class
command_widget;
38
class
base_qobject;
39
40
class
terminal_dock_widget
:
public
octave_dock_widget
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.
60
command_widget
*
get_command_widget
(
void
);
61
62
signals:
63
64
void
settings_changed
(
const
gui_settings
*
settings
);
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
75
void
notice_settings
(
const
gui_settings
*
settings
);
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
86
bool
m_experimental_terminal_widget
;
87
88
// FIXME!!! Maybe my_term should just be derived from QTerminal?
89
QWidget
*
m_terminal
;
90
};
91
}
92
93
#endif
QTerminal
Definition:
QTerminal.h:49
QWidget
octave::base_qobject
Base class for Octave interfaces that use Qt.
Definition:
octave-qobject.h:99
octave::command_widget
Definition:
command-widget.h:44
octave::gui_settings
Definition:
gui-settings.h:36
octave::octave_dock_widget
Definition:
octave-dock-widget.h:87
octave::terminal_dock_widget
Definition:
terminal-dock-widget.h:41
octave::terminal_dock_widget::m_experimental_terminal_widget
bool m_experimental_terminal_widget
Definition:
terminal-dock-widget.h:86
octave::terminal_dock_widget::settings_changed
void settings_changed(const gui_settings *settings)
octave::terminal_dock_widget::m_terminal
QWidget * m_terminal
Definition:
terminal-dock-widget.h:89
octave::terminal_dock_widget::get_command_widget
command_widget * get_command_widget(void)
Definition:
terminal-dock-widget.cc:136
octave::terminal_dock_widget::interpreter_output_signal
void interpreter_output_signal(const QString &)
octave::terminal_dock_widget::has_focus
bool has_focus(void) const
Definition:
terminal-dock-widget.cc:124
octave::terminal_dock_widget::notice_settings
void notice_settings(const gui_settings *settings)
Definition:
terminal-dock-widget.cc:142
octave::terminal_dock_widget::update_prompt_signal
void update_prompt_signal(const QString &)
octave::terminal_dock_widget::interpreter_output
void interpreter_output(const QString &)
Definition:
terminal-dock-widget.cc:147
octave::terminal_dock_widget::update_prompt
void update_prompt(const QString &)
Definition:
terminal-dock-widget.cc:153
octave::terminal_dock_widget::terminal_dock_widget
terminal_dock_widget(QWidget *parent, base_qobject &oct_qobj)
Definition:
terminal-dock-widget.cc:46
octave::terminal_dock_widget::~terminal_dock_widget
~terminal_dock_widget(void)=default
octave::terminal_dock_widget::get_qterminal
QTerminal * get_qterminal(void)
Definition:
terminal-dock-widget.cc:130
settings
Definition:
settings.h:45
octave
Definition:
idx-vector.cc:46
octave-dock-widget.h
libgui
src
terminal-dock-widget.h
Generated on Sun Jun 26 2022 01:27:29 for GNU Octave by
1.9.4