00001 00033 #ifndef LL_LLSAVEDSETTINGSGLUE_H 00034 #define LL_LLSAVEDSETTINGSGLUE_H 00035 00036 class LLUICtrl; 00037 00038 // Helper to change gSavedSettings from UI widget commit callbacks. 00039 // Set the widget callback to be one of the setFoo() calls below, 00040 // and assign the control name as a const char* to the userdata. 00041 class LLSavedSettingsGlue 00042 { 00043 public: 00044 static void setBOOL(LLUICtrl* ctrl, void* name); 00045 static void setS32(LLUICtrl* ctrl, void* name); 00046 static void setF32(LLUICtrl* ctrl, void* name); 00047 static void setU32(LLUICtrl* ctrl, void* name); 00048 static void setString(LLUICtrl* ctrl, void* name); 00049 }; 00050 00051 #endif