#include <qCTKDoubleSlider.h>
Public Types | |
| typedef QWidget | Superclass |
| Superclass typedef. | |
Public Slots | |
| void | setOrientation (Qt::Orientation orientation) |
| void | setValue (double value) |
Signals | |
| void | sliderMoved (double position) |
| void | sliderPressed () |
| void | sliderReleased () |
| void | valueChanged (double value) |
Public Member Functions | |
| bool | hasTracking () const |
| double | maximum () const |
| double | minimum () const |
| Qt::Orientation | orientation () const |
| qCTKDoubleSlider (Qt::Orientation orient, QWidget *parent=0) | |
| qCTKDoubleSlider (QWidget *parent=0) | |
| void | setMaximum (double max) |
| void | setMinimum (double min) |
| void | setRange (double min, double max) |
| void | setSingleStep (double step) |
| void | setSliderPosition (double) |
| void | setTickInterval (double ti) |
| void | setTracking (bool enable) |
| double | singleStep () const |
| double | sliderPosition () const |
| double | tickInterval () const |
| void | triggerAction (QAbstractSlider::SliderAction action) |
| double | value () const |
| virtual | ~qCTKDoubleSlider () |
| Destructor. | |
Protected Slots | |
| void | onSliderMoved (int position) |
| void | onValueChanged (int value) |
Properties | |
| double | maximum |
| double | minimum |
| Qt::Orientation | orientation |
| double | singleStep |
| double | sliderPosition |
| double | tickInterval |
| bool | tracking |
| double | value |
Private Member Functions | |
| QCTK_DECLARE_PRIVATE (qCTKDoubleSlider) | |
| typedef QWidget qCTKDoubleSlider::Superclass |
Superclass typedef.
| qCTKDoubleSlider::qCTKDoubleSlider | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructors Vertical by default
References QCTK_INIT_PRIVATE.
| qCTKDoubleSlider::qCTKDoubleSlider | ( | Qt::Orientation | orient, | |
| QWidget * | parent = 0 | |||
| ) | [explicit] |
References QCTK_INIT_PRIVATE, and setOrientation().
| qCTKDoubleSlider::~qCTKDoubleSlider | ( | ) | [virtual] |
Destructor.
| bool qCTKDoubleSlider::hasTracking | ( | ) | const |
References autoSlicerTracto2regions::d, and QCTK_D.
| double qCTKDoubleSlider::maximum | ( | ) | const |
| double qCTKDoubleSlider::minimum | ( | ) | const |
| void qCTKDoubleSlider::onSliderMoved | ( | int | position | ) | [protected, slot] |
References autoSlicerTracto2regions::d, QCTK_D, and sliderMoved().
| void qCTKDoubleSlider::onValueChanged | ( | int | value | ) | [protected, slot] |
References autoSlicerTracto2regions::d, QCTK_D, and valueChanged().
| Qt::Orientation qCTKDoubleSlider::orientation | ( | ) | const |
This property holds the orientation of the slider. The orientation must be Qt::Vertical (the default) or Qt::Horizontal.
| qCTKDoubleSlider::QCTK_DECLARE_PRIVATE | ( | qCTKDoubleSlider | ) | [private] |
| void qCTKDoubleSlider::setMaximum | ( | double | max | ) |
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 value is adjusted to be within the new range.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleSliderTest1().
| void qCTKDoubleSlider::setMinimum | ( | double | min | ) |
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 value is adjusted to be within the new range.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleSliderTest1().
| void qCTKDoubleSlider::setOrientation | ( | Qt::Orientation | orientation | ) | [slot] |
This property holds the orientation of the slider. The orientation must be Qt::Vertical (the default) or Qt::Horizontal.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qSlicerCLIModuleWidgetPrivate::createDoubleTagWidget(), qSlicerCLIModuleWidgetPrivate::createFloatTagWidget(), and qCTKDoubleSlider().
| void qCTKDoubleSlider::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 qSlicerCLIModuleWidgetPrivate::createDoubleTagWidget(), qSlicerCLIModuleWidgetPrivate::createFloatTagWidget(), qCTKDoubleSliderTest1(), and setSingleStep().
| void qCTKDoubleSlider::setSingleStep | ( | double | step | ) |
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, and setRange().
Referenced by qSlicerCLIModuleWidgetPrivate::createDoubleTagWidget(), qSlicerCLIModuleWidgetPrivate::createFloatTagWidget(), and qCTKDoubleSliderTest1().
| void qCTKDoubleSlider::setSliderPosition | ( | double | newSliderPosition | ) |
References autoSlicerTracto2regions::d, and QCTK_D.
| void qCTKDoubleSlider::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.
Referenced by qSlicerCLIModuleWidgetPrivate::createDoubleTagWidget(), and qSlicerCLIModuleWidgetPrivate::createFloatTagWidget().
| void qCTKDoubleSlider::setTracking | ( | bool | enable | ) |
This property holds whether slider tracking is enabled. If tracking is enabled (the default), the slider emits the valueChanged() signal while the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal only when the user releases the slider.
References autoSlicerTracto2regions::d, and QCTK_D.
| void qCTKDoubleSlider::setValue | ( | double | value | ) | [slot] |
This property holds the slider's current value. The slider forces the value to be within the legal range: minimum <= value <= maximum. Changing the value also changes the sliderPosition.
References autoSlicerTracto2regions::d, QCTK_D, and valueChanged().
Referenced by qSlicerCLIModuleWidgetPrivate::createDoubleTagWidget(), qSlicerCLIModuleWidgetPrivate::createFloatTagWidget(), and qCTKDoubleSliderTest1().
| double qCTKDoubleSlider::singleStep | ( | ) | const |
| void qCTKDoubleSlider::sliderMoved | ( | double | position | ) | [signal] |
This signal is emitted when sliderDown is true and the slider moves. This usually happens when the user is dragging the slider. The value is the new slider position. This signal is emitted even when tracking is turned off.
Referenced by onSliderMoved().
| double qCTKDoubleSlider::sliderPosition | ( | ) | const |
This property holds the current slider position. If tracking is enabled (the default), this is identical to value.
| void qCTKDoubleSlider::sliderPressed | ( | ) | [signal] |
This signal is emitted when the user presses the slider with the mouse, or programmatically when setSliderDown(true) is called.
| void qCTKDoubleSlider::sliderReleased | ( | ) | [signal] |
This signal is emitted when the user releases the slider with the mouse, or programmatically when setSliderDown(false) is called.
| double qCTKDoubleSlider::tickInterval | ( | ) | const |
| void qCTKDoubleSlider::triggerAction | ( | QAbstractSlider::SliderAction | action | ) |
Triggers a slider action. Possible actions are SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, SliderPageStepSub, SliderToMinimum, SliderToMaximum, and SliderMove.
References autoSlicerTracto2regions::d, and QCTK_D.
Referenced by qCTKDoubleSliderTest1().
| double qCTKDoubleSlider::value | ( | ) | const |
This property holds the slider's current value. The slider forces the value to be within the legal range: minimum <= value <= maximum. Changing the value also changes the sliderPosition.
| void qCTKDoubleSlider::valueChanged | ( | double | value | ) | [signal] |
This signal is emitted when the slider value has changed, with the new slider value as argument.
Referenced by onValueChanged(), and setValue().
double qCTKDoubleSlider::maximum [read, write] |
Referenced by qCTKDoubleSliderTest1().
double qCTKDoubleSlider::minimum [read, write] |
Referenced by qCTKDoubleSliderTest1().
Qt::Orientation qCTKDoubleSlider::orientation [read, write] |
double qCTKDoubleSlider::singleStep [read, write] |
Referenced by qCTKDoubleSliderTest1().
double qCTKDoubleSlider::sliderPosition [read, write] |
Referenced by qCTKDoubleSliderTest1().
double qCTKDoubleSlider::tickInterval [read, write] |
bool qCTKDoubleSlider::tracking [read, write] |
double qCTKDoubleSlider::value [read, write] |
Referenced by qCTKDoubleSliderTest1().
1.6.1