-
Notifications
You must be signed in to change notification settings - Fork 0
/
wizardpages.h
executable file
·93 lines (82 loc) · 2.02 KB
/
wizardpages.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
#ifndef WIZARDPAGES_H
#define WIZARDPAGES_H
#include "algorithm/curve.h"
#include <QWizardPage>
#include <QFile>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QRadioButton>
#include <QSpinBox>
#include <QGroupBox>
#include <QTableWidget>
#include <QVBoxLayout>
#include <iostream>
#include <vector>
class IntroPage : public QWizardPage
{
Q_OBJECT
public:
IntroPage(QWidget* parent = 0);
~IntroPage();
protected:
QLabel* introLbl;
};
class ConfigInitialPage : public QWizardPage
{
Q_OBJECT
public:
ConfigInitialPage(QWidget* parent = 0);
~ConfigInitialPage();
void _atentionXYValues();
virtual bool isComplete() const;
int getGrauPolin() const;
std::vector<Curve> getCurves() const { return curves; }
protected:
bool parseImportFile(const QString& content);
bool _parseImportFile(const QStringList& points);
bool _getPoints(const QString& points);
/*
* Váriaveis de Configuração
*/
std::vector<Curve> curves;
int grauPolin;
int nrCurves;
QString unitX;
QString unitY;
QString importFileName;
/*
* Váriaveis da Interface Gráfica
*/
QFile* importFile;
QLabel* label1;
QLabel* label2;
QLabel* label3;
QLabel* label4;
QLabel* label5;
QLabel* label6;
QPushButton* verBtn;
QPushButton* openFileBtn;
QPushButton* insertDataBtn;
QSpinBox* nrCurvaSpin;
QSpinBox* grauPolinSpin;
QDialog* dialogInsertData;
QLineEdit* unitXEdit;
QLineEdit* unitYEdit;
QRadioButton* importRadio;
QRadioButton* insertRadio;
QGroupBox* groupDados;
QVBoxLayout* vImportLayout;
QVBoxLayout* vInsertLayout;
QVBoxLayout* vGlobalLayout;
std::vector<QTableWidget *> tableWidgets;
protected slots:
void changeRadio();
void openFileForImport();
void verFormatacaoDialog();
void insertExperimentalData();
void addRowInTable();
void okThenGetExperimentalPoints();
void currentItemTableChanged(QTableWidgetItem *item);
};
#endif // WIZARDPAGES_H