载入中...
搜索中...
未找到
WorkspacePresentation.h
浏览该文件的文档.
37 [[nodiscard]] virtual Result<void> write(const PropertyPath& path, const EditorValue& value) = 0;
52 [[nodiscard]] Result<void> stage(IWorkspacePresentationSource& source, PropertyPath path, EditorValue value);
58 [[nodiscard]] Result<void> edit(IWorkspacePresentationSource& source, PropertyPath path, EditorValue value);
Dotted property path (layout.size) compared and persisted as text.
Definition EditingIds.h:78
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
Synchronous adapter for an open domain editor, without UI or domain includes. @ownership Caller owns ...
Definition WorkspacePresentation.h:27
virtual ~IWorkspacePresentationSource()=default
virtual PropertySchema schema() const =0
Owning schema; field identity is its canonical property path.
virtual WorkspacePresentationState state() const =0
Snapshot of document revision, selection/playhead context and history availability.
virtual PropertyReadResult read(const PropertyPath &path) const =0
Read a field for the current selection without mutation.
virtual Result< void > action(std::string_view id)=0
Execute a domain action, including undo/redo on its sole history backend.
virtual Result< void > write(const PropertyPath &path, const EditorValue &value)=0
Commit one validated field through the domain's existing transaction path.
Shared validation and draft/commit controller used by domain editor UI adapters. @ownership Owns only...
Definition WorkspacePresentation.h:49
bool hasDraft() const noexcept
Whether an uncommitted draft exists.
Definition WorkspacePresentation.h:62
Definition ActionPreviewController.cpp:6
Owning state projection; the bound domain remains the only document/history owner.
Definition WorkspacePresentation.h:13
std::uint64_t revision
Definition WorkspacePresentation.h:14
std::string context
Definition WorkspacePresentation.h:15