refactor(new_editor): tighten app dependency boundaries

This commit is contained in:
2026-04-19 02:48:41 +08:00
parent 7429f22fb1
commit c59cd83c38
86 changed files with 1754 additions and 1077 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include <string_view>
namespace XCEngine::UI::Editor::App {
inline constexpr std::string_view kHierarchyPanelId = "hierarchy";
inline constexpr std::string_view kScenePanelId = "scene";
inline constexpr std::string_view kGamePanelId = "game";
inline constexpr std::string_view kInspectorPanelId = "inspector";
inline constexpr std::string_view kConsolePanelId = "console";
inline constexpr std::string_view kProjectPanelId = "project";
inline constexpr std::string_view kHierarchyPanelTitle = "Hierarchy";
inline constexpr std::string_view kScenePanelTitle = "Scene";
inline constexpr std::string_view kGamePanelTitle = "Game";
inline constexpr std::string_view kInspectorPanelTitle = "Inspector";
inline constexpr std::string_view kConsolePanelTitle = "Console";
inline constexpr std::string_view kProjectPanelTitle = "Project";
[[nodiscard]] constexpr bool IsEditorViewportPanelId(std::string_view panelId) {
return panelId == kScenePanelId || panelId == kGamePanelId;
}
} // namespace XCEngine::UI::Editor::App