paysages3d/src/editing/common/mainwindow.h

68 lines
1.1 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVector>
#include "rendering/tools/pack.h"
class BaseForm;
class FormRender;
namespace Ui {
class MainWindow;
}
class MainWindow;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
~MainWindow();
virtual bool event(QEvent* event);
static inline MainWindow* instance()
{
return _instance;
}
static void guiSaveCallback(PackStream* stream, void* data);
static void guiLoadCallback(PackStream* stream, void* data);
protected:
public slots:
void refreshAll();
void openTab(int position);
void fileNew();
void fileSave();
void fileLoad();
void showAboutDialog();
void quickPreview();
void finalRender();
void showLastRender();
void explore3D();
signals:
void refreshed();
private:
static MainWindow* _instance;
Ui::MainWindow *ui;
void guiSave(PackStream* stream);
void guiLoad(PackStream* stream);
QVector<BaseForm*> _forms;
FormRender* _form_render;
};
#endif // MAINWINDOW_H