#include <llvoiceremotectrl.h>
Public Member Functions | |
LLVoiceRemoteCtrl (const LLString &name) | |
virtual | ~LLVoiceRemoteCtrl () |
BOOL | postBuild () |
void | draw () |
Static Public Member Functions | |
static void | onBtnLock (void *user_data) |
static void | onBtnTalkHeld (void *user_data) |
static void | onBtnTalkReleased (void *user_data) |
static void | onBtnTalkClicked (void *user_data) |
static void | onClickSpeakers (void *user_data) |
static void | onClickPopupBtn (void *user_data) |
static void | onClickVoiceChannel (void *user_data) |
static void | onClickEndCall (void *user_data) |
Protected Attributes | |
LLButton * | mTalkBtn |
LLButton * | mTalkLockBtn |
LLButton * | mSpeakersBtn |
Definition at line 39 of file llvoiceremotectrl.h.
LLVoiceRemoteCtrl::LLVoiceRemoteCtrl | ( | const LLString & | name | ) |
Definition at line 48 of file llvoiceremotectrl.cpp.
References LLUICtrlFactory::buildPanel(), LLControlGroup::getBOOL(), LLSingleton< LLUICtrlFactory >::getInstance(), gSavedSettings, LLView::setFocusRoot(), LLUICtrl::setIsChrome(), and TRUE.
LLVoiceRemoteCtrl::~LLVoiceRemoteCtrl | ( | ) | [virtual] |
Definition at line 64 of file llvoiceremotectrl.cpp.
BOOL LLVoiceRemoteCtrl::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 68 of file llvoiceremotectrl.cpp.
References LLPanel::childSetAction(), mSpeakersBtn, mTalkBtn, mTalkLockBtn, onBtnLock(), onBtnTalkClicked(), onBtnTalkHeld(), onBtnTalkReleased(), onClickEndCall(), onClickPopupBtn(), onClickSpeakers(), onClickVoiceChannel(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLButton::setHeldDownCallback(), LLButton::setMouseUpCallback(), LLTextBox::setUseEllipses(), and TRUE.
void LLVoiceRemoteCtrl::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 98 of file llvoiceremotectrl.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetToolTip(), LLPanel::childSetValue(), LLPanel::draw(), FALSE, gAgent, LLControlGroup::getBOOL(), LLVoiceClient::getCurrentPower(), LLVoiceChannel::getCurrentVoiceChannel(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLAgent::getID(), LLSingleton< LLVoiceChannelProximal >::getInstance(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLVoiceClient::getIsSpeaking(), LLFloater::getShortTitle(), LLVoiceChannel::getState(), LLButton::getToggleState(), LLPanel::getUIString(), LLVoiceClient::getUserPTTState(), LLColor4::green, gSavedSettings, gVoiceClient, LLView::hasMouseCapture(), LLUIFactory< T, LLUISingleton< T, VISIBILITY_POLICY >, VISIBILITY_POLICY >::instanceVisible(), LLVoiceChannel::isActive(), lerp(), llfloor(), llmin(), mSpeakersBtn, mTalkBtn, mTalkLockBtn, LLVoiceClient::OVERDRIVEN_POWER_LEVEL, LLColor4::red, S32, LLView::setEnabled(), LLIconCtrl::setImage(), LLButton::setImageColor(), LLButton::setImageOverlay(), LLButton::setToggleState(), LLVoiceChannel::STATE_ERROR, LLVoiceClient::voiceEnabled(), LLColor4::white, and LLColor4::yellow.
void LLVoiceRemoteCtrl::onBtnLock | ( | void * | user_data | ) | [static] |
Definition at line 245 of file llvoiceremotectrl.cpp.
References LLButton::getToggleState(), gSavedSettings, mTalkLockBtn, and LLControlGroup::setBOOL().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onBtnTalkHeld | ( | void * | user_data | ) | [static] |
Definition at line 227 of file llvoiceremotectrl.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, gVoiceClient, and LLVoiceClient::setUserPTTState().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onBtnTalkReleased | ( | void * | user_data | ) | [static] |
Definition at line 236 of file llvoiceremotectrl.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, gVoiceClient, and LLVoiceClient::setUserPTTState().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onBtnTalkClicked | ( | void * | user_data | ) | [static] |
Definition at line 218 of file llvoiceremotectrl.cpp.
References LLControlGroup::getBOOL(), gSavedSettings, gVoiceClient, and LLVoiceClient::toggleUserPTTState().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onClickSpeakers | ( | void * | user_data | ) | [static] |
Definition at line 281 of file llvoiceremotectrl.cpp.
References LLUIFactory< T, LLUISingleton< T, VISIBILITY_POLICY >, VISIBILITY_POLICY >::toggleInstance().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onClickPopupBtn | ( | void * | user_data | ) | [static] |
Definition at line 253 of file llvoiceremotectrl.cpp.
References LLUICtrlFactory::buildPanel(), LLView::deleteAllChildren(), LLControlGroup::getBOOL(), LLSingleton< LLUICtrlFactory >::getInstance(), gOverlayBar, gSavedSettings, and LLOverlayBar::layoutButtons().
Referenced by postBuild().
void LLVoiceRemoteCtrl::onClickVoiceChannel | ( | void * | user_data | ) | [static] |
Definition at line 287 of file llvoiceremotectrl.cpp.
Referenced by postBuild().
void LLVoiceRemoteCtrl::onClickEndCall | ( | void * | user_data | ) | [static] |
Definition at line 270 of file llvoiceremotectrl.cpp.
References LLVoiceChannel::deactivate(), LLVoiceChannel::getCurrentVoiceChannel(), and LLSingleton< LLVoiceChannelProximal >::getInstance().
Referenced by postBuild().
LLButton* LLVoiceRemoteCtrl::mTalkBtn [protected] |
LLButton* LLVoiceRemoteCtrl::mTalkLockBtn [protected] |
Definition at line 59 of file llvoiceremotectrl.h.
Referenced by draw(), onBtnLock(), and postBuild().
LLButton* LLVoiceRemoteCtrl::mSpeakersBtn [protected] |