3#include <NDEVR/DesignCommand.h>
4#include <NDEVR/DesignObjectLookup.h>
5#include <NDEVR/TranslatedString.h>
#define _t(english_string)
Definition Translator.h:87
Definition DesignCommand.h:46
bool is_undo
Definition DesignCommand.h:65
Buffer< UUID > targets
Definition DesignCommand.h:62
UUID uuid() const
Definition DesignObject.cpp:533
void setProperty(DesignProperty property, const t_type &value)
Definition DesignObject.h:184
@ e_name
Definition DesignObject.h:100
@ e_guid
Definition DesignObject.h:95
Definition DesignObjectLookup.h:61
bool hasModelID(const UUID &id, bool allow_deleted=false) const
Definition DesignObjectLookup.cpp:1815
virtual void addScene(Scene scene, bool ignore_application_scene=false)
Definition DesignObjectLookup.cpp:215
virtual Model restoreModel(UUID id)
Definition DesignObjectLookup.cpp:820
WLock writeLock()
Definition DesignObjectLookup.cpp:965
Model model(const UUID &id, bool allow_deleted=false) const
Definition DesignObjectLookup.cpp:1683
virtual void addModel(Model object)
Definition DesignObjectLookup.cpp:268
virtual void deleteObject(UUID id)
Definition DesignObjectLookup.cpp:724
void updateModifiedTime(Time time=Time::SystemTime())
Definition Model.cpp:2289
Model createChild()
Definition Model.cpp:3020
Definition NewModelCommand.h:9
std::function< void(Model &model)> on_create
Definition NewModelCommand.h:86
String type
Definition NewModelCommand.h:90
virtual void execute(DesignObjectLookup *lookup) override
Definition NewModelCommand.h:24
virtual TranslatedString name() const override
Definition NewModelCommand.h:20
TranslatedString model_name
Definition NewModelCommand.h:88
NewModelCommand(const TranslatedString &name, const std::function< void(Model &model)> &model)
Definition NewModelCommand.h:11
UUID parent_id
Definition NewModelCommand.h:89
virtual String icon() const override
Definition NewModelCommand.h:16
std::function< void(Model &model)> finished_callback
Definition NewModelCommand.h:87
Definition TranslatedString.h:9
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
constexpr bool isNaN(const t_type &value)
Query if 'value' is valid or invalid.
Definition BaseFunctions.hpp:200