Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CAudioDisplayVolume Class Reference

#include <AudioDisplayVolume.h>

List of all members.

Public Types

Public Slots

Public Member Functions

Protected Member Functions


Detailed Description

This class display a bunch of LedBars that show the volume(s) of a device or stream, read through a CAudioRingBufferReader. It uses a thread to minimize delays and be independant of other readers

Note: the CAudioRingBufferReader supplied with this object is destroyed when this is deleted.


Member Enumeration Documentation

enum CAudioDisplayVolume::DisplayMode
 

This enum defines the overal display of this widget.

Enumeration values:
SkyLine  All bars are next to eachother, going up.
Stereo  Horizontal line, with bars progressing from the middle.
Stack  Horizontal lines, stacked on top of each other; always left to right.


Constructor & Destructor Documentation

CAudioDisplayVolume::CAudioDisplayVolume QWidget *  parent = 0,
const char *  name = 0
 

Constructor.

This is the contructor of the volume LED bar display. Do not call this function with qApp->lock()ed!

CAudioDisplayVolume::CAudioDisplayVolume CAudioRingBufferReader reader,
DisplayMode  mode,
QWidget *  parent = 0,
const char *  name = 0
 

CAudioDisplayVolume::~CAudioDisplayVolume  ) 
 


Member Function Documentation

void CAudioDisplayVolume::paintEvent QPaintEvent *  ev  )  [protected, virtual]
 

void CAudioDisplayVolume::Quit bool  Wait = true  ) 
 

void CAudioDisplayVolume::resizeEvent QResizeEvent *  ev  )  [protected, virtual]
 

void CAudioDisplayVolume::run  )  [protected, virtual]
 

void CAudioDisplayVolume::SetLength int  length  ) 
 

Set width or height, depending on the DisplayMode.

Parameters:
length In pixels
The widget can determine its width or height, depending on the number of bars that need to be displayed. However, the length of these bars cannot be determined, thus must be set by the calling application.

For SkyLine mode, this sets the height; for Stereo, the total width of the widget. For Stack, the width of the widget and thus all the bars.

void CAudioDisplayVolume::SetMode DisplayMode  mode  ) 
 

void CAudioDisplayVolume::SetReader CAudioRingBufferReader reader  ) 
 

Set new reader.

void CAudioDisplayVolume::SetSoundAttributes const SoundAttributes  )  [slot]
 

QSize CAudioDisplayVolume::sizeHint  )  [virtual]
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7