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

#include <CH_UndoBookmark.h>

+ Inheritance diagram for CH_UndoBookmark:

Public Types

enum  Operation { Operation::Create, Operation::Modify, Operation::Delete }
 

Public Member Functions

 CH_UndoBookmark (CH_Bookmark *bookmark, int bookmark_index, Operation operation, bool metadata_changed=false)
 
 ~CH_UndoBookmark () override
 
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 ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 27 of file CH_UndoBookmark.h.

Member Enumeration Documentation

Enumerator
Create 
Modify 
Delete 

Definition at line 30 of file CH_UndoBookmark.h.

Constructor & Destructor Documentation

CH_UndoBookmark::CH_UndoBookmark ( CH_Bookmark bookmark,
int  bookmark_index,
Operation  operation,
bool  metadata_changed = false 
)
CH_UndoBookmark::~CH_UndoBookmark ( )
override

Member Function Documentation

void CH_UndoBookmark::redo ( )
overridevirtual

Implements UT_Undo.

void CH_UndoBookmark::undo ( )
overridevirtual

Implements UT_Undo.


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