HUndoItem

class HUndoItem

HUndoItem is the base class for all undo items which hold information necessary to perform a rollback of a particular scene. Use this class as a base class when you want to create new undo items to be managed by the HUndoManager.

Methods

HUndoItem::HUndoItem()

Constructs an HUndoItem object.

virtual HUndoItem::~HUndoItem()

virtual

virtual void HUndoItem::Undo(bool setupOnly = false)

virtual

This method restores the conditions captured by the item when it was first created.

Parameters

setupOnly: Pass true if you want to perform the undo without updating the view. The default value is false.
virtual void HUndoItem::Redo(bool setupOnly = false)

virtual

This method restores the conditions just before the undo method was called.

Parameters

setupOnly: Pass true if you want to perform the redo without updating the view. The default value is false.
virtual char const *HUndoItem::GetName()

virtual

Returns

The item type name which is ‘HUndoItem‘.