Refactor new_editor window architecture and routing

This commit is contained in:
2026-04-23 14:11:33 +08:00
parent 5c0a878aa0
commit af5690395d
121 changed files with 1647 additions and 1592 deletions

View File

@@ -33,12 +33,12 @@ class EditorContext;
} // namespace XCEngine::UI::Editor::App
namespace XCEngine::UI::Editor::Ports {
namespace XCEngine::UI::Editor::Rendering::Host {
class TexturePort;
class ViewportRenderPort;
class UiTextureHost;
class ViewportRenderHost;
} // namespace XCEngine::UI::Editor::Ports
} // namespace XCEngine::UI::Editor::Rendering::Host
namespace XCEngine::Rendering {
@@ -52,11 +52,11 @@ class EditorShellRuntime {
public:
void Initialize(
const std::filesystem::path& repoRoot,
Ports::TexturePort& textureHost,
Rendering::Host::UiTextureHost& textureHost,
UIEditorTextMeasurer& textMeasurer);
void Shutdown();
void ResetInteractionState();
void AttachViewportWindowRenderer(Ports::ViewportRenderPort& renderer);
void AttachViewportWindowRenderer(Rendering::Host::ViewportRenderHost& renderer);
void DetachViewportWindowRenderer();
void SetViewportSurfacePresentationEnabled(bool enabled);
@@ -99,7 +99,7 @@ private:
ViewportHostService m_viewportHostService = {};
SceneViewportFeature m_sceneViewportFeature = {};
BuiltInIcons m_builtInIcons = {};
Ports::TexturePort* m_textureHost = nullptr;
Rendering::Host::UiTextureHost* m_textureHost = nullptr;
ConsolePanel m_consolePanel = {};
HierarchyPanel m_hierarchyPanel = {};
InspectorPanel m_inspectorPanel = {};