LEDButton Class Reference

#include <LEDButton.h>

Collaboration diagram for LEDButton:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 35 of file LEDButton.h.

Public Slots

void toggle ()
void on ()
void off ()
void setState (bool)
void toggleState ()
void setColor (const QColor &color)
void setDarkFactor (int darkfactor)

Signals

void stateChanged (bool)
void mouseEntered ()
void mouseLeft ()

Public Member Functions

 LEDButton (QWidget *parent=0)
 LEDButton (const QColor &col, QWidget *parent=0)
 LEDButton (const QColor &col, bool state, QWidget *parent=0)
 ~LEDButton ()
bool state () const
QColor color () const
int darkFactor () const
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const

Protected Member Functions

void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *)
void enterEvent (QEvent *)
void leaveEvent (QEvent *)

Protected Attributes

bool led_state
QColor led_color
LEDButtonPrivated

Properties

QColor color []
int darkFactor []

Classes

class  LEDButtonPrivate


Constructor & Destructor Documentation

LEDButton::LEDButton ( QWidget *  parent = 0  ) 

Definition at line 46 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::dark_factor, LEDButton::LEDButtonPrivate::off_map, LEDButton::LEDButtonPrivate::offcolor, LEDButton::LEDButtonPrivate::on_map, and setColor().

LEDButton::LEDButton ( const QColor &  col,
QWidget *  parent = 0 
)

Definition at line 61 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::dark_factor, LEDButton::LEDButtonPrivate::off_map, LEDButton::LEDButtonPrivate::offcolor, LEDButton::LEDButtonPrivate::on_map, and setColor().

LEDButton::LEDButton ( const QColor &  col,
bool  state,
QWidget *  parent = 0 
)

Definition at line 74 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::dark_factor, LEDButton::LEDButtonPrivate::off_map, LEDButton::LEDButtonPrivate::offcolor, LEDButton::LEDButtonPrivate::on_map, and setColor().

LEDButton::~LEDButton (  ) 

Definition at line 87 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::off_map, and LEDButton::LEDButtonPrivate::on_map.


Member Function Documentation

bool LEDButton::state (  )  const

Definition at line 261 of file LEDButton.cpp.

References led_state.

Referenced by mousePressEvent().

QColor LEDButton::color (  )  const

Referenced by paintEvent().

int LEDButton::darkFactor (  )  const

QSize LEDButton::sizeHint (  )  const [virtual]

Definition at line 339 of file LEDButton.cpp.

QSize LEDButton::minimumSizeHint (  )  const [virtual]

Definition at line 345 of file LEDButton.cpp.

void LEDButton::stateChanged ( bool   )  [signal]

Referenced by mousePressEvent().

void LEDButton::mouseEntered (  )  [signal]

Referenced by enterEvent().

void LEDButton::mouseLeft (  )  [signal]

Referenced by leaveEvent().

void LEDButton::toggle (  )  [slot]

Definition at line 321 of file LEDButton.cpp.

References toggleState().

Referenced by mousePressEvent().

void LEDButton::on (  )  [slot]

Definition at line 327 of file LEDButton.cpp.

References setState().

void LEDButton::off (  )  [slot]

Definition at line 333 of file LEDButton.cpp.

References setState().

void LEDButton::setState ( bool   )  [slot]

Definition at line 273 of file LEDButton.cpp.

References led_state.

Referenced by PropertyBox::layerVisibilityChanged(), off(), on(), and PropertyBox::populateViewPlayFrame().

void LEDButton::toggleState (  )  [slot]

Definition at line 283 of file LEDButton.cpp.

References led_state.

Referenced by toggle().

void LEDButton::setColor ( const QColor &  color  )  [slot]

Definition at line 291 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::dark_factor, led_color, LEDButton::LEDButtonPrivate::off_map, LEDButton::LEDButtonPrivate::offcolor, and LEDButton::LEDButtonPrivate::on_map.

Referenced by LEDButton().

void LEDButton::setDarkFactor ( int  darkfactor  )  [slot]

Definition at line 305 of file LEDButton.cpp.

References d, LEDButton::LEDButtonPrivate::dark_factor, led_color, and LEDButton::LEDButtonPrivate::offcolor.

void LEDButton::paintEvent ( QPaintEvent *   )  [protected]

Definition at line 120 of file LEDButton.cpp.

References color(), d, led_color, led_state, LEDButton::LEDButtonPrivate::off_map, LEDButton::LEDButtonPrivate::offcolor, and LEDButton::LEDButtonPrivate::on_map.

void LEDButton::mousePressEvent ( QMouseEvent *   )  [protected]

Definition at line 95 of file LEDButton.cpp.

References state(), stateChanged(), and toggle().

void LEDButton::enterEvent ( QEvent *   )  [protected]

Definition at line 108 of file LEDButton.cpp.

References mouseEntered().

void LEDButton::leaveEvent ( QEvent *   )  [protected]

Definition at line 114 of file LEDButton.cpp.

References mouseLeft().


Member Data Documentation

bool LEDButton::led_state [protected]

Definition at line 76 of file LEDButton.h.

Referenced by paintEvent(), setState(), state(), and toggleState().

QColor LEDButton::led_color [protected]

Definition at line 77 of file LEDButton.h.

Referenced by paintEvent(), setColor(), and setDarkFactor().

LEDButtonPrivate* LEDButton::d [protected]

Definition at line 79 of file LEDButton.h.

Referenced by LEDButton(), paintEvent(), setColor(), setDarkFactor(), and ~LEDButton().


Property Documentation

QColor LEDButton::color [read, write]

Definition at line 38 of file LEDButton.h.

int LEDButton::darkFactor [read, write]

Definition at line 39 of file LEDButton.h.


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1