GNU Octave  6.2.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-2021 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 
35 namespace octave
36 {
37  class base_qobject;
38 }
39 
40 namespace Ui
41 {
42  class annotation_dialog;
43 }
44 
45 class annotation_dialog : public QDialog
46 {
47  Q_OBJECT
48 public:
50  const octave_value_list& pr);
52 
54 
55 private slots:
56  // slots for dialog's buttons
57  void button_clicked (QAbstractButton *button);
58  void edit_string_changed (const QString& str);
59  void prompt_for_color ();
60 
61 private:
62  void init ();
63 
64  void get_gui_props ();
65  void set_gui_props ();
66 
68  Ui::annotation_dialog *ui;
70 };
71 
72 #endif
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.