HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UndoManager Class Reference

#include <UT_UndoManager.h>

Public Member Functions

 UT_UndoManager ()
 
 ~UT_UndoManager ()
 
int beginUndoBlock (const char *name, UT_UndoBlockType blocktype)
 
int beginLastUndoBlock (const char *name, UT_UndoBlockType blocktype)
 
void endUndoBlock (int level)
 
int willAcceptUndoAddition ()
 
int performingUndoRedo ()
 
int blockLevel () const
 
int isUndoEnabled ()
 
void addToUndoBlock (UT_Undo *undo)
 
void addToLastUndoBlock (UT_Undo *undo)
 
void suspendTopLevelUndoBlock ()
 
void resumeTopLevelUndoBlock ()
 
bool isTopLevelUndoSuspended () const
 
void disallowUndos ()
 
void allowUndos ()
 
void undo (bool strict=false, bool redoable=true)
 
void redo (bool strict=false)
 
const char * getUndoOperationName ()
 
const char * getRedoOperationName ()
 
void getUndoNames (UT_StringList &names, bool prune=true)
 
void getRedoNames (UT_StringList &names, bool prune=true)
 
void pruneInvalidUndos ()
 Free all invalid undos/redos. More...
 
int64 getMemoryUsage ()
 
int64 getMemoryUsageLimit ()
 
void setMemoryUsageLimit (int64 bytes)
 
void clearUndos ()
 
void clearUndoFlags ()
 
void installUndoFlagClearer (void(*function)(void *data), void *data)
 
void removeUndoFlagClearer (void(*function)(void *data), void *data)
 
void setUndoInterest (void(*function)(void *data), void *data)
 
const UT_UndoBlockgetUndoStack () const
 
const UT_UndoBlockgetRedoStack () const
 

Static Public Member Functions

static void disableUndoCreation ()
 
static void enableUndoCreation ()
 

Detailed Description

Examples:
SOP/SOP_CustomBrush.C.

Definition at line 71 of file UT_UndoManager.h.

Constructor & Destructor Documentation

UT_UndoManager::UT_UndoManager ( )
UT_UndoManager::~UT_UndoManager ( )

Member Function Documentation

void UT_UndoManager::addToLastUndoBlock ( UT_Undo undo)
void UT_UndoManager::addToUndoBlock ( UT_Undo undo)
void UT_UndoManager::allowUndos ( )
inline

Definition at line 136 of file UT_UndoManager.h.

int UT_UndoManager::beginLastUndoBlock ( const char *  name,
UT_UndoBlockType  blocktype 
)
int UT_UndoManager::beginUndoBlock ( const char *  name,
UT_UndoBlockType  blocktype 
)
int UT_UndoManager::blockLevel ( ) const
inline

Definition at line 111 of file UT_UndoManager.h.

void UT_UndoManager::clearUndoFlags ( )
void UT_UndoManager::clearUndos ( )
static void UT_UndoManager::disableUndoCreation ( )
static
void UT_UndoManager::disallowUndos ( )
inline

Definition at line 135 of file UT_UndoManager.h.

static void UT_UndoManager::enableUndoCreation ( )
static
void UT_UndoManager::endUndoBlock ( int  level)
int64 UT_UndoManager::getMemoryUsage ( )
int64 UT_UndoManager::getMemoryUsageLimit ( )
inline

Definition at line 166 of file UT_UndoManager.h.

void UT_UndoManager::getRedoNames ( UT_StringList names,
bool  prune = true 
)
const char* UT_UndoManager::getRedoOperationName ( )
const UT_UndoBlock* UT_UndoManager::getRedoStack ( ) const
inline

Definition at line 187 of file UT_UndoManager.h.

void UT_UndoManager::getUndoNames ( UT_StringList names,
bool  prune = true 
)
const char* UT_UndoManager::getUndoOperationName ( )
const UT_UndoBlock* UT_UndoManager::getUndoStack ( ) const
inline

Definition at line 186 of file UT_UndoManager.h.

void UT_UndoManager::installUndoFlagClearer ( void(*)(void *data function,
void data 
)
bool UT_UndoManager::isTopLevelUndoSuspended ( ) const
int UT_UndoManager::isUndoEnabled ( )
int UT_UndoManager::performingUndoRedo ( )
void UT_UndoManager::pruneInvalidUndos ( )

Free all invalid undos/redos.

void UT_UndoManager::redo ( bool  strict = false)
void UT_UndoManager::removeUndoFlagClearer ( void(*)(void *data function,
void data 
)
void UT_UndoManager::resumeTopLevelUndoBlock ( )
void UT_UndoManager::setMemoryUsageLimit ( int64  bytes)
void UT_UndoManager::setUndoInterest ( void(*)(void *data function,
void data 
)
void UT_UndoManager::suspendTopLevelUndoBlock ( )
void UT_UndoManager::undo ( bool  strict = false,
bool  redoable = true 
)
int UT_UndoManager::willAcceptUndoAddition ( )

The documentation for this class was generated from the following file: