• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kcolorvalueselector.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002  * 
00003  * Copyright (C) 1997 Martin Jones (mjones@kde.org)
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  * 
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KCOLORVALUESELECTOR_H
00022 #define KCOLORVALUESELECTOR_H
00023 
00024 #include "kselector.h"
00025 #include "kcolorchoosermode.h"
00026 #include <QtGui/QPixmap>
00027 
00028 class KDEUI_EXPORT KColorValueSelector : public KSelector
00029 {
00030     Q_OBJECT
00031 public:
00035   explicit KColorValueSelector( QWidget *parent=0 );
00039   explicit KColorValueSelector( Qt::Orientation o, QWidget *parent = 0 );
00040 
00041   ~KColorValueSelector();
00042   
00046   void updateContents();
00047 
00053   int hue() const;
00054   
00061   void setHue( int hue );
00062 
00068   int saturation() const;
00069   
00076   void setSaturation( int saturation );
00077   
00083   int colorValue() const;
00084   
00091   void setColorValue( int colorValue );
00092 
00099   void setChooserMode (KColorChooserMode chooserMode);
00100 
00106   KColorChooserMode chooserMode () const;
00107     
00108 protected:
00113   virtual void drawPalette( QPixmap *pixmap );
00114   virtual void resizeEvent( QResizeEvent * );
00115 
00121   virtual void drawContents( QPainter *painter );
00122 
00123 private:
00124   class Private;
00125   friend class Private;
00126   
00127   Private *const d;
00128   
00129   Q_DISABLE_COPY(KColorValueSelector)
00130 };
00131 
00132 #endif /* KCOLORVALUESELECTOR_H */
00133 

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal