mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-02 05:32:34 -04:00
Added basic POCSAG receiver
Added Yes/no modal screen (for future tx warnings)
This commit is contained in:
parent
c2fbc0c8d5
commit
02f0271553
34 changed files with 944 additions and 42 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue