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

tdeui

  • tdeui
kcolorcombo.h
1/* This file is part of the KDE libraries
2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19//-----------------------------------------------------------------------------
20// KDE color selection combo box
21
22// layout management added Oct 1997 by Mario Weilguni
23// <mweilguni@sime.com>
24
25
26#ifndef _KCOLORCOMBO_H__
27#define _KCOLORCOMBO_H__
28
29#include <tqcombobox.h>
30#include <kcolordialog.h>
31#include "tdeselect.h"
32
33
34class KColorComboInternal;
35
39class TDEUI_EXPORT KColorCombo : public TQComboBox
40{
41 TQ_OBJECT
42 TQ_PROPERTY( TQColor color READ color WRITE setColor )
43
44public:
48 KColorCombo( TQWidget *parent, const char *name = 0L );
49 ~KColorCombo();
50
54 void setColor( const TQColor &col );
58 TQColor color() const;
59
60
64 void showEmptyList();
65
66signals:
70 void activated( const TQColor &col );
74 void highlighted( const TQColor &col );
75
76protected:
77 virtual void resizeEvent( TQResizeEvent *re );
78
79private slots:
80 void slotActivated( int index );
81 void slotHighlighted( int index );
82
83private:
84 void addColors();
85 TQColor customColor;
86 TQColor internalcolor;
87
88protected:
89 virtual void virtual_hook( int id, void* data );
90private:
91 class KColorComboPrivate;
92 KColorComboPrivate *d;
93};
94
95#endif // __KCOLORCOMBO_H__
KColorCombo
Combobox for colors.
Definition: kcolorcombo.h:40
KColorCombo::highlighted
void highlighted(const TQColor &col)
Emitted when a new item has been highlighted.
KColorCombo::activated
void activated(const TQColor &col)
Emitted when a new color box has been selected.

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.9.4
This website is maintained by Timothy Pearson.