QtiPlot  0.9.8.2
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
ColorPickerPopup Class Reference
Inheritance diagram for ColorPickerPopup:

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::ColorPickerPopup ( int  width,
bool  withColorDialog,
QWidget *  parent = 0 
)

◆ ~ColorPickerPopup()

ColorPickerPopup::~ColorPickerPopup ( )

References eventLoop.

Member Function Documentation

◆ color()

QColor ColorPickerPopup::color ( int  index) const

References items.

Referenced by QtColorPicker::color().

◆ exec()

void ColorPickerPopup::exec ( )

References eventLoop.

Referenced by QtColorPicker::getColor().

◆ find()

ColorPickerItem * ColorPickerPopup::find ( const QColor &  col) const

◆ getColorFromDialog

void ColorPickerPopup::getColorFromDialog ( )
slot

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

Referenced by ColorPickerPopup().

◆ hid

void ColorPickerPopup::hid ( )
signal

Referenced by hideEvent().

◆ hideEvent()

void ColorPickerPopup::hideEvent ( QHideEvent *  e)
protected

References eventLoop, and hid().

◆ insertColor()

void ColorPickerPopup::insertColor ( const QColor &  col,
const QString &  text,
int  index 
)

◆ keyPressEvent()

void ColorPickerPopup::keyPressEvent ( QKeyEvent *  e)
protected

◆ lastSelected()

QColor ColorPickerPopup::lastSelected ( ) const

References lastSel.

Referenced by QtColorPicker::getColor(), and insertColor().

◆ mouseReleaseEvent()

void ColorPickerPopup::mouseReleaseEvent ( QMouseEvent *  e)
protected

◆ regenerateGrid()

void ColorPickerPopup::regenerateGrid ( )
protected

References cols, grid, items, moreButton, and widgetAt.

Referenced by ColorPickerPopup(), and insertColor().

◆ selected

void ColorPickerPopup::selected ( const QColor &  )
signal

◆ setExecFlag()

void ColorPickerPopup::setExecFlag ( )

◆ showEvent()

void ColorPickerPopup::showEvent ( QShowEvent *  e)
protected

References grid, items, and widgetAt.

◆ updateSelected

void ColorPickerPopup::updateSelected ( )
protectedslot

Member Data Documentation

◆ cols

int ColorPickerPopup::cols
private

Referenced by ColorPickerPopup(), and regenerateGrid().

◆ eventLoop

QEventLoop* ColorPickerPopup::eventLoop
private

◆ grid

QGridLayout* ColorPickerPopup::grid
private

◆ items

QList<ColorPickerItem *> ColorPickerPopup::items
private

◆ lastPos

int ColorPickerPopup::lastPos
private

◆ lastSel

QColor ColorPickerPopup::lastSel
private

◆ moreButton

ColorPickerButton* ColorPickerPopup::moreButton
private

Referenced by ColorPickerPopup(), and regenerateGrid().

◆ widgetAt

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

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