27 #include <tdelibs_export.h>
45 class TDEUI_EXPORT
KLed :
public TQWidget
49 TQ_PROPERTY(
State state READ state WRITE setState )
50 TQ_PROPERTY(
Shape shape READ shape WRITE setShape )
51 TQ_PROPERTY(
Look look READ look WRITE setLook )
52 TQ_PROPERTY( TQColor color READ color WRITE setColor )
53 TQ_PROPERTY( TQColor offColor READ color WRITE setOffColor )
54 TQ_PROPERTY(
int darkFactor READ darkFactor WRITE setDarkFactor )
68 enum Shape { Rectangular, Circular };
90 enum Look { Flat, Raised, Sunken };
96 KLed(TQWidget *parent=0,
const char *name=0);
107 KLed(
const TQColor &col, TQWidget *parent=0,
const char *name=0);
124 TQWidget *parent=0,
const char *name=0);
149 TQColor color()
const;
157 TQColor offColor()
const;
173 int darkFactor()
const;
184 void setState( State state );
189 void setShape(Shape s);
198 void toggleState() TDE_DEPRECATED;
213 void setColor(const TQColor& color);
230 void setOffColor(const TQColor& color);
244 void setDarkFactor(
int darkfactor);
276 void setLook( Look look );
278 virtual TQSize sizeHint() const;
279 virtual TQSize minimumSizeHint() const;
310 virtual
void paintFlat();
314 virtual
void paintRound();
318 virtual
void paintSunken();
322 virtual
void paintRect();
327 virtual
void paintRectFrame(
bool raised);
329 void paintEvent( TQPaintEvent * );
334 int ensureRoundLed();
340 bool paintCachedPixmap();
345 TQColor led_off_color;
350 virtual
void virtual_hook(
int id,
void* data );
State
Status of the light is on/off.
Look
Displays a flat, round or sunken LED.