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

QColorPicker Class Reference

List of all members.

Public Slots

void setCol (int h, int s)

Signals

void newCol (int h, int s)

Public Member Functions

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

Protected Member Functions

QSize sizeHint () const
QSizePolicy sizePolicy () const
void drawContents (QPainter *p)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)

Private Member Functions

QPoint colPt ()
int huePt (const QPoint &pt)
int satPt (const QPoint &pt)
void setCol (const QPoint &pt)

Private Attributes

int hue
int sat
QPixmap * pix

Constructor & Destructor Documentation

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

Definition at line 865 of file qcolordialog.cpp.

References hue, huePt(), p, pHeight, pix, pWidth, sat, satPt(), setCol(), Opie::MM::x, and Opie::MM::y.

QColorPicker::~QColorPicker  ) 
 

Definition at line 884 of file qcolordialog.cpp.

References pix.


Member Function Documentation

QPoint QColorPicker::colPt  )  [private]
 

Definition at line 856 of file qcolordialog.cpp.

References hue, pHeight, pWidth, and sat.

Referenced by drawContents(), and setCol().

void QColorPicker::drawContents QPainter *  p  )  [protected]
 

Definition at line 927 of file qcolordialog.cpp.

References colPt(), and pix.

int QColorPicker::huePt const QPoint &  pt  )  [private]
 

Definition at line 858 of file qcolordialog.cpp.

References pWidth.

Referenced by QColorPicker(), and setCol().

void QColorPicker::mouseMoveEvent QMouseEvent *   )  [protected]
 

Definition at line 913 of file qcolordialog.cpp.

References hue, newCol(), p, sat, and setCol().

void QColorPicker::mousePressEvent QMouseEvent *   )  [protected]
 

Definition at line 920 of file qcolordialog.cpp.

References hue, newCol(), p, sat, and setCol().

void QColorPicker::newCol int  h,
int  s
[signal]
 

Referenced by mouseMoveEvent(), and mousePressEvent().

int QColorPicker::satPt const QPoint &  pt  )  [private]
 

Definition at line 860 of file qcolordialog.cpp.

References pHeight.

Referenced by QColorPicker(), and setCol().

void QColorPicker::setCol const QPoint &  pt  )  [private]
 

Definition at line 862 of file qcolordialog.cpp.

References huePt(), satPt(), and setCol().

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

Definition at line 899 of file qcolordialog.cpp.

References colPt(), FALSE, hue, sat, Opie::MM::x, and Opie::MM::y.

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

QSize QColorPicker::sizeHint  )  const [protected]
 

Definition at line 889 of file qcolordialog.cpp.

References pHeight, and pWidth.

QSizePolicy QColorPicker::sizePolicy  )  const [protected]
 

Definition at line 894 of file qcolordialog.cpp.


Member Data Documentation

int QColorPicker::hue [private]
 

Definition at line 712 of file qcolordialog.cpp.

Referenced by colPt(), mouseMoveEvent(), mousePressEvent(), QColorPicker(), and setCol().

QPixmap* QColorPicker::pix [private]
 

Definition at line 720 of file qcolordialog.cpp.

Referenced by drawContents(), QColorPicker(), and ~QColorPicker().

int QColorPicker::sat [private]
 

Definition at line 713 of file qcolordialog.cpp.

Referenced by colPt(), mouseMoveEvent(), mousePressEvent(), QColorPicker(), and setCol().


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