launch/mainwindow.h

60 lines
1 KiB
C
Raw Normal View History

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDesktopWidget>
#include <QMessageBox>
#include <QProcess>
#include <QString>
#include <QtGlobal>
#include <QFileDialog>
#include <QDir>
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_highlighted(int index);
void on_cbResolution_currentIndexChanged(int index);
void on_rbFull_toggled(bool checked);
void on_rbWin_toggled(bool checked);
void on_rbDefault_toggled(bool checked);
void on_sbWidth_valueChanged(int arg1);
void on_sbHeight_valueChanged(int arg1);
private:
Ui::ioLaunch *ui;
QProcess myProcess;
QString ioq3;
QString resOption;
QString screenOption;
QMessageBox msg;
QMessageBox ioq3Failed;
QDir directory;
int ioWidth;
int ioHeight;
bool ioWedited;
bool ioHedited;
};
#endif // MAINWINDOW_H