30 #include <yui/YSlider.h>
48 const std::string & label,
52 bool reverseLayout =
false );
85 virtual void setLabel(
const std::string & label );
113 virtual void setSize(
int newWidth,
int newHeight );
139 QSlider * _qt_slider;
140 QSpinBox * _qt_spinBox;
void valueChanged(int newValue)
Emitted when the value changes (regardless of the notify flag).
virtual ~YQSlider()
Destructor.
YQSlider(YWidget *parent, const std::string &label, int minValue, int maxValue, int initialValue, bool reverseLayout=false)
Constructor.
virtual void setValueInternal(int val)
Set the current value (the number entered by the user or set from the outside) of this slider.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
virtual int value()
Get the current value (the number entered by the user or set from the outside) of this slider.
virtual bool setKeyboardFocus()
Accept the keyboard focus.
virtual void setLabel(const std::string &label)
Set the label (the caption above the input field).
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual int preferredHeight()
Preferred height of the widget.
virtual int preferredWidth()
Preferred width of the widget.
void valueChangedSlot(int newValue)
Slot for "value changed".