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

#include <doublesetting.hpp>

Inheritance diagram for CSMPrefs::DoubleSetting:
Collaboration diagram for CSMPrefs::DoubleSetting:

Public Member Functions

 DoubleSetting (Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label, double default_)
 
DoubleSettingsetPrecision (int precision)
 
DoubleSettingsetRange (double min, double max)
 
DoubleSettingsetMin (double min)
 
DoubleSettingsetMax (double max)
 
DoubleSettingsetTooltip (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 (double value)
 

Private Attributes

int mPrecision
 
double mMin
 
double mMax
 
std::string mTooltip
 
double mDefault
 

Additional Inherited Members

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Return label, input widget.

Reimplemented from CSMPrefs::Setting.

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

Member Data Documentation

double CSMPrefs::DoubleSetting::mDefault
private
double CSMPrefs::DoubleSetting::mMax
private
double CSMPrefs::DoubleSetting::mMin
private
int CSMPrefs::DoubleSetting::mPrecision
private
std::string CSMPrefs::DoubleSetting::mTooltip
private

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