aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsvoice.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-07 23:14:43 -0700
committerMcCabe Maxsted2009-06-07 23:14:43 -0700
commite0a70bea805cf07b92efabca15ffe56a777f90ac (patch)
tree2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/newview/llprefsvoice.h
parent1.1 version final (diff)
parentMerge branch 'sl-base-1.22' into next (diff)
downloadmeta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.zip
meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.gz
meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.bz2
meta-impy-e0a70bea805cf07b92efabca15ffe56a777f90ac.tar.xz
Moved base up to 1.22
Diffstat (limited to 'linden/indra/newview/llprefsvoice.h')
-rw-r--r--linden/indra/newview/llprefsvoice.h49
1 files changed, 9 insertions, 40 deletions
diff --git a/linden/indra/newview/llprefsvoice.h b/linden/indra/newview/llprefsvoice.h
index 836108d..fa48395 100644
--- a/linden/indra/newview/llprefsvoice.h
+++ b/linden/indra/newview/llprefsvoice.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2003&license=viewergpl$ 5 * $LicenseInfo:firstyear=2003&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2003-2008, Linden Research, Inc. 7 * Copyright (c) 2003-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -34,55 +34,24 @@
34 34
35#include "llpanel.h" 35#include "llpanel.h"
36 36
37class LLFloaterVoiceDeviceSettings;
38
39class LLPrefsVoiceLogic
40{
41public:
42 LLPrefsVoiceLogic(LLPanel* panelp);
43 virtual ~LLPrefsVoiceLogic(){};
44
45 virtual void init();
46
47 void apply();
48 void cancel();
49 void refresh();
50
51 void setKey(KEY key, MASK mask);
52
53protected:
54
55 static void onClickSetKey(void* user_data);
56 static void onClickSetMiddleMouse(void* user_data);
57 static void onEarLocationCommit(LLUICtrl* ctrl, void* user_data);
58
59 BOOL mEnableVoice;
60 BOOL mVoiceCallsFriendsOnly;
61 std::string mModifier;
62 BOOL mPushToTalkToggle;
63 S32 mEarLocation;
64 LLCtrlSelectionInterface *mCtrlEarLocation;
65
66 BOOL mEatNextSetKeyClick;
67
68 LLPanel* mPanel;
69};
70
71class LLPrefsVoice : public LLPanel 37class LLPrefsVoice : public LLPanel
72{ 38{
73public: 39public:
74 LLPrefsVoice(); 40 LLPrefsVoice();
75 ~LLPrefsVoice(); 41 ~LLPrefsVoice();
76 42
77 /*virtual*/ void draw(); 43 BOOL postBuild();
44
78 void apply(); 45 void apply();
79 void cancel(); 46 void cancel();
80 47
81protected: 48 void setKey(KEY key);
82 static void onClickVoiceDeviceSettingsBtn(void* user_data);
83 49
84 LLPrefsVoiceLogic* mLogic; 50private:
85 LLFloaterVoiceDeviceSettings* mVoiceDeviceSettings; 51 static void onCommitEnableVoiceChat(LLUICtrl* ctrl, void* user_data);
52 static void onClickSetKey(void* user_data);
53 static void onClickSetMiddleMouse(void* user_data);
54 static void onClickVoiceDeviceSettings(void* user_data);
86}; 55};
87 56
88#endif // LLPREFSVOICE_H 57#endif // LLPREFSVOICE_H