载入中...
搜索中...
未找到
eve::editor::IEditCommand类 参考abstract

Reversible unit accepted by the editor transaction manager. 更多...

#include <EditCommand.h>

类 eve::editor::IEditCommand 继承关系图:
eve::editor::IntFieldEditCommand eve::editor::IntVolumeEditCommand eve::editor::ScalarFieldEditCommand

Public 成员函数

virtual ~IEditCommand ()=default
 Releases IEditCommand resources.
 
virtual const std::string & name () const =0
 Name.
 
virtual bool apply ()=0
 Applies .
 
virtual void revert ()=0
 Revert.
 
virtual std::unique_ptr< IEditCommand > clone () const
 Creates an owning staged copy for merge evaluation.
 
virtual bool mergeWith (const IEditCommand &later)
 Optionally absorb a later command from the same stroke.
 
virtual EditRegion dirtyRegion () const =0
 Dirty region.
 

详细描述

Reversible unit accepted by the editor transaction manager.

在文件 EditCommand.h 第 14 行定义.

构造及析构函数说明

◆ ~IEditCommand()

virtual eve::editor::IEditCommand::~IEditCommand ( )
virtualdefault

Releases IEditCommand resources.

成员函数说明

◆ apply()

virtual bool eve::editor::IEditCommand::apply ( )
pure virtual

◆ clone()

virtual std::unique_ptr< IEditCommand > eve::editor::IEditCommand::clone ( ) const
inlinevirtual

Creates an owning staged copy for merge evaluation.

返回
A detached command copy, or null when this command has no candidate-merge representation.
备注
The copy may retain the same borrowed target because the consumer evaluates mergeWith() before publishing the incoming command to that target. It must not mutate the target itself.

被 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 重载.

在文件 EditCommand.h 第 32 行定义.

◆ dirtyRegion()

virtual EditRegion eve::editor::IEditCommand::dirtyRegion ( ) const
pure virtual

◆ mergeWith()

virtual bool eve::editor::IEditCommand::mergeWith ( const IEditCommand &  later)
inlinevirtual

Optionally absorb a later command from the same stroke.

被 eve::editor::IntFieldEditCommand, eve::editor::ScalarFieldEditCommand , 以及 eve::editor::IntVolumeEditCommand 重载.

在文件 EditCommand.h 第 34 行定义.

◆ name()

virtual const std::string & eve::editor::IEditCommand::name ( ) const
pure virtual

◆ revert()

virtual void eve::editor::IEditCommand::revert ( )
pure virtual

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