mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-08-11 06:29:08 +00:00
28 lines
507 B
C++
28 lines
507 B
C++
#ifndef IEDITOR
|
|
#define IEDITOR
|
|
|
|
#include <QMainWindow>
|
|
#include "CEditorApplication.h"
|
|
|
|
class IEditor : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
IEditor(QWidget *pParent)
|
|
: QMainWindow(pParent)
|
|
{
|
|
gpEdApp->AddEditor(this);
|
|
}
|
|
|
|
virtual void closeEvent(QCloseEvent*) { emit Closed(); }
|
|
virtual void EditorTick(float /*DeltaTime*/) { }
|
|
virtual CBasicViewport* Viewport() const { return nullptr; }
|
|
|
|
signals:
|
|
void Closed();
|
|
};
|
|
|
|
#endif // IEDITOR
|
|
|