Allow frequency override in Playlist, Folder fixes (#1194)

* Allow frequency to be changed per-entry

* Folder fixes, use TX freq

---------

Co-authored-by: kallanreed <kallanreed@noreply.github.com>
This commit is contained in:
Kyle Reed 2023-06-26 10:44:01 -07:00 committed by GitHub
parent 3f8a4957af
commit faa4367295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 15 deletions

View file

@ -90,7 +90,7 @@ class PlaylistView : public View {
const std::filesystem::path& path,
const std::string& message);
const playlist_entry* current() const;
playlist_entry* current();
bool is_active() const;
bool at_end() const;
@ -110,10 +110,8 @@ class PlaylistView : public View {
Text text_filename{
{0 * 8, 0 * 16, 30 * 8, 16}};
// TODO: delay duration field.
// TODO: TxFrequencyField to edit entry frequency.
Text text_frequency{
{0 * 8, 1 * 16, 9 * 8, 16}};
FrequencyField field_frequency{
{0 * 8, 1 * 16}};
Text text_sample_rate{
{10 * 8, 1 * 16, 7 * 8, 16}};
@ -127,6 +125,8 @@ class PlaylistView : public View {
Text text_duration{
{0 * 8, 2 * 16, 5 * 8, 16}};
// TODO: delay duration field.
TransmitterView2 tx_view{
9 * 8, 1 * 8, SHORT_UI};