QtiPlot  0.9.8.2
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
ColorPickerPopup Class Reference

List of all members.

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 ()
ColorPickerItemfind (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
ColorPickerButtonmoreButton
QMap< int, QMap< int, QWidget * > > widgetAt

Constructor & Destructor Documentation

ColorPickerPopup::ColorPickerPopup ( int  width,
bool  withColorDialog,
QWidget *  parent = 0 
)
ColorPickerPopup::~ColorPickerPopup ( )

References eventLoop.


Member Function Documentation

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
void ColorPickerPopup::getColorFromDialog ( )
slot

References insertColor(), lastSel, and selected().

Referenced by ColorPickerPopup().

void ColorPickerPopup::hid ( )
signal

Referenced by hideEvent().

void ColorPickerPopup::hideEvent ( QHideEvent *  e)
protected

References eventLoop, and hid().

void ColorPickerPopup::insertColor ( const QColor &  col,
const QString &  text,
int  index 
)
void ColorPickerPopup::keyPressEvent ( QKeyEvent *  e)
protected
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
void ColorPickerPopup::setExecFlag ( )
void ColorPickerPopup::showEvent ( QShowEvent *  e)
protected

References grid, items, and widgetAt.

void ColorPickerPopup::updateSelected ( )
protectedslot

Member Data Documentation

int ColorPickerPopup::cols
private

Referenced by ColorPickerPopup(), and regenerateGrid().

QEventLoop* ColorPickerPopup::eventLoop
private
QGridLayout* ColorPickerPopup::grid
private
QList<ColorPickerItem *> ColorPickerPopup::items
private
int ColorPickerPopup::lastPos
private
QColor ColorPickerPopup::lastSel
private
ColorPickerButton* ColorPickerPopup::moreButton
private

Referenced by ColorPickerPopup(), and regenerateGrid().

QMap<int, QMap<int, QWidget *> > ColorPickerPopup::widgetAt
private

The documentation for this class was generated from the following file: