karbon

vcolortab.h
1/* This file is part of the KDE project
2 Copyright (C) 2001, The Karbon Developers
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __VCOLORTAB_H
22#define __VCOLORTAB_H
23
24#include <tqtabwidget.h>
25
26class TQColor;
27class KHSSelector;
28class KIntSpinBox;
29class KGradientSelector;
30class KColorPatch;
31class KIntNumInput;
32class VColor;
33
34class VColorTab : public TQTabWidget
35{
36 TQ_OBJECT
37
38
39public:
40 VColorTab( const VColor &c, TQWidget* parent = 0L, const char* name = 0L );
41
42 VColor Color();
43
44private:
45 TQWidget* mRGBWidget;
46 KHSSelector* mColorSelector;
47 KIntSpinBox* mRed;
48 KIntSpinBox* mGreen;
49 KIntSpinBox* mBlue;
50 KIntSpinBox* mHue;
51 KIntSpinBox* mSaturation;
52 KIntSpinBox* mValue;
53 KIntNumInput* mOpacity;
54 KGradientSelector* mSelector;
55 KColorPatch* mOldColor;
56 KColorPatch* mColorPreview;
57
58private slots:
59 void slotUpdateFromRGBSpinBoxes();
60 void slotUpdateFromHSVSpinBoxes();
61 void slotVChanged( int );
62 void slotHSChanged( int, int );
63};
64
65#endif
66
This class keeps track of color properties.
Definition vcolor.h:41