API Documentation
Loading...
Searching...
No Matches
DesignCommand Class Referenceabstract

#include <DesignCommand.h>

Inheritance diagram for DesignCommand:
[legend]
Collaboration diagram for DesignCommand:
[legend]

Public Member Functions

 DesignCommand ()
 
virtual ~DesignCommand ()
 
virtual void execute (DesignObjectLookup *)
 
virtual bool canGroupWith (const DynamicPointer< DesignCommand > &)
 
virtual bool canCombineWith (const DynamicPointer< DesignCommand > &command)
 
virtual void combineWith (const DynamicPointer< DesignCommand > &command)
 
virtual bool isAsyncExecution () const
 
void setUndoRedoID (UUID undo_redo_group)
 
UUID undoRedoID () const
 
virtual TranslatedString name () const =0
 
virtual String icon () const =0
 

Public Attributes

ProgressInfolog = nullptr
 
Time time = Constant<Time>::NaN
 
Buffer< UUIDtargets
 
UUID id
 
bool has_executed = false
 
bool is_undo = false
 
bool can_undo = true
 
bool update_project_modified = true
 

Protected Attributes

UUID m_undo_redo_group
 

Constructor & Destructor Documentation

◆ DesignCommand()

◆ ~DesignCommand()

virtual ~DesignCommand ( )
inlinevirtual

Member Function Documentation

◆ canCombineWith()

virtual bool canCombineWith ( const DynamicPointer< DesignCommand > & command)
inlinevirtual

Reimplemented in ManagedDesignCommand.

◆ canGroupWith()

virtual bool canGroupWith ( const DynamicPointer< DesignCommand > & )
inlinevirtual

Reimplemented in ManagedDesignCommand.

◆ combineWith()

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

Reimplemented in ManagedDesignCommand.

◆ execute()

virtual void execute ( DesignObjectLookup * )
inlinevirtual

◆ icon()

virtual String icon ( ) const
pure virtual

◆ isAsyncExecution()

virtual bool isAsyncExecution ( ) const
inlinevirtual

Reimplemented in ManagedDesignCommand.

◆ name()

virtual TranslatedString name ( ) const
pure virtual

◆ setUndoRedoID()

void setUndoRedoID ( UUID undo_redo_group)

◆ undoRedoID()

UUID undoRedoID ( ) const

Member Data Documentation

◆ can_undo

bool can_undo = true

◆ has_executed

bool has_executed = false

◆ id

UUID id

◆ is_undo

bool is_undo = false

◆ log

ProgressInfo* log = nullptr

◆ m_undo_redo_group

UUID m_undo_redo_group
protected

◆ targets

Buffer<UUID> targets

◆ time

Time time = Constant<Time>::NaN

◆ update_project_modified

bool update_project_modified = true

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