kdeui
KColorCells Class Reference
A table of editable color cells. More...
#include <kcolordialog.h>
Signals | |
void | colorDoubleClicked (int col) |
void | colorSelected (int col) |
Public Member Functions | |
QColor | color (int indx) const |
int | getSelected () const |
KColorCells (QWidget *parent, int rows, int cols) | |
int | numCells () const |
void | setAcceptDrags (bool _acceptDrags) |
void | setColor (int colNum, const QColor &col) |
void | setShading (bool _shade) |
~KColorCells () | |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *) |
virtual void | dropEvent (QDropEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | paintCell (QPainter *painter, int row, int col) |
int | posToCell (const QPoint &pos, bool ignoreBorders=false) |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
bool | acceptDrags |
QColor * | colors |
bool | inMouse |
QPoint | mPos |
int | selected |
bool | shade |
Detailed Description
A table of editable color cells.
Definition at line 253 of file kcolordialog.h.
Constructor & Destructor Documentation
KColorCells::KColorCells | ( | QWidget * | parent, | |
int | rows, | |||
int | cols | |||
) |
Definition at line 337 of file kcolordialog.cpp.
KColorCells::~KColorCells | ( | ) |
Definition at line 360 of file kcolordialog.cpp.
Member Function Documentation
QColor KColorCells::color | ( | int | indx | ) | const [inline] |
Definition at line 261 of file kcolordialog.h.
void KColorCells::colorDoubleClicked | ( | int | col | ) | [signal] |
void KColorCells::colorSelected | ( | int | col | ) | [signal] |
void KColorCells::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 446 of file kcolordialog.cpp.
void KColorCells::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 451 of file kcolordialog.cpp.
int KColorCells::getSelected | ( | ) | const [inline] |
Definition at line 270 of file kcolordialog.h.
void KColorCells::mouseDoubleClickEvent | ( | QMouseEvent * | ) | [protected, virtual] |
Definition at line 483 of file kcolordialog.cpp.
void KColorCells::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 427 of file kcolordialog.cpp.
void KColorCells::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 403 of file kcolordialog.cpp.
void KColorCells::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 460 of file kcolordialog.cpp.
int KColorCells::numCells | ( | ) | const [inline] |
Definition at line 263 of file kcolordialog.h.
void KColorCells::paintCell | ( | QPainter * | painter, | |
int | row, | |||
int | col | |||
) | [protected, virtual] |
int KColorCells::posToCell | ( | const QPoint & | pos, | |
bool | ignoreBorders = false | |||
) | [protected] |
Definition at line 409 of file kcolordialog.cpp.
void KColorCells::resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Definition at line 397 of file kcolordialog.cpp.
void KColorCells::setAcceptDrags | ( | bool | _acceptDrags | ) | [inline] |
Definition at line 268 of file kcolordialog.h.
void KColorCells::setColor | ( | int | colNum, | |
const QColor & | col | |||
) |
Definition at line 365 of file kcolordialog.cpp.
void KColorCells::setShading | ( | bool | _shade | ) | [inline] |
Definition at line 266 of file kcolordialog.h.
void KColorCells::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Definition at line 1605 of file kcolordialog.cpp.
Member Data Documentation
bool KColorCells::acceptDrags [protected] |
Definition at line 294 of file kcolordialog.h.
QColor* KColorCells::colors [protected] |
Definition at line 289 of file kcolordialog.h.
bool KColorCells::inMouse [protected] |
Definition at line 290 of file kcolordialog.h.
QPoint KColorCells::mPos [protected] |
Definition at line 291 of file kcolordialog.h.
int KColorCells::selected [protected] |
Definition at line 292 of file kcolordialog.h.
bool KColorCells::shade [protected] |
Definition at line 293 of file kcolordialog.h.
The documentation for this class was generated from the following files: