kcolorcombo.h Source File (kdeui Library)

| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kcolorcombo.h

    00001 /* This file is part of the KDE libraries
    00002     Copyright (C) 1997 Martin Jones (mjones@kde.org)
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2 of the License, or (at your option) any later version.
    00008
    00009     This library is distributed in the hope that it will be useful,
    00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012     Library General Public License for more details.
    00013
    00014     You should have received a copy of the GNU Library General Public License
    00015     along with this library; see the file COPYING.LIB.  If not, write to
    00016     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00017     Boston, MA 02111-1307, USA.
    00018 */
    00019 //-----------------------------------------------------------------------------
    00020 // KDE color selection combo box
    00021
    00022 // layout managment added Oct 1997 by Mario Weilguni
    00023 // <mweilguni@sime.com>
    00024
    00025
    00026 #ifndef _KCOLORCOMBO_H__
    00027 #define _KCOLORCOMBO_H__
    00028
    00029 #include <qcombobox.h>
    00030 #include <kcolordialog.h>
    00031 #include "kselect.h"
    00032
    00033
    00034 class KColorComboInternal;
    00035
    00039 class KColorCombo : public QComboBox
    00040 {
    00041     Q_OBJECT
    00042     Q_PROPERTY( QColor color READ color WRITE setColor )
    00043
    00044 public:
    00048     KColorCombo( QWidget *parent, const char *name = 0L );
    00049     ~KColorCombo();
    00050
    00054     void setColor( const QColor &col );
    00058     QColor color() const;
    00059
    00060
    00064      void showEmptyList();
    00065
    00066 signals:
    00070     void activated( const QColor &col );
    00074     void highlighted( const QColor &col );
    00075
    00076 protected:
    00080         virtual void resizeEvent( QResizeEvent *re );
    00081
    00082 private slots:
    00083         void slotActivated( int index );
    00084         void slotHighlighted( int index );
    00085
    00086 private:
    00087         void addColors();
    00088         QColor customColor;
    00089         QColor internalcolor;
    00090
    00091 protected:
    00092         virtual void virtual_hook( int id, void* data );
    00093 private:
    00094         class KColorComboPrivate;
    00095         KColorComboPrivate *d;
    00096 };
    00097
    00098 #endif  // __KCOLORCOMBO_H__

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:56:16 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001