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

@@ -1,10 +1,8 @@
#pragma once
#include <XCEditor/Workspace/UIEditorWindowWorkspaceController.h>
#include <XCEditor/Workspace/UIEditorWorkspaceController.h>
#include <string>
#include <string_view>
namespace XCEngine::UI::Editor::App {
@@ -16,38 +14,12 @@ public:
return m_panelRegistry;
}
bool HasState() const {
return !m_windowSet.windows.empty();
}
const UIEditorWindowWorkspaceSet& GetWindowSet() const {
return m_windowSet;
}
UIEditorWindowWorkspaceController BuildMutationController() const;
bool RegisterWindowProjection(
std::string_view windowId,
bool primary,
const UIEditorWorkspaceController& workspaceController,
std::string& outError);
bool CommitWindowProjection(
std::string_view windowId,
const UIEditorWorkspaceController& workspaceController,
std::string& outError);
bool ValidateWindowSet(
const UIEditorWindowWorkspaceSet& windowSet,
std::string& outError) const;
void ReplaceWindowSet(UIEditorWindowWorkspaceSet windowSet);
void RemoveWindow(std::string_view windowId, bool primary);
private:
UIEditorPanelRegistry m_panelRegistry = {};
UIEditorWindowWorkspaceSet m_windowSet = {};
};
} // namespace XCEngine::UI::Editor::App