refactor(new_editor): streamline internal layout and command routing

This commit is contained in:
2026-04-15 19:30:58 +08:00
parent 9654f4d91a
commit df8f433fbb
84 changed files with 3250 additions and 3008 deletions

View File

@@ -1,8 +1,8 @@
#include "Workspace/UIEditorWorkspaceControllerInternal.h"
#include "Workspace/WorkspaceControllerInternal.h"
#include <utility>
namespace XCEngine::UI::Editor::Detail {
namespace XCEngine::UI::Editor::Internal {
bool IsPanelOpenAndVisible(
const UIEditorWorkspaceSession& session,
@@ -72,7 +72,7 @@ std::size_t CountVisibleTabs(
return visibleCount;
}
} // namespace XCEngine::UI::Editor::Detail
} // namespace XCEngine::UI::Editor::Internal
namespace XCEngine::UI::Editor {
@@ -179,7 +179,7 @@ UIEditorWorkspaceCommandResult UIEditorWorkspaceController::BuildResult(
result.panelId = command.panelId;
result.message = std::move(message);
result.activePanelId = m_workspace.activePanelId;
result.visiblePanelIds = Detail::CollectVisiblePanelIds(m_workspace, m_session);
result.visiblePanelIds = Internal::CollectVisiblePanelIds(m_workspace, m_session);
return result;
}
@@ -190,7 +190,7 @@ UIEditorWorkspaceLayoutOperationResult UIEditorWorkspaceController::BuildLayoutO
result.status = status;
result.message = std::move(message);
result.activePanelId = m_workspace.activePanelId;
result.visiblePanelIds = Detail::CollectVisiblePanelIds(m_workspace, m_session);
result.visiblePanelIds = Internal::CollectVisiblePanelIds(m_workspace, m_session);
return result;
}