summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterenvironmentsettings.h
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-06-10 18:21:32 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-06-10 18:21:32 +0300
commit0d1cc56eb128755ce9e63d8cdf852b0e3b6f4fb1 (patch)
tree29824e7840afc6a6730083d1885c4172cb9b5ee0 /indra/newview/llfloaterenvironmentsettings.h
parenta7603c84879e7a2d0f72d64e5988aae332d463c1 (diff)
STORM-1279 FIXED Changing sky preset with a keyboard shortcut now updates the Environment Settings floater.
Changes: * Subscribed the floater to the "settings changed" signal of the environment manager. * Rewrote the floater to not modify settings only when the Save button is pressed. * Refactoring to eliminate code duplication.
Diffstat (limited to 'indra/newview/llfloaterenvironmentsettings.h')
-rw-r--r--indra/newview/llfloaterenvironmentsettings.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/indra/newview/llfloaterenvironmentsettings.h b/indra/newview/llfloaterenvironmentsettings.h
index 0953ab4a65..0ab458a0f6 100644
--- a/indra/newview/llfloaterenvironmentsettings.h
+++ b/indra/newview/llfloaterenvironmentsettings.h
@@ -38,7 +38,6 @@ class LLFloaterEnvironmentSettings : public LLFloater
public:
LLFloaterEnvironmentSettings(const LLSD &key);
- /*virtual*/ ~LLFloaterEnvironmentSettings();
/*virtual*/ BOOL postBuild();
/*virtual*/ void onOpen(const LLSD& key);
@@ -53,6 +52,8 @@ private:
void onBtnOK();
void onBtnCancel();
+ void refresh(); /// update controls with user prefs
+ void apply();
void cancel();
void populateWaterPresetsList();
@@ -65,14 +66,6 @@ private:
LLComboBox* mWaterPresetCombo;
LLComboBox* mSkyPresetCombo;
LLComboBox* mDayCyclePresetCombo;
-
- std::string mWaterPreset;
- std::string mSkyPreset;
- std::string mDayCyclePreset;
-
- bool mUseRegionSettings;
- bool mUseFixedSky;
- bool mDirty;
};
#endif // LL_LLFLOATERENVIRONMENTSETTINGS_H