PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

/indra/newview/llpanelvoicedevicesettings.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 31 code | 10 blank | 26 comment | 0 complexity | 8b65e170977604caee831d7dc595a838 MD5 | raw file
 1/** 
 2 * @file llpanelvoicedevicesettings.h
 3 * @author Richard Nelson
 4 * @brief Voice communication set-up wizard
 5 *
 6 * $LicenseInfo:firstyear=2001&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_LLPANELVOICEDEVICESETTINGS_H
29#define LL_LLPANELVOICEDEVICESETTINGS_H
30
31#include "llpanel.h"
32
33class LLPanelVoiceDeviceSettings : public LLPanel
34{
35public:
36	LLPanelVoiceDeviceSettings();
37	~LLPanelVoiceDeviceSettings();
38
39	/*virtual*/ void draw();
40	/*virtual*/ BOOL postBuild();
41	void apply();
42	void cancel();
43	void refresh();
44	void initialize();
45	void cleanup();
46
47	/*virtual*/ void handleVisibilityChange ( BOOL new_visibility );
48
49	void setUseTuningMode(bool use) { mUseTuningMode = use; };
50	
51protected:
52	std::string getLocalizedDeviceName(const std::string& en_dev_name);
53
54	void onCommitInputDevice();
55	void onCommitOutputDevice();
56
57	F32 mMicVolume;
58	std::string mInputDevice;
59	std::string mOutputDevice;
60	class LLComboBox		*mCtrlInputDevices;
61	class LLComboBox		*mCtrlOutputDevices;
62	BOOL mDevicesUpdated;
63	bool mUseTuningMode;
64	std::map<std::string, std::string> mLocalizedDeviceNames;
65};
66
67#endif // LL_LLPANELVOICEDEVICESETTINGS_H