载入中...
搜索中...
未找到
DefinitionForm.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
7
8namespace eve::schema {
10}
11
13
14using namespace eve::editing;
18using editing::Result;
19
22public:
25 const schema::SchemaDefinition* schema);
27 eve::Result<eve::Revision> currentRevision(const SelectionSnapshot& selection) const override;
29 PropertySchema schema(const SelectionSnapshot& selection) const override;
31 PropertyReadResult read(const SelectionSnapshot& selection, const PropertyPath& path) const override;
33 Result<DomainOperation> makeSet(const SelectionSnapshot& selection, const PropertyPath& path,
34 const EditorValue& value, PropertySetMode mode) const override;
36 Result<DomainOperation> makeReset(const SelectionSnapshot& selection,
37 const PropertyPath& path) const override;
39 std::vector<EditorDiagnostic> validate() const;
40
41private:
42 bool matches(const SelectionSnapshot& selection) const;
43 DefinitionDocument* document_ = nullptr;
44 const schema::SchemaDefinition* schema_ = nullptr;
45};
46
47} // namespace eve::definitions_editing
double value
#define EVENGINE_API_BACKENDS
Definition Export.h:108
std::string path
Definition PlayHost.cpp:110
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
Move-only operation result carrying either a value or Status.
Definition Result.h:155
UI-neutral versioned definition asset and cross-reference model.
Schema-driven property adapter for one definition document.
UI-independent property access for an immutable selection snapshot.
Dotted property path (layout.size) compared and persisted as text.
Definition EditingIds.h:78
Deterministic owning value tree shared by authoring hosts.
eve::Diagnostic Diagnostic
PropertySetMode
PropertySetMode public API.
eve::StatusCode Status
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
PropertyReadResult public API.
EVENGINE_API_PLATFORM public API.
SelectionSnapshot public API.
Versioned runtime schema for a JSON object.
Definition SchemaTypes.h:93