Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Ui::OHSSelector Class Reference

#include </home/clem/local/src/opie/libopie2/opieui/oselector.h>

Inheritance diagram for Opie::Ui::OHSSelector:

Inheritance graph
[legend]
Collaboration diagram for Opie::Ui::OHSSelector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OHSSelector (QWidget *parent=0, const char *name=0)

Protected Member Functions

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

Private Member Functions

void updateContents ()

Private Attributes

QPixmap pixmap
OHSSelectorPrivate * d

Detailed Description

Widget for Hue/Saturation selection. The actual values can be fetched using the inherited xValue and yValue methods.

See also:
OXYSelector, OValueSelector, OColorDialog
Author:
Martin Jones (mjones@kde.org)
Version:
Id
oselector.h,v 1.3 2005/01/21 20:19:01 ar Exp

Definition at line 392 of file oselector.h.


Constructor & Destructor Documentation

OHSSelector::OHSSelector QWidget *  parent = 0,
const char *  name = 0
 

Constructs a hue/saturation selection widget.

Definition at line 597 of file oselector.cpp.

References Opie::Ui::OXYSelector::setRange().


Member Function Documentation

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

Reimplemented from OXYSelector. This drawing is buffered in a pixmap here. As real drawing routine, drawPalette() is used.

Reimplemented from Opie::Ui::OXYSelector.

Definition at line 613 of file oselector.cpp.

References Opie::Ui::OXYSelector::contentsRect(), pixmap, Opie::MM::x, and Opie::MM::y.

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

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

Definition at line 618 of file oselector.cpp.

References col, Opie::Ui::OXYSelector::contentsRect(), createStandardPalette(), Opie::Ui::OImageEffect::dither(), image, p, s, STANDARD_PAL_SIZE, and standardPalette.

Referenced by updateContents().

void OHSSelector::resizeEvent QResizeEvent *   )  [protected, virtual]
 

Definition at line 608 of file oselector.cpp.

References updateContents().

void OHSSelector::updateContents  )  [private]
 

Definition at line 603 of file oselector.cpp.

References drawPalette(), and pixmap.

Referenced by resizeEvent().


Member Data Documentation

OHSSelectorPrivate* Opie::Ui::OHSSelector::d [private]
 

Reimplemented from Opie::Ui::OXYSelector.

Definition at line 424 of file oselector.h.

QPixmap Opie::Ui::OHSSelector::pixmap [private]
 

Definition at line 421 of file oselector.h.

Referenced by drawContents(), and updateContents().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:04 2005 for OPIE by  doxygen 1.4.2