#include <UiAnimUndoManager.h>
|
void | Begin () |
|
void | Restore (bool bUndo=true) |
|
void | Accept (const AZStd::string &name) |
|
void | Cancel () |
| Cancel changes and restore undo objects.
|
|
void | Suspend () |
| Temporarily suspends recording of undo.
|
|
void | Resume () |
| Resume recording if was suspended.
|
|
void | Undo () |
|
void | Redo () |
| Redo last undo.
|
|
void | RedoStep (UiAnimUndoStep *step) |
|
void | UndoStep (UiAnimUndoStep *step) |
|
bool | IsUndoRecording () const |
| Check if undo information is recording now.
|
|
bool | IsUndoSuspended () const |
|
void | RecordUndo (UiAnimUndoObject *obj) |
| Put new undo object, must be called between Begin and Accept/Cancel methods.
|
|
void | Flush () |
|
void | AddListener (IUndoManagerListener *pListener) |
|
void | RemoveListener (IUndoManagerListener *pListener) |
|
void | SetActiveUndoStack (UndoStack *undoStack) |
|
UndoStack * | GetActiveUndoStack () const |
|
UiAnimUndoManager is keeping and operating on UiAnimUndo class instances.
◆ Accept()
void UiAnimUndoManager::Accept |
( |
const AZStd::string & |
name | ) |
|
Accept changes and registers an undo object with the undo manager. This will allow the user to undo the operation.
◆ Begin()
void UiAnimUndoManager::Begin |
( |
| ) |
|
Begin operation requiring undo. Undo manager enters holding state.
◆ Flush()
void UiAnimUndoManager::Flush |
( |
| ) |
|
Completly flush all Undo and redo buffers. Must be done on level reloads or global Fetch operation.
◆ Restore()
void UiAnimUndoManager::Restore |
( |
bool |
bUndo = true | ) |
|
Restore all undo objects registered since last Begin call.
- Parameters
-
bUndo | if true all Undo object registered up to this point will be undone. |
The documentation for this class was generated from the following file:
- Gems/LyShine/Code/Editor/Animation/UiAnimUndoManager.h