mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-30 12:04:47 -04:00
Numbers station works, very basic
Added utilities, whip antenna length calculator Modal errors/abort
This commit is contained in:
parent
d18b6d135d
commit
e56fa0f479
32 changed files with 642 additions and 153 deletions
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
|
||||
#include "ui_receiver.hpp"
|
||||
#include "ui_freqman.hpp"
|
||||
|
||||
#include "portapack.hpp"
|
||||
using namespace portapack;
|
||||
|
@ -140,14 +141,22 @@ FrequencyKeypadView::FrequencyKeypadView(
|
|||
button.on_select = button_fn;
|
||||
button.set_parent_rect({
|
||||
(n % 3) * button_w,
|
||||
(n / 3) * button_h + button_h,
|
||||
(n / 3) * button_h + 24,
|
||||
button_w, button_h
|
||||
});
|
||||
button.set_text(label);
|
||||
n++;
|
||||
}
|
||||
|
||||
add_children({ {
|
||||
&button_save,
|
||||
&button_close
|
||||
} });
|
||||
|
||||
button_save.on_select = [this, &nav](Button&) {
|
||||
nav.push<FrequencySaveView>(this->value());
|
||||
};
|
||||
|
||||
add_child(&button_close);
|
||||
button_close.on_select = [this, &nav](Button&) {
|
||||
if( on_changed ) {
|
||||
on_changed(this->value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue