2011-04-07 22:04:09 +00:00
|
|
|
#ifndef MAINDIALOG_H
|
|
|
|
#define MAINDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QListWidget;
|
|
|
|
class QListWidgetItem;
|
|
|
|
class QStackedWidget;
|
|
|
|
class QStringListModel;
|
2011-05-02 20:21:42 +00:00
|
|
|
class QSettings;
|
2011-04-07 22:04:09 +00:00
|
|
|
|
|
|
|
class PlayPage;
|
2011-05-02 20:21:42 +00:00
|
|
|
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);
|
2011-04-24 21:03:21 +00:00
|
|
|
void play();
|
2011-05-03 00:46:46 +00:00
|
|
|
void profileChanged(int index);
|
2011-04-24 21:03:21 +00:00
|
|
|
|
2011-04-07 22:04:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void createIcons();
|
2011-05-02 20:21:42 +00:00
|
|
|
void createPages();
|
|
|
|
void setupConfig();
|
2011-05-03 00:46:46 +00:00
|
|
|
void writeConfig();
|
2011-04-24 21:03:21 +00:00
|
|
|
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;
|
2011-05-02 20:21:42 +00:00
|
|
|
GraphicsPage *mGraphicsPage;
|
2011-04-07 22:04:09 +00:00
|
|
|
DataFilesPage *mDataFilesPage;
|
2011-05-02 20:21:42 +00:00
|
|
|
|
|
|
|
QSettings *mGameConfig;
|
2011-04-07 22:04:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|