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

#include <CH_UndoEventHandler.h>

+ Inheritance diagram for CH_UndoEventHandler:

Classes

class  Scope
 

Public Member Functions

void undo () override
 
void redo () override
 
- Public Member Functions inherited from UT_Undo
 UT_Undo ()
 
virtual ~UT_Undo ()
 
virtual bool isValid ()
 
virtual bool needToUndo ()
 
virtual bool needToRedo ()
 
virtual int isUndoBlock () const
 
virtual int64 getMemoryUsage ()
 
void addToMemoryUsage (int64 k)
 
void setMemoryUsage (int64 k)
 
void setNextUndo (UT_Undo *nundo)
 
UT_UndogetNextUndo ()
 

Static Public Member Functions

static int start ()
 
static void stop (int level)
 

Friends

class CH_UndoEventHandler::Scope
 

Additional Inherited Members

- Protected Member Functions inherited from UT_Undo
void generateTmpFilename (const char *prefix, UT_String &filename)
 

Detailed Description

Creates an event handler into the undo manager to minimize sent events. To use this, create a CH_UndoEventHandler::Scope object on the stack to encapsulate the undo actions that we want to batch events for. If the actions span multiple function calls, use matching undoBegin()/undoEnd() invocations.

Definition at line 24 of file CH_UndoEventHandler.h.

Member Function Documentation

void CH_UndoEventHandler::redo ( )
overridevirtual

Implements UT_Undo.

static int CH_UndoEventHandler::start ( )
inlinestatic

Definition at line 43 of file CH_UndoEventHandler.h.

static void CH_UndoEventHandler::stop ( int  level)
inlinestatic

Definition at line 51 of file CH_UndoEventHandler.h.

void CH_UndoEventHandler::undo ( )
overridevirtual

Implements UT_Undo.

Friends And Related Function Documentation

Definition at line 68 of file CH_UndoEventHandler.h.


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