1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/apps/launcher/maindialog.hpp

47 lines
792 B
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#ifndef MAINDIALOG_H
#define MAINDIALOG_H
#include <QDialog>
class QListWidget;
class QListWidgetItem;
class QStackedWidget;
class QStringListModel;
class QSettings;
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 QDialog
{
Q_OBJECT
public:
MainDialog();
public slots:
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
void play();
void profileChanged(int index);
2011-04-07 22:04:09 +00:00
private:
void createIcons();
void createPages();
void setupConfig();
void writeConfig();
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;
QSettings *mGameConfig;
2011-04-07 22:04:09 +00:00
};
#endif