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

#include <setting.hpp>

Inheritance diagram for CSMPrefs::Setting:
Collaboration diagram for CSMPrefs::Setting:

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)
 
const CategorygetParent () 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::ManagergetValues ()
 
QMutex * getMutex ()
 

Private Attributes

CategorymParent
 
Settings::ManagermValues
 
QMutex * mMutex
 
std::string mKey
 
std::string mLabel
 

Constructor & Destructor Documentation

CSMPrefs::Setting::Setting ( Category parent,
Settings::Manager values,
QMutex *  mutex,
const std::string &  key,
const std::string &  label 
)
CSMPrefs::Setting::~Setting ( )
virtual

Member Function Documentation

const std::string & CSMPrefs::Setting::getKey ( ) const

Here is the caller graph for this function:

const std::string & CSMPrefs::Setting::getLabel ( ) const

Here is the caller graph for this function:

QMutex * CSMPrefs::Setting::getMutex ( )
protected

Here is the caller graph for this function:

const CSMPrefs::Category * CSMPrefs::Setting::getParent ( ) const

Here is the caller graph for this function:

Settings::Manager & CSMPrefs::Setting::getValues ( )
protected

Here is the caller graph for this function:

bool CSMPrefs::Setting::isTrue ( ) const

Here is the caller graph for this function:

std::pair< QWidget *, QWidget * > CSMPrefs::Setting::makeWidgets ( QWidget parent)
virtual

Return label, input widget.

Note
first can be a 0-pointer, which means that the label is part of the input widget.

Reimplemented in CSMPrefs::EnumSetting, CSMPrefs::DoubleSetting, CSMPrefs::IntSetting, CSMPrefs::ColourSetting, CSMPrefs::BoolSetting, CSMPrefs::ModifierSetting, and CSMPrefs::ShortcutSetting.

Here is the caller graph for this function:

QColor CSMPrefs::Setting::toColor ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

double CSMPrefs::Setting::toDouble ( ) const

Here is the caller graph for this function:

int CSMPrefs::Setting::toInt ( ) const

Here is the caller graph for this function:

std::string CSMPrefs::Setting::toString ( ) const

Here is the caller graph for this function:

Member Data Documentation

std::string CSMPrefs::Setting::mKey
private
std::string CSMPrefs::Setting::mLabel
private
QMutex* CSMPrefs::Setting::mMutex
private
Category* CSMPrefs::Setting::mParent
private
Settings::Manager* CSMPrefs::Setting::mValues
private

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