API Documentation
|
A command for safely modifying something in a DesignObjectLookup. Modifications will be done in a seperate thread from the UI and will be recorded for undo-redo. Most user modifications of data should occur via a DesignCommand. More...
#include <DesignCommand.h>
Public Member Functions | |
virtual bool | canCombineWith (const DynamicPointer< DesignCommand > &command) |
virtual bool | canGroupWith (const DynamicPointer< DesignCommand > &) |
virtual void | combineWith (const DynamicPointer< DesignCommand > &command) |
DesignCommand () | |
virtual void | execute (DesignObjectLookup *) |
virtual String | icon () const =0 |
virtual bool | isAsyncExecution () const |
virtual TranslatedString | name () const =0 |
void | setUndoRedoID (UUID undo_redo_group) |
UUID | undoRedoID () const |
virtual | ~DesignCommand () |
Public Attributes | |
bool | can_undo = true |
bool | has_executed = false |
UUID | id |
bool | is_undo = false |
ProgressInfo * | log = nullptr |
Buffer< UUID > | targets |
Time | time = Constant<Time>::Invalid |
bool | update_project_modified = true |
Protected Attributes | |
UUID | m_undo_redo_group |
A command for safely modifying something in a DesignObjectLookup. Modifications will be done in a seperate thread from the UI and will be recorded for undo-redo. Most user modifications of data should occur via a DesignCommand.
DesignCommand | ( | ) |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in ManagedDesignCommand.
|
inlinevirtual |
Reimplemented in ManagedDesignCommand.
|
virtual |
Reimplemented in ManagedDesignCommand.
|
inlinevirtual |
Reimplemented in ManagedDesignCommand, NewModelCommand, and VisibleCommand.
|
pure virtual |
Implemented in ManagedDesignCommand, NewModelCommand, and VisibleCommand.
|
inlinevirtual |
Reimplemented in ManagedDesignCommand.
|
pure virtual |
Implemented in ManagedDesignCommand, NewModelCommand, and VisibleCommand.
void setUndoRedoID | ( | UUID | undo_redo_group | ) |
UUID undoRedoID | ( | ) | const |
bool can_undo = true |
bool has_executed = false |
UUID id |
bool is_undo = false |
ProgressInfo* log = nullptr |
|
protected |
bool update_project_modified = true |