summaryrefslogtreecommitdiff
path: root/plugingui/progressbar.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:44:20 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:44:20 +0100
commit4b7414b3f6869f2bdeb097e4f997498bae9f0aee (patch)
tree53e9741d7d40f1ff6f77d47fc308b18168dca330 /plugingui/progressbar.h
parenta1fba9ba11a13f94c524f2ac78206b3fdfb3be74 (diff)
New box rendering of all widgets. Minor tweaks still missing.
Diffstat (limited to 'plugingui/progressbar.h')
-rw-r--r--plugingui/progressbar.h17
1 files changed, 17 insertions, 0 deletions
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 <string>
#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;
};