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
34class QLabel;
35class QLineEdit;
36class QStrung;
37class QTextBrowser;
38
39namespace 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
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
69
70 protected slots:
71
72 void accept_input_line (void);
73
74 private:
75
81 };
82}
83
84#endif
Base class for Octave interfaces that use Qt.
void interpreter_event(const fcn_callback &fcn)
void interpreter_event(const meth_callback &meth)
void interpreter_stop(void)
void interpreter_resume(void)
void update_prompt(const QString &prompt)
void insert_interpreter_output(const QString &msg)
void interpreter_pause(void)
QTextBrowser * m_output_display
command_widget(base_qobject &oct_qobj, QWidget *p)
void notice_settings(const gui_settings *settings)
void clear_line_edit(void)
OCTAVE_NAMESPACE_BEGIN typedef std::function< void(void)> fcn_callback
Definition: event-manager.h:47
std::function< void(interpreter &)> meth_callback
Definition: event-manager.h:48