PageRenderTime 398ms CodeModel.GetById 222ms app.highlight 2ms RepoModel.GetById 133ms app.codeStats 0ms

/indra/newview/llpanelvoiceeffect.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 27 code | 12 blank | 28 comment | 0 complexity | 9125d0adce2d09f59c30ba83cd1ad0da MD5 | raw file
 1/** 
 2 * @file llpanelvoiceeffect.h
 3 * @author Aimee
 4 * @brief Panel to select Voice Effects.
 5 *
 6 * $LicenseInfo:firstyear=2010&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28#ifndef LL_PANELVOICEEFFECT_H
29#define LL_PANELVOICEEFFECT_H
30
31#include "llpanel.h"
32#include "llvoiceclient.h"
33
34class LLComboBox;
35
36class LLPanelVoiceEffect
37	: public LLPanel
38	, public LLVoiceEffectObserver
39{
40public:
41	LOG_CLASS(LLPanelVoiceEffect);
42
43	LLPanelVoiceEffect();
44	virtual ~LLPanelVoiceEffect();
45
46	virtual BOOL postBuild();
47
48private:
49	void onCommitVoiceEffect();
50	void update(bool list_updated);
51
52	/// Called by voice effect provider when voice effect list is changed.
53	virtual void onVoiceEffectChanged(bool effect_list_updated);
54
55	// Fixed entries in the Voice Morph list
56	typedef enum e_voice_effect_combo_items
57	{
58		NO_VOICE_EFFECT = 0,
59		PREVIEW_VOICE_EFFECTS = 1,
60		GET_VOICE_EFFECTS = 2
61	} EVoiceEffectComboItems;
62
63	LLComboBox* mVoiceEffectCombo;
64};
65
66
67#endif //LL_PANELVOICEEFFECT_H