2011-04-07 22:04:09 +00:00
|
|
|
#ifndef MAINDIALOG_H
|
|
|
|
#define MAINDIALOG_H
|
|
|
|
|
2012-06-20 00:28:49 +00:00
|
|
|
#include <QMainWindow>
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2012-01-21 00:14:35 +00:00
|
|
|
#include <components/files/configurationmanager.hpp>
|
2012-05-22 18:37:18 +00:00
|
|
|
#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;
|
2011-09-06 01:50:40 +00:00
|
|
|
class QStringList;
|
2011-04-07 22:04:09 +00:00
|
|
|
class QStringListModel;
|
2011-09-06 01:50:40 +00:00
|
|
|
class QString;
|
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;
|
|
|
|
|
2012-06-20 00:28:49 +00:00
|
|
|
class MainDialog : public QMainWindow
|
2011-04-07 22:04:09 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainDialog();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
2011-04-24 21:03:21 +00:00
|
|
|
void play();
|
2012-06-20 18:43:51 +00:00
|
|
|
bool setup();
|
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();
|
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
|
|
|
|
2012-01-21 00:14:35 +00:00
|
|
|
Files::ConfigurationManager mCfgMgr;
|
2012-05-22 18:37:18 +00:00
|
|
|
Settings::Manager mSettings;
|
2011-04-07 22:04:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|