VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
makVrv::DtAudioVolumeSliderWidget Class Reference

A simple slider widget that combines the slider with a text label, for use by the DtAudioVolumeWidget. More...

Inheritance diagram for makVrv::DtAudioVolumeSliderWidget:
Inheritance graph
[legend]

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.

Public Member Functions

 DtAudioVolumeSliderWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Default Constructor.
virtual ~DtAudioVolumeSliderWidget ()
 Virtual destructor.
virtual int maxValue () const
 Get the max value of the slider.
virtual int minValue () const
 Get the min value of the slider.

Private Member Functions

void setupGui ()
 Sets up the user interface.

Private Attributes

QLabelmySliderText
QSlider * myVolumeSlider

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]parentis the parent widget for this instance.
[in]fis a set of window flags for this widget.
virtual makVrv::DtAudioVolumeSliderWidget::~DtAudioVolumeSliderWidget ( )
virtual

Virtual destructor.

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]valis 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]valis 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:

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)