refactor(new_editor): streamline internal layout and command routing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user