API Documentation
Loading...
Searching...
No Matches
DesignCommandManager Class Reference

#include <DesignCommandManager.h>

Collaboration diagram for DesignCommandManager:
[legend]

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< UUIDundo ()
 
Buffer< UUIDredo ()
 
virtual void undoCommand (UUID command)
 
const DynamicPointer< DesignCommand > & lastPendingCommand () const
 
const DynamicPointer< DesignCommand > & getCommand (UUID command_id) const
 

Public Attributes

Resource< UUIDcommand_id
 
Resource< TranslatedStringcommand_name
 
Resource< TranslatedStringcommand_hint
 
Resource< bool > command_lock
 

Protected Attributes

Dictionary< UUID, DynamicPointer< DesignCommand > > m_commands
 
Buffer< UUIDm_undo_commands
 
Buffer< UUIDm_undone_commands
 
Buffer< UUIDm_pending_commands
 
ProgressInfom_log
 
DesignObjectLookupm_lookup
 

Constructor & Destructor Documentation

◆ DesignCommandManager()

◆ ~DesignCommandManager()

~DesignCommandManager ( )
virtual

Member Function Documentation

◆ canRedo()

bool canRedo ( ) const
inline

◆ canUndo()

bool canUndo ( ) const
inline

◆ clear()

void clear ( )

◆ commandLock()

WLock commandLock ( )

◆ commandReadLock()

RLock commandReadLock ( )

◆ executeCommand()

void executeCommand ( DynamicPointer< DesignCommand > command)
virtual

◆ executePendingCommands()

void executePendingCommands ( )

◆ finishCommand()

void finishCommand ( const DynamicPointer< DesignCommand > & command)
virtual

◆ getCommand()

const DynamicPointer< DesignCommand > & getCommand ( UUID command_id) const

◆ hasCommand()

bool hasCommand ( UUID id)

◆ hasPendingCommands()

bool hasPendingCommands ( ) const

◆ lastPendingCommand()

const DynamicPointer< DesignCommand > & lastPendingCommand ( ) const

◆ postCommand()

void postCommand ( const DynamicPointer< DesignCommand > & command)
virtual

◆ redo()

Buffer< UUID > redo ( )

◆ runCommand()

void runCommand ( const DynamicPointer< DesignCommand > & command)
virtual

◆ tryCommandLock()

WLock tryCommandLock ( )

◆ undo()

Buffer< UUID > undo ( )

◆ undoCommand()

void undoCommand ( UUID command)
virtual

◆ undoneCommands()

const Buffer< UUID > & undoneCommands ( ) const
inline

Member Data Documentation

◆ command_hint

Resource<TranslatedString> command_hint

◆ command_id

Resource<UUID> command_id

◆ command_lock

Resource<bool> command_lock

◆ command_name

Resource<TranslatedString> command_name

◆ m_commands

Dictionary<UUID, DynamicPointer<DesignCommand> > m_commands
protected

◆ m_log

ProgressInfo* m_log
protected

◆ m_lookup

DesignObjectLookup* m_lookup
protected

◆ m_pending_commands

Buffer<UUID> m_pending_commands
protected

◆ m_undo_commands

Buffer<UUID> m_undo_commands
protected

◆ m_undone_commands

Buffer<UUID> m_undone_commands
protected

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