synfig-studio
1.0.3
|
#include <settings.h>
Public Types | |
typedef std::list< synfig::String > | KeyList |
typedef std::map < synfig::String, synfig::String > | ValueBaseMap |
typedef std::map < synfig::String, Settings * > | DomainMap |
Public Member Functions | |
Settings () | |
virtual | ~Settings () |
virtual bool | get_value (const synfig::String &key, synfig::String &value) const |
virtual bool | set_value (const synfig::String &key, const synfig::String &value) |
virtual KeyList | get_key_list () const |
synfig::String | get_value (const synfig::String &key) const |
void | add_domain (Settings *domain, const synfig::String &name) |
void | remove_domain (const synfig::String &name) |
bool | load_from_string (const synfig::String &data) |
bool | save_to_string (synfig::String &data) |
bool | load_from_file (const synfig::String &filename, const synfig::String &key_filter="") |
bool | save_to_file (const synfig::String &filename) const |
typedef std::list<synfig::String> synfigapp::Settings::KeyList |
typedef std::map<synfig::String,synfig::String> synfigapp::Settings::ValueBaseMap |
typedef std::map<synfig::String,Settings*> synfigapp::Settings::DomainMap |
Settings::Settings | ( | ) |
|
virtual |
|
virtual |
Reimplemented in studio::DialogSettings.
|
virtual |
Reimplemented in studio::DialogSettings.
References set_value().
Referenced by studio::App::restore_default_settings(), and set_value().
|
virtual |
Reimplemented in studio::DialogSettings.
References compare_pref_first().
Referenced by studio::DialogSettings::get_key_list().
synfig::String Settings::get_value | ( | const synfig::String & | key | ) | const |
void Settings::add_domain | ( | Settings * | domain, |
const synfig::String & | name | ||
) |
void Settings::remove_domain | ( | const synfig::String & | name | ) |
bool synfigapp::Settings::load_from_string | ( | const synfig::String & | data | ) |
bool synfigapp::Settings::save_to_string | ( | synfig::String & | data | ) |
bool Settings::load_from_file | ( | const synfig::String & | filename, |
const synfig::String & | key_filter = "" |
||
) |
Referenced by studio::App::load_settings().
bool Settings::save_to_file | ( | const synfig::String & | filename | ) | const |
Referenced by studio::App::save_settings().