2013-12-02 00:25:01 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QDesktopWidget>
|
|
|
|
#include <QMessageBox>
|
|
|
|
#include <QString>
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QFileDialog>
|
|
|
|
#include <QDir>
|
2014-05-09 02:21:42 +00:00
|
|
|
#include "settings.h"
|
2013-12-02 00:25:01 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ioLaunch;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ioLaunch : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ioLaunch(QWidget *parent = 0);
|
|
|
|
~ioLaunch();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_btnLaunch_clicked();
|
|
|
|
|
|
|
|
void on_cbResolution_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
void on_rbFull_toggled(bool checked);
|
|
|
|
|
|
|
|
void on_rbWin_toggled(bool checked);
|
|
|
|
|
|
|
|
void on_sbWidth_valueChanged(int arg1);
|
|
|
|
|
|
|
|
void on_sbHeight_valueChanged(int arg1);
|
|
|
|
|
2014-05-12 08:49:59 +00:00
|
|
|
void on_btnRunInstallWizard_clicked();
|
|
|
|
|
2013-12-02 00:25:01 +00:00
|
|
|
private:
|
2014-05-12 08:49:59 +00:00
|
|
|
#ifdef Q_OS_WIN32
|
|
|
|
// Returns false if the settings ioq3 path either doesn't exist or is invalid.
|
|
|
|
bool isQuake3PathValid() const;
|
|
|
|
#endif
|
|
|
|
|
2014-05-09 05:17:33 +00:00
|
|
|
void parseQuake3Config();
|
|
|
|
|
2013-12-02 00:25:01 +00:00
|
|
|
Ui::ioLaunch *ui;
|
2014-05-09 02:21:42 +00:00
|
|
|
Settings settings;
|
2014-05-09 02:56:11 +00:00
|
|
|
QString homePath;
|
2013-12-02 00:25:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|