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