paysages3d/gui_qt/mainwindow.h
2013-01-19 22:42:50 +00:00

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