mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 21:56:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			877 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			877 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef CSM_PREFS_COLOURSETTING_H
 | |
| #define CSM_PREFS_COLOURSETTING_H
 | |
| 
 | |
| #include "setting.hpp"
 | |
| 
 | |
| #include <QColor>
 | |
| 
 | |
| namespace CSVWidget
 | |
| {
 | |
|     class ColorEditor;
 | |
| }
 | |
| 
 | |
| namespace CSMPrefs
 | |
| {
 | |
|     class ColourSetting : public Setting
 | |
|     {
 | |
|             Q_OBJECT
 | |
| 
 | |
|             std::string mTooltip;
 | |
|             QColor mDefault;
 | |
|             CSVWidget::ColorEditor* mWidget;
 | |
| 
 | |
|         public:
 | |
| 
 | |
|             ColourSetting (Category *parent, Settings::Manager *values,
 | |
|                 QMutex *mutex, const std::string& key, const std::string& label,
 | |
|                 QColor default_);
 | |
| 
 | |
|             ColourSetting& setTooltip (const std::string& tooltip);
 | |
| 
 | |
|             /// Return label, input widget.
 | |
|             virtual std::pair<QWidget *, QWidget *> makeWidgets (QWidget *parent);
 | |
| 
 | |
|             virtual void updateWidget();
 | |
| 
 | |
|         private slots:
 | |
| 
 | |
|             void valueChanged();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |