diff options
author | Rider Linden <rider@lindenlab.com> | 2018-04-30 16:37:08 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-04-30 16:37:08 -0700 |
commit | 438609699b838924becee89fa9d8ec83552f3236 (patch) | |
tree | ba2ebdd1e2ce3680bd2c4c1fb1ebb6fecc926de0 /indra/newview/llfloaterfixedenvironment.h | |
parent | cf0e4f79f52b4fb24769aa6e355ec8c95c6d2afc (diff) |
New water settings dialog.
Diffstat (limited to 'indra/newview/llfloaterfixedenvironment.h')
-rw-r--r-- | indra/newview/llfloaterfixedenvironment.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/indra/newview/llfloaterfixedenvironment.h b/indra/newview/llfloaterfixedenvironment.h index 0d2d21533e..9eb03e0b3a 100644 --- a/indra/newview/llfloaterfixedenvironment.h +++ b/indra/newview/llfloaterfixedenvironment.h @@ -49,7 +49,7 @@ public: virtual void onFocusReceived() override; virtual void onFocusLost() override; - void setEditSettings(LLSettingsBase::ptr_t &settings) { mSettings = settings; syncronizeTabs(); } + void setEditSettings(const LLSettingsBase::ptr_t &settings) { mSettings = settings; syncronizeTabs(); refresh(); } LLSettingsBase::ptr_t getEditSettings() const { return mSettings; } protected: @@ -63,9 +63,19 @@ protected: LLSettingsBase::ptr_t mSettings; + virtual void doLoadFromInventory() = 0; + virtual void doImportFromDisk() = 0; + virtual void doApplyFixedSettings() = 0; + + bool canUseInventory() const; private: - void onNameChanged(const std::string &name); + void onNameChanged(const std::string &name); + + void onButtonLoad(); + void onButtonImport(); + void onButtonApply(); + void onButtonCancel(); #if 0 @@ -146,10 +156,17 @@ class LLFloaterFixedEnvironmentWater : public LLFloaterFixedEnvironment public: LLFloaterFixedEnvironmentWater(const LLSD &key); - BOOL postBuild() override; + BOOL postBuild() override; + + virtual void onOpen(const LLSD& key) override; + virtual void onClose(bool app_quitting) override; + +protected: + virtual void updateEditEnvironment() override; -protected: - virtual void updateEditEnvironment() override; + virtual void doLoadFromInventory() override; + virtual void doImportFromDisk() override; + virtual void doApplyFixedSettings() override; private: }; |