diff options
author | Oz Linden <oz@lindenlab.com> | 2011-05-05 19:44:47 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-05-05 19:44:47 -0400 |
commit | a08c362d88487a390de340d75c3394c8800546be (patch) | |
tree | 1d4a25d8df0a07b85f135cb6359b4d6c8f37fe76 /indra/newview/llfloaterenvsettings.h | |
parent | def9f9290e661e6a35b7b255eb71b6e2767fdea0 (diff) | |
parent | 0c7f003bfc3bb9f74b0194ce18861514efe77066 (diff) |
merge up latest viewer-development
Diffstat (limited to 'indra/newview/llfloaterenvsettings.h')
-rw-r--r-- | indra/newview/llfloaterenvsettings.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/indra/newview/llfloaterenvsettings.h b/indra/newview/llfloaterenvsettings.h index a6280cfb97..b93bf07395 100644 --- a/indra/newview/llfloaterenvsettings.h +++ b/indra/newview/llfloaterenvsettings.h @@ -33,50 +33,56 @@ #include "llfloater.h" -struct WaterColorControl; -struct WaterExpFloatControl; /// Menuing system for all of windlight's functionality class LLFloaterEnvSettings : public LLFloater { + LOG_CLASS(LLFloaterEnvSettings); public: - LLFloaterEnvSettings(const LLSD& key); + LLFloaterEnvSettings(const LLSD &key); /*virtual*/ ~LLFloaterEnvSettings(); /*virtual*/ BOOL postBuild(); + /// initialize all the callbacks for the menu void initCallbacks(void); + /// one and one instance only + LLFloaterEnvSettings* instance(); + /// handle if time of day is changed - void onChangeDayTime(LLUICtrl* ctrl); + static void onChangeDayTime(LLUICtrl* ctrl, void* userData); /// handle if cloud coverage is changed - void onChangeCloudCoverage(LLUICtrl* ctrl); + static void onChangeCloudCoverage(LLUICtrl* ctrl, void* userData); /// handle change in water fog density - void onChangeWaterFogDensity(LLUICtrl* ctrl, WaterExpFloatControl* expFloatControl); + static void onChangeWaterFogDensity(LLUICtrl* ctrl, void* expFloatControl); /// handle change in water fog color - void onChangeWaterColor(LLUICtrl* ctrl, WaterColorControl* colorControl); + static void onChangeWaterColor(LLUICtrl* ctrl, void* colorControl); /// open the advanced sky settings menu - void onOpenAdvancedSky(); + static void onOpenAdvancedSky(void* userData1, void* userData2); /// open the advanced water settings menu - void onOpenAdvancedWater(); + static void onOpenAdvancedWater(void* userData1, void* userData2); /// sync time with the server - void onUseEstateTime(); + static void onUseEstateTime(void* userData1, void* userData2); + + /// sync time with local clock + static void onUseLocalTime(); + //// menu management /// sync up sliders with parameters void syncMenu(); - /// convert the present time to a digital clock time - std::string timeToString(F32 curTime); - private: + // one instance on the inside + }; |