GNU Octave  8.1.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-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_welcome_wizard_h)
27 #define octave_welcome_wizard_h 1
28 
29 #include <QCheckBox>
30 #include <QDialog>
31 #include <QLabel>
32 
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 public 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 class initial_page : public QWidget
74 {
75  Q_OBJECT
76 
77 public:
78 
79  initial_page (base_qobject& oct_qobj, welcome_wizard *wizard);
80 
81  ~initial_page (void) = default;
82 
83  static QWidget *
84  create (base_qobject& oct_qobj, welcome_wizard *wizard)
85  {
86  return new initial_page (oct_qobj, wizard);
87  }
88 
89 private:
90 
96 };
97 
99 {
100  Q_OBJECT
101 
102 public:
103 
104  setup_community_news (base_qobject& oct_qobj, welcome_wizard *wizard);
105 
106  ~setup_community_news (void) = default;
107 
108  static QWidget *
109  create (base_qobject& oct_qobj, welcome_wizard *wizard)
110  {
111  return new setup_community_news (oct_qobj, wizard);
112  }
113 
114 private:
115 
118  QCheckBox *m_checkbox;
124 };
125 
126 class final_page : public QWidget
127 {
128  Q_OBJECT
129 
130 public:
131 
132  final_page (base_qobject& oct_qobj, welcome_wizard *wizard);
133 
134  ~final_page (void) = default;
135 
136  static QWidget *
137  create (base_qobject& oct_qobj, welcome_wizard *wizard)
138  {
139  return new final_page (oct_qobj, wizard);
140  }
141 
142 private:
143 
151 };
152 
154 
155 #endif
OCTAVE_END_NAMESPACE(octave)
Base class for Octave interfaces that use Qt.
QPushButton * m_cancel
QLabel * m_title
final_page(base_qobject &oct_qobj, welcome_wizard *wizard)
~final_page(void)=default
QPushButton * m_finish
QLabel * m_logo
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
QPushButton * m_previous
QLabel * m_links
QLabel * m_message
QLabel * m_message
QLabel * m_title
QPushButton * m_next
initial_page(base_qobject &oct_qobj, welcome_wizard *wizard)
~initial_page(void)=default
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
QPushButton * m_cancel
QLabel * m_logo
static QWidget * create(base_qobject &oct_qobj, welcome_wizard *wizard)
setup_community_news(base_qobject &oct_qobj, welcome_wizard *wizard)
QPushButton * m_previous
~setup_community_news(void)=default
QPushButton * m_cancel
QPushButton * m_next
QWidget * m_current_page
void handle_web_connect_option(int state)
void next_page(void)
base_qobject & m_octave_qobj
bool m_allow_web_connect_state
void previous_page(void)
~welcome_wizard(void)=default
void show_page(void)
QList< page_creator_fptr >::iterator m_page_list_iterator
QList< page_creator_fptr > m_page_ctor_list
void accept(void)
void adjust_size(void)
welcome_wizard(base_qobject &oct_qobj, QWidget *parent=nullptr)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
static uint32_t state[624]
Definition: randmtzig.cc:193