karbon
vcolortab.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __VCOLORTAB_H
00022 #define __VCOLORTAB_H
00023
00024 #include <qtabwidget.h>
00025
00026 class QColor;
00027 class KHSSelector;
00028 class KIntSpinBox;
00029 class KGradientSelector;
00030 class KColorPatch;
00031 class KIntNumInput;
00032 class VColor;
00033
00034 class VColorTab : public QTabWidget
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 VColorTab( const VColor &c, QWidget* parent = 0L, const char* name = 0L );
00040
00041 VColor Color();
00042
00043 private:
00044 QWidget* mRGBWidget;
00045 KHSSelector* mColorSelector;
00046 KIntSpinBox* mRed;
00047 KIntSpinBox* mGreen;
00048 KIntSpinBox* mBlue;
00049 KIntSpinBox* mHue;
00050 KIntSpinBox* mSaturation;
00051 KIntSpinBox* mValue;
00052 KIntNumInput* mOpacity;
00053 KGradientSelector* mSelector;
00054 KColorPatch* mOldColor;
00055 KColorPatch* mColorPreview;
00056
00057 private slots:
00058 void slotUpdateFromRGBSpinBoxes();
00059 void slotUpdateFromHSVSpinBoxes();
00060 void slotVChanged( int );
00061 void slotHSChanged( int, int );
00062 };
00063
00064 #endif
00065
|