Refactor editor shell host layers

This commit is contained in:
2026-03-26 23:52:05 +08:00
parent f87bc53875
commit 31675e00c8
18 changed files with 738 additions and 518 deletions

View File

@@ -1,24 +1,15 @@
#pragma once
#include "panels/PanelCollection.h"
#include "Core/EditorWorkspace.h"
#include <XCEngine/Core/Layer.h>
#include <XCEngine/Core/LayerStack.h>
#include <memory>
#include <string>
namespace XCEngine {
namespace Editor {
class IEditorContext;
class MenuBar;
class HierarchyPanel;
class SceneViewPanel;
class GameViewPanel;
class InspectorPanel;
class ConsolePanel;
class ProjectPanel;
class DockLayoutController;
class EditorLayer : public Core::Layer {
public:
@@ -35,9 +26,7 @@ public:
private:
std::shared_ptr<IEditorContext> m_context;
std::unique_ptr<DockLayoutController> m_dockLayoutController;
PanelCollection m_panels;
ProjectPanel* m_projectPanel = nullptr;
EditorWorkspace m_workspace;
};
}