aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsvoice.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llprefsvoice.h
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsvoice.h47
1 files changed, 8 insertions, 39 deletions
diff --git a/linden/indra/newview/llprefsvoice.h b/linden/indra/newview/llprefsvoice.h
index 836108d..a7cba73 100644
--- a/linden/indra/newview/llprefsvoice.h
+++ b/linden/indra/newview/llprefsvoice.h
@@ -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