A simple slider widget that combines the slider with a text label, for use by the DtAudioVolumeWidget.
More...
Public Slots |
| void | setValue (int val) |
| | Set the value of the slider.
|
| void | setEnabled (bool val) |
| | Set the enabled state of the slider label.
|
Signals |
| void | valueChanged (int) |
| | Signal emitted when user changes the audio volume.
|
Private Member Functions |
| void | setupGui () |
| | Sets up the user interface.
|
Detailed Description
A simple slider widget that combines the slider with a text label, for use by the DtAudioVolumeWidget.
Constructor & Destructor Documentation
| makVrv::DtAudioVolumeSliderWidget::DtAudioVolumeSliderWidget |
( |
QWidget * |
parent = 0, |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
Default Constructor.
- Parameters
-
| [in] | parent | is the parent widget for this instance. |
| [in] | f | is a set of window flags for this widget. |
| virtual makVrv::DtAudioVolumeSliderWidget::~DtAudioVolumeSliderWidget |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual int makVrv::DtAudioVolumeSliderWidget::maxValue |
( |
| ) |
const |
|
virtual |
Get the max value of the slider.
- Returns
- The maximum value.
| virtual int makVrv::DtAudioVolumeSliderWidget::minValue |
( |
| ) |
const |
|
virtual |
Get the min value of the slider.
- Returns
- The minimum value.
| void makVrv::DtAudioVolumeSliderWidget::setValue |
( |
int |
val | ) |
|
|
slot |
Set the value of the slider.
- Parameters
-
| [in] | val | is the new value ( clamped to max/min ). |
- Note
- Changing slider value with this function does not emit a valueChanged( int ) signal.
| void makVrv::DtAudioVolumeSliderWidget::setEnabled |
( |
bool |
val | ) |
|
|
slot |
Set the enabled state of the slider label.
- Parameters
-
| [in] | val | is the new value ( clamped to max/min ). |
- Note
- When disabled the slider still functions, however the label is flagged as disabled. This allows setting the volume while still displaying the audio as disabled (muted).
| void makVrv::DtAudioVolumeSliderWidget::valueChanged |
( |
int |
| ) |
|
|
signal |
Signal emitted when user changes the audio volume.
| void makVrv::DtAudioVolumeSliderWidget::setupGui |
( |
| ) |
|
|
private |
Sets up the user interface.
Member Data Documentation
| QLabel* makVrv::DtAudioVolumeSliderWidget::mySliderText |
|
private |
| QSlider* makVrv::DtAudioVolumeSliderWidget::myVolumeSlider |
|
private |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-4-branch/include/vrvAudioQt/DtAudioVolumeWidget.h