LLPrefsVoiceLogic Class Reference

#include <llprefsvoice.h>

Collaboration diagram for LLPrefsVoiceLogic:

Collaboration graph
[legend]
List of all members.

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)
static void onClickLaunchWizard (void *user_data)

Protected Attributes

BOOL mEnableVoice
BOOL mVoiceCallsFriendsOnly
BOOL mEnablePushToTalk
std::string mModifier
BOOL mPushToTalkToggle
S32 mEarLocation
LLCtrlSelectionInterfacemCtrlEarLocation
BOOL mEatNextSetKeyClick
LLPanelmPanel

Detailed Description

Definition at line 39 of file llprefsvoice.h.


Constructor & Destructor Documentation

LLPrefsVoiceLogic::LLPrefsVoiceLogic ( LLPanel panelp  ) 

Definition at line 85 of file llprefsvoice.cpp.

References init().

virtual LLPrefsVoiceLogic::~LLPrefsVoiceLogic (  )  [inline, virtual]

Definition at line 43 of file llprefsvoice.h.


Member Function Documentation

void LLPrefsVoiceLogic::apply (  ) 

Definition at line 140 of file llprefsvoice.cpp.

Referenced by LLPrefsVoice::apply().

void LLPrefsVoiceLogic::cancel (  ) 

Definition at line 130 of file llprefsvoice.cpp.

References gSavedSettings, mEarLocation, mEnablePushToTalk, mEnableVoice, mModifier, mPushToTalkToggle, mVoiceCallsFriendsOnly, LLControlGroup::setBOOL(), LLControlGroup::setS32(), and LLControlGroup::setString().

Referenced by LLPrefsVoice::cancel().

void LLPrefsVoiceLogic::init (  )  [virtual]

Definition at line 91 of file llprefsvoice.cpp.

References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), FALSE, LLControlGroup::getBOOL(), LLControlGroup::getS32(), LLUICtrlFactory::getSelectionInterfaceByName(), LLControlGroup::getString(), gSavedSettings, mCtrlEarLocation, mEarLocation, mEatNextSetKeyClick, mEnablePushToTalk, mEnableVoice, mModifier, mPanel, mPushToTalkToggle, mVoiceCallsFriendsOnly, onClickLaunchWizard(), onClickSetKey(), onClickSetMiddleMouse(), onEarLocationCommit(), refresh(), and LLCtrlSelectionInterface::selectByValue().

Referenced by LLPrefsVoiceLogic().

void LLPrefsVoiceLogic::onClickLaunchWizard ( void user_data  )  [static, protected]

Definition at line 155 of file llprefsvoice.cpp.

References LLUIInstanceMgr< LLFloaterVoiceWizard, LLFloaterVoiceWizard >::showInstance().

Referenced by init().

void LLPrefsVoiceLogic::onClickSetKey ( void user_data  )  [static, protected]

Definition at line 161 of file llprefsvoice.cpp.

References LLModalDialog::startModal().

Referenced by init().

void LLPrefsVoiceLogic::onClickSetMiddleMouse ( void user_data  )  [static, protected]

Definition at line 178 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 145 of file llprefsvoice.cpp.

References LLSD::asInteger(), LLUICtrl::getSelectionInterface(), LLCtrlSelectionInterface::getSimpleSelectedValue(), gSavedSettings, and LLControlGroup::setS32().

Referenced by init().

void LLPrefsVoiceLogic::refresh (  ) 

Definition at line 113 of file llprefsvoice.cpp.

References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), gDisableVoice, LLControlGroup::getBOOL(), gSavedSettings, and mPanel.

Referenced by LLPrefsVoice::draw(), LLFloaterVoiceWizard::draw(), and init().

void LLPrefsVoiceLogic::setKey ( KEY  key,
MASK  mask 
)

Definition at line 185 of file llprefsvoice.cpp.

References gSavedSettings, mEatNextSetKeyClick, LLControlGroup::setString(), LLKeyboard::stringFromKey(), and TRUE.

Referenced by LLVoiceHotkeySelectDialog::handleKey().


Member Data Documentation

LLCtrlSelectionInterface* LLPrefsVoiceLogic::mCtrlEarLocation [protected]

Definition at line 66 of file llprefsvoice.h.

Referenced by init().

S32 LLPrefsVoiceLogic::mEarLocation [protected]

Definition at line 65 of file llprefsvoice.h.

Referenced by cancel(), and init().

BOOL LLPrefsVoiceLogic::mEatNextSetKeyClick [protected]

Definition at line 68 of file llprefsvoice.h.

Referenced by init(), and setKey().

BOOL LLPrefsVoiceLogic::mEnablePushToTalk [protected]

Definition at line 62 of file llprefsvoice.h.

Referenced by cancel(), and init().

BOOL LLPrefsVoiceLogic::mEnableVoice [protected]

Definition at line 60 of file llprefsvoice.h.

Referenced by cancel(), and init().

std::string LLPrefsVoiceLogic::mModifier [protected]

Definition at line 63 of file llprefsvoice.h.

Referenced by cancel(), and init().

LLPanel* LLPrefsVoiceLogic::mPanel [protected]

Definition at line 70 of file llprefsvoice.h.

Referenced by init(), and refresh().

BOOL LLPrefsVoiceLogic::mPushToTalkToggle [protected]

Definition at line 64 of file llprefsvoice.h.

Referenced by cancel(), and init().

BOOL LLPrefsVoiceLogic::mVoiceCallsFriendsOnly [protected]

Definition at line 61 of file llprefsvoice.h.

Referenced by cancel(), and init().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:39 2010 for Second Life Viewer by  doxygen 1.4.7