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