OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
boolsetting.hpp
Go to the documentation of this file.
1 #ifndef CSM_PREFS_BOOLSETTING_H
2 #define CSM_PREFS_BOOLSETTING_H
3 
4 #include "setting.hpp"
5 
6 namespace CSMPrefs
7 {
8  class BoolSetting : public Setting
9  {
10  Q_OBJECT
11 
12  std::string mTooltip;
13  bool mDefault;
14 
15  public:
16 
17  BoolSetting (Category *parent, Settings::Manager *values,
18  QMutex *mutex, const std::string& key, const std::string& label, bool default_);
19 
20  BoolSetting& setTooltip (const std::string& tooltip);
21 
23  virtual std::pair<QWidget *, QWidget *> makeWidgets (QWidget *parent);
24 
25  private slots:
26 
27  void valueChanged (int value);
28  };
29 }
30 
31 #endif
void valueChanged(int value)
Definition: boolsetting.cpp:39
BoolSetting & setTooltip(const std::string &tooltip)
Definition: boolsetting.cpp:17
Definition: category.hpp:12
Definition: boolsetting.hpp:8
bool mDefault
Definition: boolsetting.hpp:13
virtual std::pair< QWidget *, QWidget * > makeWidgets(QWidget *parent)
Return label, input widget.
Definition: boolsetting.cpp:23
Definition: setting.hpp:22
std::string mTooltip
Definition: boolsetting.hpp:12
Settings management (can change during runtime)
Definition: settings.hpp:17
BoolSetting(Category *parent, Settings::Manager *values, QMutex *mutex, const std::string &key, const std::string &label, bool default_)
Definition: boolsetting.cpp:12