#include <qCTKDoubleRangeSlider.h>
Public Types | |
| typedef QWidget | Superclass |
Public Slots | |
| void | setMaximumValue (double maxVal) |
| void | setMinimumValue (double minVal) |
| void | setValues (double minVal, double maxVal) |
Signals | |
| void | maximumPositionChanged (double maxPos) |
| void | maximumValueChanged (double maxVal) |
| void | minimumPositionChanged (double minPos) |
| void | minimumValueChanged (double minVal) |
| void | positionsChanged (double minPos, double maxPos) |
| void | sliderPressed () |
| void | sliderReleased () |
| void | valuesChanged (double minVal, double maxVal) |
Public Member Functions | |
| bool | hasTracking () const |
| double | maximum () const |
| double | maximumPosition () const |
| double | maximumValue () const |
| double | minimum () const |
| double | minimumPosition () const |
| double | minimumValue () const |
| Qt::Orientation | orientation () const |
| qCTKDoubleRangeSlider (QWidget *par=0) | |
| qCTKDoubleRangeSlider (Qt::Orientation o, QWidget *par=0) | |
| void | setMaximum (double max) |
| void | setMaximumPosition (double maxPos) |
| void | setMinimum (double min) |
| void | setMinimumPosition (double minPos) |
| void | setOrientation (Qt::Orientation orientation) |
| void | setPositions (double minPos, double maxPos) |
| void | setRange (double min, double max) |
| void | setSingleStep (double ss) |
| void | setTickInterval (double ti) |
| void | setTracking (bool enable) |
| double | singleStep () const |
| double | tickInterval () const |
| void | triggerAction (QAbstractSlider::SliderAction action) |
Protected Slots | |
| void | onMaxPosChanged (int value) |
| void | onMaxValueChanged (int value) |
| void | onMinPosChanged (int value) |
| void | onMinValueChanged (int value) |
| void | onPositionsChanged (int min, int max) |
| void | onValuesChanged (int min, int max) |
Properties | |
| double | maximum |
| double | maximumPosition |
| double | maximumValue |
| double | minimum |
| double | minimumPosition |
| double | minimumValue |
| Qt::Orientation | orientation |
| double | singleStep |
| double | tickInterval |
| bool | tracking |
Private Member Functions | |
| QCTK_DECLARE_PRIVATE (qCTKDoubleRangeSlider) | |
| qCTKDoubleRangeSlider::qCTKDoubleRangeSlider | ( | Qt::Orientation | o, | |
| QWidget * | par = 0 | |||
| ) |
References QCTK_INIT_PRIVATE, and setOrientation().
| qCTKDoubleRangeSlider::qCTKDoubleRangeSlider | ( | QWidget * | par = 0 |
) |
References QCTK_INIT_PRIVATE.
| bool qCTKDoubleRangeSlider::hasTracking | ( | ) | const |
References autoSlicerTracto2regions::d, and QCTK_D.
| double qCTKDoubleRangeSlider::maximum | ( | ) | const |
This property holds the slider's maximum value. When setting this property, the minimum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.
| double qCTKDoubleRangeSlider::maximumPosition | ( | ) | const |
This property holds the current slider maximum position. If tracking is enabled (the default), this is identical to maximumValue.
| void qCTKDoubleRangeSlider::maximumPositionChanged | ( | double | maxPos | ) | [signal] |
This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the maximum slider. The value is the new slider maximum position. This signal is emitted even when tracking is turned off.
Referenced by onMaxPosChanged().
| double qCTKDoubleRangeSlider::maximumValue | ( | ) | const |
This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.
| void qCTKDoubleRangeSlider::maximumValueChanged | ( | double | maxVal | ) | [signal] |
This signal is emitted when the slider maximum value has changed, with the new slider value as argument.
Referenced by onMaxValueChanged(), and setMaximumValue().
| double qCTKDoubleRangeSlider::minimum | ( | ) | const |
This property holds the sliders's minimum value. When setting this property, the maximum is adjusted if necessary to ensure that the range remains valid. Also the slider's current values are adjusted to be within the new range.
| double qCTKDoubleRangeSlider::minimumPosition | ( | ) | const |
This property holds the current slider minimum position. If tracking is enabled (the default), this is identical to minimumValue.
| void qCTKDoubleRangeSlider::minimumPositionChanged | ( | double | minPos | ) | [signal] |
This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the minimum slider. The value is the new slider minimum position. This signal is emitted even when tracking is turned off.
Referenced by onMinPosChanged().
| double qCTKDoubleRangeSlider::minimumValue | ( | ) | const |
This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.
| void qCTKDoubleRangeSlider::minimumValueChanged | ( | double | minVal | ) | [signal] |
This signal is emitted when the slider minimum value has changed, with the new slider value as argument.
Referenced by onMinValueChanged(), and setMinimumValue().
| void qCTKDoubleRangeSlider::onMaxPosChanged | ( | int | value | ) | [protected, slot] |
References autoSlicerTracto2regions::d, maximumPositionChanged(), and QCTK_D.
| void qCTKDoubleRangeSlider::onMaxValueChanged | ( | int | value | ) | [protected, slot] |
References autoSlicerTracto2regions::d, maximumValueChanged(), and QCTK_D.
| void qCTKDoubleRangeSlider::onMinPosChanged | ( | int | value | ) | [protected, slot] |
References autoSlicerTracto2regions::d, minimumPositionChanged(), and QCTK_D.
| void qCTKDoubleRangeSlider::onMinValueChanged | ( | int | value | ) | [protected, slot] |
References autoSlicerTracto2regions::d, minimumValueChanged(), and QCTK_D.
References autoSlicerTracto2regions::d, positionsChanged(), and QCTK_D.
References autoSlicerTracto2regions::d, QCTK_D, and valuesChanged().
| Qt::Orientation qCTKDoubleRangeSlider::orientation | ( | ) | const |
This property holds the orientation of the slider. The orientation must be Qt::Vertical (the default) or Qt::Horizontal.
| void qCTKDoubleRangeSlider::positionsChanged | ( | double | minPos, | |
| double | maxPos | |||
| ) | [signal] |
Utility signal that is fired when minimum or maximum positions have changed.
Referenced by onPositionsChanged().
| qCTKDoubleRangeSlider::QCTK_DECLARE_PRIVATE | ( | qCTKDoubleRangeSlider | ) | [private] |
| void qCTKDoubleRangeSlider::setMaximum | ( | double | max | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1(), and setSingleStep().
| void qCTKDoubleRangeSlider::setMaximumPosition | ( | double | maxPos | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by setSingleStep().
| void qCTKDoubleRangeSlider::setMaximumValue | ( | double | maxVal | ) | [slot] |
This property holds the slider's current maximum value. The slider forces the maximum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the maximumValue also changes the maximumPosition.
References autoSlicerTracto2regions::d, maximumValueChanged(), MinValue, and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1(), setSingleStep(), and setValues().
| void qCTKDoubleRangeSlider::setMinimum | ( | double | min | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1(), and setSingleStep().
| void qCTKDoubleRangeSlider::setMinimumPosition | ( | double | minPos | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by setSingleStep().
| void qCTKDoubleRangeSlider::setMinimumValue | ( | double | minVal | ) | [slot] |
This property holds the slider's current minimum value. The slider forces the minimum value to be within the legal range: minimum <= minvalue <= maxvalue <= maximum. Changing the minimumValue also changes the minimumPosition.
References autoSlicerTracto2regions::d, minimumValueChanged(), and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1(), setSingleStep(), and setValues().
| void qCTKDoubleRangeSlider::setOrientation | ( | Qt::Orientation | orientation | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleRangeSlider().
| void qCTKDoubleRangeSlider::setPositions | ( | double | minPos, | |
| double | maxPos | |||
| ) |
Utility function that set the minimum position and maximum position at once.
References autoSlicerTracto2regions::d, and QCTK_D.
| void qCTKDoubleRangeSlider::setRange | ( | double | min, | |
| double | max | |||
| ) |
Sets the slider's minimum to min and its maximum to max. If max is smaller than min, min becomes the only legal value.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1().
| void qCTKDoubleRangeSlider::setSingleStep | ( | double | ss | ) |
This property holds the single step. The smaller of two natural steps that an abstract sliders provides and typically corresponds to the user pressing an arrow key
References autoSlicerTracto2regions::d, QCTK_D, setMaximum(), setMaximumPosition(), setMaximumValue(), setMinimum(), setMinimumPosition(), and setMinimumValue().
Referenced by qCTKDoubleRangeSliderTest1().
| void qCTKDoubleRangeSlider::setTickInterval | ( | double | ti | ) |
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 default value is 0.
References autoSlicerTracto2regions::d, and QCTK_D.
| void qCTKDoubleRangeSlider::setTracking | ( | bool | enable | ) |
This property holds whether slider tracking is enabled. If tracking is enabled (the default), the slider emits the minimumValueChanged() signal while the left/bottom handler is being dragged and the slider emits the maximumValueChanged() signal while the right/top handler is being dragged. If tracking is disabled, the slider emits the minimumValueChanged() and maximumValueChanged() signals only when the user releases the slider.
References autoSlicerTracto2regions::d, and QCTK_D.
| void qCTKDoubleRangeSlider::setValues | ( | double | minVal, | |
| double | maxVal | |||
| ) | [slot] |
Utility function that set the minimum value and maximum value at once.
References setMaximumValue(), and setMinimumValue().
Referenced by qCTKDoubleRangeSliderTest1().
| double qCTKDoubleRangeSlider::singleStep | ( | ) | const |
| void qCTKDoubleRangeSlider::sliderPressed | ( | ) | [signal] |
This signal is emitted when the user presses one slider with the mouse, or programmatically when setSliderDown(true) is called.
| void qCTKDoubleRangeSlider::sliderReleased | ( | ) | [signal] |
This signal is emitted when the user releases one slider with the mouse, or programmatically when setSliderDown(false) is called.
| double qCTKDoubleRangeSlider::tickInterval | ( | ) | const |
| void qCTKDoubleRangeSlider::triggerAction | ( | QAbstractSlider::SliderAction | action | ) |
Triggers a slider action on the current slider. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleRangeSliderTest1().
| void qCTKDoubleRangeSlider::valuesChanged | ( | double | minVal, | |
| double | maxVal | |||
| ) | [signal] |
Utility signal that is fired when minimum or maximum values have changed.
Referenced by onValuesChanged().
double qCTKDoubleRangeSlider::maximum [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
double qCTKDoubleRangeSlider::maximumPosition [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
double qCTKDoubleRangeSlider::maximumValue [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
double qCTKDoubleRangeSlider::minimum [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
double qCTKDoubleRangeSlider::minimumPosition [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
double qCTKDoubleRangeSlider::minimumValue [read, write] |
Referenced by checkSlider(), and qCTKDoubleRangeSliderTest1().
Qt::Orientation qCTKDoubleRangeSlider::orientation [read, write] |
double qCTKDoubleRangeSlider::singleStep [read, write] |
double qCTKDoubleRangeSlider::tickInterval [read, write] |
bool qCTKDoubleRangeSlider::tracking [read, write] |
1.6.1