2012-01-06 16:09:03 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTCOLOR_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTCOLOR_H_
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
|
|
|
|
|
|
|
class InputColor:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-01-05 19:41:10 +00:00
|
|
|
InputColor(QWidget* form, QString label, Color* value);
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
public slots:
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void updatePreview();
|
2012-01-05 18:39:17 +00:00
|
|
|
virtual void applyValue();
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void revert();
|
2012-01-05 18:39:17 +00:00
|
|
|
|
2012-01-07 16:53:23 +00:00
|
|
|
private slots:
|
|
|
|
void chooseColor();
|
|
|
|
|
2012-01-05 18:39:17 +00:00
|
|
|
private:
|
2012-01-05 19:41:10 +00:00
|
|
|
Color* _value;
|
2012-01-05 18:39:17 +00:00
|
|
|
};
|
|
|
|
|
2012-01-06 16:09:03 +00:00
|
|
|
#endif // _PAYSAGES_QT_INPUTCOLOR_H_
|