ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Widgets::ColorPickerPopup Class Reference
Inheritance diagram for Widgets::ColorPickerPopup:
Collaboration diagram for Widgets::ColorPickerPopup:

Public Slots

void getColorFromDialog ()
 

Signals

void selected (const QColor &)
 
void hid ()
 

Public Member Functions

 ColorPickerPopup (int width, bool withColorDialog, QWidget *parent=0)
 
 ~ColorPickerPopup ()
 
void insertColor (const QColor &col, const QString &text, int index)
 
void exec ()
 
void setExecFlag ()
 
QColor lastSelected () const
 
ColorPickerItemfind (const QColor &col) const
 
QColor color (int index) const
 

Protected Slots

void updateSelected ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 
void showEvent (QShowEvent *e)
 
void hideEvent (QHideEvent *e)
 
void mouseReleaseEvent (QMouseEvent *e)
 
void regenerateGrid ()
 

Detailed Description

Definition at line 171 of file qtcolorpicker.cpp.

Constructor & Destructor Documentation

◆ ColorPickerPopup()

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

◆ ~ColorPickerPopup()

Widgets::ColorPickerPopup::~ColorPickerPopup ( )

Definition at line 508 of file qtcolorpicker.cpp.

Member Function Documentation

◆ color()

QColor Widgets::ColorPickerPopup::color ( int  index) const

Definition at line 569 of file qtcolorpicker.cpp.

Referenced by Widgets::QtColorPicker::color().

◆ exec()

void Widgets::ColorPickerPopup::exec ( )

Definition at line 579 of file qtcolorpicker.cpp.

References e.

Referenced by Widgets::QtColorPicker::GetColor().

◆ find()

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

Definition at line 517 of file qtcolorpicker.cpp.

Referenced by insertColor(), and Widgets::QtColorPicker::setCurrentColor().

◆ getColorFromDialog

void Widgets::ColorPickerPopup::getColorFromDialog ( )
slot

Definition at line 827 of file qtcolorpicker.cpp.

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

Referenced by ColorPickerPopup().

◆ hid

void Widgets::ColorPickerPopup::hid ( )
signal

Referenced by hideEvent().

◆ hideEvent()

void Widgets::ColorPickerPopup::hideEvent ( QHideEvent *  e)
protected

Definition at line 739 of file qtcolorpicker.cpp.

References e, and hid().

◆ insertColor()

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

◆ keyPressEvent()

void Widgets::ColorPickerPopup::keyPressEvent ( QKeyEvent *  e)
protected

◆ lastSelected()

QColor Widgets::ColorPickerPopup::lastSelected ( ) const

Definition at line 753 of file qtcolorpicker.cpp.

Referenced by Widgets::QtColorPicker::GetColor(), and insertColor().

◆ mouseReleaseEvent()

void Widgets::ColorPickerPopup::mouseReleaseEvent ( QMouseEvent *  e)
protected

Definition at line 616 of file qtcolorpicker.cpp.

References e.

◆ regenerateGrid()

void Widgets::ColorPickerPopup::regenerateGrid ( )
protected

Definition at line 786 of file qtcolorpicker.cpp.

References cloudViewer::utility::ceil().

Referenced by ColorPickerPopup(), and insertColor().

◆ selected

void Widgets::ColorPickerPopup::selected ( const QColor &  )
signal

◆ setExecFlag()

void Widgets::ColorPickerPopup::setExecFlag ( )

◆ showEvent()

void Widgets::ColorPickerPopup::showEvent ( QShowEvent *  e)
protected

Definition at line 760 of file qtcolorpicker.cpp.

◆ updateSelected

void Widgets::ColorPickerPopup::updateSelected ( )
protectedslot

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