3#include <NDEVR/DesignCommand.h>
4#include <NDEVR/DesignObjectLookup.h>
5#include <NDEVR/TranslatedString.h>
6#include <NDEVR/Translator.h>
86 return _t(
"Set Text");
The equivelent of std::vector but with a bit more control.
DesignCommand()
Default constructor.
bool is_undo
Whether this command represents an undo operation.
A core class where all Design Objects including models, materials, and geometries are stored.
Model modelOrLayer(const UUID &id, bool allow_deleted=false) const
Retrieves a model or layer by its UUID, checking both stores.
const void * lockPtr() const
Returns a raw pointer to the internal lock primitive.
bool isValid() const
Checks whether this design object has a valid index into the database.
A core class that represents a node on model hierarchy.
Buffer< TranslatedString > m_previous_values
Previous text values stored for undo support.
virtual bool addTarget(UUID target_id) override
Adds a target object UUID to this command's target list.
TranslatedString name() const override
Returns the translated display name for this command.
String m_value
The new text value to apply to target objects.
Buffer< UUID > targets
The list of target object UUIDs this command will act upon.
SetTextValue(const StringView &value)
Constructs a SetTextValue command with the given text value.
StringView icon() const override
Returns the icon identifier for this command.
virtual void execute(DesignObjectLookup *lookup) override
Executes this command against the given DesignObjectLookup.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
A placeholder grouping class for text-related design commands.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Used to lock a particular variable for writing.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...