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