-
Notifications
You must be signed in to change notification settings - Fork 5
/
wizard.h
executable file
·77 lines (61 loc) · 1.5 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
#ifndef WIZARD_H
#define WIZARD_H
#include "pageone.h"
#include "pagetwo.h"
#include "link.h"
#include "constants.h"
#include "templateedit.h"
#include <QGridLayout>
#include <QPushButton>
#include <QDialog>
#include <QStackedWidget>
#include <QMessageBox>
#include <QMouseEvent>
class Wizard : public QDialog
{
Q_OBJECT
public:
Wizard();
QStackedWidget *pages;
signals:
void emitOutput(const QString &output);
void emitTitle(const QString &output);
private slots:
void doNext();
void doPrev();
void saveFormInfo();
private:
void generatePetriArray();
void generatePlateArray();
void buildTitle();
void buildSideBar(QHBoxLayout *mainLayout);
void buildSidebarLink(QVBoxLayout *sidebarLayout, QString inLink, QString location, QString inLabel, QString inDescr);
void addDivider(QVBoxLayout *sidebarLayout);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
QPushButton *next;
QPushButton *previous;
QPushButton *cancel;
PageOne *pageOne;
TemplateEdit *templateEdit;
PageTwo *pageTwo;
int x_coord;
int y_coord;
QString nameInput;
QString materialString;
int yearInput;
int monthInput;
int dayInput;
int heightInput;
int widthInput;
int positionInput;
int materialInput;
int printType;
double extrusionAmount;
QString yearString;
QString monthString;
QString dayString;
QString output;
int selection = 1;
};
#endif //WIZARD_H