Mixxx

DlgPrefSoundItem Class Reference

#include <dlgprefsounditem.h>

List of all members.

Public Slots

void refreshDevices (const QList< SoundDevice * > &devices)
void deviceChanged (int index)
void loadPath (const SoundManagerConfig &config)
void writePath (SoundManagerConfig *config) const
void save ()
void reload ()

Signals

void settingChanged ()

Public Member Functions

 DlgPrefSoundItem (QWidget *parent, AudioPathType type, QList< SoundDevice * > &devices, bool isInput, unsigned int index=0)
 ~DlgPrefSoundItem ()
AudioPathType type () const
unsigned int index () const

Detailed Description

Class representing an input or output selection widget in DlgPrefSound. The widget includes a label describing the input or output, a combo box with a list of available devices and a combo box with a list of available channels.

Definition at line 32 of file dlgprefsounditem.h.


Constructor & Destructor Documentation

DlgPrefSoundItem::DlgPrefSoundItem ( QWidget *  parent,
AudioPathType  type,
QList< SoundDevice * > &  devices,
bool  isInput,
unsigned int  index = 0 
)

Constructs a new preferences sound item, representing an AudioPath and SoundDevice with a label and two combo boxes.

Parameters:
typeThe AudioPathType of the path to be represented
devicesThe list of devices for the user to choose from (either a collection of input or output devices).
isInputtrue if this is representing an AudioInput, false otherwise
indexthe index of the represented AudioPath, if applicable

Definition at line 29 of file dlgprefsounditem.cpp.

Here is the call graph for this function:

DlgPrefSoundItem::~DlgPrefSoundItem ( )

Definition at line 54 of file dlgprefsounditem.cpp.


Member Function Documentation

void DlgPrefSoundItem::deviceChanged ( int  index) [slot]

Slot called when the device combo box selection changes. Updates the channel combo box.

Definition at line 84 of file dlgprefsounditem.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int DlgPrefSoundItem::index ( ) const [inline]

Definition at line 39 of file dlgprefsounditem.h.

void DlgPrefSoundItem::loadPath ( const SoundManagerConfig config) [slot]

Slot called to load the respective AudioPath from a SoundManagerConfig object.

Note:
If there are multiple AudioPaths matching this instance's type and index (if applicable), then only the first one is used. A more advanced preferences pane may one day allow multiples.

Definition at line 129 of file dlgprefsounditem.cpp.

Here is the call graph for this function:

void DlgPrefSoundItem::refreshDevices ( const QList< SoundDevice * > &  devices) [slot]

Slot called when the parent preferences pane updates its list of sound devices, to update the item widget's list of devices to display.

Definition at line 62 of file dlgprefsounditem.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void DlgPrefSoundItem::reload ( ) [slot]

Slot called to reload Item with previously saved settings.

Definition at line 202 of file dlgprefsounditem.cpp.

void DlgPrefSoundItem::save ( ) [slot]

Slot called to tell the Item to save its selections for later use.

Definition at line 194 of file dlgprefsounditem.cpp.

void DlgPrefSoundItem::settingChanged ( ) [signal]

Here is the caller graph for this function:

AudioPathType DlgPrefSoundItem::type ( ) const [inline]

Definition at line 38 of file dlgprefsounditem.h.

void DlgPrefSoundItem::writePath ( SoundManagerConfig config) const [slot]

Slot called when the underlying DlgPrefSound wants this Item to record its respective path with the SoundManagerConfig instance at config.

Definition at line 165 of file dlgprefsounditem.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines