Michaël Lemaire
0585958073
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@279 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
32 lines
681 B
C++
32 lines
681 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);
|
|
void mouseReleaseEvent(QMouseEvent* event);
|
|
|
|
signals:
|
|
void clicked();
|
|
|
|
private:
|
|
ColorGradation* gradation;
|
|
EnumColorGradationBand band;
|
|
};
|
|
|
|
#endif
|