mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-06 03:02:16 +00:00
Added basic POCSAG receiver
Added Yes/no modal screen (for future tx warnings)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user