mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-10 07:30:08 -04:00
Added repeat setting for AFSK TX, fixed LCR scan, cleaned up LCR
Added max setting for progressbars, default = 100
This commit is contained in:
parent
e958b4bd7d
commit
1beac3bdbd
12 changed files with 169 additions and 165 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue