PageRenderTime 504ms CodeModel.GetById 131ms app.highlight 3ms RepoModel.GetById 148ms app.codeStats 1ms

/indra/newview/llfloatervoiceeffect.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 72 lines | 32 code | 12 blank | 28 comment | 0 complexity | 2e01fc6600f979aa5580dbc5fc17ac9d MD5 | raw file
 1/** 
 2 * @file llfloatervoiceeffect.h
 3 * @author Aimee
 4 * @brief Selection and preview of 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_LLFLOATERVOICEEFFECT_H
29#define LL_LLFLOATERVOICEEFFECT_H
30
31#include "llfloater.h"
32#include "llvoiceclient.h"
33
34class LLButton;
35class LLScrollListCtrl;
36
37class LLFloaterVoiceEffect
38	: public LLFloater
39	, public LLVoiceEffectObserver
40{
41public:
42	LOG_CLASS(LLFloaterVoiceEffect);
43
44	LLFloaterVoiceEffect(const LLSD& key);
45	virtual ~LLFloaterVoiceEffect();
46
47	virtual BOOL postBuild();
48	virtual void onClose(bool app_quitting);
49
50private:
51	enum ColumnIndex
52	{
53		NAME_COLUMN = 0,
54		DATE_COLUMN = 1,
55	};
56
57	void refreshEffectList();
58	void updateControls();
59
60	/// Called by voice effect provider when voice effect list is changed.
61	virtual void onVoiceEffectChanged(bool effect_list_updated);
62
63	void onClickRecord();
64	void onClickPlay();
65	void onClickStop();
66//	void onClickActivate();
67
68	LLUUID mSelectedID;
69	LLScrollListCtrl* mVoiceEffectList;
70};
71
72#endif