53 virtual const QString
getKey()
const = 0;
73 virtual void setWidgetValue(QWidget* widget,
const QVariant value)
const = 0;
Definition: commandlineoptions.h:6
virtual const QString getDescriptionForValue(const QVariant facetValue) const =0
Gets the text to add to the description of a field, explaining the restriction of the domain of the c...
virtual const QString getKey() const =0
Gets the key of the restriction of the domain of the custom type used for serialization.
Facet()
Constructs a new facet for restricting the domain of a custom type.
Definition: facet.cpp:5
virtual void setWidgetValue(QWidget *widget, const QVariant value) const =0
Sets the current value of the widget for specifying the restriction of the domain of the custom type ...
virtual const QVariant getDefaultValue() const =0
Gets the default restriction of the domain of the custom type (e.g. default minimum value)...
virtual QString validateValue(const FacetContext &context, const QVariant value, const QVariant facetValue) const =0
Validates the specified field value against the domain restrictions imposed by this facet...
Context to apply facets in.
Definition: facetcontext.h:11
virtual const QString getDisplayName() const =0
Gets the name of the restriction of the domain of the custom type (e.g. "Minimum Value").
virtual QWidget * createWidget(const FacetContext &context) const =0
Creates a widget for specifying the restriction of the domain of the custom type (e.g. QSpinBox).
Restricts the domain of a custom type.
Definition: facet.h:14
virtual const QString getTargetType() const =0
Gets the custom type whose domain can be restricted by this facet.
virtual const QVariant getWidgetValue(QWidget *widget) const =0
Gets the current value of the widget for specifying the restriction of the domain of the custom type ...