25 #ifndef SPECTMORPH_LED_HH    26 #define SPECTMORPH_LED_HH    50 class Led : 
public QWidget
    72     enum Shape { Rectangular, Circular };
    94     enum Look  { Flat, Raised, Sunken };
   102     explicit Led( QWidget *parent = 0 );
   112     explicit Led( 
const QColor &
color, QWidget *parent = 0 );
   127           QWidget *parent = 0 );
   141     QColor 
color() 
const;
   190     void setColor( 
const QColor& color );
   241     virtual QSize sizeHint() 
const;
   242     virtual QSize minimumSizeHint() 
const;
   301     void paintEvent( QPaintEvent* );
   302     void resizeEvent( QResizeEvent* );
   314     void updateCachedPixmap();
   319     void paintLed(
Shape shape, Look look);
 An LED widget. 
Definition: smled.hh:50
 
virtual void paintRaised()
Definition: smled.cc:147
 
void toggle()
Definition: smled.cc:237
 
virtual void paintFlat()
Definition: smled.cc:142
 
State
LED on/off. 
Definition: smled.hh:66
 
void setState(State state)
Set LED state. 
Definition: smled.cc:187
 
void setDarkFactor(int darkFactor)
Sets the factor to darken the LED. 
Definition: smled.cc:214
 
Look look() const 
Returns LED look. 
 
Shape shape() const 
Returns LED shape. 
 
QColor color() const 
Returns LED color. 
 
void setShape(Shape shape)
Set LED shape. 
Definition: smled.cc:196
 
virtual void paintSunken()
Definition: smled.cc:152
 
void on()
Definition: smled.cc:243
 
bool paintCachedPixmap()
Definition: smled.cc:132
 
virtual void paintRectFrame(bool raised)
Definition: smled.cc:162
 
virtual void paintRect()
Definition: smled.cc:157
 
int darkFactor() const 
Returns dark factor. 
 
Definition: smalignedarray.cc:7
 
~Led()
Destructor. 
Definition: smled.cc:84
 
virtual int ledWidth() const 
Definition: smled.cc:121
 
State state() const 
Returns LED state. 
 
Led(QWidget *parent=0)
Definition: smled.cc:57
 
void setColor(const QColor &color)
Sets the LED color. 
Definition: smled.cc:205
 
void off()
Definition: smled.cc:248
 
Shape
LED shape. 
Definition: smled.hh:72
 
Look
LED look. 
Definition: smled.hh:94
 
void setLook(Look look)
Sets LED look. 
Definition: smled.cc:228