![]() |
VR-Forces 5.0.2 Developer's Guide
|
A widget for pairing a horizontal slider with a spinbox. The spin box must be clamped to a min and max value, as the slider cannot slide continuously.

Signals | |
| void | valueChanged (int value) |
Public Member Functions | |
| DtSliderSpinboxWidget (int maxValue, int minValue=0, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget) | |
| DtSliderSpinboxWidget (QWidget *parent=0, Qt::WindowFlags flags=Qt::Widget) | |
| virtual | ~DtSliderSpinboxWidget () |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | setValue (int value) |
| virtual int | value () const |
| virtual void | setMaxAndMin (int maxValue, int minValue) |
| virtual int | maximum () const |
| virtual int | minimum () const |
| virtual void | setSingleStep (int step) |
Accessors to the underlying widgets. | |
Gets the handle to each of the child widgets. | |
| QHBoxLayout * | mainLayout () |
| QSlider * | sliderWidget () |
| QSpinBox * | spinboxWidget () |
Protected Slots | |
User input slots. | |
Slots connected to the signals of the internal widgets. | |
| virtual void | onSliderValueChanged (int value) |
| virtual void | onSpinnerValueChanged (int value) |
Protected Member Functions | |
Event handlers. | |
Extending base-class event handlers to propagate to children. | |
| virtual void | changeEvent (QEvent *evt) |
Protected Attributes | |
| QHBoxLayout * | myLayout |
| QSlider * | mySlider |
| QSpinBox * | mySpinBox |
| int | myMaximum |
| int | myMinimum |
Private Member Functions | |
| void | setupGui () |
| void | connectToSignals () |
| makVrv::DtSliderSpinboxWidget::DtSliderSpinboxWidget | ( | int | maxValue, |
| int | minValue = 0, |
||
| QWidget * | parent = NULL, |
||
| Qt::WindowFlags | flags = Qt::Widget |
||
| ) |
CTOR.
| [in] | maxValue | is the maximum allowed value for this widget. |
| [in] | minValue | is the minimum allowed value for this widget. |
| [in] | parent | is the parent to manage this widget. |
| [in] | flags | is a set of windowing flags for display. |
| makVrv::DtSliderSpinboxWidget::DtSliderSpinboxWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | flags = Qt::Widget |
||
| ) |
CTOR for use with UI files.
| [in] | parent | is the parent to manage this widget. |
|
virtual |
virtual DTOR
|
virtual |
Set the current value.
| [in] | value | is the new value to set. |
|
virtual |
Get the current value.
Set the maximum and minimum values.
| [in] | maxValue | is the maximum allowed value for this widget. |
| [in] | minValue | is the minimum allowed value for this widget. |
|
virtual |
Get the maximum allowed value for this widget.
|
virtual |
Get the minimum allowed value for this widget.
|
virtual |
Set the current value.
| [in] | value | is the new value to set. |
| QHBoxLayout* makVrv::DtSliderSpinboxWidget::mainLayout | ( | ) |
Get the main layout for this widget. returns a handle to the main layout.
| QSlider* makVrv::DtSliderSpinboxWidget::sliderWidget | ( | ) |
Get the slider for this widget. returns a handle to the slider.
| QSpinBox* makVrv::DtSliderSpinboxWidget::spinboxWidget | ( | ) |
Get the spin-box for this widget. returns a handle to the spin-box.
|
signal |
Signal when the value has changed by either the slider or spinbox.
| [in] | value | is the new current value. |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtual |
Handle the enabled/disabled event.
| [in] | evt | is the event to handle. |
|
private |
Sets up the widget's fields. Non-virtual (Called from CTOR).
|
private |
Connects widget signals to slots. Non-virtual (Called from CTOR).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |