载入中...
搜索中...
未找到
EditorPackage.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
7
8#include <string>
9#include <string_view>
10#include <vector>
11
12namespace eve::editing {
13
16 std::string id;
17 std::string title;
18 std::string region = "center";
19 std::string capability;
20 std::string context;
21 int order = 0;
22 bool primaryViewport = false;
23};
24
30
33 std::string when;
34 std::string then;
35};
36
39
47 std::string ownerModule;
48 std::vector<EditorPanelSpec> panels;
49 std::vector<EditingCommandDescriptor> commands;
50 std::vector<EditorTargetTypeSpec> targetTypes;
51 std::string selectionDomain;
52 std::string previewKind;
53 std::vector<EditorLinkSpec> links;
54 EditorUndoPolicy undoPolicy = EditorUndoPolicy::Share;
55 bool incomplete = false;
56};
57
65public:
66 static constexpr const char* capabilityName = "IEditorPackageProvider";
67
69 virtual ~IEditorPackageProvider() = default;
70
72 [[nodiscard]] virtual std::string_view ownerModule() const = 0;
73
78 [[nodiscard]] virtual const EditorPackage& package() const = 0;
79};
80
86 bool allowIncomplete = false);
87
88} // namespace eve::editing
#define EVENGINE_API_PLATFORM
Definition Export.h:107
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Capability-discovered package advertisement from a domain editor module.
virtual std::string_view ownerModule() const =0
Stable owner module identity (matches command ownerModule).
virtual ~IEditorPackageProvider()=default
Releases IEditorPackageProvider resources.
virtual const EditorPackage & package() const =0
Return the advertised package snapshot. @lifetime Borrowed until the provider is destroyed or next mu...
static constexpr const char * capabilityName
EditorUndoPolicy
Undo participation policy for a mounted package.
Result< void > validateEditorPackage(const EditorPackage &package, bool allowIncomplete)
Validate package completeness for Host mount.
Declarative cross-domain link hint (executed by EditorHost routers).
Single domain-editor deliverable for Host discover/autoMount.
std::vector< EditorTargetTypeSpec > targetTypes
std::vector< EditingCommandDescriptor > commands
std::vector< EditorPanelSpec > panels
std::vector< EditorLinkSpec > links
UI-neutral panel descriptor contributed by a domain editor package.
Target type advertised for automation create, with optional createSchema.
EVENGINE_API_PLATFORM public API.