ctkColorPickerButton Class Reference

#include <Libs/Widgets/ctkColorPickerButton.h>

List of all members.

Public Slots

void changeColor (bool change=true)
void setColor (const QColor &color)

Signals

void colorChanged (QColor)

Public Member Functions

QColor color () const
 ctkColorPickerButton (const QColor &color, const QString &text, QWidget *parent=0)
 ctkColorPickerButton (const QString &text, QWidget *parent=0)
 ctkColorPickerButton (QWidget *parent=0)
virtual ~ctkColorPickerButton ()

Protected Attributes

QColor Color

Properties

QColor color

Detailed Description

ctkColorPickerButton is a QPushButton that refers to a color. The color and the name of the color (i.e. FFFFFF) are displayed on the button. When clicked, a color dialog shows up to select a new color for the QPushButton.

Definition at line 36 of file ctkColorPickerButton.h.


Constructor & Destructor Documentation

ctkColorPickerButton::ctkColorPickerButton ( QWidget *  parent = 0  )  [explicit]

Definition at line 32 of file ctkColorPickerButton.cpp.

ctkColorPickerButton::ctkColorPickerButton ( const QString &  text,
QWidget *  parent = 0 
) [explicit]

Definition at line 42 of file ctkColorPickerButton.cpp.

ctkColorPickerButton::ctkColorPickerButton ( const QColor &  color,
const QString &  text,
QWidget *  parent = 0 
) [explicit]

Definition at line 53 of file ctkColorPickerButton.cpp.

virtual ctkColorPickerButton::~ctkColorPickerButton (  )  [inline, virtual]

Definition at line 44 of file ctkColorPickerButton.h.


Member Function Documentation

void ctkColorPickerButton::changeColor ( bool  change = true  )  [slot]

Opens a color dialog to select a new current color.

Definition at line 66 of file ctkColorPickerButton.cpp.

QColor ctkColorPickerButton::color (  )  const

Current selected color

void ctkColorPickerButton::colorChanged ( QColor   )  [signal]
void ctkColorPickerButton::setColor ( const QColor &  color  )  [slot]

Set a new current color

Definition at line 77 of file ctkColorPickerButton.cpp.


Member Data Documentation

QColor ctkColorPickerButton::Color [protected]

Definition at line 63 of file ctkColorPickerButton.h.


Property Documentation

QColor ctkColorPickerButton::color [read, write]

Definition at line 39 of file ctkColorPickerButton.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1