#include <llprefsvoice.h>
Public Member Functions | |
LLPrefsVoiceLogic (LLPanel *panelp) | |
virtual | ~LLPrefsVoiceLogic () |
virtual void | init () |
void | apply () |
void | cancel () |
void | refresh () |
void | setKey (KEY key, MASK mask) |
Static Protected Member Functions | |
static void | onClickSetKey (void *user_data) |
static void | onClickSetMiddleMouse (void *user_data) |
static void | onEarLocationCommit (LLUICtrl *ctrl, void *user_data) |
Protected Attributes | |
BOOL | mEnableVoice |
BOOL | mVoiceCallsFriendsOnly |
BOOL | mEnablePushToTalk |
std::string | mModifier |
BOOL | mPushToTalkToggle |
S32 | mEarLocation |
LLCtrlSelectionInterface * | mCtrlEarLocation |
BOOL | mEatNextSetKeyClick |
LLPanel * | mPanel |
Definition at line 39 of file llprefsvoice.h.
LLPrefsVoiceLogic::LLPrefsVoiceLogic | ( | LLPanel * | panelp | ) |
Definition at line 88 of file llprefsvoice.cpp.
References init().
virtual LLPrefsVoiceLogic::~LLPrefsVoiceLogic | ( | ) | [inline, virtual] |
Definition at line 43 of file llprefsvoice.h.
void LLPrefsVoiceLogic::init | ( | void | ) | [virtual] |
Definition at line 94 of file llprefsvoice.cpp.
References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), FALSE, LLControlGroup::getBOOL(), LLView::getChild(), LLControlGroup::getS32(), LLUICtrl::getSelectionInterface(), LLControlGroup::getString(), gSavedSettings, mCtrlEarLocation, mEarLocation, mEatNextSetKeyClick, mEnableVoice, mModifier, mPanel, mPushToTalkToggle, mVoiceCallsFriendsOnly, onClickSetKey(), onClickSetMiddleMouse(), onEarLocationCommit(), and refresh().
Referenced by LLPrefsVoiceLogic().
void LLPrefsVoiceLogic::apply | ( | ) |
Definition at line 148 of file llprefsvoice.cpp.
Referenced by LLPrefsVoice::apply().
void LLPrefsVoiceLogic::cancel | ( | ) |
Definition at line 138 of file llprefsvoice.cpp.
References gSavedSettings, mEarLocation, mEnableVoice, mModifier, mPushToTalkToggle, mVoiceCallsFriendsOnly, LLControlGroup::setBOOL(), LLControlGroup::setS32(), and LLControlGroup::setString().
Referenced by LLPrefsVoice::cancel().
void LLPrefsVoiceLogic::refresh | ( | ) |
Definition at line 119 of file llprefsvoice.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), LLControlGroup::getBOOL(), gSavedSettings, and mPanel.
Referenced by LLPrefsVoice::draw(), and init().
Definition at line 187 of file llprefsvoice.cpp.
References gSavedSettings, mEatNextSetKeyClick, LLControlGroup::setString(), LLKeyboard::stringFromKey(), and TRUE.
Referenced by LLVoiceHotkeySelectDialog::handleKeyHere().
void LLPrefsVoiceLogic::onClickSetKey | ( | void * | user_data | ) | [static, protected] |
Definition at line 163 of file llprefsvoice.cpp.
References LLModalDialog::startModal().
Referenced by init().
void LLPrefsVoiceLogic::onClickSetMiddleMouse | ( | void * | user_data | ) | [static, protected] |
Definition at line 180 of file llprefsvoice.cpp.
References gSavedSettings, and LLControlGroup::setString().
Referenced by init().
void LLPrefsVoiceLogic::onEarLocationCommit | ( | LLUICtrl * | ctrl, | |
void * | user_data | |||
) | [static, protected] |
Definition at line 153 of file llprefsvoice.cpp.
References LLSD::asInteger(), LLCtrlSelectionInterface::getSelectedValue(), LLUICtrl::getSelectionInterface(), gSavedSettings, and LLControlGroup::setS32().
Referenced by init().
BOOL LLPrefsVoiceLogic::mEnableVoice [protected] |
BOOL LLPrefsVoiceLogic::mVoiceCallsFriendsOnly [protected] |
BOOL LLPrefsVoiceLogic::mEnablePushToTalk [protected] |
Definition at line 61 of file llprefsvoice.h.
std::string LLPrefsVoiceLogic::mModifier [protected] |
BOOL LLPrefsVoiceLogic::mPushToTalkToggle [protected] |
S32 LLPrefsVoiceLogic::mEarLocation [protected] |
BOOL LLPrefsVoiceLogic::mEatNextSetKeyClick [protected] |
LLPanel* LLPrefsVoiceLogic::mPanel [protected] |