Added repeat setting for AFSK TX, fixed LCR scan, cleaned up LCR

Added max setting for progressbars, default = 100
This commit is contained in:
furrtek 2016-07-28 00:08:05 +02:00
parent e958b4bd7d
commit 1beac3bdbd
12 changed files with 169 additions and 165 deletions

View file

@ -215,12 +215,14 @@ class ProgressBar : public Widget {
public:
ProgressBar(Rect parent_rect);
void set_max(const uint16_t max);
void set_value(const uint16_t value);
void paint(Painter& painter) override;
private:
uint16_t _value = 0;
uint16_t _max = 100;
};
class Checkbox : public Widget {
@ -229,6 +231,11 @@ public:
Checkbox(Point parent_pos, size_t length, std::string text);
Checkbox(
) : Checkbox { { }, { }, { } }
{
}
void set_text(const std::string value);
std::string text() const;
void set_value(const bool value);