2014-05-12 08:49:59 +00:00
|
|
|
#ifndef INSTALLWIZARD_H
|
|
|
|
#define INSTALLWIZARD_H
|
|
|
|
|
|
|
|
#include <QWizard>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class InstallWizard;
|
|
|
|
}
|
|
|
|
|
2014-05-13 03:28:20 +00:00
|
|
|
class QPushButton;
|
2014-05-12 08:49:59 +00:00
|
|
|
class Settings;
|
|
|
|
|
|
|
|
class InstallWizard : public QWizard
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit InstallWizard(QWidget *parent, Settings *settings);
|
|
|
|
~InstallWizard();
|
|
|
|
|
2014-05-15 04:20:50 +00:00
|
|
|
struct CopyFile
|
|
|
|
{
|
|
|
|
QString source;
|
|
|
|
QString dest;
|
|
|
|
};
|
|
|
|
|
|
|
|
void addCopyFile(const QString &source, const QString &dest);
|
|
|
|
const QList<CopyFile> &getCopyFiles() const;
|
|
|
|
|
2014-05-15 06:40:17 +00:00
|
|
|
bool getIsQuake3PatchRequired() const;
|
|
|
|
void setIsQuake3PatchRequired(bool value);
|
|
|
|
|
2014-05-15 07:21:13 +00:00
|
|
|
QString getQuakePath() const;
|
|
|
|
void setQuakePath(const QString &path);
|
|
|
|
|
2014-05-12 08:49:59 +00:00
|
|
|
enum
|
|
|
|
{
|
2014-05-15 06:29:22 +00:00
|
|
|
Page_Setup,
|
2014-05-13 10:15:00 +00:00
|
|
|
Page_Eula,
|
2014-05-14 12:33:47 +00:00
|
|
|
Page_Copy,
|
2014-05-12 09:35:28 +00:00
|
|
|
Page_Patch,
|
|
|
|
Page_Finished
|
2014-05-12 08:49:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
private slots:
|
2014-05-13 03:28:20 +00:00
|
|
|
void cancel();
|
2014-05-13 09:34:15 +00:00
|
|
|
void on_InstallWizard_finished(int result);
|
2014-05-12 08:49:59 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::InstallWizard *ui;
|
2014-05-13 03:28:20 +00:00
|
|
|
QPushButton *cancelButton;
|
2014-05-12 08:49:59 +00:00
|
|
|
Settings *settings;
|
2014-05-15 04:20:50 +00:00
|
|
|
QList<CopyFile> copyFiles;
|
2014-05-15 06:40:17 +00:00
|
|
|
bool isQuake3PatchRequired;
|
2014-05-15 07:21:13 +00:00
|
|
|
QString quakePath;
|
2014-05-12 08:49:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INSTALLWIZARD_H
|