GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
welcome-wizard.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2013-2015 John W. Eaton
4 Copyright (C) 2011-2015 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 the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 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 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef WELCOMEWIZARD_H
25 #define WELCOMEWIZARD_H
26 
27 #include <QDialog>
28 #include <QCheckBox>
29 #include <QLabel>
30 
31 class welcome_wizard : public QDialog
32 {
33  Q_OBJECT
34 
35 public:
36 
37  typedef QWidget *(*page_creator_fptr) (welcome_wizard *wizard);
38 
39  welcome_wizard (QWidget *parent = 0);
40 
41  ~welcome_wizard (void) { }
42 
43 private:
44 
49 
50 private slots:
51 
53 
54  void show_page (void);
55  void previous_page (void);
56  void next_page (void);
57 
58  void accept (void);
59 };
60 
61 
62 class initial_page : public QWidget
63 {
64  Q_OBJECT
65 
66 public:
67 
68  initial_page (welcome_wizard *wizard);
69 
70  ~initial_page (void) { }
71 
72  static QWidget *
73  create (welcome_wizard *wizard) { return new initial_page (wizard); }
74 
75 private:
76 
77  QLabel *title;
78  QLabel *message;
79  QLabel *logo;
82 };
83 
84 
86 {
87  Q_OBJECT
88 
89 public:
90 
92 
94 
95  static QWidget *
96  create (welcome_wizard *wizard) { return new setup_community_news (wizard); }
97 
98 private:
99 
100  QLabel *title;
101  QLabel *message;
102  QCheckBox *checkbox;
104  QLabel *logo;
108 };
109 
110 
111 class final_page : public QWidget
112 {
113  Q_OBJECT
114 
115 public:
116 
117  final_page (welcome_wizard *wizard);
118 
119  ~final_page (void) { }
120 
121  static QWidget *
122  create (welcome_wizard *wizard) { return new final_page (wizard); }
123 
124 private:
125 
126  QLabel *title;
127  QLabel *message;
128  QLabel *logo;
129  QLabel *links;
133 };
134 
135 #endif // WELCOMEWIZARD_H
void next_page(void)
QList< page_creator_fptr > page_ctor_list
QPushButton * cancel
static uint32_t state[624]
Definition: randmtzig.c:188
QWidget * current_page
final_page(welcome_wizard *wizard)
~final_page(void)
QPushButton * finish
QLabel * title
void previous_page(void)
static QWidget * create(welcome_wizard *wizard)
welcome_wizard(QWidget *parent=0)
QLabel * title
QPushButton * next
QList< page_creator_fptr >::iterator page_list_iterator
~initial_page(void)
initial_page(welcome_wizard *wizard)
QPushButton * previous
QLabel * message
void handle_web_connect_option(int state)
QLabel * logo
void show_page(void)
QPushButton * previous
bool allow_web_connect_state
static QWidget * create(welcome_wizard *wizard)
QPushButton * cancel
QPushButton * cancel
QLabel * links
void accept(void)
QLabel * message
QLabel * logo
setup_community_news(welcome_wizard *wizard)
static QWidget * create(welcome_wizard *wizard)