GNU Octave
7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
command-widget.h
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright (C) 2021-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_command_widget_h)
27
#define octave_command_widget_h 1
28
29
#include <QWidget>
30
31
#include "
octave-qobject.h
"
32
#include "
gui-settings.h
"
33
34
class
QLabel
;
35
class
QLineEdit
;
36
class
QStrung;
37
class
QTextBrowser
;
38
39
namespace
octave
40
{
41
class
base_qobject;
42
43
class
command_widget
:
public
QWidget
44
{
45
Q_OBJECT
46
47
public
:
48
49
command_widget
(
base_qobject
& oct_qobj,
QWidget
*p);
50
51
signals:
52
53
void
clear_line_edit
(
void
);
54
55
void
interpreter_pause
(
void
);
56
void
interpreter_resume
(
void
);
57
void
interpreter_stop
(
void
);
58
59
void
interpreter_event
(
const
fcn_callback
& fcn);
60
void
interpreter_event
(
const
meth_callback
& meth);
61
62
public
slots:
63
64
void
update_prompt
(
const
QString& prompt);
65
66
void
insert_interpreter_output
(
const
QString& msg);
67
68
void
notice_settings
(
const
gui_settings
*
settings
);
69
70
protected
slots:
71
72
void
accept_input_line
(
void
);
73
74
private
:
75
76
bool
m_incomplete_parse
;
77
QLabel
*
m_prompt
;
78
QLineEdit
*
m_line_edit
;
79
QTextBrowser
*
m_output_display
;
80
QColor
m_input_color
;
81
};
82
}
83
84
#endif
QLabel
QLineEdit
QTextBrowser
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::command_widget::interpreter_event
void interpreter_event(const fcn_callback &fcn)
octave::command_widget::accept_input_line
void accept_input_line(void)
Definition:
command-widget.cc:113
octave::command_widget::m_input_color
QColor m_input_color
Definition:
command-widget.h:80
octave::command_widget::interpreter_event
void interpreter_event(const meth_callback &meth)
octave::command_widget::interpreter_stop
void interpreter_stop(void)
octave::command_widget::interpreter_resume
void interpreter_resume(void)
octave::command_widget::update_prompt
void update_prompt(const QString &prompt)
Definition:
command-widget.cc:99
octave::command_widget::insert_interpreter_output
void insert_interpreter_output(const QString &msg)
Definition:
command-widget.cc:104
octave::command_widget::m_line_edit
QLineEdit * m_line_edit
Definition:
command-widget.h:78
octave::command_widget::interpreter_pause
void interpreter_pause(void)
octave::command_widget::m_output_display
QTextBrowser * m_output_display
Definition:
command-widget.h:79
octave::command_widget::command_widget
command_widget(base_qobject &oct_qobj, QWidget *p)
Definition:
command-widget.cc:50
octave::command_widget::notice_settings
void notice_settings(const gui_settings *settings)
Definition:
command-widget.cc:150
octave::command_widget::clear_line_edit
void clear_line_edit(void)
octave::command_widget::m_prompt
QLabel * m_prompt
Definition:
command-widget.h:77
octave::command_widget::m_incomplete_parse
bool m_incomplete_parse
Definition:
command-widget.h:76
octave::gui_settings
Definition:
gui-settings.h:36
settings
Definition:
settings.h:45
fcn_callback
OCTAVE_NAMESPACE_BEGIN typedef std::function< void(void)> fcn_callback
Definition:
event-manager.h:47
meth_callback
std::function< void(interpreter &)> meth_callback
Definition:
event-manager.h:48
gui-settings.h
octave
Definition:
idx-vector.cc:46
octave-qobject.h
libgui
src
command-widget.h
Generated on Sun Jun 26 2022 01:27:26 for GNU Octave by
1.9.4