| ITransaction
|
Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Classes/Editor/Transactor.h |
Include |
#include "Editor/Transactor.h" |
class FTransaction : public ITransaction
Base class for tracking transactions for undo/redo. A single transaction, representing a set of serialized, undo-able changes to a set of objects.
warning: The undo buffer cannot be made persistent because of its dependence on offsets of arrays from their owning UObjects.
warning: UObject::Serialize implicitly assumes that class properties do not change in between transaction resets.
Name | Description | ||
---|---|---|---|
|
bFlip |
If true, on apply flip the direction of iteration over object records. |
|
|
ChangedObjects |
Objects that will be changed directly by the transaction, empty when not transacting |
|
|
Context |
A text string describing the context for the transaction. |
|
|
Id |
Unique identifier for this transaction, used to track it during its lifetime |
|
|
Inc |
Used to track direction to iterate over transaction's object records. |
|
|
ObjectMap |
Used to prevent objects from being serialized to a transaction more than once. |
|
|
OperationId |
Unique identifier for the active operation on this transaction (if any). |
|
|
UObject * |
PrimaryObject |
The key object being edited in this transaction. For example the blueprint object. Can be NULL |
|
TIndirectArray<... |
Records |
Transaction variables. |
|
Title |
Description of the transaction. Can be used by UI |
Name | Description | |
---|---|---|
|
FTransaction |
Constructor. |
Name | Description | |
---|---|---|
|
~FTransaction() |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Used by GC to collect referenced objects. |
|
|
DataSize() |
||
|
DumpObjectMap ( |
Outputs the contents of the ObjectMap to the specified output device. |
|
|
FTransaction... |
GenerateDiff() |
Create a map that holds information about objects of a given transaction. |
|
GetId() |
Returns the unique identifier for this transaction, used to track it during its lifetime |
|
|
GetOperationId() |
Returns the unique identifier for the active operation on this transaction (if any) |
|
|
const UObjec... |
GetPrimaryObject() |
|
|
GetRecordCount() |
||
|
GetTitle() |
Returns the descriptive text for the transaction |
|
|
GetTransactionObjects |
Get all the objects that are part of this transaction. |
|
|
const TCHAR ... |
GetTransactionType() |
Returns a unique string to serve as a type ID for the FTranscationBase-derived type. |
|
HasExpired() |
||
|
IsObjectTransacting ( |
Checks if a specific object is in the transaction currently underway |
|
|
RemoveRecords ( |
Name | Description | ||
---|---|---|---|
|
Apply() |
Enacts the transaction. |
|
|
BeginOperation() |
BeginOperation should be called when a transaction or undo/redo starts |
|
|
ContainsPieObjects() |
||
|
EndOperation() |
EndOperation should be called when a transaction is finalized or canceled or undo/redo ends |
|
|
Finalize() |
Finalize the transaction (try and work out what's changed). |
|
|
FTransaction... |
GetContext() |
Gets the full context for the transaction. |
|
IsTransient() |
Report if a transaction should be put in the undo buffer. |
|
|
SaveArray ( |
Saves an array to the transaction. |
|
|
SaveObject ( |
Saves an UObject to the transaction. |
|
|
SetPrimaryObject ( |
Sets the transaction's primary object. |
|
|
SnapshotObject ( |
Snapshots a UObject within the transaction. |
|
|
StoreUndo ( |
Stores a command that can be used to undo a change to the specified object. |
Name |
Description |
|
---|---|---|
|
FChangedObjectValue |
|
|
FObjectRecord |
Record of an object. |