VR-Forces Developer's Guide
 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.

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

Public Slots

void setValue (int val)
 
void setEnabled (bool val)
 

Signals

void valueChanged (int)
 

Public Member Functions

 DtAudioVolumeSliderWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~DtAudioVolumeSliderWidget ()
 
virtual int maxValue () const
 
virtual int minValue () const
 

Private Member Functions

void setupGui ()
 

Private Attributes

QLabelmySliderText
 
QSlider * myVolumeSlider
 

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 Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)