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

QColorWell Class Reference

Inheritance diagram for QColorWell:

Inheritance graph
[legend]
Collaboration diagram for QColorWell:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 QColorWell (QWidget *parent, int r, int c, QRgb *vals)
QSizePolicy sizePolicy () const

Protected Member Functions

void drawContents (QPainter *, int row, int col, const QRect &)
void drawContents (QPainter *p)
void mousePressEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void dragEnterEvent (QDragEnterEvent *e)
void dragLeaveEvent (QDragLeaveEvent *e)
void dragMoveEvent (QDragMoveEvent *e)
void dropEvent (QDropEvent *e)

Private Attributes

QRgb * values
bool mousePressed
QPoint pressPos
QPoint oldCurrent

Constructor & Destructor Documentation

QColorWell::QColorWell QWidget *  parent,
int  r,
int  c,
QRgb *  vals
[inline]
 

Definition at line 574 of file qcolordialog.cpp.

References QWellArray::setDimension().


Member Function Documentation

void QColorWell::dragEnterEvent QDragEnterEvent *  e  )  [protected]
 

Definition at line 643 of file qcolordialog.cpp.

void QColorWell::dragLeaveEvent QDragLeaveEvent *  e  )  [protected]
 

Definition at line 652 of file qcolordialog.cpp.

void QColorWell::dragMoveEvent QDragMoveEvent *  e  )  [protected]
 

Definition at line 658 of file qcolordialog.cpp.

References QWellArray::setCurrent().

void QColorWell::drawContents QPainter *  p  )  [inline, protected]
 

Pass-through to QTableView::drawContents() to avoid hiding.

Reimplemented from QWellArray.

Definition at line 581 of file qcolordialog.cpp.

References QWellArray::drawContents().

void QColorWell::drawContents QPainter *  p,
int  row,
int  col,
const QRect &  r
[protected, virtual]
 

Reimplement this function to change the contents of the well array.

Reimplemented from QWellArray.

Definition at line 605 of file qcolordialog.cpp.

References i, QWellArray::numRows(), and values.

void QColorWell::dropEvent QDropEvent *  e  )  [protected]
 

Definition at line 667 of file qcolordialog.cpp.

References col, FALSE, i, QWellArray::numRows(), and values.

void QColorWell::mouseMoveEvent QMouseEvent *  e  )  [protected]
 

Reimplemented from QWellArray.

Definition at line 619 of file qcolordialog.cpp.

References col, FALSE, i, QWellArray::mouseMoveEvent(), mousePressed, QWellArray::numRows(), oldCurrent, p, pix, pressPos, QWellArray::setCurrent(), and values.

void QColorWell::mousePressEvent QMouseEvent *  e  )  [protected]
 

Reimplemented from QWellArray.

Definition at line 611 of file qcolordialog.cpp.

References mousePressed, QWellArray::mousePressEvent(), oldCurrent, pressPos, QWellArray::selectedColumn(), QWellArray::selectedRow(), and TRUE.

void QColorWell::mouseReleaseEvent QMouseEvent *  e  )  [protected]
 

Reimplemented from QWellArray.

Definition at line 683 of file qcolordialog.cpp.

References FALSE, mousePressed, and QWellArray::mouseReleaseEvent().

QSizePolicy QColorWell::sizePolicy  )  const
 

Definition at line 600 of file qcolordialog.cpp.


Member Data Documentation

bool QColorWell::mousePressed [private]
 

Definition at line 594 of file qcolordialog.cpp.

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

QPoint QColorWell::oldCurrent [private]
 

Definition at line 596 of file qcolordialog.cpp.

Referenced by mouseMoveEvent(), and mousePressEvent().

QPoint QColorWell::pressPos [private]
 

Definition at line 595 of file qcolordialog.cpp.

Referenced by mouseMoveEvent(), and mousePressEvent().

QRgb* QColorWell::values [private]
 

Definition at line 593 of file qcolordialog.cpp.

Referenced by drawContents(), dropEvent(), and mouseMoveEvent().


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