33#include <NDEVR/QTDesignObject.h>
34#include <NDEVR/QCustomComboBox.h>
35#include <NDEVR/QCustomValidator.h>
36#include <NDEVR/ManagedDesignCommand.h>
37#include <NDEVR/JSONNode.h>
38#include <NDEVR/RegexFunctions.h>
140 if (
m_title.translation().size() == 0)
149 setWindowTitle(
m_title.translation().getAs<QString>());
195 if (object_name.size() != 0)
A low-level database object that can be used to access general stored properties within the NDEVR Mod...
constexpr decltype(auto) get(t_property_type property) const
Retrieves a property value from the database, cast to the requested type.
bool hasMetaData(const StringView &index) const
Checks whether a metadata entry exists for the given key.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
static DynamicPointer< ManagedDesignCommand > SetProperty(NDPO design_property, const t_type &value)
Creates a command to set a design-level property to the given value.
static DynamicPointer< ManagedDesignCommand > SetMetadata(const String &label, const String &value)
Creates a command to set a metadata key-value pair on target objects.
void setCustomValidator(const QCustomValidator &validator)
Sets the custom validator used for input validation and formatting.
void edited()
Emitted when the combo box value is edited by the user.
void setValue(const t_type &t_value)
Sets the current value of the combo box.
QCustomComboBox(QWidget *parent=nullptr)
Constructs a QCustomComboBox with the given parent widget.
t_type getAs() const
Returns the current value converted to the requested type.
const QCustomValidator & customValidator() const
Returns a const reference to the custom validator used for input validation.
Responsible on most user input fields for correcting the input when possible or allerting the user th...
void setRegex(const StringView ®ex)
Sets a regular expression pattern that the input must match.
void updatedSignal(UUID id)
Emitted when this object is updated.
void deletedSignal(UUID id)
Emitted when this object is deleted.
static const char * FileRegex()
Gets a regex pattern for validating file paths.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
NDPO
NDPO - NDEVR Design Property Object: Values stored in the property database.
@ property_size
Sentinel value representing the total number of properties (always last).
@ file
The source file path associated with this object.
@ name
The display name of the object.
@ meta_data
General-purpose metadata string for the object.