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::IntSetting Class Reference

#include <intsetting.hpp>

Inheritance diagram for CSMPrefs::IntSetting:
Collaboration diagram for CSMPrefs::IntSetting:

Public Member Functions

 IntSetting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label, int default_)
 
IntSettingsetRange (int min, int max)
 
IntSettingsetMin (int min)
 
IntSettingsetMax (int max)
 
IntSettingsetTooltip (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

int mMin
 
int mMax
 
std::string mTooltip
 
int mDefault
 

Additional Inherited Members

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Return label, input widget.

Reimplemented from CSMPrefs::Setting.

CSMPrefs::IntSetting & CSMPrefs::IntSetting::setMax ( int  max)
CSMPrefs::IntSetting & CSMPrefs::IntSetting::setMin ( int  min)
CSMPrefs::IntSetting & CSMPrefs::IntSetting::setRange ( int  min,
int  max 
)
CSMPrefs::IntSetting & CSMPrefs::IntSetting::setTooltip ( const std::string &  tooltip)
void CSMPrefs::IntSetting::valueChanged ( int  value)
privateslot

Member Data Documentation

int CSMPrefs::IntSetting::mDefault
private
int CSMPrefs::IntSetting::mMax
private
int CSMPrefs::IntSetting::mMin
private
std::string CSMPrefs::IntSetting::mTooltip
private

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