OpenMW
|
#include <setting.hpp>
Public Member Functions | |
Setting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label) | |
virtual | ~Setting () |
virtual std::pair< QWidget *, QWidget * > | makeWidgets (QWidget *parent) |
virtual void | updateWidget () |
const Category * | getParent () const |
const std::string & | getKey () const |
const std::string & | getLabel () const |
int | toInt () const |
double | toDouble () const |
std::string | toString () const |
bool | isTrue () const |
QColor | toColor () const |
Protected Member Functions | |
Settings::Manager & | getValues () |
QMutex * | getMutex () |
Private Attributes | |
Category * | mParent |
Settings::Manager * | mValues |
QMutex * | mMutex |
std::string | mKey |
std::string | mLabel |
CSMPrefs::Setting::Setting | ( | Category * | parent, |
Settings::Manager * | values, | ||
QMutex * | mutex, | ||
const std::string & | key, | ||
const std::string & | label | ||
) |
|
virtual |
const std::string & CSMPrefs::Setting::getKey | ( | ) | const |
const std::string & CSMPrefs::Setting::getLabel | ( | ) | const |
|
protected |
const CSMPrefs::Category * CSMPrefs::Setting::getParent | ( | ) | const |
|
protected |
bool CSMPrefs::Setting::isTrue | ( | ) | const |
Return label, input widget.
Reimplemented in CSMPrefs::EnumSetting, CSMPrefs::DoubleSetting, CSMPrefs::IntSetting, CSMPrefs::ColourSetting, CSMPrefs::BoolSetting, CSMPrefs::ModifierSetting, and CSMPrefs::ShortcutSetting.
QColor CSMPrefs::Setting::toColor | ( | ) | const |
double CSMPrefs::Setting::toDouble | ( | ) | const |
int CSMPrefs::Setting::toInt | ( | ) | const |
std::string CSMPrefs::Setting::toString | ( | ) | const |
|
virtual |
Updates the widget returned by makeWidgets() to the current setting.
Reimplemented in CSMPrefs::EnumSetting, CSMPrefs::DoubleSetting, CSMPrefs::IntSetting, CSMPrefs::ColourSetting, CSMPrefs::BoolSetting, CSMPrefs::ModifierSetting, and CSMPrefs::ShortcutSetting.
|
private |
|
private |
|
private |
|
private |
|
private |