SciDAVis  1.D4
Signals | Public Member Functions | Protected Member Functions | Private Attributes
ColorButton Class Reference

A button used for color selection. More...

#include <ColorButton.h>

List of all members.

Signals

void clicked ()
 Signal clicked: This is emitted when the selection button is clicked.

Public Member Functions

QColor color () const
 Get the color of the display part.
 ColorButton (QWidget *parent=0)
 Constructor.
void setColor (const QColor &c)
 Set the color of the display part.
QSize sizeHint () const

Protected Member Functions

void init ()
 Initialize the widget (called from constructor)

Private Attributes

int btn_size
QFrame * display
QPushButton * selectButton

Detailed Description

A button used for color selection.

This button contains two widgets: 1) A frame reflecting the current color 2) A button showing a color wheel to select the color


Constructor & Destructor Documentation

ColorButton::ColorButton ( QWidget *  parent = 0)

Constructor.

References init().


Member Function Documentation

void ColorButton::clicked ( )
signal

Signal clicked: This is emitted when the selection button is clicked.

Referenced by init().

QColor ColorButton::color ( ) const
void ColorButton::init ( )
protected

Initialize the widget (called from constructor)

References btn_size, clicked(), display, selectButton, and setColor().

Referenced by ColorButton().

void ColorButton::setColor ( const QColor &  c)
QSize ColorButton::sizeHint ( ) const

References btn_size.


Member Data Documentation

int ColorButton::btn_size
private

Referenced by init(), and sizeHint().

QFrame* ColorButton::display
private

Referenced by color(), init(), and setColor().

QPushButton* ColorButton::selectButton
private

Referenced by init().


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