Adding Frequency Correction menu and effect (#1016)

* Adding Frequency Correction and entry menu in Settings
This commit is contained in:
gullradriel 2023-05-20 09:30:08 +02:00 committed by GitHub
parent 02811b9967
commit f18764f109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 173 additions and 22 deletions

View file

@ -329,13 +329,49 @@ class SetConverterSettingsView : public View {
"",
};
Button button_save{
{2 * 8, 16 * 16, 12 * 8, 32},
"Save"};
Button button_cancel{
Button button_return{
{16 * 8, 16 * 16, 12 * 8, 32},
"Cancel",
"return",
};
};
class SetFrequencyCorrectionView : public View {
public:
SetFrequencyCorrectionView(NavigationView& nav);
void focus() override;
std::string title() const override { return "FreqCorrect"; };
private:
Text text_freqCorrection_about{
{0, 2 * 16, 240, 16},
"Set Frequency correction:"};
OptionsField frequency_rx_correction_mode{
{18, 5 * 16 + 4},
0,
{{" + ", 0},
{" - ", 1}}};
OptionsField frequency_tx_correction_mode{
{18, 9 * 16 + 4},
0,
{{" + ", 0},
{" - ", 1}}};
Button button_freq_rx_correction{
{18 + 4 * 8, 5 * 16, 20 * 8, 24},
"",
};
Button button_freq_tx_correction{
{18 + 4 * 8, 9 * 16, 20 * 8, 24},
"",
};
Button button_return{
{16 * 8, 16 * 16, 12 * 8, 32},
"Return",
};
};