00001 00032 #ifndef LLPREFSVOICE_H 00033 #define LLPREFSVOICE_H 00034 00035 #include "llpanel.h" 00036 00037 class LLFloaterDeviceSettings; 00038 00039 class LLPrefsVoiceLogic 00040 { 00041 public: 00042 LLPrefsVoiceLogic(LLPanel* panelp); 00043 virtual ~LLPrefsVoiceLogic(){}; 00044 00045 virtual void init(); 00046 00047 void apply(); 00048 void cancel(); 00049 void refresh(); 00050 00051 void setKey(KEY key, MASK mask); 00052 00053 protected: 00054 00055 static void onClickSetKey(void* user_data); 00056 static void onClickSetMiddleMouse(void* user_data); 00057 static void onEarLocationCommit(LLUICtrl* ctrl, void* user_data); 00058 static void onClickLaunchWizard(void* user_data); 00059 00060 BOOL mEnableVoice; 00061 BOOL mVoiceCallsFriendsOnly; 00062 BOOL mEnablePushToTalk; 00063 std::string mModifier; 00064 BOOL mPushToTalkToggle; 00065 S32 mEarLocation; 00066 LLCtrlSelectionInterface *mCtrlEarLocation; 00067 00068 BOOL mEatNextSetKeyClick; 00069 00070 LLPanel* mPanel; 00071 }; 00072 00073 class LLPrefsVoice : public LLPanel 00074 { 00075 public: 00076 LLPrefsVoice(); 00077 ~LLPrefsVoice(); 00078 00079 /*virtual*/ void draw(); 00080 void apply(); 00081 void cancel(); 00082 00083 protected: 00084 static void onClickDeviceSettingsBtn(void* user_data); 00085 00086 LLPrefsVoiceLogic* mLogic; 00087 LLFloaterDeviceSettings* mDeviceSettings; 00088 }; 00089 00090 #endif // LLPREFSVOICE_H