Undo/redo transaction. 更多...
#include <APIUndoTransaction.h>
Public 成员函数 | |
void | SetName (const String &strName) |
String | GetName () const |
bool | IsStarted () const |
void | Start () |
int | Commit () |
void | Abort () |
void | SetUndoable (bool bEnable) |
Undo/redo transaction.
TODO:
void AnyCAD::API::UndoTransaction::Abort | ( | ) |
Abort the transaction
int AnyCAD::API::UndoTransaction::Commit | ( | ) |
Commit the transaction
String AnyCAD::API::UndoTransaction::GetName | ( | ) | const |
Get the name
bool AnyCAD::API::UndoTransaction::IsStarted | ( | ) | const |
test if started.
void AnyCAD::API::UndoTransaction::SetName | ( | const String & | strName | ) |
Set the name
strName | the name |
void AnyCAD::API::UndoTransaction::SetUndoable | ( | bool | bEnable | ) |
Set if the transaction is able be undo. If true, it's added to the undo list.
bEnable | the transaction can be undo. |
void AnyCAD::API::UndoTransaction::Start | ( | ) |
Start the transaction