aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatervoicedevicesettings.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloatervoicedevicesettings.h
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llfloatervoicedevicesettings.h')
-rw-r--r--linden/indra/newview/llfloatervoicedevicesettings.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatervoicedevicesettings.h b/linden/indra/newview/llfloatervoicedevicesettings.h
new file mode 100644
index 0000000..eba5c3c
--- /dev/null
+++ b/linden/indra/newview/llfloatervoicedevicesettings.h
@@ -0,0 +1,82 @@
1/**
2 * @file llpanelvoicedevicesettings.h
3 * @author Richard Nelson
4 * @brief Voice communication set-up wizard
5 *
6 * $LicenseInfo:firstyear=2001&license=viewergpl$
7 *
8 * Copyright (c) 2001-2008, Linden Research, Inc.
9 *
10 * Second Life Viewer Source Code
11 * The source code in this file ("Source Code") is provided by Linden Lab
12 * to you under the terms of the GNU General Public License, version 2.0
13 * ("GPL"), unless you have obtained a separate licensing agreement
14 * ("Other License"), formally executed by you and Linden Lab. Terms of
15 * the GPL can be found in doc/GPL-license.txt in this distribution, or
16 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
17 *
18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 *
23 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above,
25 * and agree to abide by those obligations.
26 *
27 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
28 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
29 * COMPLETENESS OR PERFORMANCE.
30 * $/LicenseInfo$
31 */
32
33#ifndef LL_LLFLOATERVOICEDEVICESETTINGS_H
34#define LL_LLFLOATERVOICEDEVICESETTINGS_H
35
36#include "llfloater.h"
37
38class LLPrefsVoiceLogic;
39
40class LLPanelVoiceDeviceSettings : public LLPanel
41{
42public:
43 LLPanelVoiceDeviceSettings();
44 ~LLPanelVoiceDeviceSettings();
45
46 /*virtual*/ void draw();
47 /*virtual*/ BOOL postBuild();
48 void apply();
49 void cancel();
50 void refresh();
51 void onOpen();
52 void onClose(bool app_quitting);
53
54protected:
55 static void onCommitInputDevice(LLUICtrl* ctrl, void* user_data);
56 static void onCommitOutputDevice(LLUICtrl* ctrl, void* user_data);
57
58 F32 mMicVolume;
59 std::string mInputDevice;
60 std::string mOutputDevice;
61 class LLComboBox *mCtrlInputDevices;
62 class LLComboBox *mCtrlOutputDevices;
63 BOOL mDevicesUpdated;
64};
65
66class LLFloaterVoiceDeviceSettings : public LLFloater, public LLFloaterSingleton<LLFloaterVoiceDeviceSettings>
67{
68public:
69 LLFloaterVoiceDeviceSettings(const LLSD& seed);
70 /*virtual*/ void onOpen();
71 /*virtual*/ void onClose(bool app_quitting);
72 /*virtual*/ void draw();
73 void apply();
74 void cancel();
75
76protected:
77 static void* createPanelVoiceDeviceSettings(void* user_data);
78
79 LLPanelVoiceDeviceSettings* mDevicePanel;
80};
81
82#endif // LL_LLFLOATERVOICEDEVICESETTINGS_H