mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
51 lines
888 B
C++
51 lines
888 B
C++
#ifndef MAINDIALOG_H
|
|
#define MAINDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QListWidget;
|
|
class QListWidgetItem;
|
|
class QStackedWidget;
|
|
class QStringList;
|
|
class QStringListModel;
|
|
class QString;
|
|
|
|
class PlayPage;
|
|
class GraphicsPage;
|
|
class DataFilesPage;
|
|
|
|
class MainDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainDialog();
|
|
|
|
public slots:
|
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
|
void play();
|
|
void profileChanged(int index);
|
|
|
|
|
|
private:
|
|
void createIcons();
|
|
void createPages();
|
|
void setupConfig();
|
|
void writeConfig();
|
|
void closeEvent(QCloseEvent *event);
|
|
|
|
QStringList readConfig(const QString &fileName);
|
|
|
|
QListWidget *mIconWidget;
|
|
QStackedWidget *mPagesWidget;
|
|
|
|
PlayPage *mPlayPage;
|
|
GraphicsPage *mGraphicsPage;
|
|
DataFilesPage *mDataFilesPage;
|
|
|
|
QStringList mDataDirs;
|
|
bool mStrict;
|
|
};
|
|
|
|
#endif
|