LLPanelActiveSpeakers Class Reference

#include <llfloateractivespeakers.h>

Inheritance diagram for LLPanelActiveSpeakers:

Inheritance graph
[legend]
Collaboration diagram for LLPanelActiveSpeakers:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelActiveSpeakers (LLSpeakerMgr *data_source, BOOL show_text_chatters)
virtual ~LLPanelActiveSpeakers ()
BOOL postBuild ()
void refreshSpeakers ()
void setSpeaker (const LLUUID &id, const LLString &name=LLString::null, LLSpeaker::ESpeakerStatus status=LLSpeaker::STATUS_TEXT_ONLY, LLSpeaker::ESpeakerType=LLSpeaker::SPEAKER_AGENT)

Static Public Member Functions

static void onClickMuteVoice (void *user_data)
static void onClickMuteVoiceCommit (LLUICtrl *ctrl, void *user_data)
static void onClickMuteTextCommit (LLUICtrl *ctrl, void *user_data)
static void onVolumeChange (LLUICtrl *source, void *user_data)
static void onClickProfile (void *user_data)

Protected Attributes

LLScrollListCtrlmSpeakerList
LLUICtrlmMuteVoiceCtrl
LLUICtrlmMuteTextCtrl
LLTextBoxmNameText
LLButtonmProfileBtn
BOOL mShowTextChatters
LLSpeakerMgrmSpeakerMgr
LLFrameTimer mIconAnimationTimer

Detailed Description

Definition at line 180 of file llfloateractivespeakers.h.


Constructor & Destructor Documentation

LLPanelActiveSpeakers::LLPanelActiveSpeakers ( LLSpeakerMgr data_source,
BOOL  show_text_chatters 
)

Definition at line 184 of file llfloateractivespeakers.cpp.

References FALSE, and LLView::setMouseOpaque().

LLPanelActiveSpeakers::~LLPanelActiveSpeakers (  )  [virtual]

Definition at line 196 of file llfloateractivespeakers.cpp.


Member Function Documentation

void LLPanelActiveSpeakers::onClickMuteTextCommit ( LLUICtrl ctrl,
void user_data 
) [static]

Definition at line 387 of file llfloateractivespeakers.cpp.

References LLMuteList::add(), LLMute::AGENT, LLSD::asUUID(), LLSpeakerMgr::findSpeaker(), LLMute::flagTextChat, LLScrollListCtrl::getValue(), gMuteListp, LLMuteList::isMuted(), LLPointer< Type >::isNull(), mSpeakerList, mSpeakerMgr, LLMute::OBJECT, LLMuteList::remove(), and LLSpeaker::SPEAKER_AGENT.

Referenced by postBuild().

void LLPanelActiveSpeakers::onClickMuteVoice ( void user_data  )  [static]

Definition at line 416 of file llfloateractivespeakers.cpp.

References NULL, and onClickMuteVoiceCommit().

Referenced by postBuild().

void LLPanelActiveSpeakers::onClickMuteVoiceCommit ( LLUICtrl ctrl,
void user_data 
) [static]

Definition at line 422 of file llfloateractivespeakers.cpp.

References LLMuteList::add(), LLMute::AGENT, LLSD::asUUID(), LLSpeakerMgr::findSpeaker(), LLMute::flagVoiceChat, LLScrollListCtrl::getValue(), gMuteListp, LLMuteList::isMuted(), LLPointer< Type >::isNull(), mSpeakerList, mSpeakerMgr, and LLMuteList::remove().

Referenced by onClickMuteVoice(), and postBuild().

void LLPanelActiveSpeakers::onClickProfile ( void user_data  )  [static]

Definition at line 461 of file llfloateractivespeakers.cpp.

References LLSD::asUUID(), LLScrollListCtrl::getValue(), mSpeakerList, and LLFloaterAvatarInfo::showFromDirectory().

Referenced by postBuild().

void LLPanelActiveSpeakers::onVolumeChange ( LLUICtrl source,
void user_data 
) [static]

Definition at line 452 of file llfloateractivespeakers.cpp.

References LLSD::asReal(), LLSD::asUUID(), LLPanel::childGetValue(), LLScrollListCtrl::getValue(), gVoiceClient, mSpeakerList, and LLVoiceClient::setUserVolume().

Referenced by postBuild().

BOOL LLPanelActiveSpeakers::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 201 of file llfloateractivespeakers.cpp.

References LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLUICtrlFactory::getButtonByName(), LLPanel::getCtrlByNameAndType(), LLUICtrlFactory::getScrollListByName(), LLUICtrlFactory::getTextBoxByName(), mMuteTextCtrl, mMuteVoiceCtrl, mNameText, mProfileBtn, mSpeakerList, onClickMuteTextCommit(), onClickMuteVoice(), onClickMuteVoiceCommit(), onClickProfile(), onVolumeChange(), TRUE, and WIDGET_TYPE_DONTCARE.

