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;
virtual void setValueInternal(int val)
Set the current value (the number entered by the user or set from the outside) of this IntField.
virtual ~YQIntField()
Destructor.
virtual void setLabel(const std::string &label)
Set the label (the caption above the input field).
virtual int preferredHeight()
Preferred height of the widget.
void valueChanged(int newValue)
Emitted when the value changes (regardless of the notify flag).
virtual void setEnabled(bool enabled)
Sets the widget's enabled state.
virtual int preferredWidth()
Preferred width of the widget.
virtual int value()
Get the current value (the number entered by the user or set from the outside) of this IntField.
YQIntField(YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue)
Constructor.
void valueChangedSlot(int newValue)
Slot for "value changed".
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.