2012-03-18 19:51:06 +00:00
|
|
|
#ifndef _PAYSAGES_QT_PREVIEWCOLORGRADATION_H_
|
|
|
|
#define _PAYSAGES_QT_PREVIEWCOLORGRADATION_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2013-04-17 12:29:51 +00:00
|
|
|
#include "rendering/tools/color.h"
|
2012-03-18 19:51:06 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
COLORGRADATIONBAND_RED,
|
|
|
|
COLORGRADATIONBAND_GREEN,
|
|
|
|
COLORGRADATIONBAND_BLUE,
|
|
|
|
COLORGRADATIONBAND_FINAL
|
|
|
|
} EnumColorGradationBand;
|
|
|
|
|
|
|
|
class PreviewColorGradation:public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PreviewColorGradation(QWidget* parent, ColorGradation* gradation, EnumColorGradationBand band);
|
|
|
|
void paintEvent(QPaintEvent* event);
|
2012-03-18 21:00:50 +00:00
|
|
|
void mouseReleaseEvent(QMouseEvent* event);
|
2013-01-19 22:42:50 +00:00
|
|
|
|
2012-03-18 21:00:50 +00:00
|
|
|
signals:
|
|
|
|
void clicked();
|
2012-03-18 19:51:06 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
ColorGradation* gradation;
|
|
|
|
EnumColorGradationBand band;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|