void LLPanelActiveSpeakers::refreshSpeakers (  ) 

Definition at line 221 of file llfloateractivespeakers.cpp.

References LLScrollListCtrl::addElement(), LLSD::asUUID(), LLPanel::childSetEnabled(), LLPanel::childSetValue(), LLScrollListCtrl::clearRows(), f, LLSpeakerMgr::findSpeaker(), LLMute::flagTextChat, LLMute::flagVoiceChat, gAgent, LLCacheName::getDefaultName(), LLAgent::getID(), LLScrollListCtrl::getScrollInterface(), LLCtrlScrollInterface::getScrollPos(), LLScrollListCtrl::getSimpleSelectedValue(), LLScrollListCtrl::getSortAscending(), LLScrollListCtrl::getSortColumnName(), LLSpeakerMgr::getSpeakerList(), LLControlGroup::getString(), LLVoiceClient::getUserVolume(), LLColor4::getValue(), gMuteListp, LLColor4::grey4, gViewerArt, gVoiceClient, LLMuteList::isLinden(), LLMuteList::isMuted(), LLUUID::isNull(), llfloor(), llformat(), llmin(), mMuteTextCtrl, mMuteVoiceCtrl, mNameText, mProfileBtn, mShowTextChatters, mSpeakerList, mSpeakerMgr, LLUUID::notNull(), LLPointer< Type >::notNull(), LLStringBase< char >::null, LLVoiceClient::OVERDRIVEN_POWER_LEVEL, S32, LLCtrlSelectionInterface::selectByValue(), LLScrollListCtrl::selectFirstItem(), LLView::setEnabled(), LLCtrlScrollInterface::setScrollPos(), LLView::setValue(), LLScrollListCtrl::sortByColumn(), LLSpeaker::SPEAKER_AGENT, LLSpeaker::STATUS_MUTED, LLSpeaker::STATUS_NOT_IN_CHANNEL, LLSpeaker::STATUS_VOICE_ACTIVE, and LLSpeakerMgr::update().

Referenced by LLFloaterIMPanel::draw(), LLFloaterChat::draw(), LLFloaterActiveSpeakers::draw(), LLFloaterActiveSpeakers::LLFloaterActiveSpeakers(), and LLFloaterIMPanel::postBuild().

void LLPanelActiveSpeakers::setSpeaker ( const LLUUID id,
const LLString name = LLString::null,
LLSpeaker::ESpeakerStatus  status = LLSpeaker::STATUS_TEXT_ONLY,
LLSpeaker::ESpeakerType  = LLSpeaker::SPEAKER_AGENT 
)

Definition at line 380 of file llfloateractivespeakers.cpp.

References mSpeakerMgr, and LLSpeakerMgr::setSpeaker().


Member Data Documentation

LLFrameTimer LLPanelActiveSpeakers::mIconAnimationTimer [protected]

Definition at line 208 of file llfloateractivespeakers.h.

LLUICtrl* LLPanelActiveSpeakers::mMuteTextCtrl [protected]

Definition at line 203 of file llfloateractivespeakers.h.

Referenced by postBuild(), and refreshSpeakers().

LLUICtrl* LLPanelActiveSpeakers::mMuteVoiceCtrl [protected]

Definition at line 202 of file llfloateractivespeakers.h.

Referenced by postBuild(), and refreshSpeakers().

LLTextBox* LLPanelActiveSpeakers::mNameText [protected]

Definition at line 204 of file llfloateractivespeakers.h.

Referenced by postBuild(), and refreshSpeakers().

LLButton* LLPanelActiveSpeakers::mProfileBtn [protected]

Definition at line 205 of file llfloateractivespeakers.h.

Referenced by postBuild(), and refreshSpeakers().

BOOL LLPanelActiveSpeakers::mShowTextChatters [protected]

Definition at line 206 of file llfloateractivespeakers.h.

Referenced by refreshSpeakers().

LLScrollListCtrl* LLPanelActiveSpeakers::mSpeakerList [protected]

Definition at line 201 of file llfloateractivespeakers.h.

Referenced by onClickMuteTextCommit(), onClickMuteVoiceCommit(), onClickProfile(), onVolumeChange(), postBuild(), and refreshSpeakers().

LLSpeakerMgr* LLPanelActiveSpeakers::mSpeakerMgr [protected]

Definition at line 207 of file llfloateractivespeakers.h.

Referenced by onClickMuteTextCommit(), onClickMuteVoiceCommit(), refreshSpeakers(), and setSpeaker().


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