COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ColorSelector Class Reference

This is QLabel that display a color picker when clicked and can give this color back. More...

#include <ColorSelector.hpp>

Inherits QLabel.

Signals

void valueChanged (QColor color, int raw)
 

Public Member Functions

 ColorSelector (int raw, QWidget *parent=0)
 
QColor get_color ()
 Return the selected color. More...
 
void set_color (QColor color)
 
void set_row (int row)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Private Member Functions

void set_color ()
 Set the color choosed as the m_color. More...
 

Private Attributes

QColor m_color
 The selected color. More...
 
int m_raw
 

Detailed Description

This is QLabel that display a color picker when clicked and can give this color back.

Author
Wertz Gil

Definition at line 29 of file ColorSelector.hpp.

Constructor & Destructor Documentation

ColorSelector ( int  raw,
QWidget *  parent = 0 
)

Constructor.

Parameters
parentParent of this widget.

Definition at line 22 of file ColorSelector.cpp.

Member Function Documentation

QColor get_color ( )

Return the selected color.

Definition at line 79 of file ColorSelector.cpp.

void mousePressEvent ( QMouseEvent *  event)
protected

called when the QLabel is clicked.

Parameters
eventThe ;ouse event.

Definition at line 74 of file ColorSelector.cpp.

void set_color ( QColor  color)

Set the color.

Parameters
colorThe new color.

Definition at line 53 of file ColorSelector.cpp.

void set_color ( )
private

Set the color choosed as the m_color.

Definition at line 30 of file ColorSelector.cpp.

void set_row ( int  row)

Set the row number of this colorSelector.

Parameters
rowThe row number.

Definition at line 83 of file ColorSelector.cpp.

void valueChanged ( QColor  color,
int  raw 
)
signal

Signal emited when the color value has changed.

Parameters
colorThe new color value.

Member Data Documentation

QColor m_color
private

The selected color.

Definition at line 60 of file ColorSelector.hpp.

int m_raw
private

Definition at line 61 of file ColorSelector.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin