Work on major sub-task EXT-2790 (Complete Voice Control Panel (floater) started by Lynx (LLVoiceControlPanel))
-- disable context menu for Active Speakers in Voice Control Panel --HG-- branch : product-enginemeow-7.2.2
parent
6912ada083
commit
7079deaefd
|
|
@ -63,7 +63,7 @@ BOOL LLCallFloater::postBuild()
|
|||
mAvatarList = getChild<LLAvatarList>("speakers_list");
|
||||
|
||||
mSpeakerManager = LLLocalSpeakerMgr::getInstance();
|
||||
mPaticipants = new LLParticipantList(mSpeakerManager, mAvatarList);
|
||||
mPaticipants = new LLParticipantList(mSpeakerManager, mAvatarList, false);
|
||||
|
||||
LLView *anchor_panel = LLBottomTray::getInstance()->getChild<LLView>("speak_panel");
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
#if LL_MSVC
|
||||
#pragma warning (disable : 4355) // 'this' used in initializer list: yes, intentionally
|
||||
#endif
|
||||
LLParticipantList::LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* avatar_list):
|
||||
LLParticipantList::LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* avatar_list, bool use_context_menu/* = true*/):
|
||||
mSpeakerMgr(data_source),
|
||||
mAvatarList(avatar_list),
|
||||
mSortOrder(E_SORT_BY_NAME)
|
||||
|
|
@ -68,8 +68,11 @@ LLParticipantList::LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* av
|
|||
// Set onAvatarListDoubleClicked as default on_return action.
|
||||
mAvatarList->setReturnCallback(boost::bind(&LLParticipantList::onAvatarListDoubleClicked, this, mAvatarList));
|
||||
|
||||
mParticipantListMenu = new LLParticipantListMenu(*this);
|
||||
mAvatarList->setContextMenu(mParticipantListMenu);
|
||||
if (use_context_menu)
|
||||
{
|
||||
mParticipantListMenu = new LLParticipantListMenu(*this);
|
||||
mAvatarList->setContextMenu(mParticipantListMenu);
|
||||
}
|
||||
|
||||
//Lets fill avatarList with existing speakers
|
||||
LLAvatarList::uuid_vector_t& group_members = mAvatarList->getIDs();
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class LLParticipantList
|
|||
{
|
||||
LOG_CLASS(LLParticipantList);
|
||||
public:
|
||||
LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* avatar_list);
|
||||
LLParticipantList(LLSpeakerMgr* data_source, LLAvatarList* avatar_list, bool use_context_menu = true);
|
||||
~LLParticipantList();
|
||||
void setSpeakingIndicatorsVisible(BOOL visible);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue