te::qt::widgets::ColorPickerPopup Class Reference

Create a frame with a default color palette. More...

#include <ColorPickerToolButton.h>

Inheritance diagram for te::qt::widgets::ColorPickerPopup:

Signals

void selected (const QColor &color)
 

Public Member Functions

 ColorPickerPopup (QWidget *parent=0)
 
void mouseMoveEvent (QMouseEvent *)
 
void mousePressEvent (QMouseEvent *e)
 
void paintButton (QPainter *painter, const QRectF &rc, const QString &text, bool hover)
 
void paintEvent (QPaintEvent *)
 
void setSelected (QColor color)
 

Public Attributes

QRectF m_buttonKeyRect
 
QList< ColorKeyInfom_colorInfos
 
QColor m_currentColor
 
QColor m_hoverColor
 
QRgb m_stdrgb [48]
 

Detailed Description

Create a frame with a default color palette.

Definition at line 80 of file ColorPickerToolButton.h.

Constructor & Destructor Documentation

te::qt::widgets::ColorPickerPopup::ColorPickerPopup ( QWidget *  parent = 0)
inline

Definition at line 86 of file ColorPickerToolButton.h.

References COLORSIZE, COLS, m_stdrgb, MARGINX, MARGINY, and SPACE.

Member Function Documentation

void te::qt::widgets::ColorPickerPopup::mouseMoveEvent ( QMouseEvent *  )
inline

Definition at line 172 of file ColorPickerToolButton.h.

void te::qt::widgets::ColorPickerPopup::mousePressEvent ( QMouseEvent *  e)
inline
void te::qt::widgets::ColorPickerPopup::paintButton ( QPainter *  painter,
const QRectF &  rc,
const QString &  text,
bool  hover 
)
inline

Definition at line 110 of file ColorPickerToolButton.h.

Referenced by paintEvent().

void te::qt::widgets::ColorPickerPopup::paintEvent ( QPaintEvent *  )
inline
void te::qt::widgets::ColorPickerPopup::selected ( const QColor &  color)
signal

Referenced by mousePressEvent().

void te::qt::widgets::ColorPickerPopup::setSelected ( QColor  color)
inline

Definition at line 209 of file ColorPickerToolButton.h.

References m_currentColor.

Member Data Documentation

QRectF te::qt::widgets::ColorPickerPopup::m_buttonKeyRect

Definition at line 224 of file ColorPickerToolButton.h.

Referenced by mousePressEvent(), and paintEvent().

QList<ColorKeyInfo> te::qt::widgets::ColorPickerPopup::m_colorInfos

Definition at line 223 of file ColorPickerToolButton.h.

Referenced by mousePressEvent(), and paintEvent().

QColor te::qt::widgets::ColorPickerPopup::m_currentColor

Definition at line 221 of file ColorPickerToolButton.h.

Referenced by mousePressEvent(), and setSelected().

QColor te::qt::widgets::ColorPickerPopup::m_hoverColor

Definition at line 220 of file ColorPickerToolButton.h.

Referenced by mousePressEvent(), and paintEvent().

QRgb te::qt::widgets::ColorPickerPopup::m_stdrgb[48]

Definition at line 222 of file ColorPickerToolButton.h.

Referenced by ColorPickerPopup(), and paintEvent().


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