52 const std::string &
label,
66 virtual const char *
widgetClass()
const {
return "YIntField"; }
128 std::string
label()
const;
148 virtual bool setProperty(
const std::string & propertyName,
195 #endif // YIntField_h
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
void setMaxValue(int val)
Set a new maximum value.
A set of properties to check names and types against.
virtual std::string shortcutString() const
Get the string of this widget that holds the keyboard shortcut.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setValueInternal(int val)=0
Set the current value (the number entered by the user or set from the outside) of this IntField.
std::string label() const
Get the label (the caption above the input field).
YIntField(YWidget *parent, const std::string &label, int minValue, int maxValue)
Constructor.
virtual ~YIntField()
Destructor.
virtual void setShortcutString(const std::string &str)
Set the string of this widget that holds the keyboard shortcut.
int maxValue() const
Return the maximum value.
int minValue() const
Return the minimum value.
void setMinValue(int val)
Set a new minimum value.
IntField: Input field for integer values.
Transport class for the value of simple properties.
void setValue(int val)
Set the current value (the number entered by the user or set from the outside) of this IntField.
virtual void setLabel(const std::string &label)
Set the label (the caption above the input field).
int enforceRange(int val) const
Enforce 'val' to be between minValue and maxValue.
const char * userInputProperty()
The name of the widget property that will return user input.
virtual int value()=0
Get the current value (the number entered by the user or set from the outside) of this IntField.