From ab43940f11b9690c1d3f6874241c66f200f84258 Mon Sep 17 00:00:00 2001 From: Gilbert Gonzales Date: Wed, 12 Sep 2012 15:43:05 -0700 Subject: CHUI-283: Now the speaker icon and information icon are functional. --- indra/newview/llconversationview.cpp | 72 +++++++----------------------------- indra/newview/llconversationview.h | 6 +-- 2 files changed, 17 insertions(+), 61 deletions(-) diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 1d1c774874..9fb4b4f0dc 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -31,7 +31,7 @@ #include "llconversationmodel.h" #include "llimconversation.h" #include "llimfloatercontainer.h" - +#include "llfloaterreg.h" #include "lluictrlfactory.h" #include "llavatariconctrl.h" @@ -151,6 +151,7 @@ BOOL LLConversationViewParticipant::postBuild() mInfoBtn = getChild("info_btn"); mInfoBtn->setClickedCallback(boost::bind(&LLConversationViewParticipant::onInfoBtnClick, this)); + mSpeakingIndicator = getChild("speaking_indicator"); LLFolderViewItem::postBuild(); return TRUE; @@ -168,68 +169,23 @@ void LLConversationViewParticipant::refresh() LLFolderViewItem::refresh(); } -void LLConversationViewParticipant::onInfoBtnClick() +void LLConversationViewParticipant::addToFolder(LLFolderViewFolder* folder) { - - + //Add the item to the folder (conversation) + LLFolderViewItem::addToFolder(folder); + + //Now retrieve the folder (conversation) UUID, which is the speaker session + LLConversationItem* vmi = this->getParentFolder() ? dynamic_cast(this->getParentFolder()->getViewModelItem()) : NULL; + if(vmi) + { + mSpeakingIndicator->setSpeakerId(mUUID, + vmi->getUUID()); //set the session id } - -LLButton* LLConversationViewParticipant::createProfileButton() -{ - - LLButton::Params params; - - - //