diff options
author | Graham Linden <graham@lindenlab.com> | 2018-08-06 17:49:50 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-08-06 17:49:50 +0100 |
commit | 7da3a1eb4f14b67c698977eb1947ce06a312d507 (patch) | |
tree | 69e3daf87e592a07e25426a610092194a81cd754 /indra/newview/llpaneleditsky.h | |
parent | bc82509ccd1ebd39a7e2c6f64affbe91e0df296f (diff) |
WIP check-in to allow merge of upstream changes.
Diffstat (limited to 'indra/newview/llpaneleditsky.h')
-rw-r--r-- | indra/newview/llpaneleditsky.h | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/indra/newview/llpaneleditsky.h b/indra/newview/llpaneleditsky.h index 7c49c839ec..c9e0e3bd56 100644 --- a/indra/newview/llpaneleditsky.h +++ b/indra/newview/llpaneleditsky.h @@ -29,13 +29,14 @@ #include "llpanel.h" #include "llsettingssky.h" - #include "llfloaterfixedenvironment.h" +#include "lldensityctrl.h" //========================================================================= class LLSlider; class LLColorSwatchCtrl; class LLTextureCtrl; +class LLDensityCtrl; // custom control for specifying various sky density settings //========================================================================= class LLPanelSettingsSky : public LLSettingsEditPanel @@ -124,4 +125,44 @@ private: void onMoonRotationChanged(); void onMoonImageChanged(); }; + +// single subtab of the density settings tab +class LLPanelSettingsDensityTab : public LLPanelSettingsSky +{ + LOG_CLASS(LLPanelSettingsDensityTab); + +public: + LLPanelSettingsDensityTab(); + + virtual BOOL postBuild() override; + virtual void setEnabled(BOOL enabled) override; + + void setProfileType(LLDensityCtrl::DensityProfileType t) { mProfileType = t; } + +protected: + virtual void refresh() override; + + // update the settings for our profile type + void updateProfile(); + + LLDensityCtrl::DensityProfileType mProfileType; + std::string mControlName; +}; + +class LLPanelSettingsDensity : public LLPanelSettingsSky +{ + LOG_CLASS(LLPanelSettingsDensity); + +public: + LLPanelSettingsDensity(); + + virtual BOOL postBuild() override; + virtual void setEnabled(BOOL enabled) override; + +protected: + virtual void refresh() override; + + // update the settings for our profile type + void updateProfile(); +}; #endif // LLPANEL_EDIT_SKY_H |