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

#include <PDG_CommandManager.h>

Public Member Functions

 PDG_CommandManager (PDG_GraphContext *context)
 
virtual ~PDG_CommandManager ()
 
PDG_CommandChunkopenChunk (UT_StringHolder description)
 
virtual PDG_CommandChunkopenChunk (bool delayed, UT_StringHolder description)
 
void enableLogging (bool enable)
 
PDG_CommandChunkcurrentlyOpenChunk () const
 
bool commitChunk (UT_WorkBuffer &errors)
 
bool commitChunk ()
 
bool rollbackChunk (UT_WorkBuffer &errors)
 
bool undoIt (UT_WorkBuffer &errors)
 
bool undoIt ()
 
bool redoIt (UT_WorkBuffer &errors)
 
bool recordCommand (UT_UniquePtr< PDG_Command > cmd, UT_WorkBuffer &errors)
 
bool recordCommand (UT_UniquePtr< PDG_Command > cmd)
 
void clear ()
 
void commandDescriptions (UT_WorkBuffer &buffer) const
 
void commands (UT_Array< PDG_Command * > &commands) const
 
void commandChunks (UT_Array< PDG_Command * > &commands) const
 
int stateCount () const
 
int chunkDepth () const
 

Protected Attributes

UT_Array< UT_UniquePtr
< PDG_CommandChunk > > 
myCommandChunkStack
 

Detailed Description

Definition at line 23 of file PDG_CommandManager.h.

Constructor & Destructor Documentation

PDG_CommandManager::PDG_CommandManager ( PDG_GraphContext context)
virtual PDG_CommandManager::~PDG_CommandManager ( )
virtual

Member Function Documentation

int PDG_CommandManager::chunkDepth ( ) const
inline

Definition at line 63 of file PDG_CommandManager.h.

void PDG_CommandManager::clear ( )
void PDG_CommandManager::commandChunks ( UT_Array< PDG_Command * > &  commands) const
void PDG_CommandManager::commandDescriptions ( UT_WorkBuffer buffer) const
void PDG_CommandManager::commands ( UT_Array< PDG_Command * > &  commands) const
bool PDG_CommandManager::commitChunk ( UT_WorkBuffer errors)
bool PDG_CommandManager::commitChunk ( )
inline

Definition at line 38 of file PDG_CommandManager.h.

PDG_CommandChunk* PDG_CommandManager::currentlyOpenChunk ( ) const
void PDG_CommandManager::enableLogging ( bool  enable)
PDG_CommandChunk* PDG_CommandManager::openChunk ( UT_StringHolder  description)
virtual PDG_CommandChunk* PDG_CommandManager::openChunk ( bool  delayed,
UT_StringHolder  description 
)
virtual
bool PDG_CommandManager::recordCommand ( UT_UniquePtr< PDG_Command cmd,
UT_WorkBuffer errors 
)
bool PDG_CommandManager::recordCommand ( UT_UniquePtr< PDG_Command cmd)
bool PDG_CommandManager::redoIt ( UT_WorkBuffer errors)
bool PDG_CommandManager::rollbackChunk ( UT_WorkBuffer errors)
int PDG_CommandManager::stateCount ( ) const
inline

Definition at line 62 of file PDG_CommandManager.h.

bool PDG_CommandManager::undoIt ( UT_WorkBuffer errors)
bool PDG_CommandManager::undoIt ( )
inline

Definition at line 47 of file PDG_CommandManager.h.

Member Data Documentation

UT_Array<UT_UniquePtr<PDG_CommandChunk> > PDG_CommandManager::myCommandChunkStack
protected

Definition at line 66 of file PDG_CommandManager.h.


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