mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-11 06:27:45 +00:00
Initial work towards making the World Editor the main application window
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef CEDITORAPPLICATION_H
|
||||
#define CEDITORAPPLICATION_H
|
||||
|
||||
#include <Core/GameProject/CGameProject.h>
|
||||
#include <QApplication>
|
||||
#include <QTimer>
|
||||
#include <QVector>
|
||||
@@ -18,23 +19,28 @@ class CEditorApplication : public QApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
QTimer mRefreshTimer;
|
||||
CGameProject *mpActiveProject;
|
||||
CWorldEditor *mpWorldEditor;
|
||||
CResourceBrowser *mpResourceBrowser;
|
||||
CProjectOverviewDialog *mpProjectDialog;
|
||||
QVector<IEditor*> mEditorWindows;
|
||||
QMap<CResourceEntry*,IEditor*> mEditingMap;
|
||||
|
||||
QTimer mRefreshTimer;
|
||||
double mLastUpdate;
|
||||
|
||||
public:
|
||||
CEditorApplication(int& rArgc, char **ppArgv);
|
||||
~CEditorApplication();
|
||||
void InitEditor();
|
||||
bool CloseProject();
|
||||
bool OpenProject(const QString& rkProjPath);
|
||||
void EditResource(CResourceEntry *pEntry);
|
||||
void NotifyAssetsModified();
|
||||
void CookAllDirtyPackages();
|
||||
|
||||
// Accessors
|
||||
inline CGameProject* ActiveProject() const { return mpActiveProject; }
|
||||
inline CWorldEditor* WorldEditor() const { return mpWorldEditor; }
|
||||
inline CResourceBrowser* ResourceBrowser() const { return mpResourceBrowser; }
|
||||
inline CProjectOverviewDialog* ProjectDialog() const { return mpProjectDialog; }
|
||||
@@ -48,7 +54,9 @@ public slots:
|
||||
void OnEditorClose();
|
||||
|
||||
signals:
|
||||
void ActiveProjectChanged(CGameProject *pNewProj);
|
||||
void AssetsModified();
|
||||
void PackagesCooked();
|
||||
};
|
||||
|
||||
#define gpEdApp static_cast<CEditorApplication*>(qApp)
|
||||
|
||||
Reference in New Issue
Block a user