# slider class The slider widget provides a vertical or horizontal slider.
Inherits
object widget
Description
The slider is the classic widget for controlling a bounded value. It lets the user move a slider along a horizontal or vertical groove and translates the slider's position into an integer value within the legal range.[/classfnc]()
Functions
`$setOrientation(<orientation>)`
Sets the slider's orientation. Orientation value can be "Horizontal" or "Vertical"
`$setTracking(<bool>)`
Sets whether slider tracking is enabled to enable. Value can be 1 or 0.
`$setMaxValue(<value>)`
Sets maximum value for slider's range.
`$setMinValue(<value>)`
Sets minimum value for slider's range.
`$setLineStep(<value>)`
Sets the line step to <value>.
`$setPageStep(<value>)`
Sets the page step to <value>.
`$setTickmarks(<value>)`
Sets the tickmark settings for this slider. Values are: NoMarks - do not draw any tickmarks. Both - draw tickmarks on both sides of the groove. Above - draw tickmarks above the (horizontal) slider Below - draw tickmarks below the (horizontal) slider Left - draw tickmarks to the left of the (vertical) slider Right - draw tickmarks to the right of the (vertical) slider
`$setTickInterval(<value>)`
Sets the interval between tickmarks.
`$value()`
Returns slider value.
`$minValue()`
Returns slider minValue.
`$maxValue()`
Returns slider maxValue.
`$lineStep()`
Returns slider lineStep value.
`$pageStep()`
Returns slider pageStep value.
`$valueChangedEvent(<new slider valure>)`
This function is called by the framework when the slider value is changed and return the new slider value as its argument. The default implementation emits the $valueChanged() signal, so it is easy to handle the values from many sliders without reimplementing the $valueChangedEvent() for every one. Note: If you reimplement this function to catch the slider value, you will have to emit the signal by yourself (if you still need it , obviously).
Signals
`$valueChanged()`
This signal is emitted by the default implementation of [classfnc]valueChangedEvent[/classfnc](). If you reimplement that function you will have to emit the signal manually (if you still need it).

Index, Object Classes

KVIrc 3.2.0 Documentation
Generated by root at Tue Dec 4 07:16:18 2007