libopie API Documentation

ocolorbutton.h

00001 /*
00002                =.            This file is part of the OPIE Project
00003              .=l.            Copyright (c)  2002 Robert Griebl <sandman@handhelds.org>
00004            .>+-=
00005  _;:,     .>    :=|.         This library is free software; you can
00006 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00007 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00008 .="- .-=="i,     .._         License as published by the Free Software
00009  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00010      ._= =}       :          or (at your option) any later version.
00011     .%`+i>       _;_.
00012     .i_,=:_.      -<s.       This library is distributed in the hope that
00013      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00014     : ..    .:,     . . .    without even the implied warranty of
00015     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00016   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00017 ..}^=.=       =       ;      Library General Public License for more
00018 ++=   -.     .`     .:       details.
00019  :     =  ...= . :.=-
00020  -.   .:....=;==+<;          You should have received a copy of the GNU
00021   -_. . .   )=.  =           Library General Public License along with
00022     --        :-=`           this library; see the file COPYING.LIB.
00023                              If not, write to the Free Software Foundation,
00024                              Inc., 59 Temple Place - Suite 330,
00025                              Boston, MA 02111-1307, USA.
00026 
00027 */
00028 
00029 #ifndef __OPIE_OCOLORBUTTON_H__
00030 #define __OPIE_OCOLORBUTTON_H__
00031 
00032 #include <qpushbutton.h>
00033 
00034 class OColorButtonPrivate;
00035 class QColor;
00036 
00044 class OColorButton : public QPushButton {
00045     Q_OBJECT
00046 public:
00047     // FIXME Wflags? -zecke
00048     OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 );
00049     virtual ~OColorButton ( );
00050 
00051     QColor color ( ) const;
00052 
00053 signals:
00057     void colorSelected ( const QColor & );
00058 
00059 public slots:
00060     virtual void setColor ( const QColor & );
00061 
00062 protected slots:
00066     virtual void updateColor ( const QColor & );
00067 
00068 private:
00069     OColorButtonPrivate *d;
00070 };
00071 
00072 #endif
00073 
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:42 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001