mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Extract RecordView from AnalogAudioApp, CaptureApp.
This commit is contained in:
parent
24192b4043
commit
4d6fccd8ea
7 changed files with 241 additions and 168 deletions
|
@ -26,8 +26,7 @@
|
|||
|
||||
#include "ui_receiver.hpp"
|
||||
#include "ui_spectrum.hpp"
|
||||
|
||||
#include "capture_thread.hpp"
|
||||
#include "ui_record_view.hpp"
|
||||
|
||||
#include "ui_font_fixed_8x16.hpp"
|
||||
|
||||
|
@ -142,22 +141,13 @@ private:
|
|||
|
||||
std::unique_ptr<Widget> options_widget;
|
||||
|
||||
ImageButton button_record {
|
||||
{ 0 * 8, 2 * 16, 2 * 8, 1 * 16 },
|
||||
&bitmap_record,
|
||||
Color::red(),
|
||||
Color::black()
|
||||
};
|
||||
|
||||
Text text_record_filename {
|
||||
{ 3 * 8, 2 * 16, 8 * 8, 16 },
|
||||
"",
|
||||
RecordView record_view {
|
||||
{ 0 * 8, 2 * 16, 30 * 8, 1 * 16 },
|
||||
"AUD_????", ".S16", 12, 2,
|
||||
};
|
||||
|
||||
spectrum::WaterfallWidget waterfall;
|
||||
|
||||
std::unique_ptr<CaptureThread> capture_thread;
|
||||
|
||||
void on_tuning_frequency_changed(rf::Frequency f);
|
||||
void on_baseband_bandwidth_changed(uint32_t bandwidth_hz);
|
||||
void on_rf_amp_changed(bool v);
|
||||
|
@ -176,12 +166,6 @@ private:
|
|||
void set_options_widget(std::unique_ptr<Widget> new_widget);
|
||||
|
||||
void update_modulation(const ReceiverModel::Mode modulation);
|
||||
|
||||
void on_record();
|
||||
bool is_recording() const;
|
||||
void record_start();
|
||||
void record_stop();
|
||||
void write_metadata_file(const std::string& filename);
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue