载入中...
搜索中...
未找到
eve::editor::LocalTransactionBackend类 参考final

Local transaction coordinator backed by an injected edit authority. 更多...

#include <EditorTransactionService.h>

类 eve::editor::LocalTransactionBackend 继承关系图:
eve::editor::IEditorTransactionBackend

Public 成员函数

 LocalTransactionBackend (IEditAuthority *authority=nullptr)
 Bind a non-owning authority that outlives this backend.
 
Result< void > setAuthority (IEditAuthority *authority)
 Change the non-owning authority when no transaction is active.
 
Result< TransactionId > begin (TransactionSpec specification) override
 Begin a transaction with a stable id and base revision.
 
Result< void > append (DomainOperation operation) override
 Append an operation to the active transaction without applying it.
 
Result< EditorDryRunReport > preview () override
 Preflight the active operation list without mutating target state.
 
Result< TransactionReceipt > commit () override
 Preflight and commit all active operations through the authority.
 
Result< void > discard () override
 Discard the active, not-yet-committed operation list.
 
Result< void > rollback ()
 Compatibility spelling for discard.
 
Result< TransactionReceipt > retry () override
 Retry the retained failed commit.
 
Result< TransactionReceipt > undo () override
 Compensate the most recent committed transaction.
 
Result< TransactionReceipt > redo () override
 Reapply the most recently compensated transaction.
 
bool active () const noexcept override
 True while begin/append has an uncommitted transaction.
 
bool canUndo () const noexcept override
 True when one or more committed transactions can be compensated.
 
bool canRedo () const noexcept override
 True when one or more compensated transactions can be reapplied.
 
void clear ()
 Clear pending work and local undo/redo history without mutating the authority target.
 
- Public 成员函数 继承自 eve::editor::IEditorTransactionBackend
virtual ~IEditorTransactionBackend ()=default
 Releases IEditorTransactionBackend resources.
 

详细描述

Local transaction coordinator backed by an injected edit authority.

在文件 EditorTransactionService.h 第 48 行定义.

构造及析构函数说明

◆ LocalTransactionBackend()

eve::editor::LocalTransactionBackend::LocalTransactionBackend ( IEditAuthority *  authority = nullptr)
inlineexplicit

Bind a non-owning authority that outlives this backend.

在文件 EditorTransactionService.h 第 51 行定义.

成员函数说明

◆ active()

bool eve::editor::LocalTransactionBackend::active ( ) const
inlineoverridevirtualnoexcept

True while begin/append has an uncommitted transaction.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.h 第 75 行定义.

被这些函数引用 eve::editor::ActionTimelineEditor::reloadDocument().

◆ append()

Result< void > eve::editor::LocalTransactionBackend::append ( DomainOperation  operation)
overridevirtual

Append an operation to the active transaction without applying it.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.cpp 第 68 行定义.

引用了 eve::editor::EditorTransactionConsumer::append() , 以及 operation.

被这些函数引用 eve::editor::EditorTargetCoordinator::Impl::execute() , 以及 eve::audio_editor::AudioSourceEditor::setProperty().

◆ begin()

Result< TransactionId > eve::editor::LocalTransactionBackend::begin ( TransactionSpec  specification)
overridevirtual

◆ canRedo()

bool eve::editor::LocalTransactionBackend::canRedo ( ) const
inlineoverridevirtualnoexcept

True when one or more compensated transactions can be reapplied.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.h 第 79 行定义.

被这些函数引用 eve::ui_editor::UiThemeEditor::canRedo().

◆ canUndo()

bool eve::editor::LocalTransactionBackend::canUndo ( ) const
inlineoverridevirtualnoexcept

True when one or more committed transactions can be compensated.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.h 第 77 行定义.

被这些函数引用 eve::ui_editor::UiThemeEditor::canUndo().

◆ clear()

void eve::editor::LocalTransactionBackend::clear ( )
inline

Clear pending work and local undo/redo history without mutating the authority target.

在文件 EditorTransactionService.h 第 81 行定义.

被这些函数引用 eve::editor::ActionTimelineEditor::reloadDocument().

◆ commit()

Result< TransactionReceipt > eve::editor::LocalTransactionBackend::commit ( )
overridevirtual

Preflight and commit all active operations through the authority.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.cpp 第 74 行定义.

引用了 eve::editor::EditorTransactionConsumer::commit().

被这些函数引用 eve::editor::EditorTargetCoordinator::Impl::execute() , 以及 eve::audio_editor::AudioSourceEditor::setProperty().

◆ discard()

Result< void > eve::editor::LocalTransactionBackend::discard ( )
overridevirtual

Discard the active, not-yet-committed operation list.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.cpp 第 76 行定义.

引用了 eve::editor::EditorTransactionConsumer::discard().

被这些函数引用 eve::editor::EditorTargetCoordinator::Impl::execute() , 以及 rollback().

◆ preview()

Result< EditorDryRunReport > eve::editor::LocalTransactionBackend::preview ( )
overridevirtual

Preflight the active operation list without mutating target state.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.cpp 第 72 行定义.

引用了 eve::editor::EditorTransactionConsumer::dryRun().

◆ redo()

◆ retry()

Result< TransactionReceipt > eve::editor::LocalTransactionBackend::retry ( )
overridevirtual

Retry the retained failed commit.

实现了 eve::editor::IEditorTransactionBackend.

在文件 EditorTransactionService.cpp 第 80 行定义.

引用了 eve::editor::EditorTransactionConsumer::retry().

◆ rollback()

Result< void > eve::editor::LocalTransactionBackend::rollback ( )

Compatibility spelling for discard.

在文件 EditorTransactionService.cpp 第 78 行定义.

引用了 discard().

被这些函数引用 eve::audio_editor::AudioSourceEditor::setProperty().

◆ setAuthority()

Result< void > eve::editor::LocalTransactionBackend::setAuthority ( IEditAuthority *  authority)

Change the non-owning authority when no transaction is active.

在文件 EditorTransactionService.cpp 第 56 行定义.

引用了 eve::editor::EditorTransactionConsumer::setAuthority().

◆ undo()


该类的文档由以下文件生成: