From 4b7414b3f6869f2bdeb097e4f997498bae9f0aee Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 17:44:20 +0100 Subject: New box rendering of all widgets. Minor tweaks still missing. --- plugingui/progressbar.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'plugingui/progressbar.h') diff --git a/plugingui/progressbar.h b/plugingui/progressbar.h index 9ab4109..9d08a9e 100644 --- a/plugingui/progressbar.h +++ b/plugingui/progressbar.h @@ -32,6 +32,7 @@ #include #include "guievent.h" +#include "painter.h" namespace GUI { @@ -42,10 +43,26 @@ public: float progress(); void setProgress(float progress); + typedef enum { + red, + green, + blue, + off + } state_t; + void setState(state_t state); + //protected: virtual void repaintEvent(RepaintEvent *e); private: + state_t state; + + Painter::Bar bar_bg; + + Painter::Bar bar_green; + Painter::Bar bar_blue; + Painter::Bar bar_red; + float _progress; }; -- cgit v1.2.3