mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-02 05:32:34 -04:00
Merge remote-tracking branch 'upstream/master'
Base class for text entry
This commit is contained in:
commit
abd154b3c7
131 changed files with 19385 additions and 5412 deletions
|
@ -25,14 +25,12 @@
|
|||
#include "portapack.hpp"
|
||||
#include "event_m0.hpp"
|
||||
|
||||
//#include <cstring>
|
||||
|
||||
using namespace portapack;
|
||||
|
||||
namespace ui {
|
||||
|
||||
void FrequencySaveView::on_save_name() {
|
||||
text_entry(nav_, &desc_buffer, 7, [this](std::string * buffer) {
|
||||
text_prompt(nav_, &desc_buffer, 7, [this](std::string * buffer) {
|
||||
database.entries.push_back({ value_, "", *buffer, (int32_t)options_category.selected_index_value() });
|
||||
nav_.pop();
|
||||
});
|
||||
|
@ -209,7 +207,7 @@ void FreqManView::on_edit_freq(rf::Frequency f) {
|
|||
}
|
||||
|
||||
void FreqManView::on_edit_desc(NavigationView& nav) {
|
||||
text_entry(nav, &desc_buffer, 28, [this](std::string * buffer) {
|
||||
text_prompt(nav, &desc_buffer, 28, [this](std::string * buffer) {
|
||||
database.entries[menu_view.highlighted()].description = *buffer;
|
||||
//setup_list();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue