summaryrefslogtreecommitdiff
path: root/indra/newview/llcallfloater.h
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-04-28 03:33:15 +0100
committerAimee Linden <aimee@lindenlab.com>2010-04-28 03:33:15 +0100
commitcacfa18643092547e7665b36d482ad9c8c5dfc54 (patch)
tree49c19b54135bfd678dfda67dbee9a572888ba866 /indra/newview/llcallfloater.h
parentda54c180a0e5624968431c7ee97a6c193ea8cb35 (diff)
Persist Voice Font selection.
Added 'VoiceFontDefault' saved setting. Implemented LLVoiceClientFontsObserver to update the UI when the voice font list is received. Renamed LLVoiceClientParticipantObserver::onChange() to onParticipantsChanged to avoid ambiguity and make the code more readable. Made the Voice Font combo in the VCP auto resize to make best use of the available space when the 'Leave Call button is not visible.
Diffstat (limited to 'indra/newview/llcallfloater.h')
-rw-r--r--indra/newview/llcallfloater.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llcallfloater.h b/indra/newview/llcallfloater.h
index 9a13d853c9..160eff312c 100644
--- a/indra/newview/llcallfloater.h
+++ b/indra/newview/llcallfloater.h
@@ -58,7 +58,9 @@ class LLSpeakersDelayActionsStorage;
* When the Resident is engaged in any chat except Nearby Chat, the Voice Control Panel
* also provides a 'Leave Call' button to allow the Resident to leave that voice channel.
*/
-class LLCallFloater : public LLTransientDockableFloater, LLVoiceClientParticipantObserver
+class LLCallFloater : public LLTransientDockableFloater,
+ LLVoiceClientParticipantObserver,
+ LLVoiceClientFontsObserver
{
public:
@@ -76,7 +78,10 @@ public:
*
* Refreshes list to display participants not in voice as disabled.
*/
- /*virtual*/ void onChange();
+ /*virtual*/ void onParticipantsChanged();
+
+ /// Called by LLVoiceClient::notifyVoiceFontObservers when voice font list is changed.
+ /*virtual*/ void onVoiceFontsChanged();
static void sOnCurrentChannelChanged(const LLUUID& session_id);
@@ -103,7 +108,6 @@ private:
void leaveCall();
static void commitVoiceFont(LLUICtrl*,void* userdata);
- void updateVoiceFont();
/**
* Updates mSpeakerManager and list according to current Voice Channel