Public Slots | |
| void | getColorFromDialog () |
Signals | |
| void | hid () |
| void | selected (const QColor &) |
Public Member Functions | |
| QColor | color (int index) const |
| ColorPickerPopup (int width, bool withColorDialog, QWidget *parent=0) | |
| void | exec () |
| ColorPickerItem * | find (const QColor &col) const |
| void | insertColor (const QColor &col, const QString &text, int index) |
| QColor | lastSelected () const |
| void | setExecFlag () |
| ~ColorPickerPopup () | |
Protected Slots | |
| void | updateSelected () |
Protected Member Functions | |
| void | hideEvent (QHideEvent *e) |
| void | keyPressEvent (QKeyEvent *e) |
| void | mouseReleaseEvent (QMouseEvent *e) |
| void | regenerateGrid () |
| void | showEvent (QShowEvent *e) |
Private Attributes | |
| int | cols |
| QEventLoop * | eventLoop |
| QGridLayout * | grid |
| QList< ColorPickerItem * > | items |
| int | lastPos |
| QColor | lastSel |
| ColorPickerButton * | moreButton |
| QMap< int, QMap< int, QWidget * > > | widgetAt |
| ColorPickerPopup::ColorPickerPopup | ( | int | width, | |
| bool | withColorDialog, | |||
| QWidget * | parent = 0 | |||
| ) |
References cols, eventLoop, getColorFromDialog(), grid, moreButton, and regenerateGrid().
| ColorPickerPopup::~ColorPickerPopup | ( | ) |
References eventLoop.
| QColor ColorPickerPopup::color | ( | int | index | ) | const |
References items.
Referenced by QtColorPicker::color().
| void ColorPickerPopup::exec | ( | ) |
References eventLoop.
Referenced by QtColorPicker::getColor().
| ColorPickerItem * ColorPickerPopup::find | ( | const QColor & | col | ) | const |
References items.
Referenced by QtColorPicker::buttonPressed(), insertColor(), and QtColorPicker::setCurrentColor().
| void ColorPickerPopup::getColorFromDialog | ( | ) | [slot] |
References insertColor(), lastSel, and selected().
Referenced by ColorPickerPopup().
| void ColorPickerPopup::hid | ( | ) | [signal] |
Referenced by hideEvent().
| void ColorPickerPopup::insertColor | ( | const QColor & | col, | |
| const QString & | text, | |||
| int | index | |||
| ) |
References find(), items, lastSel, lastSelected(), regenerateGrid(), selected(), ColorPickerItem::setSelected(), and updateSelected().
Referenced by QtColorPicker::getColor(), getColorFromDialog(), and QtColorPicker::insertColor().
| void ColorPickerPopup::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
References ColorPickerItem::color(), grid, lastSel, selected(), ColorPickerItem::setSelected(), and widgetAt.
| QColor ColorPickerPopup::lastSelected | ( | ) | const |
References lastSel.
Referenced by QtColorPicker::getColor(), and insertColor().
| void ColorPickerPopup::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected] |
| void ColorPickerPopup::regenerateGrid | ( | ) | [protected] |
References cols, grid, items, moreButton, and widgetAt.
Referenced by ColorPickerPopup(), and insertColor().
| void ColorPickerPopup::selected | ( | const QColor & | ) | [signal] |
Referenced by getColorFromDialog(), insertColor(), keyPressEvent(), and updateSelected().
| void ColorPickerPopup::setExecFlag | ( | ) |
| void ColorPickerPopup::showEvent | ( | QShowEvent * | e | ) | [protected] |
| void ColorPickerPopup::updateSelected | ( | ) | [protected, slot] |
References ColorPickerItem::color(), grid, lastSel, selected(), and ColorPickerItem::setSelected().
Referenced by insertColor().
int ColorPickerPopup::cols [private] |
Referenced by ColorPickerPopup(), and regenerateGrid().
QEventLoop* ColorPickerPopup::eventLoop [private] |
Referenced by ColorPickerPopup(), exec(), hideEvent(), and ~ColorPickerPopup().
QGridLayout* ColorPickerPopup::grid [private] |
Referenced by ColorPickerPopup(), keyPressEvent(), regenerateGrid(), showEvent(), and updateSelected().
QList<ColorPickerItem *> ColorPickerPopup::items [private] |
Referenced by color(), find(), insertColor(), regenerateGrid(), and showEvent().
int ColorPickerPopup::lastPos [private] |
QColor ColorPickerPopup::lastSel [private] |
Referenced by getColorFromDialog(), insertColor(), keyPressEvent(), lastSelected(), and updateSelected().
ColorPickerButton* ColorPickerPopup::moreButton [private] |
Referenced by ColorPickerPopup(), and regenerateGrid().
QMap<int, QMap<int, QWidget *> > ColorPickerPopup::widgetAt [private] |
Referenced by keyPressEvent(), regenerateGrid(), and showEvent().
1.7.1