API Documentation
|
#include <NewModelCommand.h>
Public Member Functions | |
NewModelCommand (const TranslatedString &name, const std::function< void(Model &model)> &model) | |
virtual String | icon () const override |
virtual TranslatedString | name () const override |
virtual void | execute (DesignObjectLookup *lookup) override |
Public Member Functions inherited from DesignCommand | |
DesignCommand () | |
virtual | ~DesignCommand () |
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 |
Public Attributes | |
std::function< void(Model &model)> | on_create |
std::function< void(Model &model)> | finished_callback |
TranslatedString | model_name |
UUID | parent_id |
String | type |
Public Attributes inherited from DesignCommand | |
ProgressInfo * | log = nullptr |
Time | time = Constant<Time>::NaN |
Buffer< UUID > | targets |
UUID | id |
bool | has_executed = false |
bool | is_undo = false |
bool | can_undo = true |
bool | update_project_modified = true |
Additional Inherited Members | |
Protected Attributes inherited from DesignCommand | |
UUID | m_undo_redo_group |
|
inline |
|
inlineoverridevirtual |
Reimplemented from DesignCommand.
|
inlineoverridevirtual |
Implements DesignCommand.
|
inlineoverridevirtual |
Implements DesignCommand.
std::function<void(Model& model)> finished_callback |
TranslatedString model_name |
std::function<void(Model& model)> on_create |
UUID parent_id |
String type |