GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
welcome-wizard.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2011-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_welcome_wizard_h)
27 #define octave_welcome_wizard_h 1
28 
29 #include <QCheckBox>
30 #include <QDialog>
31 #include <QLabel>
32 
33 namespace octave
34 {
35  class base_qobject;
36 
37  class welcome_wizard : public QDialog
38  {
39  Q_OBJECT
40 
41  public:
42 
43  typedef QWidget *(*page_creator_fptr) (base_qobject&, welcome_wizard *);
44 
45  welcome_wizard (base_qobject& oct_qobj, QWidget *parent = nullptr);
46 
47  ~welcome_wizard (void) = default;
48 
49  void adjust_size (void);
50 
51  private:
52 
54 
61 
62  private slots:
63 
65 
66  void show_page (void);
67  void previous_page (void);
68  void next_page (void);
69 
70  void accept (void);
71  };
72 
73 
74  class initial_page : public QWidget
75  {
76  Q_OBJECT
77 
78  public:
79 
80  initial_page (base_qobject& oct_qobj, welcome_wizard *wizard);
81 
82  ~initial_page (void) = default;
83 
84  static QWidget *
85  create (base_qobject& oct_qobj, welcome_wizard *wizard)
86  {
87  return new initial_page (oct_qobj, wizard);
88  }
89 
90  private:
91 
92  QLabel *m_title;
93  QLabel *m_message;
94  QLabel *m_logo;
97  };
98 
99 
101  {
102  Q_OBJECT
103 
104  public:
105 
106  setup_community_news (base_qobject& oct_qobj, welcome_wizard *wizard);
107 
108  ~setup_community_news (void) = default;
109 
110  static QWidget *
111  create (base_qobject& oct_qobj, welcome_wizard *wizard)
112  {
113  return new setup_community_news (oct_qobj, wizard);
114  }
115 
116  private:
117 
118  QLabel *m_title;
119  QLabel *m_message;
120  QCheckBox *m_checkbox;
122  QLabel *m_logo;
126  };
127 
128 
129  class final_page : public QWidget
130  {
131  Q_OBJECT
132 
133  public:
134 
135  final_page (base_qobject& oct_qobj, welcome_wizard *wizard);
136 
137  ~final_page (void) = default;
138 
139  static QWidget *
140  create (base_qobject& oct_qobj, welcome_wizard *wizard)
141  {
142  return new final_page (oct_qobj, wizard);
143  }
144 
145  private:
146 
147  QLabel *m_title;
148  QLabel *m_message;
149  QLabel *m_logo;
150  QLabel *m_links;
154  };
155 }
156 
157 #endif
Base class for Octave interfaces that use Qt.
QPushButton * m_cancel
QPushButton * m_previous
~final_page(void)=default
final_page(base_qobject &oct_qobj, welcome_wizard *wizard)
QPushButton * m_finish
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
initial_page(base_qobject &oct_qobj, welcome_wizard *wizard)
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
QPushButton * m_cancel
~initial_page(void)=default
QPushButton * m_next
~setup_community_news(void)=default
setup_community_news(base_qobject &oct_qobj, welcome_wizard *wizard)
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
~welcome_wizard(void)=default
QList< page_creator_fptr > m_page_ctor_list
QList< page_creator_fptr >::iterator m_page_list_iterator
void handle_web_connect_option(int state)
base_qobject & m_octave_qobj
welcome_wizard(base_qobject &oct_qobj, QWidget *parent=nullptr)
static uint32_t state[624]
Definition: randmtzig.cc:190