-
Notifications
You must be signed in to change notification settings - Fork 7
/
wizard.h
93 lines (69 loc) · 2.31 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
#ifndef WIZARD_H
#define WIZARD_H
#include <QWizard>
#include <QtGui/QVBoxLayout>
#include <QMessageBox>
#include <QMap>
#include "confighandler.h"
#include "regionwizard.h"
#include "WizardInterface.h"
namespace Ui {
class Wizard;
}
class Wizard : public QWizard, public WizardInterface {
Q_OBJECT
public:
Wizard(QWidget *parent = 0, RegionWizard* regionWizard = 0);
~Wizard();
void SetTaigaPath(QString path);
RegionWizard* m_RegionWizard;
QMessageBox* regionConflict;
void Configure(bool foundTaiga);
bool m_GridConfig;
bool m_JoinGrid;
bool m_Defaults;
bool m_Regions;
void ClearRegions();
virtual QList<int> GetRegionPorts();
void SetDataBaseParams();
protected:
void changeEvent(QEvent *e);
bool checkTaigaDir();
void configureSimPage();
void configureGridPage();
void configureDbPage();
void configureRegionPage();
void setRegionDefaults();
void constructDatabaseConnectionStringAndDBPlugin();
void setComboDefault(QComboBox* combo, QString plugin);
void loadDefaults();
void setRegionsFromIni();
void setDatabasesFromConfig();
void setWritableFiles();
QString getCurrentDbName(QMap<QString, QMap<QString,QString>* >& configIniSections, QString sectionName, QString fileName, QString searchString);
void setCurrentDbName(QMap<QString, QMap<QString,QString>* >& configIniSections, QString sectionName, QString fileName, QString searchString, QString newName);
QMessageBox* m_missingUserName;
QMessageBox* m_regionNotification;
QMessageBox* m_regionNotSelected;
private:
Ui::Wizard *ui;
QVBoxLayout m_VBoxLaout;
QSpacerItem *m_Spacer;
ConfigHandler m_configHandler;
int m_lastId;
private slots:
void on_comboDBPlugin_currentIndexChanged(QString );
void on_lineEditSaveName_textChanged(QString );
void on_lineEditGridDBPassword_textChanged(QString );
void on_btnChangeDataBaseNames_clicked();
void on_btnRemoveRegion_clicked();
void on_btnSaveConfigs_clicked();
void on_lineEditSimGridUrl_textChanged(QString );
void on_checkBoxRobust_clicked();
void on_btnBrowseDirectory_clicked();
void on_btnUpdateRegion_clicked();
void on_btnAddRegion_clicked();
void onNext_button_clicked();
void onFinish_button_clicked();
};
#endif // WIZARD_H