mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-27 16:17:31 -04:00
# This is a combination of 2 commits.
# The first commit's message is: Updated RDS transmitter: flags, PI and date/time Merging baseband audio tone generators Merging DTMF baseband with "tones" baseband Added stealth transmit mode App flash section bumped to 512k RX and TX LEDs are now used Play dead should work again, added login option Morse frame gen. for letters and fox hunt codes Merged EPAR with Xylos Made EPAR use encoders for frame gen. Moved OOK encoders data in encoders.hpp Simplified about screen, ui_about_demo.* files are still there BHT city DB, keywords removed BHT cities DB, keywords removed Update README.md RDS radiotext and time group generators # This is the 2nd commit message: Update README.md
This commit is contained in:
parent
0b13283d5d
commit
6bcb7dc1b1
91 changed files with 3867 additions and 2535 deletions
|
@ -250,6 +250,12 @@ void View::remove_child(Widget* const widget) {
|
|||
}
|
||||
}
|
||||
|
||||
void View::remove_children(const std::vector<Widget*>& children) {
|
||||
for(auto child : children) {
|
||||
remove_child(child);
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<Widget*>& View::children() const {
|
||||
return children_;
|
||||
}
|
||||
|
@ -564,13 +570,17 @@ void Checkbox::set_text(const std::string value) {
|
|||
set_dirty();
|
||||
}
|
||||
|
||||
/*std::string Checkbox::text() const {
|
||||
return text_;
|
||||
}*/
|
||||
|
||||
void Checkbox::set_value(const bool value) {
|
||||
bool Checkbox::set_value(const bool value) {
|
||||
value_ = value;
|
||||
|
||||
if( on_select ) {
|
||||
on_select(*this);
|
||||
return true;
|
||||
}
|
||||
|
||||
set_dirty();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Checkbox::value() const {
|
||||
|
@ -616,15 +626,8 @@ void Checkbox::paint(Painter& painter) {
|
|||
}
|
||||
|
||||
bool Checkbox::on_key(const KeyEvent key) {
|
||||
if( key == KeyEvent::Select ) {
|
||||
value_ = not value_;
|
||||
set_dirty();
|
||||
|
||||
if( on_select ) {
|
||||
on_select(*this);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if( key == KeyEvent::Select )
|
||||
return set_value(not value_);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -714,8 +717,7 @@ bool Button::on_key(const KeyEvent key) {
|
|||
}
|
||||
} else {
|
||||
if( on_dir ) {
|
||||
on_dir(*this, key);
|
||||
return false;
|
||||
return on_dir(*this, key);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue