summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llcallfloater.cpp20
-rw-r--r--indra/newview/llcallfloater.h10
-rw-r--r--indra/newview/skins/default/xui/en/floater_voice_controls.xml3
3 files changed, 32 insertions, 1 deletions
diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp
index c6d54995bf..eaa048f5aa 100644
--- a/indra/newview/llcallfloater.cpp
+++ b/indra/newview/llcallfloater.cpp
@@ -35,15 +35,35 @@
#include "llcallfloater.h"
+#include "llavatarlist.h"
+#include "llparticipantlist.h"
+#include "llspeakers.h"
+
LLCallFloater::LLCallFloater()
: LLFloater(LLSD())
+, mSpeakerManager(NULL)
+, mPaticipants(NULL)
+, mAvatarList(NULL)
{
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_voice_controls.xml", NULL);
}
LLCallFloater::~LLCallFloater()
{
+ delete mPaticipants;
+ mPaticipants = NULL;
+}
+
+// virtual
+BOOL LLCallFloater::postBuild()
+{
+ LLFloater::postBuild();
+ mAvatarList = getChild<LLAvatarList>("speakers_list");
+
+ mSpeakerManager = LLLocalSpeakerMgr::getInstance();
+ mPaticipants = new LLParticipantList(mSpeakerManager, mAvatarList);
+ return TRUE;
}
//EOF
diff --git a/indra/newview/llcallfloater.h b/indra/newview/llcallfloater.h
index dde4085d00..3e672eec79 100644
--- a/indra/newview/llcallfloater.h
+++ b/indra/newview/llcallfloater.h
@@ -36,6 +36,10 @@
#include "llfloater.h"
+class LLAvatarList;
+class LLParticipantList;
+class LLSpeakerMgr;
+
/**
* The Voice Control Panel is an ambient window summoned by clicking the flyout chevron on the Speak button.
* It can be torn-off and freely positioned onscreen.
@@ -53,7 +57,13 @@ public:
LLCallFloater();
~LLCallFloater();
+ /*virtual*/ BOOL postBuild();
+
+private:
+ LLSpeakerMgr* mSpeakerManager;
+ LLParticipantList* mPaticipants;
+ LLAvatarList* mAvatarList;
};
diff --git a/indra/newview/skins/default/xui/en/floater_voice_controls.xml b/indra/newview/skins/default/xui/en/floater_voice_controls.xml
index 705b4276e3..82b4372a4b 100644
--- a/indra/newview/skins/default/xui/en/floater_voice_controls.xml
+++ b/indra/newview/skins/default/xui/en/floater_voice_controls.xml
@@ -87,9 +87,10 @@
<avatar_list
follows="all"
height="197"
+ ignore_online_status="true"
layout="topleft"
left="0"
multi_select="true"
- name="avatar_list"
+ name="speakers_list"
width="282" />
</floater>