class KColorCells

# class KColorCells | A table of editable color cells. More...
Definition | `#include <kcolordialog.h>`
Inherits | QGridView (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KColorCells ( QWidget *parent, int rows, int cols )
- ~KColorCells ()
- void setColor ( int colNum, const QColor &col )
- QColor color ( int indx ) const
- int numCells () const
- void setShading (bool _shade)
- void setAcceptDrags (bool _acceptDrags)
- int getSelected () const

#### Signals

- void colorSelected ( int col )
- void colorDoubleClicked ( int col )

#### Protected Methods

- int posToCell (const QPoint &pos, bool ignoreBorders=false)
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- QColor *colors
- bool inMouse
- QPoint mPos
- int selected
- bool shade
- bool acceptDrags

## Detailed Description

A table of editable color cells.

KColorCells ( QWidget *parent, int rows, int cols ) | ### KColorCells

~KColorCells () | ### ~KColorCells

void setColor ( int colNum, const QColor &col ) | ### setColor

QColor color ( int indx ) | ### color

[const]

int numCells () | ### numCells

[const]

void setShading (bool _shade) | ### setShading

void setAcceptDrags (bool _acceptDrags) | ### setAcceptDrags

int getSelected () | ### getSelected

[const]

void colorSelected ( int col ) | ### colorSelected

[signal]

void colorDoubleClicked ( int col ) | ### colorDoubleClicked

[signal]

void paintCell ( QPainter *painter, int row, int col ) | ### paintCell

[protected virtual]

void resizeEvent ( QResizeEvent * ) | ### resizeEvent

[protected virtual]

void mouseReleaseEvent ( QMouseEvent * ) | ### mouseReleaseEvent

[protected virtual]

void mousePressEvent ( QMouseEvent * ) | ### mousePressEvent

[protected virtual]

void mouseMoveEvent ( QMouseEvent * ) | ### mouseMoveEvent

[protected virtual]

void dragEnterEvent ( QDragEnterEvent *) | ### dragEnterEvent

[protected virtual]

void dropEvent ( QDropEvent *) | ### dropEvent

[protected virtual]

void mouseDoubleClickEvent ( QMouseEvent * ) | ### mouseDoubleClickEvent

[protected virtual]

int posToCell (const QPoint &pos, bool ignoreBorders=false) | ### posToCell

[protected]

QColor * colors | ### colors

[protected]

bool inMouse | ### inMouse

[protected]

QPoint mPos | ### mPos

[protected]

int selected | ### selected

[protected]

bool shade | ### shade

[protected]

bool acceptDrags | ### acceptDrags

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Version: $Id: kcolordialog.h,v 1.50 2002/08/01 14:19:52 coolo Exp $
- Author: Martin Jones
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.