KDEUI
KColorValueSelector Class Reference
#include <kcolorvalueselector.h>

Detailed Description
Definition at line 28 of file kcolorvalueselector.h.
Public Member Functions | |
KColorChooserMode | chooserMode () const |
int | colorValue () const |
int | hue () const |
KColorValueSelector (Qt::Orientation o, QWidget *parent=0) | |
KColorValueSelector (QWidget *parent=0) | |
int | saturation () const |
void | setChooserMode (KColorChooserMode chooserMode) |
void | setColorValue (int colorValue) |
void | setHue (int hue) |
void | setSaturation (int saturation) |
void | updateContents () |
~KColorValueSelector () | |
Protected Member Functions | |
virtual void | drawContents (QPainter *painter) |
virtual void | drawPalette (QPixmap *pixmap) |
virtual void | resizeEvent (QResizeEvent *) |
Constructor & Destructor Documentation
KColorValueSelector::KColorValueSelector | ( | QWidget * | parent = 0 |
) | [explicit] |
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 | ( | ) |
The documentation for this class was generated from the following files: