Review Radio setup
This commit is contained in:
@@ -208,16 +208,6 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.beepVolume));
|
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.beepVolume));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// Wav volume
|
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_WAV_VOLUME);
|
|
||||||
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.wavVolume));
|
|
||||||
grid.nextLine();
|
|
||||||
|
|
||||||
// Background volume
|
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_BG_VOLUME);
|
|
||||||
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.backgroundVolume));
|
|
||||||
grid.nextLine();
|
|
||||||
|
|
||||||
// Beeps length
|
// Beeps length
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_BEEP_LENGTH);
|
new StaticText(window, grid.getLabelSlot(true), STR_BEEP_LENGTH);
|
||||||
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.beepLength));
|
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.beepLength));
|
||||||
@@ -228,14 +218,24 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
auto edit = new NumberEdit(window, grid.getFieldSlot(), 0, 300,
|
auto edit = new NumberEdit(window, grid.getFieldSlot(), 0, 300,
|
||||||
GET_DEFAULT(15 * g_eeGeneral.speakerPitch),
|
GET_DEFAULT(15 * g_eeGeneral.speakerPitch),
|
||||||
[=](int32_t newValue) {
|
[=](int32_t newValue) {
|
||||||
g_eeGeneral.speakerPitch = newValue / 15;
|
g_eeGeneral.speakerPitch = newValue / 15;
|
||||||
SET_DIRTY();
|
SET_DIRTY();
|
||||||
});
|
});
|
||||||
edit->setStep(15);
|
edit->setStep(15);
|
||||||
edit->setPrefix("+");
|
edit->setPrefix("+");
|
||||||
edit->setSuffix("Hz");
|
edit->setSuffix("Hz");
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
|
// Wav volume
|
||||||
|
new StaticText(window, grid.getLabelSlot(true), STR_WAV_VOLUME);
|
||||||
|
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.wavVolume));
|
||||||
|
grid.nextLine();
|
||||||
|
|
||||||
|
// Background volume
|
||||||
|
new StaticText(window, grid.getLabelSlot(true), STR_BG_VOLUME);
|
||||||
|
new Slider(window, grid.getFieldSlot(), -2, +2, GET_SET_DEFAULT(g_eeGeneral.backgroundVolume));
|
||||||
|
grid.nextLine();
|
||||||
|
|
||||||
#if defined(VARIO)
|
#if defined(VARIO)
|
||||||
{
|
{
|
||||||
new Subtitle(window, grid.getLabelSlot(), STR_VARIO);
|
new Subtitle(window, grid.getLabelSlot(), STR_VARIO);
|
||||||
@@ -305,6 +305,12 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
edit->setSuffix("v");
|
edit->setSuffix("v");
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
|
// Inactivity alarm
|
||||||
|
new StaticText(window, grid.getLabelSlot(true), STR_INACTIVITYALARM);
|
||||||
|
edit = new NumberEdit(window, grid.getFieldSlot(), 0, 250, GET_SET_DEFAULT(g_eeGeneral.inactivityTimer));
|
||||||
|
edit->setSuffix("minutes");
|
||||||
|
grid.nextLine();
|
||||||
|
|
||||||
// Alarms warning
|
// Alarms warning
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_ALARMWARNING);
|
new StaticText(window, grid.getLabelSlot(true), STR_ALARMWARNING);
|
||||||
new CheckBox(window, grid.getFieldSlot(), GET_SET_INVERTED(g_eeGeneral.disableAlarmWarning));
|
new CheckBox(window, grid.getFieldSlot(), GET_SET_INVERTED(g_eeGeneral.disableAlarmWarning));
|
||||||
@@ -314,12 +320,6 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
new StaticText(window, grid.getLabelSlot(true), STR_RSSI_SHUTDOWN_ALARM);
|
new StaticText(window, grid.getLabelSlot(true), STR_RSSI_SHUTDOWN_ALARM);
|
||||||
new CheckBox(window, grid.getFieldSlot(), GET_SET_INVERTED(g_eeGeneral.disableRssiPoweroffAlarm));
|
new CheckBox(window, grid.getFieldSlot(), GET_SET_INVERTED(g_eeGeneral.disableRssiPoweroffAlarm));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// Inactivity alarm
|
|
||||||
new StaticText(window, grid.getLabelSlot(true), STR_INACTIVITYALARM);
|
|
||||||
edit = new NumberEdit(window, grid.getFieldSlot(), 0, 250, GET_SET_DEFAULT(g_eeGeneral.inactivityTimer));
|
|
||||||
edit->setSuffix("minutes");
|
|
||||||
grid.nextLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backlight
|
// Backlight
|
||||||
|
|||||||
Reference in New Issue
Block a user