1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/apps/launcher/maindialog.hpp

64 lines
1.2 KiB
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#ifndef MAINDIALOG_H
#define MAINDIALOG_H
#include <QMainWindow>
2011-04-07 22:04:09 +00:00
#include <components/files/configurationmanager.hpp>
2011-09-27 07:45:28 +00:00
2011-04-07 22:04:09 +00:00
class QListWidget;
class QListWidgetItem;
class QStackedWidget;
class QStringList;
2011-04-07 22:04:09 +00:00
class QStringListModel;
class QString;
2011-04-07 22:04:09 +00:00
class PlayPage;
class GraphicsPage;
2011-04-07 22:04:09 +00:00
class DataFilesPage;
class GameSettings;
class GraphicsSettings;
class LauncherSettings;
class MainDialog : public QMainWindow
2011-04-07 22:04:09 +00:00
{
Q_OBJECT
public:
MainDialog(GameSettings &gameSettings,
GraphicsSettings &GraphicsSettings,
LauncherSettings &launcherSettings);
bool setup();
2011-04-07 22:04:09 +00:00
public slots:
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
void play();
2011-04-07 22:04:09 +00:00
private:
void createIcons();
void createPages();
void loadSettings();
void saveSettings();
void writeSettings();
void closeEvent(QCloseEvent *event);
2011-04-07 22:04:09 +00:00
QListWidget *mIconWidget;
QStackedWidget *mPagesWidget;
2011-04-24 19:42:56 +00:00
2011-04-07 22:04:09 +00:00
PlayPage *mPlayPage;
GraphicsPage *mGraphicsPage;
2011-04-07 22:04:09 +00:00
DataFilesPage *mDataFilesPage;
Files::ConfigurationManager mCfgMgr;
GameSettings &mGameSettings;
GraphicsSettings &mGraphicsSettings;
LauncherSettings &mLauncherSettings;
2011-04-07 22:04:09 +00:00
};
#endif