diff options
Diffstat (limited to 'plugingui/led.h')
-rw-r--r-- | plugingui/led.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/plugingui/led.h b/plugingui/led.h index 54c4974..7bbd59a 100644 --- a/plugingui/led.h +++ b/plugingui/led.h @@ -29,18 +29,28 @@ #include "widget.h" +namespace GUI { + class LED : public Widget { public: - LED(GlobalContext *gctx, Widget *parent); + typedef enum { + red, + green, + blue, + off + } state_t; + + LED(Widget *parent); - void setState(bool state); + void setState(state_t state); -protected: - void repaint(RepaintEvent *e); + //protected: + void repaintEvent(RepaintEvent *e); private: - bool state; + state_t state; }; +}; #endif/*__DRUMGIZMO_LED_H__*/ |