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

kdeui

KValueSelector Class Reference

Widget for color value selection. More...

#include <kcolordialog.h>

Inheritance diagram for KValueSelector:

Inheritance graph
[legend]

List of all members.


Public Member Functions

int hue () const
 KValueSelector (Orientation o, QWidget *parent=0, const char *name=0)
 KValueSelector (QWidget *parent=0, const char *name=0)
int saturation () const
void setHue (int h)
void setSaturation (int s)
void updateContents ()

Protected Member Functions

virtual void drawContents (QPainter *painter)
virtual void drawPalette (QPixmap *pixmap)
virtual void resizeEvent (QResizeEvent *)
virtual void virtual_hook (int id, void *data)

Detailed Description

Widget for color value selection.

See also:
KHSSelector, KColorDialog
Author:
Martin Jones (mjones@kde.org)

Definition at line 102 of file kcolordialog.h.


Constructor & Destructor Documentation

KValueSelector::KValueSelector ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructs a widget for color selection.

Definition at line 262 of file kcolordialog.cpp.

KValueSelector::KValueSelector ( Orientation  o,
QWidget *  parent = 0,
const char *  name = 0 
)

Constructs a widget for color selection with a given orientation.

Definition at line 269 of file kcolordialog.cpp.


Member Function Documentation

void KValueSelector::drawContents ( QPainter *  painter  )  [protected, virtual]

Reimplemented from KSelector.

The drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.

Reimplemented from KSelector.

Definition at line 287 of file kcolordialog.cpp.

void KValueSelector::drawPalette ( QPixmap *  pixmap  )  [protected, virtual]

Draws the contents of the widget on a pixmap, which is used for buffering.

Definition at line 292 of file kcolordialog.cpp.

int KValueSelector::hue (  )  const [inline]

Definition at line 116 of file kcolordialog.h.

void KValueSelector::resizeEvent ( QResizeEvent *   )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 282 of file kcolordialog.cpp.

int KValueSelector::saturation (  )  const [inline]

Definition at line 120 of file kcolordialog.h.

void KValueSelector::setHue ( int  h  )  [inline]

Definition at line 118 of file kcolordialog.h.

void KValueSelector::setSaturation ( int  s  )  [inline]

Definition at line 122 of file kcolordialog.h.

void KValueSelector::updateContents (  ) 

Definition at line 277 of file kcolordialog.cpp.

void KValueSelector::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KSelector.

Definition at line 1599 of file kcolordialog.cpp.


The documentation for this class was generated from the following files:
  • kcolordialog.h
  • kcolordialog.cpp

kdeui

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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