summaryrefslogtreecommitdiff
path: root/plugingui/progressbar.h
diff options
context:
space:
mode:
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;
};