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

49 lines
894 B
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>
#include <components/settings/settings.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 MainDialog : public QMainWindow
2011-04-07 22:04:09 +00:00
{
Q_OBJECT
public:
MainDialog();
public slots:
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
void play();
bool setup();
2011-04-07 22:04:09 +00:00
private:
void createIcons();
void createPages();
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;
Settings::Manager mSettings;
2011-04-07 22:04:09 +00:00
};
#endif