GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
annotation-dialog.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2016-2023 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_annotation_dialog_h)
27 #define octave_annotation_dialog_h 1
28 
29 #include <QDialog>
30 #include <QLineEdit>
31 #include <QAbstractButton>
32 
33 #include "ovl.h"
34 
36 class base_qobject;
38 
40 class annotation_dialog;
42 
43 class annotation_dialog : public QDialog
44 {
45  Q_OBJECT
46 public:
47  annotation_dialog (octave::base_qobject& oct_qobj, QWidget *parent,
48  const octave_value_list& pr);
50 
52 
53 private slots:
54  // slots for dialog's buttons
55  void button_clicked (QAbstractButton *button);
56  void edit_string_changed (const QString& str);
57  void prompt_for_color ();
58 
59 private:
60  void init ();
61 
62  void get_gui_props ();
63  void set_gui_props ();
64 
65  octave::base_qobject& m_octave_qobj;
66  Ui::annotation_dialog *ui;
68 };
69 
70 #endif
OCTAVE_END_NAMESPACE(octave)
void button_clicked(QAbstractButton *button)
void edit_string_changed(const QString &str)
octave_value_list get_properties() const
octave::base_qobject & m_octave_qobj
annotation_dialog(octave::base_qobject &oct_qobj, QWidget *parent, const octave_value_list &pr)
octave_value_list props
Ui::annotation_dialog * ui
Base class for Octave interfaces that use Qt.
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn