User settings state.
More...
#include <state.hpp>
|
| State (const State &) |
|
State & | operator= (const State &) |
|
void | load () |
|
void | declare () |
|
void | declareCategory (const std::string &key) |
|
IntSetting & | declareInt (const std::string &key, const std::string &label, int default_) |
|
DoubleSetting & | declareDouble (const std::string &key, const std::string &label, double default_) |
|
BoolSetting & | declareBool (const std::string &key, const std::string &label, bool default_) |
|
EnumSetting & | declareEnum (const std::string &key, const std::string &label, EnumValue default_) |
|
ColourSetting & | declareColour (const std::string &key, const std::string &label, QColor default_) |
|
ShortcutSetting & | declareShortcut (const std::string &key, const std::string &label, const QKeySequence &default_) |
|
ModifierSetting & | declareModifier (const std::string &key, const std::string &label, int modifier_) |
|
void | declareSeparator () |
|
void | declareSubcategory (const std::string &label) |
|
void | setDefault (const std::string &key, const std::string &default_) |
|
User settings state.
- Note
- Access to the user settings is thread-safe once all declarations and loading has been completed.
CSMPrefs::State::State |
( |
const State & |
| ) |
|
|
private |
CSMPrefs::State::~State |
( |
| ) |
|
void CSMPrefs::State::declare |
( |
| ) |
|
|
private |
void CSMPrefs::State::declareCategory |
( |
const std::string & |
key | ) |
|
|
private |
CSMPrefs::ColourSetting & CSMPrefs::State::declareColour |
( |
const std::string & |
key, |
|
|
const std::string & |
label, |
|
|
QColor |
default_ |
|
) |
| |
|
private |
CSMPrefs::DoubleSetting & CSMPrefs::State::declareDouble |
( |
const std::string & |
key, |
|
|
const std::string & |
label, |
|
|
double |
default_ |
|
) |
| |
|
private |
CSMPrefs::IntSetting & CSMPrefs::State::declareInt |
( |
const std::string & |
key, |
|
|
const std::string & |
label, |
|
|
int |
default_ |
|
) |
| |
|
private |
void CSMPrefs::State::declareSeparator |
( |
| ) |
|
|
private |
CSMPrefs::ShortcutSetting & CSMPrefs::State::declareShortcut |
( |
const std::string & |
key, |
|
|
const std::string & |
label, |
|
|
const QKeySequence & |
default_ |
|
) |
| |
|
private |
void CSMPrefs::State::declareSubcategory |
( |
const std::string & |
label | ) |
|
|
private |
void CSMPrefs::State::load |
( |
| ) |
|
|
private |
State& CSMPrefs::State::operator= |
( |
const State & |
| ) |
|
|
private |
void CSMPrefs::State::save |
( |
| ) |
|
void CSMPrefs::State::setDefault |
( |
const std::string & |
key, |
|
|
const std::string & |
default_ |
|
) |
| |
|
private |
void CSMPrefs::State::update |
( |
const Setting & |
setting | ) |
|
const std::string CSMPrefs::State::mConfigFile |
|
private |
Iterator CSMPrefs::State::mCurrentCategory |
|
private |
QMutex CSMPrefs::State::mMutex |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/opencs/model/prefs/state.hpp
- /home/travis/build/OpenMW/openmw/apps/opencs/model/prefs/state.cpp