2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_MAINWINDOW_H_
|
|
|
|
#define _PAYSAGES_QT_MAINWINDOW_H_
|
2011-12-25 21:19:32 +00:00
|
|
|
|
|
|
|
#include <QMainWindow>
|
2012-04-02 19:38:59 +00:00
|
|
|
#include "formrender.h"
|
2012-06-27 10:30:00 +00:00
|
|
|
#include "../lib_paysages/pack.h"
|
2011-12-25 21:19:32 +00:00
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
2012-06-02 09:46:24 +00:00
|
|
|
virtual bool event(QEvent* event);
|
2012-06-27 10:30:00 +00:00
|
|
|
|
|
|
|
static void guiSaveCallback(PackStream* stream, void* data);
|
|
|
|
static void guiLoadCallback(PackStream* stream, void* data);
|
2012-01-08 10:31:01 +00:00
|
|
|
|
|
|
|
public slots:
|
2012-01-10 20:51:27 +00:00
|
|
|
void refreshAll();
|
2012-01-26 23:08:09 +00:00
|
|
|
|
2012-01-08 10:31:01 +00:00
|
|
|
void fileNew();
|
|
|
|
void fileSave();
|
|
|
|
void fileLoad();
|
2012-04-05 17:47:43 +00:00
|
|
|
|
|
|
|
void showAboutDialog();
|
2012-01-26 23:08:09 +00:00
|
|
|
|
2012-01-10 20:51:27 +00:00
|
|
|
void quickPreview();
|
2012-01-26 23:08:09 +00:00
|
|
|
void explore3D();
|
2012-04-02 19:38:59 +00:00
|
|
|
|
|
|
|
private:
|
2012-06-27 10:30:00 +00:00
|
|
|
void guiSave(PackStream* stream);
|
|
|
|
void guiLoad(PackStream* stream);
|
|
|
|
|
2012-07-05 18:14:51 +00:00
|
|
|
QVector<BaseForm*> _forms;
|
2012-04-02 19:38:59 +00:00
|
|
|
FormRender* _form_render;
|
2011-12-25 21:19:32 +00:00
|
|
|
};
|
|
|
|
|
2012-01-27 14:47:08 +00:00
|
|
|
#endif
|