Refactor new_editor window architecture and routing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user