00001
00002
00003
00004
00005
00006
00007 #ifndef VIEW_PROFILE_SCALE_H
00008 #define VIEW_PROFILE_SCALE_H
00009
00010 #include "ColorFilterMode.h"
00011 #include <QColor>
00012 #include <QLabel>
00013 #include <QRgb>
00014
00016 class ViewProfileScale : public QLabel
00017 {
00018 public:
00020 explicit ViewProfileScale(int minimumWidth,
00021 QWidget *parent = 0);
00022
00024 virtual void paintEvent (QPaintEvent *);
00025
00027 void setBackgroundColor (QRgb rgbBackground);
00028
00030 void setColorFilterMode (ColorFilterMode colorFilterMode);
00031
00032 private:
00033
00034 void paintForeground ();
00035 void paintHue ();
00036 void paintIntensity ();
00037 void paintOneSpectrum (const QColor &colorStart,
00038 const QColor &colorStop);
00039 void paintSaturation ();
00040 void paintValue ();
00041
00042 QRgb m_rgbBackground;
00043 ColorFilterMode m_colorFilterMode;
00044 };
00045
00046 #endif // VIEW_PROFILE_SCALE_H