![]() |
API Documentation
|
Stores logic for performing, undoing, or redoing DesignCommands. More...
#include <DesignCommandManager.h>
Public Member Functions | |
| bool | canRedo () const |
| bool | canUndo () const |
| void | clear () |
| WLock | commandLock () |
| RLock | commandReadLock () |
| DesignCommandManager (DesignObjectLookup *lookup, ProgressInfo *log) | |
| virtual void | executeCommand (DynamicPointer< DesignCommand > command) |
| void | executePendingCommands () |
| virtual void | finishCommand (const DynamicPointer< DesignCommand > &command) |
| const DynamicPointer< DesignCommand > & | getCommand (UUID command_id) const |
| bool | hasCommand (UUID id) |
| bool | hasPendingCommands () const |
| const DynamicPointer< DesignCommand > & | lastPendingCommand () const |
| virtual void | postCommand (const DynamicPointer< DesignCommand > &command) |
| Buffer< UUID > | redo () |
| virtual void | runCommand (const DynamicPointer< DesignCommand > &command) |
| WLock | tryCommandLock () |
| Buffer< UUID > | undo () |
| virtual void | undoCommand (UUID command) |
| const Buffer< UUID > & | undoneCommands () const |
| virtual | ~DesignCommandManager () |
Public Attributes | |
| Resource< TranslatedString > | command_hint |
| Resource< UUID > | command_id |
| Resource< bool > | command_lock |
| Resource< TranslatedString > | command_name |
Protected Attributes | |
| Thread * | m_command_thread |
| Dictionary< UUID, DynamicPointer< DesignCommand > > | m_commands |
| ProgressInfo * | m_log |
| DesignObjectLookup * | m_lookup |
| Buffer< UUID > | m_pending_commands |
| Buffer< UUID > | m_thread_pending_commands |
| Buffer< UUID > | m_undo_commands |
| Buffer< UUID > | m_undone_commands |
Stores logic for performing, undoing, or redoing DesignCommands.
| 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 |
|
protected |