diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llprefsvoice.h | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-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.h | 47 |
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 | ||
37 | class LLFloaterVoiceDeviceSettings; | ||
38 | |||
39 | class LLPrefsVoiceLogic | ||
40 | { | ||
41 | public: | ||
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 | |||
53 | protected: | ||
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 | |||
71 | class LLPrefsVoice : public LLPanel | 37 | class LLPrefsVoice : public LLPanel |
72 | { | 38 | { |
73 | public: | 39 | public: |
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 | ||
81 | protected: | 48 | void setKey(KEY key); |
82 | static void onClickVoiceDeviceSettingsBtn(void* user_data); | ||
83 | 49 | ||
84 | LLPrefsVoiceLogic* mLogic; | 50 | private: |
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 |