aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsvoice.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/llprefsvoice.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/llprefsvoice.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsvoice.h b/linden/indra/newview/llprefsvoice.h
new file mode 100644
index 0000000..e6b861d
--- /dev/null
+++ b/linden/indra/newview/llprefsvoice.h
@@ -0,0 +1,87 @@
1/**
2 * @file llprefsvoice.h
3 * @brief Voice chat preferences panel
4 *
5 * Copyright (c) 2003-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#ifndef LLPREFSVOICE_H
30#define LLPREFSVOICE_H
31
32#include "llpanel.h"
33
34class LLFloaterDeviceSettings;
35
36class LLPrefsVoiceLogic
37{
38public:
39 LLPrefsVoiceLogic(LLPanel* panelp);
40 virtual ~LLPrefsVoiceLogic(){};
41
42 virtual void init();
43
44 void apply();
45 void cancel();
46 void refresh();
47
48 void setKey(KEY key, MASK mask);
49
50protected:
51
52 static void onClickSetKey(void* user_data);
53 static void onClickSetMiddleMouse(void* user_data);
54 static void onEarLocationCommit(LLUICtrl* ctrl, void* user_data);
55 static void onClickLaunchWizard(void* user_data);
56
57 BOOL mEnableVoice;
58 BOOL mVoiceCallsFriendsOnly;
59 BOOL mEnablePushToTalk;
60 std::string mModifier;
61 BOOL mPushToTalkToggle;
62 S32 mEarLocation;
63 LLCtrlSelectionInterface *mCtrlEarLocation;
64
65 BOOL mEatNextSetKeyClick;
66
67 LLPanel* mPanel;
68};
69
70class LLPrefsVoice : public LLPanel
71{
72public:
73 LLPrefsVoice();
74 ~LLPrefsVoice();
75
76 /*virtual*/ void draw();
77 void apply();
78 void cancel();
79
80protected:
81 static void onClickDeviceSettingsBtn(void* user_data);
82
83 LLPrefsVoiceLogic* mLogic;
84 LLFloaterDeviceSettings* mDeviceSettings;
85};
86
87#endif // LLPREFSVOICE_H