diff options
author | Oz Linden <oz@lindenlab.com> | 2011-05-11 13:47:12 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-05-11 13:47:12 -0400 |
commit | 353d2059fc33174010127863a25983b918115361 (patch) | |
tree | f2e08370b140352957b4d7757e59e0fe673f5a14 /indra/newview/llspeakbutton.cpp | |
parent | 7610c0c050a84ebdf08b8e206eb7fe5e190dedb2 (diff) | |
parent | d86eb3dd42d39e6b7647b6680100aeafe2173d36 (diff) |
merge up to latest viewer-development
Diffstat (limited to 'indra/newview/llspeakbutton.cpp')
-rw-r--r-- | indra/newview/llspeakbutton.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/indra/newview/llspeakbutton.cpp b/indra/newview/llspeakbutton.cpp index d52e0a6c86..d3e96f8dfb 100644 --- a/indra/newview/llspeakbutton.cpp +++ b/indra/newview/llspeakbutton.cpp @@ -54,26 +54,6 @@ LLSpeakButton::Params::Params() // See widgets/talk_button.xml } -void LLSpeakButton::draw() -{ - // LLVoiceClient::getInstance() is the authoritative global source of info regarding our open-mic state, we merely reflect that state. - bool openmic = LLVoiceClient::getInstance()->getUserPTTState(); - bool voiceenabled = LLVoiceClient::getInstance()->voiceEnabled(); - mSpeakBtn->setToggleState(openmic && voiceenabled); - mOutputMonitor->setIsMuted(!voiceenabled); - LLUICtrl::draw(); -} -void LLSpeakButton::setSpeakBtnEnabled(bool enabled) -{ - LLButton* speak_btn = getChild<LLButton>("speak_btn"); - speak_btn->setEnabled(enabled); -} -void LLSpeakButton::setFlyoutBtnEnabled(bool enabled) -{ - LLButton* show_btn = getChild<LLBottomtrayButton>("speak_flyout_btn"); - show_btn->setEnabled(enabled); -} - LLSpeakButton::LLSpeakButton(const Params& p) : LLUICtrl(p) , mOutputMonitor(NULL) |