GNU Octave  4.4.1
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) 2013-2018 John W. Eaton
4 Copyright (C) 2011-2018 Jacob Dawid
5 
6 This file is part of Octave.
7 
8 Octave is free software: you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if ! defined (octave_welcome_wizard_h)
25 #define octave_welcome_wizard_h 1
26 
27 #include <QDialog>
28 #include <QCheckBox>
29 #include <QLabel>
30 
31 namespace octave
32 {
33  class welcome_wizard : public QDialog
34  {
35  Q_OBJECT
36 
37  public:
38 
39  typedef QWidget *(*page_creator_fptr) (welcome_wizard *wizard);
40 
41  welcome_wizard (QWidget *parent = nullptr);
42 
43  ~welcome_wizard (void) = default;
44 
45  private:
46 
51 
52  private slots:
53 
55 
56  void show_page (void);
57  void previous_page (void);
58  void next_page (void);
59 
60  void accept (void);
61  };
62 
63 
64  class initial_page : public QWidget
65  {
66  Q_OBJECT
67 
68  public:
69 
70  initial_page (welcome_wizard *wizard);
71 
72  ~initial_page (void) = default;
73 
74  static QWidget *
75  create (welcome_wizard *wizard) { return new initial_page (wizard); }
76 
77  private:
78 
79  QLabel *m_title;
80  QLabel *m_message;
81  QLabel *m_logo;
84  };
85 
86 
88  {
89  Q_OBJECT
90 
91  public:
92 
94 
95  ~setup_community_news (void) = default;
96 
97  static QWidget *
98  create (welcome_wizard *wizard) { return new setup_community_news (wizard); }
99 
100  private:
101 
102  QLabel *m_title;
103  QLabel *m_message;
104  QCheckBox *m_checkbox;
106  QLabel *m_logo;
110  };
111 
112 
113  class final_page : public QWidget
114  {
115  Q_OBJECT
116 
117  public:
118 
119  final_page (welcome_wizard *wizard);
120 
121  ~final_page (void) = default;
122 
123  static QWidget *
124  create (welcome_wizard *wizard) { return new final_page (wizard); }
125 
126  private:
127 
128  QLabel *m_title;
129  QLabel *m_message;
130  QLabel *m_logo;
131  QLabel *m_links;
135  };
136 }
137 
138 #endif
~initial_page(void)=default
static QWidget * create(welcome_wizard *wizard)
static QWidget * create(welcome_wizard *wizard)
welcome_wizard(QWidget *parent=nullptr)
QPushButton * m_previous
~final_page(void)=default
QPushButton * m_finish
~welcome_wizard(void)=default
QPushButton * m_next
QList< page_creator_fptr >::iterator m_page_list_iterator
initial_page(welcome_wizard *wizard)
QPushButton * m_cancel
QPushButton * m_cancel
QList< page_creator_fptr > m_page_ctor_list
static uint32_t state[624]
Definition: randmtzig.cc:183
setup_community_news(welcome_wizard *wizard)
static QWidget * create(welcome_wizard *wizard)
final_page(welcome_wizard *wizard)
void handle_web_connect_option(int state)
~setup_community_news(void)=default