summaryrefslogtreecommitdiff
path: root/indra/newview/llcallfloater.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2009-11-30 11:43:05 +0200
committerMike Antipov <mantipov@productengine.com>2009-11-30 11:43:05 +0200
commit651dfe1f6902fe221bcc0306365e4555c118b15b (patch)
treed3211358ce6fcae9e33175a5fa51b8f3c2846f37 /indra/newview/llcallfloater.cpp
parentc83aa5ba6af31a46eaf2b605e469feeb8bc26871 (diff)
Work on major sub-task EXT-2790 (Complete Voice Control Panel (floater) started by Lynx (LLVoiceControlPanel))
-- Added initial processing of titles for different calls --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llcallfloater.cpp')
-rw-r--r--indra/newview/llcallfloater.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp
index b41f962ffa..46432a4953 100644
--- a/indra/newview/llcallfloater.cpp
+++ b/indra/newview/llcallfloater.cpp
@@ -119,6 +119,7 @@ void LLCallFloater::updateSession()
lldebugs << "Set DEFAULT speaker manager" << llendl;
}
+ updateTitle();
refreshPartisipantList();
}
@@ -135,4 +136,20 @@ void LLCallFloater::onCurrentChannelChanged(const LLUUID& /*session_id*/)
{
updateSession();
}
+
+void LLCallFloater::updateTitle()
+{
+ LLVoiceChannel* voice_channel = LLVoiceChannel::getCurrentVoiceChannel();
+ if (NULL == voice_channel) return;
+
+ std::string title = voice_channel->getSessionName();
+
+ if (LLLocalSpeakerMgr::getInstance() == mSpeakerManager)
+ {
+ title = getString("title_nearby");
+ }
+
+ // *TODO: mantipov: update code to use title from xml for other chat types
+ setTitle(title);
+}
//EOF