source: s10k/Vago/abstractwizard.h@ 1103

Last change on this file since 1103 was 1093, checked in by s10k, 7 years ago

Vago 1.4

File size: 1.2 KB
RevLine 
[1061]1#ifndef ABSTRACTWIZARD_H
2#define ABSTRACTWIZARD_H
3
4#include <QLabel>
5#include <QVBoxLayout>
6#include <QLineEdit>
7#include <QRect>
8#include <QDesktopWidget>
9#include <QTextStream>
10#include <QSettings>
11#include <QWizard>
12#include <QIcon>
13#include <QPushButton>
14
15// This abstract class allow us to re-use most of the code used in wizards.
16// To create wizard use the WizardFactory class available in "wizardfactory.h"
17class AbstractWizard: public QObject // for signals and slots
18{
19 Q_OBJECT // for signals and slots
20protected:
21 QWizard myWizard;
22 QString workspaceWizardLocation;
23 QSettings *vagoSettings;
24 QString appDir;
25protected:
[1093]26 AbstractWizard(const QString &appDir, const QString &workspaceWizardLocation, QSettings *vagoSettings, const bool hasRestartButton);
[1061]27 virtual void exec()=0;
28 void showWizard(const QString &windowsTitle, const QString &windowsIcon);
29 QWizardPage* createIntroPage(const QString &text);
30 virtual void beforeClose(QDialog::DialogCode resultStatus)=0;
31protected slots:
32 void wizardFinished(int resultStatus);
33private:
34 bool hasRestartButton;
35private slots:
36 void pageChanged(int pageId);
37 void restartWizard();
38};
39
40#endif // ABSTRACTWIZARD_H
Note: See TracBrowser for help on using the repository browser.