32 #include <yui/YIntField.h>
49 const std::string & label,
85 virtual void setLabel(
const std::string & label );
113 virtual void setSize(
int newWidth,
int newHeight );
143 QSpinBox * _qt_spinBox;
147 #endif // YQIntField_h
virtual ~YQIntField()
Destructor.
virtual void setEnabled(bool enabled)
Sets the widget's enabled state.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setLabel(const std::string &label)
Set the label (the caption above the input field).
void valueChanged(int newValue)
Emitted when the value changes (regardless of the notify flag).
virtual int preferredWidth()
Preferred width of the widget.
void valueChangedSlot(int newValue)
Slot for "value changed".
YQIntField(YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue)
Constructor.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual void setValueInternal(int val)
Set the current value (the number entered by the user or set from the outside) of this IntField.
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual int value()
Get the current value (the number entered by the user or set from the outside) of this IntField.