launch/installwizard.h

59 lines
1 KiB
C
Raw Normal View History

#ifndef INSTALLWIZARD_H
#define INSTALLWIZARD_H
#include <QWizard>
namespace Ui {
class InstallWizard;
}
2014-05-13 03:28:20 +00:00
class QPushButton;
class Settings;
class InstallWizard : public QWizard
{
Q_OBJECT
public:
explicit InstallWizard(QWidget *parent, Settings *settings);
~InstallWizard();
struct CopyFile
{
QString source;
QString dest;
};
void addCopyFile(const QString &source, const QString &dest);
const QList<CopyFile> &getCopyFiles() const;
bool getIsQuake3PatchRequired() const;
void setIsQuake3PatchRequired(bool value);
QString getQuakePath() const;
void setQuakePath(const QString &path);
enum
{
Page_Setup,
Page_Eula,
Page_Copy,
Page_Patch,
Page_Finished
};
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);
private:
Ui::InstallWizard *ui;
2014-05-13 03:28:20 +00:00
QPushButton *cancelButton;
Settings *settings;
QList<CopyFile> copyFiles;
bool isQuake3PatchRequired;
QString quakePath;
};
#endif // INSTALLWIZARD_H