karbon

vcolortab.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001, The Karbon Developers
00003    Copyright (C) 2002, The Karbon Developers
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
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 
KDE Home | KDE Accessibility Home | Description of Access Keys