A utility class to have QSpinBox and QSlider synchronized.
More...
#include <SliderSpinBoxWidget.h>
|
void | valueChanged (int) |
| if the user change the value either in the slider or the spinBox, this signal is emitted with the new value as parameter. More...
|
|
A utility class to have QSpinBox and QSlider synchronized.
see for example InteractiveViewer (when it is used as 2D viewer)
camitk::SliderSpinBoxWidget::SliderSpinBoxWidget |
( |
QWidget * |
parent = 0 | ) |
|
constructor (have to give the parent widget)
camitk::SliderSpinBoxWidget::~SliderSpinBoxWidget |
( |
| ) |
|
void camitk::SliderSpinBoxWidget::addPageStep |
( |
| ) |
|
add a larger number of natural steps to the value, for information exact number of added step is min(1,(max-min)/10)
void camitk::SliderSpinBoxWidget::addSingleStep |
( |
| ) |
|
QSlider* camitk::SliderSpinBoxWidget::getSlider |
( |
| ) |
|
|
inline |
the QSlider instance
References slider.
QSpinBox* camitk::SliderSpinBoxWidget::getSpinBox |
( |
| ) |
|
|
inline |
the QSpinBox instance
References spinBox.
int camitk::SliderSpinBoxWidget::getValue |
( |
| ) |
const |
void camitk::SliderSpinBoxWidget::setRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
void camitk::SliderSpinBoxWidget::setValue |
( |
int |
value | ) |
|
void camitk::SliderSpinBoxWidget::sliderValueChanged |
( |
int |
| ) |
|
|
protectedslot |
any change in the slider value is connected to this slot (update the spinBox)
void camitk::SliderSpinBoxWidget::spinBoxValueChanged |
( |
int |
| ) |
|
|
protectedslot |
any change in the spinBox value is connected to this slot (update the slider)
void camitk::SliderSpinBoxWidget::subPageStep |
( |
| ) |
|
substract a larger number of natural steps to the value, for information exact number of added step is min(1,(max-min)/10)
void camitk::SliderSpinBoxWidget::subSingleStep |
( |
| ) |
|
void camitk::SliderSpinBoxWidget::updateSliderValue |
( |
int |
| ) |
|
|
private |
update the slider value (block signals)
void camitk::SliderSpinBoxWidget::updateSpinBoxValue |
( |
int |
| ) |
|
|
private |
update the spinBox value (block signals)
void camitk::SliderSpinBoxWidget::valueChanged |
( |
int |
| ) |
|
|
signal |
if the user change the value either in the slider or the spinBox, this signal is emitted with the new value as parameter.
QSlider* camitk::SliderSpinBoxWidget::slider |
|
private |
QSpinBox* camitk::SliderSpinBoxWidget::spinBox |
|
private |
The documentation for this class was generated from the following file: