29 lines
599 B
C
29 lines
599 B
C
|
#ifndef _PAYSAGES_QT_PREVIEWCOLORGRADATION_H_
|
||
|
#define _PAYSAGES_QT_PREVIEWCOLORGRADATION_H_
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
#include "../lib_paysages/color.h"
|
||
|
|
||
|
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);
|
||
|
|
||
|
private:
|
||
|
ColorGradation* gradation;
|
||
|
EnumColorGradationBand band;
|
||
|
};
|
||
|
|
||
|
#endif
|