![]() |
API Documentation
|
A DesignCommand that creates a new Model to some specification. More...
#include <NewModelCommand.h>
Public Member Functions | |
| virtual void | execute (DesignObjectLookup *lookup) override |
| virtual String | icon () const override |
| virtual TranslatedString | name () const override |
| NewModelCommand (const TranslatedString &name, const std::function< void(Model &model)> &model) | |
Public Member Functions inherited from DesignCommand | |
| virtual bool | canCombineWith (const DynamicPointer< DesignCommand > &command) |
| virtual bool | canGroupWith (const DynamicPointer< DesignCommand > &) |
| virtual void | combineWith (const DynamicPointer< DesignCommand > &command) |
| DesignCommand () | |
| virtual bool | isAsyncExecution () const |
| void | setUndoRedoID (UUID undo_redo_group) |
| UUID | undoRedoID () const |
| virtual | ~DesignCommand () |
Public Attributes | |
| std::function< void(Model &model)> | finished_callback |
| TranslatedString | model_name |
| std::function< void(Model &model)> | on_create |
| UUID | parent_id |
| String | type |
Public Attributes inherited from DesignCommand | |
| 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 |
Additional Inherited Members | |
Protected Attributes inherited from DesignCommand | |
| UUID | m_undo_redo_group |
A DesignCommand that creates a new Model to some specification.
|
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 |