#include <Libs/Widgets/ctkRangeWidget.h>
|
QScopedPointer< ctkRangeWidgetPrivate > | d_ptr |
|
ctkRangeWidget is a wrapper around a ctkDoubleRangeSlider and 2 QSpinBoxes
- See also
- ctkSliderSpinBoxWidget, ctkDoubleRangeSlider, QSpinBox
Definition at line 42 of file ctkRangeWidget.h.
ctkRangeWidget::ctkRangeWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Constructor If
- parent is null, ctkRangeWidget will be a top-leve widget
- Note
- The
- parent can be set later using QWidget::setParent()
virtual ctkRangeWidget::~ctkRangeWidget |
( |
| ) |
|
|
virtual |
virtual void ctkRangeWidget::changeMaximumValue |
( |
double |
value | ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::changeMinimumValue |
( |
double |
value | ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::changeValues |
( |
double |
newMinValue, |
|
|
double |
newMaxValue |
|
) |
| |
|
protectedvirtualslot |
virtual int ctkRangeWidget::decimals |
( |
| ) |
const |
|
virtual |
This property holds the precision of the spin box, in decimals.
virtual bool ctkRangeWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
virtual bool ctkRangeWidget::hasTracking |
( |
| ) |
const |
|
virtual |
virtual bool ctkRangeWidget::isAutoSpinBoxWidth |
( |
| ) |
const |
|
virtual |
Set/Get the auto spinbox width When the autoSpinBoxWidth property is on, the width of the SpinBox is set to the same width of the largest QSpinBox of its
virtual double ctkRangeWidget::maximum |
( |
| ) |
const |
|
virtual |
This property holds the sliders and spinbox minimum value. FIXME: Test following specs. 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.
virtual double ctkRangeWidget::maximumValue |
( |
| ) |
const |
|
virtual |
This property holds the slider and spinbox maximum value. ctkRangeWidget forces the value to be within the legal range: minimum <= minimumValue <= maximumValue <= maximum.
void ctkRangeWidget::maximumValueChanged |
( |
double |
value | ) |
|
|
signal |
void ctkRangeWidget::maximumValueIsChanging |
( |
double |
value | ) |
|
|
signal |
virtual double ctkRangeWidget::minimum |
( |
| ) |
const |
|
virtual |
This property holds the sliders and spinbox minimum value. FIXME: Test following specs. 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.
virtual double ctkRangeWidget::minimumValue |
( |
| ) |
const |
|
virtual |
This property holds the slider and spinbox minimum value. ctkRangeWidget forces the value to be within the legal range: minimum <= minimumValue <= maximumValue <= maximum.
void ctkRangeWidget::minimumValueChanged |
( |
double |
value | ) |
|
|
signal |
Use with care: sliderMoved is emitted only when the user moves the slider
void ctkRangeWidget::minimumValueIsChanging |
( |
double |
value | ) |
|
|
signal |
virtual void ctkRangeWidget::onSliderRangeChanged |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
protectedvirtualslot |
virtual void ctkRangeWidget::onValueProxyAboutToBeModified |
( |
| ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::onValueProxyModified |
( |
| ) |
|
|
protectedvirtualslot |
virtual QString ctkRangeWidget::prefix |
( |
| ) |
const |
|
virtual |
This property holds the spin box's prefix. The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol
virtual void ctkRangeWidget::range |
( |
double |
minimumAndMaximum[2] | ) |
const |
|
virtual |
void ctkRangeWidget::rangeChanged |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
signal |
virtual void ctkRangeWidget::reset |
( |
| ) |
|
|
virtualslot |
Reset the slider and spinbox to zero (value and position)
virtual void ctkRangeWidget::setAutoSpinBoxWidth |
( |
bool |
autoWidth | ) |
|
|
virtual |
virtual void ctkRangeWidget::setDecimals |
( |
int |
decimals | ) |
|
|
virtualslot |
Sets how many decimals the spinbox will use for displaying and interpreting doubles.
virtual void ctkRangeWidget::setMaximum |
( |
double |
maximum | ) |
|
|
virtual |
virtual void ctkRangeWidget::setMaximumToMinimumSpinBox |
( |
double |
maximum | ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::setMaximumValue |
( |
double |
value | ) |
|
|
virtualslot |
virtual void ctkRangeWidget::setMinimum |
( |
double |
minimum | ) |
|
|
virtual |
virtual void ctkRangeWidget::setMinimumToMaximumSpinBox |
( |
double |
minimum | ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::setMinimumValue |
( |
double |
value | ) |
|
|
virtualslot |
virtual void ctkRangeWidget::setPrefix |
( |
const QString & |
prefix | ) |
|
|
virtual |
virtual void ctkRangeWidget::setRange |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
|
virtual |
Description Utility function that set the min/max in once
virtual void ctkRangeWidget::setSingleStep |
( |
double |
step | ) |
|
|
virtual |
can be used to change the slider by a custom one
virtual void ctkRangeWidget::setSliderValues |
( |
| ) |
|
|
protectedvirtualslot |
A spinbox value has been modified, update the slider.
virtual void ctkRangeWidget::setSpinBoxAlignment |
( |
Qt::Alignment |
alignment | ) |
|
|
virtual |
This property holds the alignment of the spin boxes. Possible Values are Qt::AlignTop, Qt::AlignBottom, and Qt::AlignVCenter. By default, the alignment is Qt::AlignVCenter
virtual void ctkRangeWidget::setSpinBoxTextAlignment |
( |
Qt::Alignment |
alignment | ) |
|
|
virtual |
This property holds the alignment of the text inside the spin boxes. Possible Values are Qt::AlignLeft, Qt::AlignRight, and Qt::AlignHCenter. By default, the alignment is Qt::AlignLeft
virtual void ctkRangeWidget::setSuffix |
( |
const QString & |
suffix | ) |
|
|
virtual |
virtual void ctkRangeWidget::setSymmetricMoves |
( |
bool |
symmetry | ) |
|
|
virtual |
virtual void ctkRangeWidget::setTickInterval |
( |
double |
ti | ) |
|
|
virtual |
virtual void ctkRangeWidget::setTracking |
( |
bool |
enable | ) |
|
|
virtual |
This property holds whether slider tracking is enabled. If tracking is enabled (the default), the widget emits the valueChanged() signal while the slider or spinbox is being dragged. If tracking is disabled, the widget emits the valueChanged() signal only when the user releases the slider or spinbox.
virtual void ctkRangeWidget::setValueProxy |
( |
ctkValueProxy * |
proxy | ) |
|
|
virtual |
virtual void ctkRangeWidget::setValues |
( |
double |
minValue, |
|
|
double |
maxValue |
|
) |
| |
|
virtualslot |
Utility function that set the min and max values at once.
virtual double ctkRangeWidget::singleStep |
( |
| ) |
const |
|
virtual |
This property holds the single step. The smaller of two natural steps that the slider provides and typically corresponds to the user pressing an arrow key.
virtual Qt::Alignment ctkRangeWidget::spinBoxAlignment |
( |
| ) |
const |
|
virtual |
virtual Qt::Alignment ctkRangeWidget::spinBoxTextAlignment |
( |
| ) |
const |
|
virtual |
virtual void ctkRangeWidget::startChanging |
( |
| ) |
|
|
protectedvirtualslot |
virtual void ctkRangeWidget::stopChanging |
( |
| ) |
|
|
protectedvirtualslot |
virtual QString ctkRangeWidget::suffix |
( |
| ) |
const |
|
virtual |
This property holds the spin box's suffix. The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol
virtual bool ctkRangeWidget::symmetricMoves |
( |
| ) |
const |
|
virtual |
When symmetricMoves is true, moving a handle will move the other handle symmetrically, otherwise the handles are independent. False by default
virtual double ctkRangeWidget::tickInterval |
( |
| ) |
const |
|
virtual |
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.
virtual void ctkRangeWidget::values |
( |
double & |
minValue, |
|
|
double & |
maxValue |
|
) |
| const |
|
virtual |
Utility function that returns both values at the same time Returns minimumValue and maximumValue
void ctkRangeWidget::valuesChanged |
( |
double |
minValue, |
|
|
double |
maxValue |
|
) |
| |
|
signal |
QScopedPointer<ctkRangeWidgetPrivate> ctkRangeWidget::d_ptr |
|
protected |
bool ctkRangeWidget::autoSpinBoxWidth |
|
readwrite |
int ctkRangeWidget::decimals |
|
readwrite |
double ctkRangeWidget::maximum |
|
readwrite |
double ctkRangeWidget::maximumValue |
|
readwrite |
double ctkRangeWidget::minimum |
|
readwrite |
double ctkRangeWidget::minimumValue |
|
readwrite |
QString ctkRangeWidget::prefix |
|
readwrite |
double ctkRangeWidget::singleStep |
|
readwrite |
Qt::Alignment ctkRangeWidget::spinBoxAlignment |
|
readwrite |
Qt::Alignment ctkRangeWidget::spinBoxTextAlignment |
|
readwrite |
QString ctkRangeWidget::suffix |
|
readwrite |
bool ctkRangeWidget::symmetricMoves |
|
readwrite |
double ctkRangeWidget::tickInterval |
|
readwrite |
bool ctkRangeWidget::tracking |
|
readwrite |
The documentation for this class was generated from the following file: