Skip to content
Snippets Groups Projects
Commit 651dfe1f authored by Mike Antipov's avatar Mike Antipov
Browse files

Work on major sub-task EXT-2790 (Complete Voice Control Panel (floater)...

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
parent c83aa5ba
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,7 @@ void LLCallFloater::updateSession() ...@@ -119,6 +119,7 @@ void LLCallFloater::updateSession()
lldebugs << "Set DEFAULT speaker manager" << llendl; lldebugs << "Set DEFAULT speaker manager" << llendl;
} }
updateTitle();
refreshPartisipantList(); refreshPartisipantList();
} }
...@@ -135,4 +136,20 @@ void LLCallFloater::onCurrentChannelChanged(const LLUUID& /*session_id*/) ...@@ -135,4 +136,20 @@ void LLCallFloater::onCurrentChannelChanged(const LLUUID& /*session_id*/)
{ {
updateSession(); 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 //EOF
...@@ -74,6 +74,7 @@ class LLCallFloater : public LLDockableFloater ...@@ -74,6 +74,7 @@ class LLCallFloater : public LLDockableFloater
*/ */
void refreshPartisipantList(); void refreshPartisipantList();
void onCurrentChannelChanged(const LLUUID& session_id); void onCurrentChannelChanged(const LLUUID& session_id);
void updateTitle();
private: private:
LLSpeakerMgr* mSpeakerManager; LLSpeakerMgr* mSpeakerManager;
......
...@@ -8,6 +8,18 @@ ...@@ -8,6 +8,18 @@
save_visibility="true" save_visibility="true"
single_instance="true" single_instance="true"
width="282"> width="282">
<string
name="title_nearby">
NEARBY VOICE
</string>
<string
name="title_group">
Group Call with [GROUP]
</string>
<string
name="title_adhoc">
Conference Call
</string>
<panel <panel
bevel_style="in" bevel_style="in"
follows="left|right|top" follows="left|right|top"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment