OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CSMPrefs::State Class Reference

User settings state. More...

#include <state.hpp>

Inheritance diagram for CSMPrefs::State:
Collaboration diagram for CSMPrefs::State:

Public Types

typedef std::map< std::string,
Category
Collection
 
typedef Collection::iterator Iterator
 

Signals

void settingChanged (const CSMPrefs::Setting *setting)
 

Public Member Functions

 State (const Files::ConfigurationManager &configurationManager)
 
 ~State ()
 
void save ()
 
Iterator begin ()
 
Iterator end ()
 
ShortcutManagergetShortcutManager ()
 
Categoryoperator[] (const std::string &key)
 
void update (const Setting &setting)
 

Static Public Member Functions

static Stateget ()
 

Private Member Functions

 State (const State &)
 
Stateoperator= (const State &)
 
void load ()
 
void declare ()
 
void declareCategory (const std::string &key)
 
IntSettingdeclareInt (const std::string &key, const std::string &label, int default_)
 
DoubleSettingdeclareDouble (const std::string &key, const std::string &label, double default_)
 
BoolSettingdeclareBool (const std::string &key, const std::string &label, bool default_)
 
EnumSettingdeclareEnum (const std::string &key, const std::string &label, EnumValue default_)
 
ColourSettingdeclareColour (const std::string &key, const std::string &label, QColor default_)
 
ShortcutSettingdeclareShortcut (const std::string &key, const std::string &label, const QKeySequence &default_)
 
ModifierSettingdeclareModifier (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_)
 

Private Attributes

const std::string mConfigFile
 
const Files::ConfigurationManagermConfigurationManager
 
ShortcutManager mShortcutManager
 
Settings::Manager mSettings
 
Collection mCategories
 
Iterator mCurrentCategory
 
QMutex mMutex
 

Static Private Attributes

static StatesThis = 0
 

Detailed Description

User settings state.

Note
Access to the user settings is thread-safe once all declarations and loading has been completed.

Member Typedef Documentation

typedef std::map<std::string, Category> CSMPrefs::State::Collection
typedef Collection::iterator CSMPrefs::State::Iterator

Constructor & Destructor Documentation

CSMPrefs::State::State ( const State )
private
CSMPrefs::State::State ( const Files::ConfigurationManager configurationManager)

Here is the call graph for this function:

CSMPrefs::State::~State ( )

Member Function Documentation

CSMPrefs::State::Iterator CSMPrefs::State::begin ( )
void CSMPrefs::State::declare ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

CSMPrefs::BoolSetting & CSMPrefs::State::declareBool ( const std::string &  key,
const std::string &  label,
bool  default_ 
)
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::EnumSetting & CSMPrefs::State::declareEnum ( const std::string &  key,
const std::string &  label,
EnumValue  default_ 
)
private
CSMPrefs::IntSetting & CSMPrefs::State::declareInt ( const std::string &  key,
const std::string &  label,
int  default_ 
)
private
CSMPrefs::ModifierSetting & CSMPrefs::State::declareModifier ( const std::string &  key,
const std::string &  label,
int  modifier_ 
)
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
CSMPrefs::State::Iterator CSMPrefs::State::end ( )

Here is the caller graph for this function:

CSMPrefs::State & CSMPrefs::State::get ( )
static

Here is the caller graph for this function:

CSMPrefs::ShortcutManager & CSMPrefs::State::getShortcutManager ( )

Here is the caller graph for this function:

void CSMPrefs::State::load ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

State& CSMPrefs::State::operator= ( const State )
private
CSMPrefs::Category & CSMPrefs::State::operator[] ( const std::string &  key)
void CSMPrefs::State::save ( )

Here is the caller graph for this function:

void CSMPrefs::State::setDefault ( const std::string &  key,
const std::string &  default_ 
)
private
void CSMPrefs::State::settingChanged ( const CSMPrefs::Setting setting)
signal
void CSMPrefs::State::update ( const Setting setting)

Here is the caller graph for this function:

Member Data Documentation

Collection CSMPrefs::State::mCategories
private
const std::string CSMPrefs::State::mConfigFile
private
const Files::ConfigurationManager& CSMPrefs::State::mConfigurationManager
private
Iterator CSMPrefs::State::mCurrentCategory
private
QMutex CSMPrefs::State::mMutex
private
Settings::Manager CSMPrefs::State::mSettings
private
ShortcutManager CSMPrefs::State::mShortcutManager
private
CSMPrefs::State * CSMPrefs::State::sThis = 0
staticprivate

The documentation for this class was generated from the following files: