mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-05-29 10:41:22 +00:00
31 lines
564 B
C++
31 lines
564 B
C++
#ifndef CEDITORAPPLICATION_H
|
|
#define CEDITORAPPLICATION_H
|
|
|
|
#include <QApplication>
|
|
#include <QTimer>
|
|
#include <QVector>
|
|
|
|
class CBasicViewport;
|
|
class IEditor;
|
|
|
|
class CEditorApplication : public QApplication
|
|
{
|
|
Q_OBJECT
|
|
|
|
QTimer mRefreshTimer;
|
|
QVector<IEditor*> mEditorWindows;
|
|
double mLastUpdate;
|
|
|
|
public:
|
|
CEditorApplication(int& rArgc, char **ppArgv);
|
|
|
|
public slots:
|
|
void AddEditor(IEditor *pEditor);
|
|
void TickEditors();
|
|
void OnEditorClose();
|
|
};
|
|
|
|
#define gpEdApp static_cast<CEditorApplication*>(qApp)
|
|
|
|
#endif // CEDITORAPPLICATION_H
|