1 #ifndef CSM_PREFS_STATE_H
2 #define CSM_PREFS_STATE_H
29 class ShortcutSetting;
30 class ModifierSetting;
79 const QKeySequence& default_);
87 void setDefault (
const std::string& key,
const std::string& default_);
Collection mCategories
Definition: state.hpp:53
void declare()
Definition: state.cpp:37
void declareSeparator()
Definition: state.cpp:489
void update(const Setting &setting)
Definition: state.cpp:571
static const struct @2 signals[]
const Files::ConfigurationManager & mConfigurationManager
Definition: state.hpp:50
Collection::iterator Iterator
Definition: state.hpp:45
Definition: coloursetting.hpp:10
ShortcutSetting & declareShortcut(const std::string &key, const std::string &label, const QKeySequence &default_)
Definition: state.cpp:445
void load()
Definition: state.cpp:17
std::map< std::string, Category > Collection
Definition: state.hpp:44
const std::string mConfigFile
Definition: state.hpp:49
DoubleSetting & declareDouble(const std::string &key, const std::string &label, double default_)
Definition: state.cpp:367
Settings::Manager mSettings
Definition: state.hpp:52
Definition: doublesetting.hpp:8
void declareSubcategory(const std::string &label)
Definition: state.cpp:500
Definition: category.hpp:12
State & operator=(const State &)
Definition: configurationmanager.hpp:20
Category & operator[](const std::string &key)
Definition: state.cpp:561
static State * sThis
Definition: state.hpp:40
void settingChanged(const CSMPrefs::Setting *setting)
Definition: boolsetting.hpp:8
~State()
Definition: state.cpp:535
Definition: enumsetting.hpp:10
void setDefault(const std::string &key, const std::string &default_)
Definition: state.cpp:511
QMutex mMutex
Definition: state.hpp:55
void save()
Definition: state.cpp:540
User settings state.
Definition: state.hpp:36
Definition: modifiersetting.hpp:13
BoolSetting & declareBool(const std::string &key, const std::string &label, bool default_)
Definition: state.cpp:388
Definition: setting.hpp:22
Definition: intsetting.hpp:8
Definition: shortcutsetting.hpp:13
Iterator begin()
Definition: state.cpp:546
Definition: enumsetting.hpp:31
Class used to track and update shortcuts/sequences.
Definition: shortcutmanager.hpp:16
Iterator end()
Definition: state.cpp:551
Settings management (can change during runtime)
Definition: settings.hpp:17
EnumSetting & declareEnum(const std::string &key, const std::string &label, EnumValue default_)
Definition: state.cpp:407
ShortcutManager mShortcutManager
Definition: state.hpp:51
ModifierSetting & declareModifier(const std::string &key, const std::string &label, int modifier_)
Definition: state.cpp:467
ColourSetting & declareColour(const std::string &key, const std::string &label, QColor default_)
Definition: state.cpp:426
Iterator mCurrentCategory
Definition: state.hpp:54
IntSetting & declareInt(const std::string &key, const std::string &label, int default_)
Definition: state.cpp:346
void declareCategory(const std::string &key)
Definition: state.cpp:331
ShortcutManager & getShortcutManager()
Definition: state.cpp:556