Michaël Lemaire
b46060f3c4
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@500 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
39 lines
774 B
C++
39 lines
774 B
C++
#ifndef _PAYSAGES_QT_MAINWINDOW_H_
|
|
#define _PAYSAGES_QT_MAINWINDOW_H_
|
|
|
|
#include <QMainWindow>
|
|
#include "formrender.h"
|
|
#include "../lib_paysages/tools/pack.h"
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
virtual bool event(QEvent* event);
|
|
|
|
static void guiSaveCallback(PackStream* stream, void* data);
|
|
static void guiLoadCallback(PackStream* stream, void* data);
|
|
|
|
public slots:
|
|
void refreshAll();
|
|
|
|
void fileNew();
|
|
void fileSave();
|
|
void fileLoad();
|
|
|
|
void showAboutDialog();
|
|
|
|
void quickPreview();
|
|
void explore3D();
|
|
|
|
private:
|
|
void guiSave(PackStream* stream);
|
|
void guiLoad(PackStream* stream);
|
|
|
|
QVector<BaseForm*> _forms;
|
|
FormRender* _form_render;
|
|
};
|
|
|
|
#endif
|