API Documentation
|
#include <DesignCommandManager.h>
Public Member Functions | |
DesignCommandManager (DesignObjectLookup *lookup, ProgressInfo *log) | |
virtual | ~DesignCommandManager () |
void | clear () |
RLock | commandReadLock () |
WLock | commandLock () |
WLock | tryCommandLock () |
void | executePendingCommands () |
virtual void | executeCommand (DynamicPointer< DesignCommand > command) |
const Buffer< UUID > & | undoneCommands () const |
virtual void | postCommand (const DynamicPointer< DesignCommand > &command) |
virtual void | runCommand (const DynamicPointer< DesignCommand > &command) |
virtual void | finishCommand (const DynamicPointer< DesignCommand > &command) |
bool | hasCommand (UUID id) |
bool | canUndo () const |
bool | canRedo () const |
bool | hasPendingCommands () const |
Buffer< UUID > | undo () |
Buffer< UUID > | redo () |
virtual void | undoCommand (UUID command) |
const DynamicPointer< DesignCommand > & | lastPendingCommand () const |
const DynamicPointer< DesignCommand > & | getCommand (UUID command_id) const |
Public Attributes | |
Resource< UUID > | command_id |
Resource< TranslatedString > | command_name |
Resource< TranslatedString > | command_hint |
Resource< bool > | command_lock |
Protected Attributes | |
Dictionary< UUID, DynamicPointer< DesignCommand > > | m_commands |
Buffer< UUID > | m_undo_commands |
Buffer< UUID > | m_undone_commands |
Buffer< UUID > | m_pending_commands |
ProgressInfo * | m_log |
DesignObjectLookup * | m_lookup |
DesignCommandManager | ( | DesignObjectLookup * | lookup, |
ProgressInfo * | log ) |
|
virtual |
|
inline |
|
inline |
void clear | ( | ) |
WLock commandLock | ( | ) |
RLock commandReadLock | ( | ) |
|
virtual |
void executePendingCommands | ( | ) |
|
virtual |
const DynamicPointer< DesignCommand > & getCommand | ( | UUID | command_id | ) | const |
bool hasCommand | ( | UUID | id | ) |
bool hasPendingCommands | ( | ) | const |
const DynamicPointer< DesignCommand > & lastPendingCommand | ( | ) | const |
|
virtual |
|
virtual |
WLock tryCommandLock | ( | ) |
|
virtual |
Resource<TranslatedString> command_hint |
Resource<bool> command_lock |
Resource<TranslatedString> command_name |
|
protected |
|
protected |
|
protected |