-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwizard.h
190 lines (154 loc) · 3.86 KB
/
wizard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#ifndef WIZARD_H
#define WIZARD_H
#include <QWizard>
#include <QtWidgets>
class wizard : public QWizard
{
Q_OBJECT
public:
enum { Page_Intro , Page_Read, Page_Write, Page_Advanced,
Page_Conclusion};
wizard(QWidget *parent, int intDrive);
public slots:
QString getData();
private slots:
void showHelp();
private:
};
class IntroPage : public QWizardPage
{
Q_OBJECT
public:
IntroPage(QWidget *parent = nullptr);
int nextId() const override;
private:
QLabel *topLabel;
QRadioButton *readRadioButton;
QRadioButton *writeRadioButton;
};
class ReadPage : public QWizardPage
{
Q_OBJECT
public:
ReadPage(QWidget *parent = nullptr);
int nextId() const override;
void initializePage() override;
bool isComplete() const override;
private slots:
void browse();
void browseflux();
void updatedirectorybox(int index);
void browsereadflux();
void editDirectoryBox(QString dir);
void editFluxBox(QString dir);
void editFlux1Box(QString dir);
void editLineBox(QString dir);
void browseCSVComboBox();
void editCSVComboBox(QString dir);
private:
QLabel *nameLabel;
QLabel *trackLabel;
QLabel *HeadLineLabelStart;
QLabel *trackLabelStart;
QLabel *trackLabelStop;
QLabel *headLabelStop;
QLabel *label;
QLabel *label1;
QLabel *label2;
QLabel *lblAdvancedSettings;
QLabel *label3;
QPushButton *button;
QPushButton *button1;
QPushButton *button2;
QPushButton *button3;
QComboBox *readFormatbox;
QLineEdit *directoryComboBox;
QLineEdit *fluxComboBox;
QLineEdit *flux1ComboBox;
QLineEdit *CSVComboBox;
QLineEdit *nameLineEdit;
QLineEdit *trackLineEdit;
QLineEdit *HeadLineEditStart;
QLineEdit *HeadLineEditStop;
QLineEdit *trackLineEditStart;
QLineEdit *trackLineEditStop;
QCheckBox *Checkbox;
QStringList ReadFormats;
QStringList ReadConfigs;
};
class WritePage : public QWizardPage
{
Q_OBJECT
public:
WritePage(QWidget *parent = nullptr);
int nextId() const override;
void initializePage() override;
bool isComplete() const override;
private slots:
void browse();
void Update(int intIndex);
void editDirectoryBox(QString dir);
void editLineBox(QString dir);
private:
QLabel *nameLabel;
QLabel *trackLabel;
QLabel *HeadLabelStart;
QLabel *headLabelStop;
QLabel *label;
QLabel *trackLabelStart;
QLabel *trackLabelStop;
QLabel *DiskLabel;
QLabel *namePresetLabel;
QPushButton *button;
QComboBox *writeFormatbox;
QLineEdit *directoryComboBox;
QComboBox *writePresetbox;
QCheckBox *DiskLineEdit;
QLineEdit *nameLineEdit;
QLineEdit *trackLineEdit;
QLineEdit *HeadLineEditStart;
QLineEdit *HeadLineEditStop;
QLineEdit *trackLineEditStart;
QLineEdit *trackLineEditStop;
};
class AdvancedPage : public QWizardPage
{
Q_OBJECT
public:
AdvancedPage(QWidget *parent = nullptr);
int nextId() const override;
void initializePage() override;
private slots:
private:
QLabel *revolutionsLabel;
QLabel *revolutionsLabelexplain;
QLabel *retriesLabel;
QLabel *retriesLabelexplain;
QLabel *debounceLabelexplain;
QLabel *clock_intervalLabelexplain;
QLabel *debounceLabel;
QLabel *clock_intervalLabel;
QLabel *syncLabel;
QLabel *syncLabelexplain;
QLineEdit *revolutionsEdit;
QCheckBox *syncEdit;
QLineEdit *retriesEdit;
QLineEdit *debounceLabelEdit;
QLineEdit *clock_intervalLabelEdit;
};
//! [6]
class ConclusionPage : public QWizardPage
{
Q_OBJECT
public:
ConclusionPage(QWidget *parent = nullptr);
void initializePage() override;
int nextId() const override;
QString getData();
private:
QCheckBox *writeFluxFilecheckBox;
QCheckBox *overwriteFluxFilecheckBox;
QLabel *bottomLabel;
};
//! [6]
#endif