HDK
|
#include <PDG_CommandManager.h>
Public Member Functions | |
PDG_CommandManager (PDG_GraphContext *context) | |
virtual | ~PDG_CommandManager () |
PDG_CommandChunk * | openChunk (UT_StringHolder description) |
virtual PDG_CommandChunk * | openChunk (bool delayed, UT_StringHolder description) |
void | enableLogging (bool enable) |
PDG_CommandChunk * | currentlyOpenChunk () 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 |
Definition at line 23 of file PDG_CommandManager.h.
PDG_CommandManager::PDG_CommandManager | ( | PDG_GraphContext * | context | ) |
|
virtual |
|
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 | ) |
|
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 |
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 | ) |
|
inline |
Definition at line 62 of file PDG_CommandManager.h.
bool PDG_CommandManager::undoIt | ( | UT_WorkBuffer & | errors | ) |
|
inline |
Definition at line 47 of file PDG_CommandManager.h.
|
protected |
Definition at line 66 of file PDG_CommandManager.h.