2016-08-30 06:47:02 +00:00
|
|
|
#ifndef IEDITOR
|
|
|
|
#define IEDITOR
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "CEditorApplication.h"
|
|
|
|
|
|
|
|
class IEditor : public QMainWindow
|
|
|
|
{
|
2016-08-31 08:09:13 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2016-08-30 06:47:02 +00:00
|
|
|
public:
|
|
|
|
IEditor(QWidget *pParent)
|
|
|
|
: QMainWindow(pParent)
|
|
|
|
{
|
|
|
|
gpEdApp->AddEditor(this);
|
|
|
|
}
|
|
|
|
|
2016-08-31 08:09:13 +00:00
|
|
|
virtual void closeEvent(QCloseEvent*) { emit Closed(); }
|
2016-08-30 06:47:02 +00:00
|
|
|
virtual void EditorTick(float /*DeltaTime*/) { }
|
2016-08-31 08:09:13 +00:00
|
|
|
virtual CBasicViewport* Viewport() const { return nullptr; }
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void Closed();
|
2016-08-30 06:47:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IEDITOR
|
|
|
|
|