A command that sets arbitrary properties on design objects using runtime-resolved property identifiers and string-serialized values.
More...
|
|
| SetPropertiesCommand () |
| | Default constructor.
|
| template<class t_type> |
| void | add (const DesignObject &obj, NDPO prop, const t_type &value) |
| | Adds a property change for a DesignObject identified by an NDPO property.
|
| template<class t_type> |
| void | add (const Geometry &geo, NDPG prop, const t_type &value) |
| | Adds a property change for a Geometry object identified by an NDPG property.
|
| template<class t_type> |
| void | add (const Material &mat, NDPM prop, const t_type &value) |
| | Adds a property change for a Material object identified by an NDPM property.
|
| virtual bool | addTarget (UUID) override |
| | This command does not support adding targets via UUID; property targets are specified individually through the add() methods instead.
|
| virtual void | execute (DesignObjectLookup *lookup) override |
| | Executes or undoes all property changes stored in this command.
|
| virtual StringView | icon () const override |
| | Returns the icon identifier for this command.
|
| virtual TranslatedString | name () const override |
| | Returns the human-readable name of this command for display in the UI.
|
| Public Member Functions inherited from DesignCommand |
| | DesignCommand () |
| | Default constructor.
|
| | DesignCommand (const DesignCommand &command)=default |
| | Default copy constructor.
|
|
virtual | ~DesignCommand () |
| | Virtual destructor.
|
| virtual bool | canCombineWith (const DynamicPointer< DesignCommand > &) |
| | Checks whether this command can be combined with another command into a single operation.
|
| virtual bool | canGroupWith (const DynamicPointer< DesignCommand > &) |
| | Checks whether this command can be grouped with another command for batch execution.
|
| virtual void | combineWith (const DynamicPointer< DesignCommand > &command) |
| | Combines this command with another compatible command, merging their operations.
|
| virtual bool | isAsyncExecution () const |
| | Whether this command should be executed asynchronously.
|
| void | setUndoRedoID (UUID undo_redo_group) |
| | Sets the undo-redo group identifier for this command.
|
| UUID | undoRedoID () const |
| | Gets the undo-redo group identifier for this command.
|
|
|
Buffer< PropertyValue > | properties |
| | The list of property changes to apply.
|
| Public Attributes inherited from DesignCommand |
|
bool | can_undo = true |
| | Whether this command supports being undone.
|
|
bool | has_executed = false |
| | Whether this command has already been executed.
|
|
UUID | id |
| | Unique identifier for this command instance.
|
|
bool | is_undo = false |
| | Whether this command represents an undo operation.
|
|
LogPtr | log |
| | Log pipe for reporting command progress and errors.
|
|
Time | time = Constant<Time>::Invalid |
| | Timestamp of when the command was created or executed.
|
|
bool | update_project_modified = true |
| | Whether executing this command should mark the project as modified.
|
A command that sets arbitrary properties on design objects using runtime-resolved property identifiers and string-serialized values.
Unlike SetProperty and SetProperties, this class supports heterogeneous property changes across different objects and property types in a single command, with full undo/redo support.
Definition at line 193 of file SetPropertiesCommand.h.