summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelvoiceeffect.cpp
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-05-18 14:16:25 +0100
committerAimee Linden <aimee@lindenlab.com>2010-05-18 14:16:25 +0100
commit24c55c9a689aaf7c8c961a5eb4aab5283b0fb1fa (patch)
tree688d2d0fe111c8393a69ac62ddad8422ccbdd6a6 /indra/newview/llpanelvoiceeffect.cpp
parent75f6e32f8836b008485ff65a17c2393696aa8fee (diff)
EXT-7337 WIP Implemented prototype voice font preview floater.
Diffstat (limited to 'indra/newview/llpanelvoiceeffect.cpp')
-rw-r--r--indra/newview/llpanelvoiceeffect.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llpanelvoiceeffect.cpp b/indra/newview/llpanelvoiceeffect.cpp
index c51ec91b66..6210fc7cc7 100644
--- a/indra/newview/llpanelvoiceeffect.cpp
+++ b/indra/newview/llpanelvoiceeffect.cpp
@@ -36,8 +36,8 @@
#include "llpanelvoiceeffect.h"
#include "llcombobox.h"
+#include "llfloaterreg.h"
#include "llpanel.h"
-#include "llvoicechannel.h"
#include "llvoiceclient.h"
static LLRegisterPanelClassWrapper<LLPanelVoiceEffect> t_panel_voice_effect("panel_voice_effect");
@@ -64,7 +64,6 @@ LLPanelVoiceEffect::~LLPanelVoiceEffect()
BOOL LLPanelVoiceEffect::postBuild()
{
mVoiceEffectCombo = getChild<LLComboBox>("voice_effect");
- update();
LLVoiceEffectInterface* effect_interface = LLVoiceClient::instance().getVoiceEffectInterface();
if (effect_interface)
@@ -72,6 +71,8 @@ BOOL LLPanelVoiceEffect::postBuild()
effect_interface->addObserver(this);
}
+ update();
+
return TRUE;
}
@@ -91,12 +92,13 @@ void LLPanelVoiceEffect::onCommitVoiceEffect()
LLSD value = mVoiceEffectCombo->getValue();
if (value.asInteger() == GET_VOICE_EFFECTS)
{
- LL_DEBUGS("Voice") << "GET VOICE FONTS!" << LL_ENDL;
+ // Open the voice morphing info web page
LLWeb::loadURL(getString("get_voice_effects_url"));
}
else if (value.asInteger() == PREVIEW_VOICE_EFFECTS)
{
- LL_DEBUGS("Voice") << "PREVIEW VOICE FONTS!" << LL_ENDL;
+ // Open the voice effects management floater
+ LLFloaterReg::showInstance("voice_effect");
}
else
{