summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterenvsettings.h
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-04-05 20:47:39 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-04-05 20:47:39 +0300
commita2c4bb80492132f7981a79e61bd8ddec95ad97dd (patch)
tree0aedf927a4a228fb4c4d59905a81d814762ed453 /indra/newview/llfloaterenvsettings.h
parent2787be7d3558c3ca1ed15863e875612b1b27ec78 (diff)
parent5a0547cdc366678a21c23ac4669d9e1a867ca331 (diff)
STORM-1126 merge 2
Diffstat (limited to 'indra/newview/llfloaterenvsettings.h')
-rw-r--r--indra/newview/llfloaterenvsettings.h33
1 files changed, 20 insertions, 13 deletions
diff --git a/indra/newview/llfloaterenvsettings.h b/indra/newview/llfloaterenvsettings.h
index a6280cfb97..d6a5fe1e8b 100644
--- a/indra/newview/llfloaterenvsettings.h
+++ b/indra/newview/llfloaterenvsettings.h
@@ -33,50 +33,57 @@
#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);
+
+ // opt-in for region Windlight settings
+ //static void onUseRegionEnvironment(LLUICtrl* ctrl, void* userData);
+ static void onUseRegionEnvironment(LLUICtrl*, void*);
//// 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
+
+ static void setOptIn(bool opt_in);
};