kalarm Library API Documentation

colourcombo.h

00001 /*
00002  *  colourcombo.h  -  colour selection combo box
00003  *  Program:  kalarm
00004  *  (C) 2001 by David Jarvie  software@astrojar.org.uk
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef COLOURCOMBO_H
00022 #define COLOURCOMBO_H
00023 
00024 #include <kcolorcombo.h>
00025 
00026 
00027 class ColourCombo : public KColorCombo
00028 {
00029         public:
00030                 ColourCombo(QWidget* parent = 0L, const char* name = 0L, const QColor& = 0xFFFFFF);
00031                 void    setColour(const QColor&);
00032         public slots:
00033                 virtual void setEnabled(bool);
00034         protected:
00038                 virtual void resizeEvent(QResizeEvent*);
00039         private:
00040                 void         deleteColours();
00041                 void         addDisabledColour();
00042 
00043                 QColor       selection;
00044                 bool         disabled;
00045 };
00046 
00047 #endif // COLOURCOMBO_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:26 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001