| 1 |  | #ifndef BGIMAGEWIZARD_H | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 2 |  | #define BGIMAGEWIZARD_H | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 |  |  | 
 
 
 
 
 
 
 
 
 | 4 | – | // System includes | 
 
 
 
 
 
 
 
 
 | 5 | – | #include <QString> | 
 
 
 
 
 
 
 
 
 | 6 | – | #include <QWizard> | 
 
 
 
 
 
 
 
 
 | 7 | – | #include <QWizardPage> | 
 
 
 
 
 
 
 
 
 | 8 | – | #include <QLabel> | 
 
 
 
 
 
 
 
 
 | 9 | – | #include <QDesktopWidget> | 
 
 
 
 
 
 
 
 
 | 10 | – | #include <QVBoxLayout> | 
 
 
 
 
 
 
 
 
 | 11 | – | #include <QPushButton> | 
 
 
 
 
 
 
 
 
 | 12 | – |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | // Local includes | 
 
 
 
 
 
 
 
 | 5 | + | #include "abstractwizard.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 |  | #include "bgimagepage2.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 |  | #include "bgimagepage3.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 |  | #include "bgimagepagefinal.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 10 | < | class BGImageWizard: public QObject // for signals and slots | 
 
 
 
 
 
 
 
 
 | 10 | > | class BGImageWizard: public AbstractWizard // for signals and slots | 
 
 
 
 
 
 
 
 
 
 
 | 11 |  | { | 
 
 
 
 
 
 
 
 
 
 
 | 12 | < | Q_OBJECT // for signals and slots | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | < | public: | 
 
 
 
 
 
 
 
 
 | 12 | > | protected: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 13 |  | BGImageWizard(const QString &appDir, const QString &workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger); | 
 
 
 
 
 
 
 
 
 
 
 | 14 | < | int exec(); | 
 
 
 
 
 
 
 
 
 | 14 | > | void exec(); | 
 
 
 
 
 
 
 
 
 
 
 | 15 |  | private: | 
 
 
 
 
 
 
 
 
 | 25 | – | QWizard myWizard; | 
 
 
 
 
 
 
 
 
 | 26 | – | QWizardPage *createIntroPage(); | 
 
 
 
 
 
 
 
 
 | 27 | – |  | 
 
 
 
 
 
 
 
 
 | 28 | – | Logger *myLogger; | 
 
 
 
 
 
 
 
 
 | 29 | – | QString workspaceWizardLocation; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 |  | QString bgImagesLocation; | 
 
 
 
 
 
 
 
 
 
 
 | 17 | < | QString appDir; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 18 | < | QSettings *vagoSettings; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 33 | < | private slots: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 34 | < | void restartWizard(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 35 | < | void pageChanged(int pageId); | 
 
 
 
 
 
 
 
 
 | 17 | > | private: | 
 
 
 
 
 | 18 | > | void beforeClose(QDialog::DialogCode resultStatus); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 |  | }; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 |  | #endif // BGIMAGEWIZARD_H |