#include <llfloatervoicedevicesettings.h>
Public Member Functions | |
LLPanelVoiceDeviceSettings () | |
~LLPanelVoiceDeviceSettings () | |
void | draw () |
BOOL | postBuild () |
void | apply () |
void | cancel () |
void | refresh () |
void | onOpen () |
void | onClose (bool app_quitting) |
Static Protected Member Functions | |
static void | onCommitInputDevice (LLUICtrl *ctrl, void *user_data) |
static void | onCommitOutputDevice (LLUICtrl *ctrl, void *user_data) |
Protected Attributes | |
F32 | mMicVolume |
std::string | mInputDevice |
std::string | mOutputDevice |
class LLComboBox * | mCtrlInputDevices |
class LLComboBox * | mCtrlOutputDevices |
BOOL | mDevicesUpdated |
Definition at line 40 of file llfloatervoicedevicesettings.h.
LLPanelVoiceDeviceSettings::LLPanelVoiceDeviceSettings | ( | ) |
Definition at line 53 of file llfloatervoicedevicesettings.cpp.
References FALSE, LLControlGroup::getF32(), LLControlGroup::getString(), gSavedSettings, mCtrlInputDevices, mCtrlOutputDevices, mDevicesUpdated, mInputDevice, mMicVolume, mOutputDevice, and NULL.
LLPanelVoiceDeviceSettings::~LLPanelVoiceDeviceSettings | ( | ) |
Definition at line 69 of file llfloatervoicedevicesettings.cpp.
void LLPanelVoiceDeviceSettings::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 85 of file llfloatervoicedevicesettings.cpp.
References LLPanel::childSetVisible(), LLPanel::draw(), FALSE, LLControlGroup::getColor4(), LLView::getRect(), gl_rect_2d(), LLColor4::grey, gSavedSettings, gVoiceClient, LLVoiceClient::inTuningMode(), llfloor(), llformat(), llmin(), LLVoiceClient::OVERDRIVEN_POWER_LEVEL, S32, TRUE, and LLVoiceClient::tuningGetEnergy().
BOOL LLPanelVoiceDeviceSettings::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 73 of file llfloatervoicedevicesettings.cpp.
References LLPanel::childSetCommitCallback(), mMicVolume, onCommitInputDevice(), onCommitOutputDevice(), LLSlider::setValue(), and TRUE.
void LLPanelVoiceDeviceSettings::apply | ( | ) |
Definition at line 123 of file llfloatervoicedevicesettings.cpp.
References LLComboBox::getSimple(), gSavedSettings, mCtrlInputDevices, mCtrlOutputDevices, mMicVolume, LLControlGroup::setF32(), and LLControlGroup::setString().
Referenced by LLFloaterVoiceDeviceSettings::apply().
void LLPanelVoiceDeviceSettings::cancel | ( | ) |
Definition at line 142 of file llfloatervoicedevicesettings.cpp.
References gSavedSettings, mCtrlInputDevices, mCtrlOutputDevices, mInputDevice, mOutputDevice, LLComboBox::setSimple(), and LLControlGroup::setString().
Referenced by LLFloaterVoiceDeviceSettings::cancel().
void LLPanelVoiceDeviceSettings::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 154 of file llfloatervoicedevicesettings.cpp.
References LLComboBox::add(), ADD_BOTTOM, LLSD::asReal(), LLVoiceClient::deviceSettingsAvailable(), LLVoiceClient::getCaptureDevices(), LLVoiceClient::getRenderDevices(), LLPanel::getString(), LLSlider::getValue(), gVoiceClient, mCtrlInputDevices, mCtrlOutputDevices, mDevicesUpdated, mInputDevice, mMicVolume, mOutputDevice, LLComboBox::removeall(), LLComboBox::setSimple(), TRUE, and LLVoiceClient::tuningSetMicVolume().
Referenced by LLFloaterVoiceDeviceSettings::draw().
void LLPanelVoiceDeviceSettings::onOpen | ( | ) |
Definition at line 226 of file llfloatervoicedevicesettings.cpp.
References FALSE, LLControlGroup::getF32(), LLControlGroup::getString(), gSavedSettings, gVoiceClient, mDevicesUpdated, mInputDevice, mMicVolume, mOutputDevice, LLVoiceClient::refreshDeviceLists(), LLVoiceChannel::suspend(), and LLVoiceClient::tuningStart().
Referenced by LLFloaterVoiceDeviceSettings::onOpen().
void LLPanelVoiceDeviceSettings::onClose | ( | bool | app_quitting | ) |
Definition at line 241 of file llfloatervoicedevicesettings.cpp.
References gVoiceClient, LLVoiceChannel::resume(), and LLVoiceClient::tuningStop().
Referenced by LLFloaterVoiceDeviceSettings::onClose().
void LLPanelVoiceDeviceSettings::onCommitInputDevice | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static, protected] |
Definition at line 248 of file llfloatervoicedevicesettings.cpp.
References LLSD::asString(), LLUICtrl::getValue(), gSavedSettings, and LLControlGroup::setString().
Referenced by postBuild().
void LLPanelVoiceDeviceSettings::onCommitOutputDevice | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static, protected] |
Definition at line 254 of file llfloatervoicedevicesettings.cpp.
References LLSD::asString(), LLUICtrl::getValue(), gSavedSettings, and LLControlGroup::setString().
Referenced by postBuild().
F32 LLPanelVoiceDeviceSettings::mMicVolume [protected] |
Definition at line 58 of file llfloatervoicedevicesettings.h.
Referenced by apply(), LLPanelVoiceDeviceSettings(), onOpen(), postBuild(), and refresh().
std::string LLPanelVoiceDeviceSettings::mInputDevice [protected] |
Definition at line 59 of file llfloatervoicedevicesettings.h.
Referenced by cancel(), LLPanelVoiceDeviceSettings(), onOpen(), and refresh().
std::string LLPanelVoiceDeviceSettings::mOutputDevice [protected] |
Definition at line 60 of file llfloatervoicedevicesettings.h.
Referenced by cancel(), LLPanelVoiceDeviceSettings(), onOpen(), and refresh().
class LLComboBox* LLPanelVoiceDeviceSettings::mCtrlInputDevices [protected] |
Definition at line 61 of file llfloatervoicedevicesettings.h.
Referenced by apply(), cancel(), LLPanelVoiceDeviceSettings(), and refresh().
class LLComboBox* LLPanelVoiceDeviceSettings::mCtrlOutputDevices [protected] |
Definition at line 62 of file llfloatervoicedevicesettings.h.
Referenced by apply(), cancel(), LLPanelVoiceDeviceSettings(), and refresh().
BOOL LLPanelVoiceDeviceSettings::mDevicesUpdated [protected] |
Definition at line 63 of file llfloatervoicedevicesettings.h.
Referenced by LLPanelVoiceDeviceSettings(), onOpen(), and refresh().