Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The TQSlider widget provides a vertical or horizontal slider. More...
#include <tqslider.h>
Inherits TQWidget and TQRangeControl.
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.
TQSlider inherits TQRangeControl, which provides the "integer" side of the slider. setRange() and value() are likely to be used by practically all slider users; see the TQRangeControl documentation for information about the many other functions that class provides.
The main functions offered by the slider itself are tickmark and orientation control; you can use setTickmarks() to indicate where you want the tickmarks to be, setTickInterval() to indicate how many of them you want and setOrientation() to indicate whether the slider is to be horizontal or vertical.
A slider accepts focus on Tab and uses the mouse wheel and a suitable keyboard interface.
See also TQScrollBar, TQSpinBox, GUI Design Handbook: Slider, and Basic Widgets.
This enum specifies where the tickmarks are to be drawn relative to the slider's groove and the handle the user moves.
The parent and name arguments are sent on to the TQWidget constructor.
The orientation must be TQt::Vertical or TQt::Horizontal.
The parent and name arguments are sent on to the TQWidget constructor.
If orientation is TQt::Vertical the slider is vertical and if it is TQt::Horizontal the slider is horizontal.
The parent and name arguments are sent on to the TQWidget constructor.
Returns the current line step. See the "lineStep" property for details.
Returns the current maximum value of the slider. See the "maxValue" property for details.
Returns the current minimum value of the slider. See the "minValue" property for details.
Returns the slider's orientation. See the "orientation" property for details.
Returns the current page step. See the "pageStep" property for details.
Reimplemented from TQRangeControl.
Sets the current line step. See the "lineStep" property for details.
Sets the current maximum value of the slider. See the "maxValue" property for details.
Sets the current minimum value of the slider. See the "minValue" property for details.
Sets the slider's orientation. See the "orientation" property for details.
Sets the current page step. See the "pageStep" property for details.
Sets the background color to the mid color for Motif style sliders using palette p.
Reimplemented from TQWidget.
Calls the virtual rangeChange() function if one or both of the new minimum and maximum values are different from the previous setting. Calls the virtual valueChange() function if the current value is adjusted because it was outside the new range.
If maxValue is smaller than minValue, minValue becomes the only legal value.
See also minValue and maxValue.
Examples: listbox/listbox.cpp, t12/lcdrange.cpp, t5/main.cpp, t6/main.cpp, t8/lcdrange.cpp, and xform/xform.cpp.
Sets the interval between tickmarks. See the "tickInterval" property for details.
Sets the tickmark settings for this slider. See the "tickmarks" property for details.
Sets whether slider tracking is enabled to enable. See the "tracking" property for details.
Sets the current slider value. See the "value" property for details.
This signal is emitted when the slider is dragged, with the new slider value as its argument.
This signal is emitted when the user presses the slider with the mouse.
This signal is emitted when the user releases the slider with the mouse.
Returns the start position of the slider.
Returns the interval between tickmarks. See the "tickInterval" property for details.
Returns the tickmark settings for this slider. See the "tickmarks" property for details.
Returns TRUE if slider tracking is enabled; otherwise returns FALSE. See the "tracking" property for details.
Returns the current slider value. See the "value" property for details.
Reimplemented from TQRangeControl.
This signal is emitted when the slider value is changed, with the new slider value as its argument.
Examples: rangecontrols/rangecontrols.cpp, t12/lcdrange.cpp, t5/main.cpp, t6/main.cpp, t7/lcdrange.cpp, and xform/xform.cpp.
This property holds the current line step.
When setting lineStep, the virtual stepChange() function will be called if the new line step is different from the previous setting.
See also setSteps(), TQRangeControl::pageStep(), and setRange().
Set this property's value with setLineStep() and get this property's value with lineStep().
This property holds the current maximum value of the slider.
When setting this property, the TQSlider::minValue is adjusted, if necessary, to ensure that the range remains valid.
See also setRange().
Set this property's value with setMaxValue() and get this property's value with maxValue().
This property holds the current minimum value of the slider.
When setting this property, the TQSlider::maxValue is adjusted, if necessary, to ensure that the range remains valid.
See also setRange().
Set this property's value with setMinValue() and get this property's value with minValue().
This property holds the slider's orientation.
The orientation must be TQt::Vertical (the default) or TQt::Horizontal.
Set this property's value with setOrientation() and get this property's value with orientation().
This property holds the current page step.
When setting pageStep, the virtual stepChange() function will be called if the new page step is different from the previous setting.
See also TQRangeControl::setSteps(), lineStep, and setRange().
Set this property's value with setPageStep() and get this property's value with pageStep().
This property holds the interval between tickmarks.
This is a value interval, not a pixel interval. If it is 0, the slider will choose between lineStep() and pageStep(). The initial value of tickInterval is 0.
See also TQRangeControl::lineStep() and TQRangeControl::pageStep().
Set this property's value with setTickInterval() and get this property's value with tickInterval().
This property holds the tickmark settings for this slider.
The valid values are in TQSlider::TickSetting. The default is NoMarks.
See also tickInterval.
Set this property's value with setTickmarks() and get this property's value with tickmarks().
This property holds whether slider tracking is enabled.
If tracking is enabled (the default), the slider emits the valueChanged() signal whenever the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal when the user releases the mouse button (unless the value happens to be the same as before).
Set this property's value with setTracking() and get this property's value with tracking().
This property holds the current slider value.
Set this property's value with setValue() and get this property's value with value().
See also TQRangeControl::value() and prevValue().
This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.
Copyright © 2007 Trolltech | Trademarks | TQt 3.3.8
|