Add new editor product shell baseline

This commit is contained in:
2026-04-10 16:40:11 +08:00
parent 1f79afba3c
commit 8cde4e0649
15 changed files with 1290 additions and 438 deletions

View File

@@ -9,6 +9,11 @@
namespace XCEngine::UI::Editor {
enum class UIEditorCommandKind : std::uint8_t {
Workspace = 0,
Host
};
enum class UIEditorCommandPanelSource : std::uint8_t {
None = 0,
FixedPanelId,
@@ -25,6 +30,7 @@ struct UIEditorCommandDescriptor {
std::string commandId = {};
std::string displayName = {};
UIEditorWorkspaceCommandDescriptor workspaceCommand = {};
UIEditorCommandKind kind = UIEditorCommandKind::Workspace;
};
struct UIEditorCommandRegistry {
@@ -52,6 +58,7 @@ struct UIEditorCommandRegistryValidationResult {
};
std::string_view GetUIEditorCommandPanelSourceName(UIEditorCommandPanelSource source);
std::string_view GetUIEditorCommandKindName(UIEditorCommandKind kind);
const UIEditorCommandDescriptor* FindUIEditorCommandDescriptor(
const UIEditorCommandRegistry& registry,