BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Private Member Functions | List of all members
BALL::VIEW::ColorButton Class Reference

#include <BALL/VIEW/WIDGETS/colorButton.h>

Inheritance diagram for BALL::VIEW::ColorButton:
QPushButton

Public Slots

void chooseColor ()

Signals

void colorChanged (QColor color)

Public Member Functions

 ColorButton (QWidget *parent)
 ColorButton (const QColor &color, QWidget *parent)
 ColorButton (const QColor &color, const QColor &default_color, QWidget *parent)
 ColorButton (const ColorRGBA &color, QWidget *parent)
 ColorButton (const ColorRGBA &color, const ColorRGBA &defaultColor, QWidget *parent)
virtual ~ColorButton ()
void setColor (const QColor &color)
void setColor (const ColorRGBA &color)
const QColor & getColor () const
void setDefaultColor (const QColor &color)
void setDefaultColor (const ColorRGBA &color)
const QColor & getDefaultColor () const
void setEnableAlpha (bool enable)
bool isAlphaEnabled () const
QSize sizeHint () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *evt)

Protected Attributes

bool enable_alpha_

Properties

QColor color_
QColor default_color_

Private Member Functions

void setup_ ()

Detailed Description

Definition at line 19 of file colorButton.h.

Constructor & Destructor Documentation

BALL::VIEW::ColorButton::ColorButton ( QWidget parent)
explicit
BALL::VIEW::ColorButton::ColorButton ( const QColor &  color,
QWidget parent 
)
explicit
BALL::VIEW::ColorButton::ColorButton ( const QColor &  color,
const QColor &  default_color,
QWidget parent 
)
explicit
BALL::VIEW::ColorButton::ColorButton ( const ColorRGBA color,
QWidget parent 
)
explicit
BALL::VIEW::ColorButton::ColorButton ( const ColorRGBA color,
const ColorRGBA defaultColor,
QWidget parent 
)
explicit
virtual BALL::VIEW::ColorButton::~ColorButton ( )
virtual

Member Function Documentation

void BALL::VIEW::ColorButton::chooseColor ( )
slot
void BALL::VIEW::ColorButton::colorChanged ( QColor  color)
signal
const QColor& BALL::VIEW::ColorButton::getColor ( ) const
const QColor& BALL::VIEW::ColorButton::getDefaultColor ( ) const
bool BALL::VIEW::ColorButton::isAlphaEnabled ( ) const
virtual void BALL::VIEW::ColorButton::paintEvent ( QPaintEvent *  evt)
protectedvirtual
void BALL::VIEW::ColorButton::setColor ( const QColor &  color)
void BALL::VIEW::ColorButton::setColor ( const ColorRGBA color)
void BALL::VIEW::ColorButton::setDefaultColor ( const QColor &  color)
void BALL::VIEW::ColorButton::setDefaultColor ( const ColorRGBA color)
void BALL::VIEW::ColorButton::setEnableAlpha ( bool  enable)
void BALL::VIEW::ColorButton::setup_ ( )
private
QSize BALL::VIEW::ColorButton::sizeHint ( ) const

Member Data Documentation

bool BALL::VIEW::ColorButton::enable_alpha_
protected

Definition at line 57 of file colorButton.h.

Property Documentation

QColor BALL::VIEW::ColorButton::color_
readwrite

Definition at line 22 of file colorButton.h.

QColor BALL::VIEW::ColorButton::default_color_
readwrite

Definition at line 23 of file colorButton.h.