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

KDEUI

KColorValueSelector Class Reference

#include <kcolorvalueselector.h>

Inheritance diagram for KColorValueSelector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KColorValueSelector (Qt::Orientation o, QWidget *parent=0)
 KColorValueSelector (QWidget *parent=0)
 ~KColorValueSelector ()
KColorChooserMode chooserMode () const
int colorValue () const
int hue () const
int saturation () const
void setChooserMode (KColorChooserMode chooserMode)
void setColorValue (int colorValue)
void setHue (int hue)
void setSaturation (int saturation)
void updateContents ()

Protected Member Functions

virtual void drawContents (QPainter *painter)
virtual void drawPalette (QPixmap *pixmap)
virtual void resizeEvent (QResizeEvent *)

Detailed Description

Definition at line 28 of file kcolorvalueselector.h.


Constructor & Destructor Documentation

KColorValueSelector::KColorValueSelector ( QWidget *  parent = 0  )  [explicit]

Constructs a widget for color selection.

Definition at line 37 of file kcolorvalueselector.cpp.

KColorValueSelector::KColorValueSelector ( Qt::Orientation  o,
QWidget *  parent = 0 
) [explicit]

Constructs a widget for color selection with a given orientation.

Definition at line 43 of file kcolorvalueselector.cpp.

KColorValueSelector::~KColorValueSelector (  ) 

Definition at line 49 of file kcolorvalueselector.cpp.


Member Function Documentation

KColorChooserMode KColorValueSelector::chooserMode (  )  const

Returns the current chooser mode.

Returns:
The chooser mode (one of the KColorChooserMode constants)

Definition at line 114 of file kcolorvalueselector.cpp.

int KColorValueSelector::colorValue (  )  const

Returns the current color value.

Returns:
The color value (0-255)

Definition at line 74 of file kcolorvalueselector.cpp.

void KColorValueSelector::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 96 of file kcolorvalueselector.cpp.

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

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

Definition at line 119 of file kcolorvalueselector.cpp.

int KColorValueSelector::hue (  )  const

Returns the current hue value.

Returns:
The hue value (0-255)

Definition at line 54 of file kcolorvalueselector.cpp.

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

Definition at line 91 of file kcolorvalueselector.cpp.

int KColorValueSelector::saturation (  )  const

Returns the current saturation value.

Returns:
The saturation value (0-255)

Definition at line 64 of file kcolorvalueselector.cpp.

void KColorValueSelector::setChooserMode ( KColorChooserMode  chooserMode  ) 

Sets the chooser mode.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
chooserMode Sets the chooser mode (one of the KColorChooserMode constants)

Definition at line 101 of file kcolorvalueselector.cpp.

void KColorValueSelector::setColorValue ( int  colorValue  ) 

Sets the color value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
colorValue Sets the color value (0-255)

Definition at line 79 of file kcolorvalueselector.cpp.

void KColorValueSelector::setHue ( int  hue  ) 

Sets the hue value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
hue Sets the hue value (0-255)

Definition at line 59 of file kcolorvalueselector.cpp.

void KColorValueSelector::setSaturation ( int  saturation  ) 

Sets the saturation value.

Doesn't automatically update the widget; you have to call updateContents manually.

Parameters:
saturation Sets the saturation value (0-255)

Definition at line 69 of file kcolorvalueselector.cpp.

void KColorValueSelector::updateContents (  ) 

Updates the widget's contents.

Definition at line 86 of file kcolorvalueselector.cpp.


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

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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  •     Sodep
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.9-20090814
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