2012-01-07 16:53:23 +00:00
|
|
|
#ifndef _PAYSAGES_QT_INPUTCOLORGRADATION_H_
|
|
|
|
#define _PAYSAGES_QT_INPUTCOLORGRADATION_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "baseinput.h"
|
|
|
|
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
|
|
|
|
|
|
|
class InputColorGradation:public BaseInput
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
InputColorGradation(QWidget* form, QString label, ColorGradation* value);
|
|
|
|
|
|
|
|
public slots:
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void updatePreview();
|
2012-01-07 16:53:23 +00:00
|
|
|
virtual void applyValue();
|
2012-01-08 10:31:01 +00:00
|
|
|
virtual void revert();
|
2012-01-07 16:53:23 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void editGradation();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ColorGradation* _value;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PAYSAGES_QT_INPUTCOLORGRADATION_H_
|