diff options
author | Jonathan Yap <jhwelch@gmail.com> | 2014-11-27 16:20:39 -0500 |
---|---|---|
committer | Jonathan Yap <jhwelch@gmail.com> | 2014-11-27 16:20:39 -0500 |
commit | f30e518f1774cc3c1b4641e97c26afa496fb85e5 (patch) | |
tree | a46d770586a32854df9a1305e503c346136737b4 /indra/newview/llpresetsmanager.h | |
parent | f71247ea542805819b82640759e1f44fd0599e7f (diff) |
STORM-2082 Get writing out and loading presets working
Diffstat (limited to 'indra/newview/llpresetsmanager.h')
-rw-r--r-- | indra/newview/llpresetsmanager.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llpresetsmanager.h b/indra/newview/llpresetsmanager.h index b9a79a7736..5bf85b835a 100644 --- a/indra/newview/llpresetsmanager.h +++ b/indra/newview/llpresetsmanager.h @@ -30,6 +30,10 @@ #include <list> #include <map> +static const std::string PRESETS_DIR = "presets"; +static const std::string PRESETS_GRAPHIC_DIR = "graphic"; +static const std::string PRESETS_CAMERA_DIR = "camera"; + class LLPresetsManager : public LLSingleton<LLPresetsManager> { public: @@ -37,12 +41,13 @@ public: typedef boost::signals2::signal<void()> preset_list_signal_t; void getPresetNames(preset_name_list_t& presets) const; - void loadPresetsFromDir(const std::string& dir); + void loadPresetNamesFromDir(const std::string& dir); void savePreset(const std::string & name); + void loadPreset(const std::string & name); static std::string getGraphicPresetsDir(); bool removeParamSet(const std::string& name, bool delete_from_disk); - /// Emitted when a preset gets added or deleted. + /// Emitted when a preset gets loaded or deleted. boost::signals2::connection setPresetListChangeCallback(const preset_list_signal_t::slot_type& cb); preset_name_list_t mPresetNames; |