Added basic POCSAG receiver

Added Yes/no modal screen (for future tx warnings)
This commit is contained in:
furrtek 2016-08-23 08:45:33 +02:00
parent c2fbc0c8d5
commit 02f0271553
34 changed files with 944 additions and 42 deletions

View file

@ -264,15 +264,20 @@ public:
ModalMessageView(
NavigationView& nav,
const std::string& title,
const std::string& message
const std::string& message,
bool yesno
);
void paint(Painter& painter) override;
void focus() override;
std::string title() const override { return title_; };
std::function<void(bool)> on_choice;
private:
const std::string title_;
const bool yesno_;
Text text_message { };
@ -280,6 +285,15 @@ private:
{ 10 * 8, 13 * 16, 10 * 8, 24 },
"OK",
};
Button button_yes {
{ 40, 13 * 16, 64, 24 },
"YES",
};
Button button_no {
{ 152, 13 * 16, 64, 24 },
"NO",
};
};
} /* namespace ui */