#include <HUndoManager.h>
Public Member Functions | |
void | AddUndoItem (HUndoItem *item) |
void | BeginUndoItemIteration () |
void | EndUndoItemIteration () |
void | Flush () |
HUndoItem * | GetNextUndoItem () |
HUndoManager () | |
HUndoItem * | Peek () |
int | Redo (int steps=1, bool testOnly=false, bool setupOnly=false) |
void | Reset (HBaseView *view) |
int | Undo (int steps=1, bool testOnly=false, bool setupOnly=false) |
HUndoManager::HUndoManager | ( | ) |
Constructs an HUndoManager object.
void HUndoManager::AddUndoItem | ( | HUndoItem * | item | ) |
The method adds item to the undo list at the current cursor position. It also remove all items after the current cursor position from the undo list.
item | Undo Item |
void HUndoManager::BeginUndoItemIteration | ( | ) |
This method begins iteration of the undo list by setting the correct cursor positions.
void HUndoManager::EndUndoItemIteration | ( | ) |
This method ends iteration of the undo list by resetting the cursor of the undo list.
void HUndoManager::Flush | ( | ) |
This method removes all undos and redos from the undo list.
HUndoItem* HUndoManager::GetNextUndoItem | ( | ) |
This methods returns the next undo item in the list and moves the cursor to the next item in the list.
HUndoItem* HUndoManager::Peek | ( | ) |
int HUndoManager::Redo | ( | int | steps = 1 , |
|
bool | testOnly = false , |
|||
bool | setupOnly = false | |||
) |
This method restores the scene to the state prior to the rollback.
steps | Number of steps to redo | |
testOnly | Pass True if you only want to validate that redos are available. | |
setupOnly | Pass True to perform redos without updating the display. |
void HUndoManager::Reset | ( | HBaseView * | view | ) |
This method smoothly transitions the scene back to its original state.
int HUndoManager::Undo | ( | int | steps = 1 , |
|
bool | testOnly = false , |
|||
bool | setupOnly = false | |||
) |
This method restores the scene to its previous state.
steps | Number of steps to roll back | |
testOnly | Pass True if you only want to validate that undos are available. | |
setupOnly | Pass True to perform undos without updating the display. |