KDEUI
kcolorvalueselector.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCOLORVALUESELECTOR_H
00022 #define KCOLORVALUESELECTOR_H
00023
00024 #include "kselector.h"
00025 #include "kcolorchoosermode.h"
00026 #include <QtGui/QPixmap>
00027
00028 class KDEUI_EXPORT KColorValueSelector : public KSelector
00029 {
00030 Q_OBJECT
00031 public:
00035 explicit KColorValueSelector( QWidget *parent=0 );
00039 explicit KColorValueSelector( Qt::Orientation o, QWidget *parent = 0 );
00040
00041 ~KColorValueSelector();
00042
00046 void updateContents();
00047
00053 int hue() const;
00054
00061 void setHue( int hue );
00062
00068 int saturation() const;
00069
00076 void setSaturation( int saturation );
00077
00083 int colorValue() const;
00084
00091 void setColorValue( int colorValue );
00092
00099 void setChooserMode (KColorChooserMode chooserMode);
00100
00106 KColorChooserMode chooserMode () const;
00107
00108 protected:
00113 virtual void drawPalette( QPixmap *pixmap );
00114 virtual void resizeEvent( QResizeEvent * );
00115
00121 virtual void drawContents( QPainter *painter );
00122
00123 private:
00124 class Private;
00125 friend class Private;
00126
00127 Private *const d;
00128
00129 Q_DISABLE_COPY(KColorValueSelector)
00130 };
00131
00132 #endif
00133