Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPopupColorChooser Class Reference

#include <QmitkColorPropertyEditor.h>

Inheritance diagram for QmitkPopupColorChooser:
Collaboration diagram for QmitkPopupColorChooser:

Signals

void colorSelected (QColor)
 Call to popup this widget. parent determines popup position. More...
 

Public Member Functions

 QmitkPopupColorChooser (QWidget *parent=nullptr, unsigned int steps=16, unsigned int size=150)
 
virtual ~QmitkPopupColorChooser ()
 
void setSteps (int)
 
virtual void popup (QWidget *parent, const QPoint &point, const mitk::Color *=nullptr)
 

Protected Member Functions

virtual void keyReleaseEvent (QKeyEvent *) override
 
virtual void mouseMoveEvent (QMouseEvent *) override
 
virtual void mouseReleaseEvent (QMouseEvent *) override
 
virtual void closeEvent (QCloseEvent *) override
 
virtual void paintEvent (QPaintEvent *) override
 
void drawGradient (QPainter *p)
 

Detailed Description

Definition at line 27 of file QmitkColorPropertyEditor.h.

Constructor & Destructor Documentation

QmitkPopupColorChooser::QmitkPopupColorChooser ( QWidget *  parent = nullptr,
unsigned int  steps = 16,
unsigned int  size = 150 
)

Definition at line 28 of file QmitkColorPropertyEditor.cpp.

References setSteps().

QmitkPopupColorChooser::~QmitkPopupColorChooser ( )
virtual

Definition at line 45 of file QmitkColorPropertyEditor.cpp.

Member Function Documentation

void QmitkPopupColorChooser::closeEvent ( QCloseEvent *  e)
overrideprotectedvirtual

Definition at line 118 of file QmitkColorPropertyEditor.cpp.

void QmitkPopupColorChooser::colorSelected ( QColor  )
signal

Call to popup this widget. parent determines popup position.

Referenced by keyReleaseEvent(), and mouseMoveEvent().

void QmitkPopupColorChooser::drawGradient ( QPainter *  p)
protected

Definition at line 202 of file QmitkColorPropertyEditor.cpp.

Referenced by paintEvent().

void QmitkPopupColorChooser::keyReleaseEvent ( QKeyEvent *  )
overrideprotectedvirtual

Definition at line 58 of file QmitkColorPropertyEditor.cpp.

References colorSelected().

void QmitkPopupColorChooser::mouseMoveEvent ( QMouseEvent *  e)
overrideprotectedvirtual

Definition at line 64 of file QmitkColorPropertyEditor.cpp.

References colorSelected().

void QmitkPopupColorChooser::mouseReleaseEvent ( QMouseEvent *  )
overrideprotectedvirtual

Definition at line 113 of file QmitkColorPropertyEditor.cpp.

void QmitkPopupColorChooser::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Definition at line 196 of file QmitkColorPropertyEditor.cpp.

References drawGradient().

void QmitkPopupColorChooser::popup ( QWidget *  parent,
const QPoint &  point,
const mitk::Color color = nullptr 
)
virtual
void QmitkPopupColorChooser::setSteps ( int  steps)

Definition at line 49 of file QmitkColorPropertyEditor.cpp.

Referenced by QmitkPopupColorChooser().


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