diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-30 22:34:56 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-05-30 22:34:56 +0300 |
commit | 657e434fd59139436e8b97e5ecd01ca686e82269 (patch) | |
tree | bebf0c4c8adff3587cec47f6403757f841f5c872 /indra/newview/lldaycyclemanager.h | |
parent | 6f1cdd4926444567d21b1d6e0735a445b981e56b (diff) |
STORM-1253 WIP New day cycle editor.
Done:
* Creating new local day cycles.
* Editing existing local day cycles.
* Deleting day cycles.
To do:
* Editing region day cycle, dealing with skies in region scope.
* Handle teleport while editing a day cycle.
* Update UI when a day cycle or sky preset gets deleted.
* Make the time ctrl increase/decrease consistently.
Diffstat (limited to 'indra/newview/lldaycyclemanager.h')
-rw-r--r-- | indra/newview/lldaycyclemanager.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/lldaycyclemanager.h b/indra/newview/lldaycyclemanager.h index e49e4986fe..b33c0a0d39 100644 --- a/indra/newview/lldaycyclemanager.h +++ b/indra/newview/lldaycyclemanager.h @@ -46,8 +46,12 @@ public: typedef std::map<std::string, LLWLDayCycle> dc_map_t; const dc_map_t& getPresets(); - bool getPreset(const std::string name, LLWLDayCycle& day_cycle); - bool getPreset(const std::string name, LLSD& day_cycle); + bool getPreset(const std::string name, LLWLDayCycle& day_cycle) const; + bool getPreset(const std::string name, LLSD& day_cycle) const; + bool presetExists(const std::string name) const; + bool isSystemPreset(const std::string& name) const; + bool savePreset(const std::string& name, const LLSD& data); + bool deletePreset(const std::string& name); private: friend class LLSingleton<LLDayCycleManager>; @@ -56,6 +60,7 @@ private: void loadAllPresets(); void loadPresets(const std::string& dir); bool loadPreset(const std::string& path); + bool addPreset(const std::string& name, const LLSD& data); static std::string getSysDir(); static std::string getUserDir(); |