mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Merge pull request #610 from zigad/fix-title-inconsistancy
Fix #494 - Change App Titles
This commit is contained in:
commit
dccc68a4e0
@ -166,7 +166,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "AIS"; };
|
std::string title() const override { return "AIS Boats RX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr uint32_t initial_target_frequency = 162025000;
|
static constexpr uint32_t initial_target_frequency = 162025000;
|
||||||
|
@ -143,7 +143,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Analog audio"; };
|
std::string title() const override { return "Audio RX"; };
|
||||||
|
|
||||||
size_t get_spec_bw_index();
|
size_t get_spec_bw_index();
|
||||||
void set_spec_bw(size_t index, uint32_t bw);
|
void set_spec_bw(size_t index, uint32_t bw);
|
||||||
|
@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Analog TV"; };
|
std::string title() const override { return "Analog TV RX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr ui::Dim header_height = 3 * 16;
|
static constexpr ui::Dim header_height = 3 * 16;
|
||||||
|
@ -125,7 +125,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "ERT"; };
|
std::string title() const override { return "ERT Meter RX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ERTRecentEntries recent { };
|
ERTRecentEntries recent { };
|
||||||
|
@ -44,7 +44,7 @@ public:
|
|||||||
void set_parent_rect(const Rect new_parent_rect) override;
|
void set_parent_rect(const Rect new_parent_rect) override;
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "GPS Simulator"; };
|
std::string title() const override { return "GPS Sim TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "LGE tool"; };
|
std::string title() const override { return "LGE tool TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum tx_modes {
|
enum tx_modes {
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Soundboard"; };
|
std::string title() const override { return "Soundboard TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -103,7 +103,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "TPMS"; };
|
std::string title() const override { return "TPMS Cars RX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr uint32_t initial_target_frequency = 315000000;
|
static constexpr uint32_t initial_target_frequency = 315000000;
|
||||||
|
@ -361,7 +361,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "ADS-B receive"; };
|
std::string title() const override { return "ADS-B RX"; };
|
||||||
|
|
||||||
void replace_entry(AircraftRecentEntry & entry);
|
void replace_entry(AircraftRecentEntry & entry);
|
||||||
AircraftRecentEntry find_or_create_entry(uint32_t ICAO_address);
|
AircraftRecentEntry find_or_create_entry(uint32_t ICAO_address);
|
||||||
|
@ -152,7 +152,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "ADS-B transmit"; };
|
std::string title() const override { return "ADS-B TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/*enum tx_modes {
|
/*enum tx_modes {
|
||||||
|
@ -178,7 +178,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "BHT transmit"; };
|
std::string title() const override { return "BHT Xy/EP TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void on_tx_progress(const uint32_t progress, const bool done);
|
void on_tx_progress(const uint32_t progress, const bool done);
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Si44xx TX"; };
|
std::string title() const override { return "BurgerPgr TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum tx_modes {
|
enum tx_modes {
|
||||||
|
@ -352,7 +352,7 @@ DebugMenuView::DebugMenuView(NavigationView& nav) {
|
|||||||
{ "SD Card", ui::Color::dark_cyan(), &bitmap_icon_sdcard, [&nav](){ nav.push<SDCardDebugView>(); } },
|
{ "SD Card", ui::Color::dark_cyan(), &bitmap_icon_sdcard, [&nav](){ nav.push<SDCardDebugView>(); } },
|
||||||
{ "Peripherals", ui::Color::dark_cyan(), &bitmap_icon_peripherals, [&nav](){ nav.push<DebugPeripheralsMenuView>(); } },
|
{ "Peripherals", ui::Color::dark_cyan(), &bitmap_icon_peripherals, [&nav](){ nav.push<DebugPeripheralsMenuView>(); } },
|
||||||
{ "Temperature", ui::Color::dark_cyan(), &bitmap_icon_temperature, [&nav](){ nav.push<TemperatureView>(); } },
|
{ "Temperature", ui::Color::dark_cyan(), &bitmap_icon_temperature, [&nav](){ nav.push<TemperatureView>(); } },
|
||||||
{ "Buttons test", ui::Color::dark_cyan(), &bitmap_icon_controls, [&nav](){ nav.push<DebugControlsView>(); } },
|
{ "Buttons Test", ui::Color::dark_cyan(), &bitmap_icon_controls, [&nav](){ nav.push<DebugControlsView>(); } },
|
||||||
});
|
});
|
||||||
set_max_rows(2); // allow wider buttons
|
set_max_rows(2); // allow wider buttons
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,8 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
|
std::string title() const override { return "Memory"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Text text_title {
|
Text text_title {
|
||||||
{ 96, 96, 48, 16 },
|
{ 96, 96, 48, 16 },
|
||||||
@ -113,6 +115,8 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
|
std::string title() const override { return "Temperature"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Text text_title {
|
Text text_title {
|
||||||
{ 76, 16, 240, 16 },
|
{ 76, 16, 240, 16 },
|
||||||
@ -252,6 +256,8 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
|
std::string title() const override { return "Buttons Test"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Text text_title {
|
Text text_title {
|
||||||
{ 64, 16, 184, 16 },
|
{ 64, 16, 184, 16 },
|
||||||
|
@ -158,7 +158,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "OOK transmit"; };
|
std::string title() const override { return "OOK TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -106,7 +106,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Jammer"; };
|
std::string title() const override { return "Jammer TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -36,7 +36,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Keyfob (BETA)"; };
|
std::string title() const override { return "Key fob TX (beta)"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "LCR transmit"; };
|
std::string title() const override { return "TEDI/LCR TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct scan_list_t {
|
struct scan_list_t {
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
std::string title() const override { return "Mic TX RX"; };
|
std::string title() const override { return "Microphone"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr uint32_t sampling_rate = 1536000U;
|
static constexpr uint32_t sampling_rate = 1536000U;
|
||||||
|
@ -144,7 +144,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "RDS transmit"; };
|
std::string title() const override { return "RDS TX"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -111,7 +111,7 @@ public:
|
|||||||
.foreground = Color::red(),
|
.foreground = Color::red(),
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string title() const override { return "SCANNER"; };
|
std::string title() const override { return "Scanner"; };
|
||||||
std::vector<rf::Frequency> frequency_list{ };
|
std::vector<rf::Frequency> frequency_list{ };
|
||||||
std::vector<string> description_list { };
|
std::vector<string> description_list { };
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
~WipeSDView();
|
~WipeSDView();
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Wipe FAT"; };
|
std::string title() const override { return "Wipe SD Card"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
@ -348,10 +348,10 @@ SettingsMenuView::SettingsMenuView(NavigationView& nav) {
|
|||||||
add_items({
|
add_items({
|
||||||
{ "Audio", ui::Color::dark_cyan(), &bitmap_icon_speaker, [&nav](){ nav.push<SetAudioView>(); } },
|
{ "Audio", ui::Color::dark_cyan(), &bitmap_icon_speaker, [&nav](){ nav.push<SetAudioView>(); } },
|
||||||
{ "Radio", ui::Color::dark_cyan(), &bitmap_icon_options_radio, [&nav](){ nav.push<SetRadioView>(); } },
|
{ "Radio", ui::Color::dark_cyan(), &bitmap_icon_options_radio, [&nav](){ nav.push<SetRadioView>(); } },
|
||||||
{ "Interface", ui::Color::dark_cyan(), &bitmap_icon_options_ui, [&nav](){ nav.push<SetUIView>(); } },
|
{ "User Interface", ui::Color::dark_cyan(), &bitmap_icon_options_ui, [&nav](){ nav.push<SetUIView>(); } },
|
||||||
{ "Date/Time", ui::Color::dark_cyan(), &bitmap_icon_options_datetime, [&nav](){ nav.push<SetDateTimeView>(); } },
|
{ "Date/Time", ui::Color::dark_cyan(), &bitmap_icon_options_datetime, [&nav](){ nav.push<SetDateTimeView>(); } },
|
||||||
{ "Touchscreen", ui::Color::dark_cyan(), &bitmap_icon_options_touch, [&nav](){ nav.push<TouchCalibrationView>(); } },
|
{ "Calibration", ui::Color::dark_cyan(), &bitmap_icon_options_touch, [&nav](){ nav.push<TouchCalibrationView>(); } },
|
||||||
{ "QR code", ui::Color::dark_cyan(), &bitmap_icon_qr_code, [&nav](){ nav.push<SetQRCodeView>(); } }
|
{ "QR Code", ui::Color::dark_cyan(), &bitmap_icon_qr_code, [&nav](){ nav.push<SetQRCodeView>(); } }
|
||||||
});
|
});
|
||||||
set_max_rows(2); // allow wider buttons
|
set_max_rows(2); // allow wider buttons
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Set Date/Time"; };
|
std::string title() const override { return "Date/Time"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Labels labels {
|
Labels labels {
|
||||||
@ -322,7 +322,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "QR code"; };
|
std::string title() const override { return "QR Code"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Checkbox checkbox_bigger_qr {
|
Checkbox checkbox_bigger_qr {
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
std::string title() const override { return "Generator"; };
|
std::string title() const override { return "Signal gen"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void start_tx();
|
void start_tx();
|
||||||
|
@ -522,14 +522,14 @@ UtilitiesMenuView::UtilitiesMenuView(NavigationView& nav) {
|
|||||||
add_items({
|
add_items({
|
||||||
//{ "Test app", ui::Color::dark_grey(), nullptr, [&nav](){ nav.push<TestView>(); } },
|
//{ "Test app", ui::Color::dark_grey(), nullptr, [&nav](){ nav.push<TestView>(); } },
|
||||||
//{ "..", ui::Color::light_grey(),&bitmap_icon_previous, [&nav](){ nav.pop(); } },
|
//{ "..", ui::Color::light_grey(),&bitmap_icon_previous, [&nav](){ nav.pop(); } },
|
||||||
{ "Freq manager", ui::Color::green(), &bitmap_icon_freqman, [&nav](){ nav.push<FrequencyManagerView>(); } },
|
{ "Freq. manager", ui::Color::green(), &bitmap_icon_freqman, [&nav](){ nav.push<FrequencyManagerView>(); } },
|
||||||
{ "File manager", ui::Color::yellow(), &bitmap_icon_dir, [&nav](){ nav.push<FileManagerView>(); } },
|
{ "File manager", ui::Color::yellow(), &bitmap_icon_dir, [&nav](){ nav.push<FileManagerView>(); } },
|
||||||
//{ "Notepad", ui::Color::dark_grey(), &bitmap_icon_notepad, [&nav](){ nav.push<NotImplementedView>(); } },
|
//{ "Notepad", ui::Color::dark_grey(), &bitmap_icon_notepad, [&nav](){ nav.push<NotImplementedView>(); } },
|
||||||
{ "Signal gen", ui::Color::green(), &bitmap_icon_cwgen, [&nav](){ nav.push<SigGenView>(); } },
|
{ "Signal gen", ui::Color::green(), &bitmap_icon_cwgen, [&nav](){ nav.push<SigGenView>(); } },
|
||||||
//{ "Tone search", ui::Color::dark_grey(), nullptr, [&nav](){ nav.push<ToneSearchView>(); } },
|
//{ "Tone search", ui::Color::dark_grey(), nullptr, [&nav](){ nav.push<ToneSearchView>(); } },
|
||||||
{ "Wave viewer", ui::Color::yellow(), &bitmap_icon_soundboard, [&nav](){ nav.push<ViewWavView>(); } },
|
{ "WAV viewer", ui::Color::yellow(), &bitmap_icon_soundboard, [&nav](){ nav.push<ViewWavView>(); } },
|
||||||
{ "Antenna length", ui::Color::green(), &bitmap_icon_tools_antenna, [&nav](){ nav.push<WhipCalcView>(); } },
|
{ "Antenna length", ui::Color::green(), &bitmap_icon_tools_antenna, [&nav](){ nav.push<WhipCalcView>(); } },
|
||||||
{ "Wipe SD card", ui::Color::red(), &bitmap_icon_tools_wipesd, [&nav](){ nav.push<WipeSDView>(); } },
|
{ "Wipe SD Card", ui::Color::red(), &bitmap_icon_tools_wipesd, [&nav](){ nav.push<WipeSDView>(); } },
|
||||||
});
|
});
|
||||||
set_max_rows(2); // allow wider buttons
|
set_max_rows(2); // allow wider buttons
|
||||||
}
|
}
|
||||||
@ -553,12 +553,12 @@ SystemMenuView::SystemMenuView(NavigationView& nav) {
|
|||||||
{ "Transmit", ui::Color::cyan(), &bitmap_icon_transmit, [&nav](){ nav.push<TransmittersMenuView>(); } },
|
{ "Transmit", ui::Color::cyan(), &bitmap_icon_transmit, [&nav](){ nav.push<TransmittersMenuView>(); } },
|
||||||
{ "Capture", ui::Color::red(), &bitmap_icon_capture, [&nav](){ nav.push<CaptureAppView>(); } },
|
{ "Capture", ui::Color::red(), &bitmap_icon_capture, [&nav](){ nav.push<CaptureAppView>(); } },
|
||||||
{ "Replay", ui::Color::green(), &bitmap_icon_replay, [&nav](){ nav.push<ReplayAppView>(); } },
|
{ "Replay", ui::Color::green(), &bitmap_icon_replay, [&nav](){ nav.push<ReplayAppView>(); } },
|
||||||
{ "Calls", ui::Color::yellow(), &bitmap_icon_search, [&nav](){ nav.push<SearchView>(); } },
|
{ "Search", ui::Color::yellow(), &bitmap_icon_search, [&nav](){ nav.push<SearchView>(); } },
|
||||||
{ "Scanner", ui::Color::yellow(), &bitmap_icon_scanner, [&nav](){ nav.push<ScannerView>(); } },
|
{ "Scanner", ui::Color::yellow(), &bitmap_icon_scanner, [&nav](){ nav.push<ScannerView>(); } },
|
||||||
{ "Microphone", ui::Color::yellow(), &bitmap_icon_microphone,[&nav](){ nav.push<MicTXView>(); } },
|
{ "Microphone", ui::Color::yellow(), &bitmap_icon_microphone,[&nav](){ nav.push<MicTXView>(); } },
|
||||||
{ "Looking Glass", ui::Color::yellow(), &bitmap_icon_looking, [&nav](){ nav.push<GlassView>(); } },
|
{ "Looking Glass", ui::Color::yellow(), &bitmap_icon_looking, [&nav](){ nav.push<GlassView>(); } },
|
||||||
{ "Tools", ui::Color::cyan(), &bitmap_icon_utilities, [&nav](){ nav.push<UtilitiesMenuView>(); } },
|
{ "Utilities", ui::Color::cyan(), &bitmap_icon_utilities, [&nav](){ nav.push<UtilitiesMenuView>(); } },
|
||||||
{ "Options", ui::Color::cyan(), &bitmap_icon_setup, [&nav](){ nav.push<SettingsMenuView>(); } },
|
{ "Settings", ui::Color::cyan(), &bitmap_icon_setup, [&nav](){ nav.push<SettingsMenuView>(); } },
|
||||||
{ "Debug", ui::Color::light_grey(), &bitmap_icon_debug, [&nav](){ nav.push<DebugMenuView>(); } },
|
{ "Debug", ui::Color::light_grey(), &bitmap_icon_debug, [&nav](){ nav.push<DebugMenuView>(); } },
|
||||||
{ "HackRF", ui::Color::cyan(), &bitmap_icon_hackrf, [this, &nav](){ hackrf_mode(nav); } },
|
{ "HackRF", ui::Color::cyan(), &bitmap_icon_hackrf, [this, &nav](){ hackrf_mode(nav); } },
|
||||||
//{ "About", ui::Color::cyan(), nullptr, [&nav](){ nav.push<AboutView>(); } }
|
//{ "About", ui::Color::cyan(), nullptr, [&nav](){ nav.push<AboutView>(); } }
|
||||||
|
@ -248,14 +248,14 @@ namespace ui
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ReceiversMenuView(NavigationView &nav);
|
ReceiversMenuView(NavigationView &nav);
|
||||||
std::string title() const override { return "Receivers"; };
|
std::string title() const override { return "Receive"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
class TransmittersMenuView : public BtnGridView
|
class TransmittersMenuView : public BtnGridView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TransmittersMenuView(NavigationView &nav);
|
TransmittersMenuView(NavigationView &nav);
|
||||||
std::string title() const override { return "Transmitters"; };
|
std::string title() const override { return "Transmit"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
class UtilitiesMenuView : public BtnGridView
|
class UtilitiesMenuView : public BtnGridView
|
||||||
|
@ -38,6 +38,8 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
|
std::string title() const override { return "SD Card"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SignalToken sd_card_status_signal_token { };
|
SignalToken sd_card_status_signal_token { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user