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

#include <enumsetting.hpp>

Inheritance diagram for CSMPrefs::EnumSetting:
Collaboration diagram for CSMPrefs::EnumSetting:

Public Member Functions

 EnumSetting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label, const EnumValue &default_)
 
EnumSettingsetTooltip (const std::string &tooltip)
 
EnumSettingaddValues (const EnumValues &values)
 
EnumSettingaddValue (const EnumValue &value)
 
EnumSettingaddValue (const std::string &value, const std::string &tooltip)
 
virtual std::pair< QWidget
*, QWidget * > 
makeWidgets (QWidget *parent)
 Return label, input widget. More...
 
- Public Member Functions inherited from CSMPrefs::Setting
 Setting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label)
 
virtual ~Setting ()
 
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
 

Private Slots

void valueChanged (int value)
 

Private Attributes

std::string mTooltip
 
EnumValue mDefault
 
EnumValues mValues
 

Additional Inherited Members

- Protected Member Functions inherited from CSMPrefs::Setting
Settings::ManagergetValues ()
 
QMutex * getMutex ()
 

Constructor & Destructor Documentation

CSMPrefs::EnumSetting::EnumSetting ( Category parent,
Settings::Manager values,
QMutex *  mutex,
const std::string &  key,
const std::string &  label,
const EnumValue default_ 
)

Member Function Documentation

CSMPrefs::EnumSetting & CSMPrefs::EnumSetting::addValue ( const EnumValue value)
CSMPrefs::EnumSetting & CSMPrefs::EnumSetting::addValue ( const std::string &  value,
const std::string &  tooltip 
)
CSMPrefs::EnumSetting & CSMPrefs::EnumSetting::addValues ( const EnumValues values)
std::pair< QWidget *, QWidget * > CSMPrefs::EnumSetting::makeWidgets ( QWidget parent)
virtual

Return label, input widget.

Reimplemented from CSMPrefs::Setting.

CSMPrefs::EnumSetting & CSMPrefs::EnumSetting::setTooltip ( const std::string &  tooltip)
void CSMPrefs::EnumSetting::valueChanged ( int  value)
privateslot

Member Data Documentation

EnumValue CSMPrefs::EnumSetting::mDefault
private
std::string CSMPrefs::EnumSetting::mTooltip
private
EnumValues CSMPrefs::EnumSetting::mValues
private

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