00001 #ifndef _LCD_BAR_H_
00002 #define _LCD_BAR_H_
00003
00004 #include "LCDWidget.h"
00005 #include <string>
00006
00012 class LCDBar : public LCDWidget
00013 {
00014 protected:
00015 int _length;
00016 int _max;
00017 public:
00018 LCDBar(const std::string &widgetType, const std::string &id, LCDElement *parent);
00019 LCDBar(const std::string &widgetType, int length, int x, int y, const std::string &id, LCDElement *parent);
00020
00021 virtual void notifyChanged();
00030 void set(int length, int x=1, int y=1);
00031
00040 void setPercentage(int value);
00041
00048 int getPercentage();
00049
00057 void setPercentageMax(int max);
00058
00059 virtual void valueCallback(std::string value);
00060 };
00061
00062 #endif