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

QColorLuminancePicker Class Reference

List of all members.

Public Slots

void setCol (int h, int s, int v)
void setCol (int h, int s)

Signals

void newHsv (int h, int s, int v)

Public Member Functions

 QColorLuminancePicker (QWidget *parent=0, const char *name=0)
 ~QColorLuminancePicker ()

Protected Member Functions

void paintEvent (QPaintEvent *)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)

Private Types

enum  { foff = 3, coff = 4 }

Private Member Functions

int y2val (int y)
int val2y (int val)
void setVal (int v)

Private Attributes

int val
int hue
int sat
QPixmap * pix

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
foff 
coff 

Definition at line 748 of file qcolordialog.cpp.


Constructor & Destructor Documentation

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

Definition at line 773 of file qcolordialog.cpp.

References hue, pix, sat, and val.

QColorLuminancePicker::~QColorLuminancePicker  ) 
 

Definition at line 782 of file qcolordialog.cpp.

References pix.


Member Function Documentation

void QColorLuminancePicker::mouseMoveEvent QMouseEvent *   )  [protected]
 

Definition at line 787 of file qcolordialog.cpp.

References setVal(), and y2val().

void QColorLuminancePicker::mousePressEvent QMouseEvent *   )  [protected]
 

Definition at line 791 of file qcolordialog.cpp.

References setVal(), and y2val().

void QColorLuminancePicker::newHsv int  h,
int  s,
int  v
[signal]
 

Referenced by setCol(), and setVal().

void QColorLuminancePicker::paintEvent QPaintEvent *   )  [protected]
 

Definition at line 813 of file qcolordialog.cpp.

References coff, foff, g, height, hue, p, pix, sat, TRUE, val, val2y(), width, Opie::MM::x, Opie::MM::y, and y2val().

void QColorLuminancePicker::setCol int  h,
int  s
[slot]
 

Definition at line 807 of file qcolordialog.cpp.

References newHsv(), setCol(), and val.

void QColorLuminancePicker::setCol int  h,
int  s,
int  v
[slot]
 

Definition at line 847 of file qcolordialog.cpp.

References FALSE, hue, pix, sat, and val.

Referenced by OColorDialogPrivate::newColorTypedIn(), QColorDialogPrivate::newColorTypedIn(), OColorDialogPrivate::newHsv(), QColorDialogPrivate::newHsv(), and setCol().

void QColorLuminancePicker::setVal int  v  )  [private]
 

Definition at line 796 of file qcolordialog.cpp.

References FALSE, hue, newHsv(), pix, sat, and val.

Referenced by mouseMoveEvent(), and mousePressEvent().

int QColorLuminancePicker::val2y int  val  )  [private]
 

Definition at line 767 of file qcolordialog.cpp.

References coff, d, and height.

Referenced by paintEvent().

int QColorLuminancePicker::y2val int  y  )  [private]
 

Definition at line 761 of file qcolordialog.cpp.

References coff, d, and height.

Referenced by mouseMoveEvent(), mousePressEvent(), and paintEvent().


Member Data Documentation

int QColorLuminancePicker::hue [private]
 

Definition at line 750 of file qcolordialog.cpp.

Referenced by paintEvent(), QColorLuminancePicker(), setCol(), and setVal().

QPixmap* QColorLuminancePicker::pix [private]
 

Definition at line 757 of file qcolordialog.cpp.

Referenced by paintEvent(), QColorLuminancePicker(), setCol(), setVal(), and ~QColorLuminancePicker().

int QColorLuminancePicker::sat [private]
 

Definition at line 751 of file qcolordialog.cpp.

Referenced by paintEvent(), QColorLuminancePicker(), setCol(), and setVal().

int QColorLuminancePicker::val [private]
 

Definition at line 749 of file qcolordialog.cpp.

Referenced by paintEvent(), QColorLuminancePicker(), setCol(), and setVal().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:46:15 2005 for OPIE by  doxygen 1.4.2