• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

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., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 //-----------------------------------------------------------------------------
00020 // KDE color selection combo box
00021 
00022 // layout management added Oct 1997 by Mario Weilguni
00023 // <mweilguni@sime.com>
00024 
00025 
00026 #ifndef _KCOLORCOMBO_H__
00027 #define _KCOLORCOMBO_H__
00028 
00029 #include <tqcombobox.h>
00030 #include <kcolordialog.h>
00031 #include "tdeselect.h"
00032 
00033 
00034 class KColorComboInternal;
00035 
00039 class TDEUI_EXPORT KColorCombo : public TQComboBox
00040 {
00041     Q_OBJECT
00042     TQ_PROPERTY( TQColor color READ color WRITE setColor )
00043 
00044 public:
00048     KColorCombo( TQWidget *parent, const char *name = 0L );
00049     ~KColorCombo();
00050 
00054     void setColor( const TQColor &col );
00058     TQColor color() const;
00059 
00060 
00064      void showEmptyList();
00065 
00066 signals:
00070     void activated( const TQColor &col );
00074     void highlighted( const TQColor &col );
00075 
00076 protected:
00077     virtual void resizeEvent( TQResizeEvent *re );
00078 
00079 private slots:
00080     void slotActivated( int index );
00081     void slotHighlighted( int index );
00082 
00083 private:
00084     void addColors();
00085     TQColor customColor;
00086     TQColor internalcolor;
00087 
00088 protected:
00089     virtual void virtual_hook( int id, void* data );
00090 private:
00091     class KColorComboPrivate;
00092     KColorComboPrivate *d;
00093 };
00094 
00095 #endif  // __KCOLORCOMBO_H__

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.7.1
This website is maintained by Timothy Pearson.