summaryrefslogtreecommitdiff
path: root/libqtaux/ocolorbutton.h
Unidiff
Diffstat (limited to 'libqtaux/ocolorbutton.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libqtaux/ocolorbutton.h80
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
36class OColorButtonPrivate;
37class QColor;
38
39namespace 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 */
49class OColorButton : public QPushButton
50{
51 Q_OBJECT
52public:
53 OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 );
54 virtual ~OColorButton ( );
55
56 QColor color ( ) const;
57
58signals:
59 /**
60 * emitted when a color gets selected
61 */
62 void colorSelected ( const QColor & );
63
64public slots:
65 virtual void setColor ( const QColor & );
66
67protected slots:
68 /**
69 * @internal
70 */
71 virtual void updateColor ( const QColor & );
72
73private:
74 OColorButtonPrivate *d;
75};
76
77};
78
79#endif
80