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

Opie::Ui::OValueSelector Class Reference

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

Inheritance diagram for Opie::Ui::OValueSelector:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Attributes

int _hue
int _sat
QPixmap pixmap
OValueSelectorPrivate * d

Detailed Description

Widget for color value selection.

See also:
OHSSelector, 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 437 of file oselector.h.


Constructor & Destructor Documentation

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

Constructs a widget for color selection.

Definition at line 648 of file oselector.cpp.

References pixmap.

OValueSelector::OValueSelector Orientation  o,
QWidget *  parent = 0,
const char *  name = 0
 

Constructs a widget for color selection with a given orientation

Definition at line 655 of file oselector.cpp.

References pixmap.


Member Function Documentation

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

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

Reimplemented from Opie::Ui::OSelector.

Definition at line 673 of file oselector.cpp.

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

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

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

Definition at line 678 of file oselector.cpp.

References _hue, _sat, col, Opie::Ui::OSelector::contentsRect(), createStandardPalette(), Opie::Ui::OImageEffect::dither(), i, image, Opie::Ui::OSelector::orientation(), p, STANDARD_PAL_SIZE, standardPalette, v, and Opie::MM::x.

Referenced by updateContents().

int Opie::Ui::OValueSelector::hue  )  const [inline]
 

Definition at line 451 of file oselector.h.

References _hue.

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

Definition at line 668 of file oselector.cpp.

References updateContents().

int Opie::Ui::OValueSelector::saturation  )  const [inline]
 

Definition at line 455 of file oselector.h.

References _sat.

void Opie::Ui::OValueSelector::setHue int  h  )  [inline]
 

Definition at line 453 of file oselector.h.

References _hue.

void Opie::Ui::OValueSelector::setSaturation int  s  )  [inline]
 

Definition at line 457 of file oselector.h.

References _sat.

void OValueSelector::updateContents  ) 
 

Definition at line 663 of file oselector.cpp.

References drawPalette(), and pixmap.

Referenced by resizeEvent().


Member Data Documentation

int Opie::Ui::OValueSelector::_hue [private]
 

Definition at line 479 of file oselector.h.

Referenced by drawPalette(), hue(), and setHue().

int Opie::Ui::OValueSelector::_sat [private]
 

Definition at line 480 of file oselector.h.

Referenced by drawPalette(), saturation(), and setSaturation().

OValueSelectorPrivate* Opie::Ui::OValueSelector::d [private]
 

Reimplemented from Opie::Ui::OSelector.

Definition at line 484 of file oselector.h.

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

Definition at line 481 of file oselector.h.

Referenced by drawContents(), OValueSelector(), and updateContents().


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