author | mickeyl <mickeyl> | 2004-01-15 13:59:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-01-15 13:59:58 (UTC) |
commit | dde789ef19fa3a3913805e452ac1e3400688e8a0 (patch) (unidiff) | |
tree | a33a0ce31750ad56cfd3362585d4e7b32ca0a456 /libqtaux/ocolorbutton.h | |
parent | 3c74c5343a8432c494ace71d94cca354c01ef1d3 (diff) | |
download | opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.zip opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.tar.gz opie-dde789ef19fa3a3913805e452ac1e3400688e8a0.tar.bz2 |
more libopie1 --> libopie2 with namespace cleanups and code layout cleanups
-rw-r--r-- | libqtaux/ocolorbutton.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/libqtaux/ocolorbutton.h b/libqtaux/ocolorbutton.h new file mode 100644 index 0000000..ca68f1f --- a/dev/null +++ b/libqtaux/ocolorbutton.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | Copyright (C) Robert Griebl <sandman@handhelds.org> | ||
4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> | ||
5 | .=l. | ||
6 | .>+-= | ||
7 | _;:, .> :=|. This program is free software; you can | ||
8 | .> <`_, > . <= redistribute it and/or modify it under | ||
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
10 | .="- .-=="i, .._ License as published by the Free Software | ||
11 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
12 | ._= =} : or (at your option) any later version. | ||
13 | .%`+i> _;_. | ||
14 | .i_,=:_. -<s. This program is distributed in the hope that | ||
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
16 | : .. .:, . . . without even the implied warranty of | ||
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
19 | ..}^=.= = ; Library General Public License for more | ||
20 | ++= -. .` .: details. | ||
21 | : = ...= . :.=- | ||
22 | -. .:....=;==+<; You should have received a copy of the GNU | ||
23 | -_. . . )=. = Library General Public License along with | ||
24 | -- :-=` this library; see the file COPYING.LIB. | ||
25 | If not, write to the Free Software Foundation, | ||
26 | Inc., 59 Temple Place - Suite 330, | ||
27 | Boston, MA 02111-1307, USA. | ||
28 | */ | ||
29 | |||
30 | #ifndef OCOLORBUTTON_H | ||
31 | #define OCOLORBUTTON_H | ||
32 | |||
33 | /* QT*/ | ||
34 | #include <qpushbutton.h> | ||
35 | |||
36 | class OColorButtonPrivate; | ||
37 | class QColor; | ||
38 | |||
39 | namespace Opie | ||
40 | { | ||
41 | |||
42 | /** | ||
43 | * | ||
44 | * @short A Button which will show a OColorPopupMenu | ||
45 | * @author Robert Griebl ( sandman@handhelds.org ) | ||
46 | * @version 1.0 | ||
47 | * @see QPushButton | ||
48 | */ | ||
49 | class OColorButton : public QPushButton | ||
50 | { | ||
51 | Q_OBJECT | ||
52 | public: | ||
53 | OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 ); | ||
54 | virtual ~OColorButton ( ); | ||
55 | |||
56 | QColor color ( ) const; | ||
57 | |||
58 | signals: | ||
59 | /** | ||
60 | * emitted when a color gets selected | ||
61 | */ | ||
62 | void colorSelected ( const QColor & ); | ||
63 | |||
64 | public slots: | ||
65 | virtual void setColor ( const QColor & ); | ||
66 | |||
67 | protected slots: | ||
68 | /** | ||
69 | * @internal | ||
70 | */ | ||
71 | virtual void updateColor ( const QColor & ); | ||
72 | |||
73 | private: | ||
74 | OColorButtonPrivate *d; | ||
75 | }; | ||
76 | |||
77 | }; | ||
78 | |||
79 | #endif | ||
80 | |||