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

@@ -34,11 +34,11 @@ class EditorCommandFocusService;
} // namespace XCEngine::UI::Editor::App
namespace XCEngine::UI::Editor::Ports {
namespace XCEngine::UI::Editor::System {
class SystemInteractionPort;
class SystemInteractionService;
} // namespace XCEngine::UI::Editor::Ports
} // namespace XCEngine::UI::Editor::System
namespace XCEngine::UI::Editor::App {
@@ -85,7 +85,7 @@ public:
void Initialize(const std::filesystem::path& repoRoot);
void SetProjectRuntime(EditorProjectRuntime* projectRuntime);
void SetCommandFocusService(EditorCommandFocusService* commandFocusService);
void SetSystemInteractionHost(Ports::SystemInteractionPort* systemInteractionHost);
void SetSystemInteractionHost(System::SystemInteractionService* systemInteractionHost);
void SetBuiltInIcons(BuiltInIcons* icons);
void SetTextMeasurer(const ::XCEngine::UI::Editor::UIEditorTextMeasurer* textMeasurer);
void ResetInteractionState();
@@ -253,7 +253,7 @@ private:
std::unique_ptr<EditorProjectRuntime> m_ownedProjectRuntime = {};
EditorProjectRuntime* m_projectRuntime = nullptr;
EditorCommandFocusService* m_commandFocusService = nullptr;
Ports::SystemInteractionPort* m_systemInteractionHost = nullptr;
System::SystemInteractionService* m_systemInteractionHost = nullptr;
BuiltInIcons* m_icons = nullptr;
const ::XCEngine::UI::Editor::UIEditorTextMeasurer* m_textMeasurer = nullptr;
std::vector<Widgets::UIEditorTreeViewItem> m_windowTreeItems = {};