mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-05 21:24:27 -04:00
parent
c80cae3638
commit
ac31f4781c
33 changed files with 65 additions and 65 deletions
|
@ -244,7 +244,7 @@ class AnalogAudioView : public View {
|
||||||
{"previous_zoom"sv, &previous_zoom}, // we are saving and restoring AMFM ZOOM factor from Settings.
|
{"previous_zoom"sv, &previous_zoom}, // we are saving and restoring AMFM ZOOM factor from Settings.
|
||||||
}};
|
}};
|
||||||
|
|
||||||
const Rect options_view_rect{0 * 8, 1 * 16, 30 * 8, 1 * 16};
|
const Rect options_view_rect{0 * 8, 1 * 16, screen_width, 1 * 16};
|
||||||
const Rect nbfm_view_rect{0 * 8, 1 * 16, 18 * 8, 1 * 16};
|
const Rect nbfm_view_rect{0 * 8, 1 * 16, 18 * 8, 1 * 16};
|
||||||
|
|
||||||
size_t spec_bw_index = 0;
|
size_t spec_bw_index = 0;
|
||||||
|
@ -292,7 +292,7 @@ class AnalogAudioView : public View {
|
||||||
std::unique_ptr<Widget> options_widget{};
|
std::unique_ptr<Widget> options_widget{};
|
||||||
|
|
||||||
RecordView record_view{
|
RecordView record_view{
|
||||||
{0 * 8, 2 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 2 * 16, screen_width, 1 * 16},
|
||||||
u"AUD",
|
u"AUD",
|
||||||
u"AUDIO",
|
u"AUDIO",
|
||||||
RecordView::FileType::WAV,
|
RecordView::FileType::WAV,
|
||||||
|
|
|
@ -109,7 +109,7 @@ class CaptureAppView : public View {
|
||||||
/*small*/ true};
|
/*small*/ true};
|
||||||
|
|
||||||
RecordView record_view{
|
RecordView record_view{
|
||||||
{0 * 8, 2 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 2 * 16, screen_width, 1 * 16},
|
||||||
u"BBD_????.*",
|
u"BBD_????.*",
|
||||||
captures_dir,
|
captures_dir,
|
||||||
RecordView::FileType::RawS16,
|
RecordView::FileType::RawS16,
|
||||||
|
|
|
@ -107,7 +107,7 @@ class SoundBoardView : public View {
|
||||||
"<="};
|
"<="};
|
||||||
|
|
||||||
Text page_info{
|
Text page_info{
|
||||||
{0, 29 * 8, 30 * 8, 16}};
|
{0, 29 * 8, screen_width, 16}};
|
||||||
|
|
||||||
MenuView menu_view{
|
MenuView menu_view{
|
||||||
{0, 0, screen_width, 175},
|
{0, 0, screen_width, 175},
|
||||||
|
@ -147,7 +147,7 @@ class SoundBoardView : public View {
|
||||||
"Random"};
|
"Random"};
|
||||||
|
|
||||||
ProgressBar progressbar{
|
ProgressBar progressbar{
|
||||||
{0 * 8, 31 * 8 + 2, 30 * 8, 4}};
|
{0 * 8, 31 * 8 + 2, screen_width, 4}};
|
||||||
|
|
||||||
TransmitterView tx_view{
|
TransmitterView tx_view{
|
||||||
16 * 16,
|
16 * 16,
|
||||||
|
|
|
@ -230,7 +230,7 @@ class ADSBRxAircraftDetailsView : public View {
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_model{
|
Text text_model{
|
||||||
{0 * 8, 6 * 16, 30 * 8, 16},
|
{0 * 8, 6 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_type{
|
Text text_type{
|
||||||
|
@ -238,19 +238,19 @@ class ADSBRxAircraftDetailsView : public View {
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_number_of_engines{
|
Text text_number_of_engines{
|
||||||
{18 * 8, 8 * 16, 30 * 8, 16},
|
{18 * 8, 8 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_engine_type{
|
Text text_engine_type{
|
||||||
{0 * 8, 10 * 16, 30 * 8, 16},
|
{0 * 8, 10 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_owner{
|
Text text_owner{
|
||||||
{0 * 8, 12 * 16, 30 * 8, 16},
|
{0 * 8, 12 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_operator{
|
Text text_operator{
|
||||||
{0 * 8, 14 * 16, 30 * 8, 16},
|
{0 * 8, 14 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Button button_close{
|
Button button_close{
|
||||||
|
@ -312,7 +312,7 @@ class ADSBRxDetailsView : public View {
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_airline{
|
Text text_airline{
|
||||||
{0 * 8, 4 * 16, 30 * 8, 16},
|
{0 * 8, 4 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_country{
|
Text text_country{
|
||||||
|
@ -320,18 +320,18 @@ class ADSBRxDetailsView : public View {
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_infos{
|
Text text_infos{
|
||||||
{0 * 8, 6 * 16, 30 * 8, 16},
|
{0 * 8, 6 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_info2{
|
Text text_info2{
|
||||||
{0 * 8, 7 * 16, 30 * 8, 16},
|
{0 * 8, 7 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_frame_pos_even{
|
Text text_frame_pos_even{
|
||||||
{0 * 8, 14 * 16, 30 * 8, 16},
|
{0 * 8, 14 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
Text text_frame_pos_odd{
|
Text text_frame_pos_odd{
|
||||||
{0 * 8, 16 * 16, 30 * 8, 16},
|
{0 * 8, 16 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Button button_aircraft_details{
|
Button button_aircraft_details{
|
||||||
|
|
|
@ -241,7 +241,7 @@ class APRSRxView : public View {
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
RecordView record_view{
|
RecordView record_view{
|
||||||
{0 * 8, 1 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 1 * 16, screen_width, 1 * 16},
|
||||||
u"AFS_????.WAV",
|
u"AFS_????.WAV",
|
||||||
aprs_dir,
|
aprs_dir,
|
||||||
RecordView::FileType::WAV,
|
RecordView::FileType::WAV,
|
||||||
|
|
|
@ -91,7 +91,7 @@ class APRSTXView : public View {
|
||||||
' '};
|
' '};
|
||||||
|
|
||||||
Text text_payload{
|
Text text_payload{
|
||||||
{0 * 8, 5 * 16, 30 * 8, 16},
|
{0 * 8, 5 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
Button button_set{
|
Button button_set{
|
||||||
{0 * 8, 6 * 16, 80, 32},
|
{0 * 8, 6 * 16, 80, 32},
|
||||||
|
|
|
@ -90,7 +90,7 @@ class BattinfoView : public View {
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
Text text_warn{
|
Text text_warn{
|
||||||
{1 * 8, 8 * 16, 30 * 8, 2 * 16},
|
{1 * 8, 8 * 16, screen_width, 2 * 16},
|
||||||
""}; */
|
""}; */
|
||||||
|
|
||||||
Button button_mode{
|
Button button_mode{
|
||||||
|
|
|
@ -218,7 +218,7 @@ class BHTView : public View {
|
||||||
' '};
|
' '};
|
||||||
|
|
||||||
ProgressBar progressbar{
|
ProgressBar progressbar{
|
||||||
{0 * 8, 29 * 8, 30 * 8, 16},
|
{0 * 8, 29 * 8, screen_width, 16},
|
||||||
};
|
};
|
||||||
|
|
||||||
TransmitterView tx_view{
|
TransmitterView tx_view{
|
||||||
|
|
|
@ -172,7 +172,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
Text text_path {
|
Text text_path {
|
||||||
{ 0 * 8, 2 * 16, 30 * 8, 16 },
|
{ 0 * 8, 2 * 16, screen_width, 16 },
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
Text text_name {
|
Text text_name {
|
||||||
{ 0 * 8, 7 * 16, 30 * 8, 16 },
|
{ 0 * 8, 7 * 16, screen_width, 16 },
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ class FrequencySaveView : public FreqManBaseView {
|
||||||
{{0 * 8, 6 * 16}, "Description:", Theme::getInstance()->bg_darkest->foreground}};
|
{{0 * 8, 6 * 16}, "Description:", Theme::getInstance()->bg_darkest->foreground}};
|
||||||
|
|
||||||
TextField field_description{
|
TextField field_description{
|
||||||
{0 * 8, 7 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 7 * 16, screen_width, 1 * 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Button button_save{
|
Button button_save{
|
||||||
|
|
|
@ -112,7 +112,7 @@ class IQTrimView : public View {
|
||||||
};
|
};
|
||||||
|
|
||||||
TextField field_path{
|
TextField field_path{
|
||||||
{0 * 8, 1 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 1 * 16, screen_width, 1 * 16},
|
||||||
"Open File..."};
|
"Open File..."};
|
||||||
|
|
||||||
Point pos_lines{0 * 8, 4 * 16};
|
Point pos_lines{0 * 8, 4 * 16};
|
||||||
|
|
|
@ -350,7 +350,7 @@ class MicTXView : public View {
|
||||||
};
|
};
|
||||||
|
|
||||||
Button tx_button{
|
Button tx_button{
|
||||||
{10 * 8, 30 * 8, 10 * 8, 5 * 8},
|
{10 * 8, screen_width, 10 * 8, 5 * 8},
|
||||||
"PTT TX",
|
"PTT TX",
|
||||||
true};
|
true};
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ class PlaylistView : public View {
|
||||||
void handle_replay_thread_done(uint32_t return_code);
|
void handle_replay_thread_done(uint32_t return_code);
|
||||||
|
|
||||||
Text text_filename{
|
Text text_filename{
|
||||||
{0 * 8, 0 * 16, 30 * 8, 16}};
|
{0 * 8, 0 * 16, screen_width, 16}};
|
||||||
|
|
||||||
FrequencyField field_frequency{
|
FrequencyField field_frequency{
|
||||||
{0 * 8, 1 * 16}};
|
{0 * 8, 1 * 16}};
|
||||||
|
@ -145,7 +145,7 @@ class PlaylistView : public View {
|
||||||
Theme::getInstance()->fg_green->background};
|
Theme::getInstance()->fg_green->background};
|
||||||
|
|
||||||
Text text_track{
|
Text text_track{
|
||||||
{0 * 8, 3 * 16, 30 * 8, 16}};
|
{0 * 8, 3 * 16, screen_width, 16}};
|
||||||
|
|
||||||
NewButton button_prev{
|
NewButton button_prev{
|
||||||
{2 * 8, 4 * 16, 4 * 8, 2 * 16},
|
{2 * 8, 4 * 16, 4 * 8, 2 * 16},
|
||||||
|
|
|
@ -122,10 +122,10 @@ class POCSAGTXView : public View {
|
||||||
}};
|
}};
|
||||||
|
|
||||||
Text text_message{
|
Text text_message{
|
||||||
{0 * 8, 16 * 8, 30 * 8, 16},
|
{0 * 8, 16 * 8, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
Text text_message_l2{
|
Text text_message_l2{
|
||||||
{0 * 8, 18 * 8, 30 * 8, 16},
|
{0 * 8, 18 * 8, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Button button_message{
|
Button button_message{
|
||||||
|
|
|
@ -335,7 +335,7 @@ ReconView::ReconView(NavigationView& nav)
|
||||||
tx_view.hidden(true);
|
tx_view.hidden(true);
|
||||||
|
|
||||||
// set record View
|
// set record View
|
||||||
record_view = std::make_unique<RecordView>(Rect{0, 0, 30 * 8, 1 * 16},
|
record_view = std::make_unique<RecordView>(Rect{0, 0, screen_width, 1 * 16},
|
||||||
u"AUTO_AUDIO", audio_dir,
|
u"AUTO_AUDIO", audio_dir,
|
||||||
RecordView::FileType::WAV, 4096, 4);
|
RecordView::FileType::WAV, 4096, 4);
|
||||||
record_view->set_filename_date_frequency(true);
|
record_view->set_filename_date_frequency(true);
|
||||||
|
@ -1164,18 +1164,18 @@ size_t ReconView::change_mode(freqman_index_t new_mod) {
|
||||||
}
|
}
|
||||||
if (new_mod == SPEC_MODULATION) {
|
if (new_mod == SPEC_MODULATION) {
|
||||||
if (persistent_memory::recon_repeat_recorded()) {
|
if (persistent_memory::recon_repeat_recorded()) {
|
||||||
record_view = std::make_unique<RecordView>(Rect{0, 0, 30 * 8, 1 * 16},
|
record_view = std::make_unique<RecordView>(Rect{0, 0, screen_width, 1 * 16},
|
||||||
u"RECON_REPEAT.C16", captures_dir,
|
u"RECON_REPEAT.C16", captures_dir,
|
||||||
RecordView::FileType::RawS16, 16384, 3);
|
RecordView::FileType::RawS16, 16384, 3);
|
||||||
record_view->set_filename_as_is(true);
|
record_view->set_filename_as_is(true);
|
||||||
} else {
|
} else {
|
||||||
record_view = std::make_unique<RecordView>(Rect{0, 0, 30 * 8, 1 * 16},
|
record_view = std::make_unique<RecordView>(Rect{0, 0, screen_width, 1 * 16},
|
||||||
u"AUTO_RAW", captures_dir,
|
u"AUTO_RAW", captures_dir,
|
||||||
RecordView::FileType::RawS16, 16384, 3);
|
RecordView::FileType::RawS16, 16384, 3);
|
||||||
record_view->set_filename_date_frequency(true);
|
record_view->set_filename_date_frequency(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
record_view = std::make_unique<RecordView>(Rect{0, 0, 30 * 8, 1 * 16},
|
record_view = std::make_unique<RecordView>(Rect{0, 0, screen_width, 1 * 16},
|
||||||
u"AUTO_AUDIO", audio_dir,
|
u"AUTO_AUDIO", audio_dir,
|
||||||
RecordView::FileType::WAV, 4096, 4);
|
RecordView::FileType::WAV, 4096, 4);
|
||||||
record_view->set_filename_date_frequency(true);
|
record_view->set_filename_date_frequency(true);
|
||||||
|
|
|
@ -95,10 +95,10 @@ class TestView : public View {
|
||||||
};
|
};
|
||||||
|
|
||||||
Text text_debug_a{
|
Text text_debug_a{
|
||||||
{0 * 8, 4 * 16, 30 * 8, 16},
|
{0 * 8, 4 * 16, screen_width, 16},
|
||||||
"..."};
|
"..."};
|
||||||
Text text_debug_b{
|
Text text_debug_b{
|
||||||
{0 * 8, 5 * 16, 30 * 8, 16},
|
{0 * 8, 5 * 16, screen_width, 16},
|
||||||
"..."};
|
"..."};
|
||||||
|
|
||||||
Button button_cal{
|
Button button_cal{
|
||||||
|
|
|
@ -58,7 +58,7 @@ class AnalogTvView : public View {
|
||||||
app_settings::SettingsManager settings_{
|
app_settings::SettingsManager settings_{
|
||||||
"rx_tv", app_settings::Mode::RX};
|
"rx_tv", app_settings::Mode::RX};
|
||||||
|
|
||||||
const Rect options_view_rect{0 * 8, 1 * 16, 30 * 8, 1 * 16};
|
const Rect options_view_rect{0 * 8, 1 * 16, screen_width, 1 * 16};
|
||||||
const Rect nbfm_view_rect{0 * 8, 1 * 16, 18 * 8, 1 * 16};
|
const Rect nbfm_view_rect{0 * 8, 1 * 16, 18 * 8, 1 * 16};
|
||||||
|
|
||||||
RSSI rssi{
|
RSSI rssi{
|
||||||
|
|
|
@ -44,7 +44,7 @@ class DebugDumpView : public View {
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
|
||||||
Text dump_output{
|
Text dump_output{
|
||||||
{0 * 8, 19 * 8, 30 * 8, 16},
|
{0 * 8, 19 * 8, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Button button_exit{
|
Button button_exit{
|
||||||
|
|
|
@ -60,7 +60,7 @@ class ExtSensorsView : public View {
|
||||||
{{0 * 8, 5 * 16}, "ORI:", Theme::getInstance()->fg_light->foreground},
|
{{0 * 8, 5 * 16}, "ORI:", Theme::getInstance()->fg_light->foreground},
|
||||||
{{0 * 8, 7 * 16}, "ENV:", Theme::getInstance()->fg_light->foreground}};
|
{{0 * 8, 7 * 16}, "ENV:", Theme::getInstance()->fg_light->foreground}};
|
||||||
|
|
||||||
Text text_info{{0 * 8, 0 * 8, 30 * 8, 16 * 1}, "Connect a compatible module..."};
|
Text text_info{{0 * 8, 0 * 8, screen_width, 16 * 1}, "Connect a compatible module..."};
|
||||||
Text text_gps{{5 * 8, 3 * 16, 24 * 8, 16}, "-"};
|
Text text_gps{{5 * 8, 3 * 16, 24 * 8, 16}, "-"};
|
||||||
Text text_orientation{{5 * 8, 5 * 16, 24 * 8, 16}, "-"};
|
Text text_orientation{{5 * 8, 5 * 16, 24 * 8, 16}, "-"};
|
||||||
Text text_envl1{{5 * 8, 7 * 16, 24 * 8, 16}, "-"};
|
Text text_envl1{{5 * 8, 7 * 16, 24 * 8, 16}, "-"};
|
||||||
|
|
|
@ -103,7 +103,7 @@ class FmRadioView : public View {
|
||||||
{21 * 8, 10, 6 * 8, 4}};
|
{21 * 8, 10, 6 * 8, 4}};
|
||||||
|
|
||||||
Waveform waveform{
|
Waveform waveform{
|
||||||
{0, 20, 30 * 8, 2 * 16},
|
{0, 20, screen_width, 2 * 16},
|
||||||
audio_spectrum,
|
audio_spectrum,
|
||||||
128,
|
128,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -171,7 +171,7 @@ class LGEView : public View {
|
||||||
'0'};
|
'0'};
|
||||||
|
|
||||||
Console console{
|
Console console{
|
||||||
{0, 18 * 8, 30 * 8, 7 * 16}};
|
{0, 18 * 8, screen_width, 7 * 16}};
|
||||||
|
|
||||||
TransmitterView tx_view{
|
TransmitterView tx_view{
|
||||||
16 * 16,
|
16 * 16,
|
||||||
|
|
|
@ -96,7 +96,7 @@ class NoaaAptRxView : public View {
|
||||||
nav_};
|
nav_};
|
||||||
|
|
||||||
RecordView record_view{
|
RecordView record_view{
|
||||||
{0 * 8, 2 * 16, 30 * 8, 1 * 16},
|
{0 * 8, 2 * 16, screen_width, 1 * 16},
|
||||||
u"AUD",
|
u"AUD",
|
||||||
u"AUDIO",
|
u"AUDIO",
|
||||||
RecordView::FileType::WAV,
|
RecordView::FileType::WAV,
|
||||||
|
|
|
@ -109,7 +109,7 @@ class OOKEditorAppView : public View {
|
||||||
Labels label_waveform{{{0, 188}, "Waveform:", Theme::getInstance()->fg_light->foreground}};
|
Labels label_waveform{{{0, 188}, "Waveform:", Theme::getInstance()->fg_light->foreground}};
|
||||||
|
|
||||||
// Text field to display the various status message of the app
|
// Text field to display the various status message of the app
|
||||||
Text text_app_status{{0, 160, 30 * 8, 16}, ""};
|
Text text_app_status{{0, 160, screen_width, 16}, ""};
|
||||||
|
|
||||||
// OptionsField for selectable sample rates.
|
// OptionsField for selectable sample rates.
|
||||||
OptionsField field_sample_rate{{96, 20}, 7, {{"250k", 250000U}, {"1M", 1000000U}, {"2M", 2000000U}, {"5M", 5000000U}, {"10M", 10000000U}, {"20M", 20000000U}}};
|
OptionsField field_sample_rate{{96, 20}, 7, {{"250k", 250000U}, {"1M", 1000000U}, {"2M", 2000000U}, {"5M", 5000000U}, {"10M", 10000000U}, {"20M", 20000000U}}};
|
||||||
|
@ -121,7 +121,7 @@ class OOKEditorAppView : public View {
|
||||||
NumberField field_repeat{{210, 40}, 3, {1, 999}, 1, '0', false};
|
NumberField field_repeat{{210, 40}, 3, {1, 999}, 1, '0', false};
|
||||||
|
|
||||||
// Text field to display the payload data.
|
// Text field to display the payload data.
|
||||||
Text text_payload{{0 * 8, 100, 30 * 8, 16}, ""};
|
Text text_payload{{0 * 8, 100, screen_width, 16}, ""};
|
||||||
|
|
||||||
// Buttons for setting configurations, opening files, and starting transmission.
|
// Buttons for setting configurations, opening files, and starting transmission.
|
||||||
Button button_set{{0, 125, 60, 28}, LanguageHelper::currentMessages[LANG_SET]};
|
Button button_set{{0, 125, 60, 28}, LanguageHelper::currentMessages[LANG_SET]};
|
||||||
|
|
|
@ -328,7 +328,7 @@ class RemoteAppView : public View {
|
||||||
bool ready_signal_{}; // Used to signal ReplayThread ready.
|
bool ready_signal_{}; // Used to signal ReplayThread ready.
|
||||||
|
|
||||||
TextField field_title{
|
TextField field_title{
|
||||||
{0 * 8, 0 * 16 + 2, 30 * 8, 1 * 16},
|
{0 * 8, 0 * 16 + 2, screen_width, 1 * 16},
|
||||||
{}};
|
{}};
|
||||||
|
|
||||||
TransmitterView2 tx_view{
|
TransmitterView2 tx_view{
|
||||||
|
|
|
@ -58,7 +58,7 @@ class SpectrumInputImageView : public View {
|
||||||
uint32_t data_start{0};
|
uint32_t data_start{0};
|
||||||
|
|
||||||
Button button_load_image{
|
Button button_load_image{
|
||||||
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
|
{0 * 8, 11 * 16 - 4, screen_width, 28},
|
||||||
"Load Image ..."};
|
"Load Image ..."};
|
||||||
|
|
||||||
bool drawBMP_scaled(const ui::Rect r, const std::string file);
|
bool drawBMP_scaled(const ui::Rect r, const std::string file);
|
||||||
|
|
|
@ -53,43 +53,43 @@ class SpectrumInputTextView : public View {
|
||||||
void on_set_text(NavigationView& nav);
|
void on_set_text(NavigationView& nav);
|
||||||
|
|
||||||
Text text_message_0{
|
Text text_message_0{
|
||||||
{0 * 8, 0 * 16, 30 * 8, 16},
|
{0 * 8, 0 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_1{
|
Text text_message_1{
|
||||||
{0 * 8, 1 * 16, 30 * 8, 16},
|
{0 * 8, 1 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_2{
|
Text text_message_2{
|
||||||
{0 * 8, 2 * 16, 30 * 8, 16},
|
{0 * 8, 2 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_3{
|
Text text_message_3{
|
||||||
{0 * 8, 3 * 16, 30 * 8, 16},
|
{0 * 8, 3 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_4{
|
Text text_message_4{
|
||||||
{0 * 8, 4 * 16, 30 * 8, 16},
|
{0 * 8, 4 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_5{
|
Text text_message_5{
|
||||||
{0 * 8, 5 * 16, 30 * 8, 16},
|
{0 * 8, 5 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_6{
|
Text text_message_6{
|
||||||
{0 * 8, 6 * 16, 30 * 8, 16},
|
{0 * 8, 6 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_7{
|
Text text_message_7{
|
||||||
{0 * 8, 7 * 16, 30 * 8, 16},
|
{0 * 8, 7 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_8{
|
Text text_message_8{
|
||||||
{0 * 8, 8 * 16, 30 * 8, 16},
|
{0 * 8, 8 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
Text text_message_9{
|
Text text_message_9{
|
||||||
{0 * 8, 9 * 16, 30 * 8, 16},
|
{0 * 8, 9 * 16, screen_width, 16},
|
||||||
""};
|
""};
|
||||||
|
|
||||||
std::array<Text*, 10> text_message{{
|
std::array<Text*, 10> text_message{{
|
||||||
|
@ -106,7 +106,7 @@ class SpectrumInputTextView : public View {
|
||||||
}};
|
}};
|
||||||
|
|
||||||
Button button_message{
|
Button button_message{
|
||||||
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
|
{0 * 8, 11 * 16 - 4, screen_width, 28},
|
||||||
"Set message"};
|
"Set message"};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class WardriveMapView : public View {
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
|
||||||
Text text_info{{0 * 8, 0 * 8, 20 * 8, 16 * 1}, "0 / 30"};
|
Text text_info{{0 * 8, 0 * 8, 20 * 8, 16 * 1}, "0 / 30"};
|
||||||
Text text_notfound{{0 * 8, 0 * 8, 30 * 8, 16 * 1}, "No GeoTagged captures found"};
|
Text text_notfound{{0 * 8, 0 * 8, screen_width, 16 * 1}, "No GeoTagged captures found"};
|
||||||
GeoPos geopos{
|
GeoPos geopos{
|
||||||
{0, 20},
|
{0, 20},
|
||||||
GeoPos::alt_unit::METERS,
|
GeoPos::alt_unit::METERS,
|
||||||
|
|
|
@ -129,7 +129,7 @@ class ViewWavView : public View {
|
||||||
Theme::getInstance()->bg_darkest->foreground};
|
Theme::getInstance()->bg_darkest->foreground};
|
||||||
|
|
||||||
ProgressBar progressbar{
|
ProgressBar progressbar{
|
||||||
{0 * 8, 11 * 16, 30 * 8, 4}};
|
{0 * 8, 11 * 16, screen_width, 4}};
|
||||||
|
|
||||||
NumberField field_pos_seconds{
|
NumberField field_pos_seconds{
|
||||||
{9 * 8, 12 * 16},
|
{9 * 8, 12 * 16},
|
||||||
|
@ -177,7 +177,7 @@ class ViewWavView : public View {
|
||||||
true};
|
true};
|
||||||
|
|
||||||
Text text_delta{
|
Text text_delta{
|
||||||
{7 * 8, 16 * 16, 30 * 8, 16},
|
{7 * 8, 16 * 16, screen_width, 16},
|
||||||
"-"};
|
"-"};
|
||||||
|
|
||||||
MessageHandlerRegistration message_handler_replay_thread_error{
|
MessageHandlerRegistration message_handler_replay_thread_error{
|
||||||
|
|
|
@ -42,7 +42,7 @@ GeoPos::GeoPos(
|
||||||
const alt_unit altitude_unit,
|
const alt_unit altitude_unit,
|
||||||
const spd_unit speed_unit)
|
const spd_unit speed_unit)
|
||||||
: altitude_unit_(altitude_unit), speed_unit_(speed_unit) {
|
: altitude_unit_(altitude_unit), speed_unit_(speed_unit) {
|
||||||
set_parent_rect({pos, {30 * 8, 3 * 16}});
|
set_parent_rect({pos, {screen_width, 3 * 16}});
|
||||||
|
|
||||||
add_children({&labels_position,
|
add_children({&labels_position,
|
||||||
&label_spd_position,
|
&label_spd_position,
|
||||||
|
|
|
@ -61,7 +61,7 @@ class AudioSpectrumView : public View {
|
||||||
' '};
|
' '};
|
||||||
|
|
||||||
Waveform waveform{
|
Waveform waveform{
|
||||||
{0, 1 * 16 + cursor_band_height, 30 * 8, 2 * 16},
|
{0, 1 * 16 + cursor_band_height, screen_width, 2 * 16},
|
||||||
audio_spectrum,
|
audio_spectrum,
|
||||||
128,
|
128,
|
||||||
0,
|
0,
|
||||||
|
@ -150,7 +150,7 @@ class WaterfallView : public View {
|
||||||
private:
|
private:
|
||||||
void update_widgets_rect();
|
void update_widgets_rect();
|
||||||
|
|
||||||
const Rect audio_spectrum_view_rect{0 * 8, 0 * 16, 30 * 8, 2 * 16 + 20};
|
const Rect audio_spectrum_view_rect{0 * 8, 0 * 16, screen_width, 2 * 16 + 20};
|
||||||
static constexpr Dim audio_spectrum_height = 16 * 2 + 20;
|
static constexpr Dim audio_spectrum_height = 16 * 2 + 20;
|
||||||
static constexpr Dim scale_height = 20;
|
static constexpr Dim scale_height = 20;
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ TabView::TabView(std::initializer_list<TabDef> tab_definitions) {
|
||||||
|
|
||||||
size_t tab_width = screen_width / n_tabs;
|
size_t tab_width = screen_width / n_tabs;
|
||||||
|
|
||||||
set_parent_rect({0, 0, 30 * 8, 3 * 8});
|
set_parent_rect({0, 0, screen_width, 3 * 8});
|
||||||
|
|
||||||
for (auto& tab_definition : tab_definitions) {
|
for (auto& tab_definition : tab_definitions) {
|
||||||
tabs[i].set(i, tab_width, tab_definition.text, tab_definition.color);
|
tabs[i].set(i, tab_width, tab_definition.text, tab_definition.color);
|
||||||
|
|
|
@ -130,7 +130,7 @@ TransmitterView::TransmitterView(
|
||||||
const uint32_t channel_bandwidth,
|
const uint32_t channel_bandwidth,
|
||||||
const bool lock)
|
const bool lock)
|
||||||
: lock_{lock} {
|
: lock_{lock} {
|
||||||
set_parent_rect({0, y, 30 * 8, 6 * 8});
|
set_parent_rect({0, y, screen_width, 6 * 8});
|
||||||
|
|
||||||
add_children({
|
add_children({
|
||||||
&field_frequency,
|
&field_frequency,
|
||||||
|
|
|
@ -62,7 +62,7 @@ class TimeScopeView : public View {
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
Waveform waveform{
|
Waveform waveform{
|
||||||
{0, 1 * 16 + cursor_band_height, 30 * 8, 2 * 16},
|
{0, 1 * 16 + cursor_band_height, screen_width, 2 * 16},
|
||||||
audio_spectrum,
|
audio_spectrum,
|
||||||
128,
|
128,
|
||||||
0,
|
0,
|
||||||
|
@ -117,7 +117,7 @@ class TVWidget : public View {
|
||||||
private:
|
private:
|
||||||
void update_widgets_rect();
|
void update_widgets_rect();
|
||||||
|
|
||||||
const Rect audio_spectrum_view_rect{0 * 8, 0 * 16, 30 * 8, 2 * 16 + 20};
|
const Rect audio_spectrum_view_rect{0 * 8, 0 * 16, screen_width, 2 * 16 + 20};
|
||||||
static constexpr Dim audio_spectrum_height = 16 * 2 + 20;
|
static constexpr Dim audio_spectrum_height = 16 * 2 + 20;
|
||||||
static constexpr Dim scale_height = 20;
|
static constexpr Dim scale_height = 20;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue