GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libgui
src
welcome-wizard.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2013 John W. Eaton
4
Copyright (C) 2011-2013 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
45
QList<page_creator_fptr>
page_ctor_list
;
46
QList<page_creator_fptr>::iterator
page_list_iterator
;
47
QWidget
*
current_page
;
48
bool
allow_web_connect_state
;
49
50
private
slots:
51
52
void
handle_web_connect_option
(
int
state
);
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
;
80
QPushButton
*
next
;
81
QPushButton
*
cancel
;
82
};
83
84
85
class
setup_community_news
:
public
QWidget
86
{
87
Q_OBJECT
88
89
public
:
90
91
setup_community_news
(
welcome_wizard
*wizard);
92
93
~setup_community_news
(
void
) { }
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
;
103
QLabel *
checkbox_message
;
104
QLabel *
logo
;
105
QPushButton
*
previous
;
106
QPushButton
*
next
;
107
QPushButton
*
cancel
;
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
;
130
QPushButton
*
previous
;
131
QPushButton
*
finish
;
132
QPushButton
*
cancel
;
133
};
134
135
#endif // WELCOMEWIZARD_H
Generated on Mon Dec 30 2013 03:04:21 for GNU Octave by
1.8.1.2