refactor(new_editor/app): reorganize host structure and add smoke test

This commit is contained in:
2026-04-15 08:24:06 +08:00
parent 3617b4840b
commit 9e5954cf0a
235 changed files with 11157 additions and 10028 deletions

View File

@@ -1,10 +1,10 @@
#pragma once
#include "Project/ProductProjectBrowserModel.h"
#include "ProjectBrowserModel.h"
#include <XCEditor/Collections/UIEditorTreeViewInteraction.h>
#include <XCEditor/Foundation/UIEditorTextMeasurement.h>
#include <XCEditor/Shell/UIEditorPanelContentHost.h>
#include <XCEditor/Panels/UIEditorPanelContentHost.h>
#include <XCEngine/UI/DrawData.h>
#include <XCEngine/UI/Widgets/UIExpansionModel.h>
@@ -18,9 +18,9 @@
namespace XCEngine::UI::Editor::App {
class ProductBuiltInIcons;
class BuiltInIcons;
class ProductProjectPanel {
class ProjectPanel {
public:
enum class CursorKind : std::uint8_t {
Arrow = 0,
@@ -56,7 +56,7 @@ public:
};
void Initialize(const std::filesystem::path& repoRoot);
void SetBuiltInIcons(const ProductBuiltInIcons* icons);
void SetBuiltInIcons(const BuiltInIcons* icons);
void SetTextMeasurer(const ::XCEngine::UI::Editor::UIEditorTextMeasurer* textMeasurer);
void ResetInteractionState();
void Update(
@@ -73,7 +73,7 @@ public:
const std::vector<Event>& GetFrameEvents() const;
private:
using BrowserModel = ::XCEngine::UI::Editor::App::Project::ProductProjectBrowserModel;
using BrowserModel = ::XCEngine::UI::Editor::App::ProjectBrowserModel;
using FolderEntry = BrowserModel::FolderEntry;
using AssetEntry = BrowserModel::AssetEntry;
@@ -121,7 +121,7 @@ private:
void ResetTransientFrames();
BrowserModel m_browserModel = {};
const ProductBuiltInIcons* m_icons = nullptr;
const BuiltInIcons* m_icons = nullptr;
const ::XCEngine::UI::Editor::UIEditorTextMeasurer* m_textMeasurer = nullptr;
::XCEngine::UI::Widgets::UISelectionModel m_folderSelection = {};
::XCEngine::UI::Widgets::UIExpansionModel m_folderExpansion = {};
@@ -144,3 +144,6 @@ private:
};
} // namespace XCEngine::UI::Editor::App