diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-13 17:54:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-13 17:54:17 +0200 |
commit | b84e5f74e5513e4cd14fe62b03777be8ee9c2537 (patch) | |
tree | 9b746875e370b40267bb34a0e09397fbff2036f1 /plugingui/led.h | |
parent | 2fa698c43039872015f1ac61b04ca8f228d5f394 (diff) |
Refactored LED class.
Diffstat (limited to 'plugingui/led.h')
-rw-r--r-- | plugingui/led.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/plugingui/led.h b/plugingui/led.h index 7bbd59a..977dbb3 100644 --- a/plugingui/led.h +++ b/plugingui/led.h @@ -24,8 +24,7 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_LED_H__ -#define __DRUMGIZMO_LED_H__ +#pragma once #include "widget.h" @@ -33,24 +32,23 @@ namespace GUI { class LED : public Widget { public: - typedef enum { - red, - green, - blue, - off - } state_t; + typedef enum { + Red, + Green, + Blue, + Off + } state_t; - LED(Widget *parent); + LED(Widget *parent); - void setState(state_t state); + void setState(state_t state); - //protected: - void repaintEvent(RepaintEvent *e); +protected: + // From Widget: + void repaintEvent(RepaintEvent *e) override; private: - state_t state; + state_t state; }; -}; - -#endif/*__DRUMGIZMO_LED_H__*/ +} // GUI:: |