![]() |
VR-Forces 4.6.1 Class Documentation
|
A widget for pairing a horizontal slider with a spinbox. More...

Signals | |
| void | valueChanged (int value) |
| Signal when the value has changed by either the slider or spinbox. | |
Public Member Functions | |
| DtSliderSpinboxWidget (int maxValue, int minValue=0, QWidget *parent=NULL, Qt::WindowFlags flags=Qt::Widget) | |
| CTOR. | |
| DtSliderSpinboxWidget (QWidget *parent=0, Qt::WindowFlags flags=Qt::Widget) | |
| CTOR for use with UI files. | |
| virtual | ~DtSliderSpinboxWidget () |
| virtual DTOR | |
Field value setters. | |
Sets the values of the widget's corresponding fields. | |
| virtual void | setValue (int value) |
| Set the current value. | |
| virtual int | value () const |
| Get the current value. | |
| virtual void | setMaxAndMin (int maxValue, int minValue) |
| Set the maximum and minimum values. | |
| virtual int | maximum () const |
| Get the maximum allowed value for this widget. | |
| virtual int | minimum () const |
| Get the minimum allowed value for this widget. | |
| virtual void | setSingleStep (int step) |
Accessors to the underlying widgets. | |
Gets the handle to each of the child widgets. | |
| QHBoxLayout * | mainLayout () |
| Get the main layout for this widget. | |
| QSlider * | sliderWidget () |
| Get the slider for this widget. | |
| QSpinBox * | spinboxWidget () |
| Get the spin-box for this widget. | |
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) |
| Handle the enabled/disabled event. | |
| virtual void | showEvent (QShowEvent *evt) |
| virtual void | hideEvent (QHideEvent *evt) |
Protected Attributes | |
| QHBoxLayout * | myLayout |
| QSlider * | mySlider |
| QSpinBox * | mySpinBox |
| int | myMaximum |
| int | myMinimum |
Private Member Functions | |
| void | setupGui () |
| Sets up the widget's fields. | |
| void | connectToSignals () |
| Connects widget signals to slots. | |
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.
| 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 |
| 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. |
|
protectedvirtual |
Handle the show/hide events.
| [in] | evt | is the event to handle. |
|
protectedvirtual |
|
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 |