Merge pull request #844 from opentx/kilrah/remove_non_opentx_ui
A megaton of non-OpenTX UI elements and relations removed in general set...
This commit is contained in:
@@ -986,7 +986,6 @@ class RadioData {
|
|||||||
|
|
||||||
// TODO rename FlightPhase to FlightMode
|
// TODO rename FlightPhase to FlightMode
|
||||||
enum Capability {
|
enum Capability {
|
||||||
OwnerName,
|
|
||||||
FlightPhases,
|
FlightPhases,
|
||||||
FlightModesName,
|
FlightModesName,
|
||||||
FlightPhasesHaveFades,
|
FlightPhasesHaveFades,
|
||||||
@@ -1013,7 +1012,6 @@ enum Capability {
|
|||||||
ExtraChannels,
|
ExtraChannels,
|
||||||
ExtraInputs,
|
ExtraInputs,
|
||||||
ExtendedTrims,
|
ExtendedTrims,
|
||||||
HasInputFilter,
|
|
||||||
NumCurves,
|
NumCurves,
|
||||||
NumCurvePoints,
|
NumCurvePoints,
|
||||||
OffsetWeight,
|
OffsetWeight,
|
||||||
@@ -1026,11 +1024,7 @@ enum Capability {
|
|||||||
Haptic,
|
Haptic,
|
||||||
HapticLength,
|
HapticLength,
|
||||||
HapticMode,
|
HapticMode,
|
||||||
HasBlInvert,
|
|
||||||
HasBeeper,
|
HasBeeper,
|
||||||
BandgapMeasure,
|
|
||||||
PotScrolling,
|
|
||||||
TrainerSwitch,
|
|
||||||
ModelTrainerEnable,
|
ModelTrainerEnable,
|
||||||
Timer2ThrTrig,
|
Timer2ThrTrig,
|
||||||
HasExpoNames,
|
HasExpoNames,
|
||||||
@@ -1045,8 +1039,6 @@ enum Capability {
|
|||||||
OptrexDisplay,
|
OptrexDisplay,
|
||||||
PPMExtCtrl,
|
PPMExtCtrl,
|
||||||
PPMFrameLength,
|
PPMFrameLength,
|
||||||
gsSwitchMask,
|
|
||||||
BLonStickMove,
|
|
||||||
DSM2Indexes,
|
DSM2Indexes,
|
||||||
Telemetry,
|
Telemetry,
|
||||||
TelemetryUnits,
|
TelemetryUnits,
|
||||||
@@ -1061,8 +1053,6 @@ enum Capability {
|
|||||||
TelemetryCustomScreens,
|
TelemetryCustomScreens,
|
||||||
TelemetryCustomScreensFieldsPerLine,
|
TelemetryCustomScreensFieldsPerLine,
|
||||||
TelemetryRSSIModel,
|
TelemetryRSSIModel,
|
||||||
TelemetryAlarm,
|
|
||||||
TelemetryInternalAlarm,
|
|
||||||
TelemetryTimeshift,
|
TelemetryTimeshift,
|
||||||
TelemetryMaxMultiplier,
|
TelemetryMaxMultiplier,
|
||||||
HasAltitudeSel,
|
HasAltitudeSel,
|
||||||
@@ -1070,9 +1060,6 @@ enum Capability {
|
|||||||
HasVarioSink,
|
HasVarioSink,
|
||||||
HasVariants,
|
HasVariants,
|
||||||
HasFailsafe,
|
HasFailsafe,
|
||||||
HasPPMSim,
|
|
||||||
HasCrossTrims,
|
|
||||||
HasStickScroll,
|
|
||||||
HasSoundMixer,
|
HasSoundMixer,
|
||||||
NumModules,
|
NumModules,
|
||||||
PPMCenter,
|
PPMCenter,
|
||||||
@@ -1095,7 +1082,6 @@ enum Capability {
|
|||||||
LuaInputs,
|
LuaInputs,
|
||||||
LimitsPer1000,
|
LimitsPer1000,
|
||||||
EnhancedCurves,
|
EnhancedCurves,
|
||||||
TelemetryInternalAlarms,
|
|
||||||
HasFasOffset,
|
HasFasOffset,
|
||||||
HasMahPersistent,
|
HasMahPersistent,
|
||||||
MultiposPots,
|
MultiposPots,
|
||||||
|
|||||||
@@ -213,22 +213,14 @@ int Er9xInterface::getCapability(const Capability capability)
|
|||||||
return 1;
|
return 1;
|
||||||
case Timer2ThrTrig:
|
case Timer2ThrTrig:
|
||||||
return 1;
|
return 1;
|
||||||
case TrainerSwitch:
|
|
||||||
return 1;
|
|
||||||
case OffsetWeight:
|
case OffsetWeight:
|
||||||
return 125;
|
return 125;
|
||||||
case BandgapMeasure:
|
|
||||||
return 1;
|
|
||||||
case PotScrolling:
|
|
||||||
return 1;
|
|
||||||
case SoundMod:
|
case SoundMod:
|
||||||
return 1;
|
return 1;
|
||||||
case SoundPitch:
|
case SoundPitch:
|
||||||
return 1;
|
return 1;
|
||||||
case Haptic:
|
case Haptic:
|
||||||
return 1;
|
return 1;
|
||||||
case OwnerName:
|
|
||||||
return 10;
|
|
||||||
case Timers:
|
case Timers:
|
||||||
return 1;
|
return 1;
|
||||||
case Pots:
|
case Pots:
|
||||||
@@ -251,10 +243,6 @@ int Er9xInterface::getCapability(const Capability capability)
|
|||||||
return 0;
|
return 0;
|
||||||
case Simulation:
|
case Simulation:
|
||||||
return 1;
|
return 1;
|
||||||
case gsSwitchMask:
|
|
||||||
return 1;
|
|
||||||
case BLonStickMove:
|
|
||||||
return 1;
|
|
||||||
case Telemetry:
|
case Telemetry:
|
||||||
return TM_HASTELEMETRY|TM_HASWSHH;
|
return TM_HASTELEMETRY|TM_HASWSHH;
|
||||||
case TelemetryUnits:
|
case TelemetryUnits:
|
||||||
@@ -270,14 +258,9 @@ int Er9xInterface::getCapability(const Capability capability)
|
|||||||
case LCDWidth:
|
case LCDWidth:
|
||||||
return 128;
|
return 128;
|
||||||
case VoicesAsNumbers:
|
case VoicesAsNumbers:
|
||||||
case TelemetryInternalAlarm:
|
|
||||||
case HasPPMSim:
|
|
||||||
case HasCrossTrims:
|
|
||||||
case HasStickScroll:
|
|
||||||
case HasAltitudeSel:
|
case HasAltitudeSel:
|
||||||
case HasContrast:
|
case HasContrast:
|
||||||
case HasVolume:
|
case HasVolume:
|
||||||
case HasBlInvert:
|
|
||||||
case ModelVoice:
|
case ModelVoice:
|
||||||
case Gvars:
|
case Gvars:
|
||||||
return 7;
|
return 7;
|
||||||
|
|||||||
@@ -255,22 +255,12 @@ int Ersky9xInterface::getCapability(const Capability capability)
|
|||||||
return 1;
|
return 1;
|
||||||
case Timer2ThrTrig:
|
case Timer2ThrTrig:
|
||||||
return 1;
|
return 1;
|
||||||
case TrainerSwitch:
|
|
||||||
return 1;
|
|
||||||
case BandgapMeasure:
|
|
||||||
return 1;
|
|
||||||
case PotScrolling:
|
|
||||||
return 1;
|
|
||||||
case SoundMod:
|
case SoundMod:
|
||||||
return 1;
|
return 1;
|
||||||
case SoundPitch:
|
case SoundPitch:
|
||||||
return 1;
|
return 1;
|
||||||
case Haptic:
|
case Haptic:
|
||||||
return 1;
|
return 1;
|
||||||
case OwnerName:
|
|
||||||
return 10;
|
|
||||||
case HasInputFilter:
|
|
||||||
return 0;
|
|
||||||
case ModelVoice:
|
case ModelVoice:
|
||||||
return 1;
|
return 1;
|
||||||
case Timers:
|
case Timers:
|
||||||
@@ -297,10 +287,6 @@ int Ersky9xInterface::getCapability(const Capability capability)
|
|||||||
return 0;
|
return 0;
|
||||||
case Simulation:
|
case Simulation:
|
||||||
return 1;
|
return 1;
|
||||||
case gsSwitchMask:
|
|
||||||
return 1;
|
|
||||||
case BLonStickMove:
|
|
||||||
return 1;
|
|
||||||
case Telemetry:
|
case Telemetry:
|
||||||
return TM_HASTELEMETRY|TM_HASWSHH;
|
return TM_HASTELEMETRY|TM_HASWSHH;
|
||||||
case TelemetryUnits:
|
case TelemetryUnits:
|
||||||
|
|||||||
@@ -219,8 +219,6 @@ int Gruvin9xInterface::getSize(GeneralSettings &settings)
|
|||||||
int Gruvin9xInterface::getCapability(const Capability capability)
|
int Gruvin9xInterface::getCapability(const Capability capability)
|
||||||
{
|
{
|
||||||
switch (capability) {
|
switch (capability) {
|
||||||
case OwnerName:
|
|
||||||
return 0;
|
|
||||||
case Mixes:
|
case Mixes:
|
||||||
return G9X_MAX_MIXERS;
|
return G9X_MAX_MIXERS;
|
||||||
case FlightPhases:
|
case FlightPhases:
|
||||||
|
|||||||
@@ -451,8 +451,6 @@ int OpenTxInterface::getSize(GeneralSettings &settings)
|
|||||||
int OpenTxInterface::getCapability(const Capability capability)
|
int OpenTxInterface::getCapability(const Capability capability)
|
||||||
{
|
{
|
||||||
switch (capability) {
|
switch (capability) {
|
||||||
case OwnerName:
|
|
||||||
return 0;
|
|
||||||
case ModelImage:
|
case ModelImage:
|
||||||
if (IS_TARANIS(board))
|
if (IS_TARANIS(board))
|
||||||
return 1;
|
return 1;
|
||||||
@@ -619,8 +617,6 @@ int OpenTxInterface::getCapability(const Capability capability)
|
|||||||
return 1;
|
return 1;
|
||||||
case TelemetryRSSIModel:
|
case TelemetryRSSIModel:
|
||||||
return 1;
|
return 1;
|
||||||
case TelemetryAlarm:
|
|
||||||
return 0;
|
|
||||||
case TelemetryTimeshift:
|
case TelemetryTimeshift:
|
||||||
return 1;
|
return 1;
|
||||||
case TelemetryMaxMultiplier:
|
case TelemetryMaxMultiplier:
|
||||||
@@ -676,8 +672,6 @@ int OpenTxInterface::getCapability(const Capability capability)
|
|||||||
case LuaInputs:
|
case LuaInputs:
|
||||||
case LimitsPer1000:
|
case LimitsPer1000:
|
||||||
case EnhancedCurves:
|
case EnhancedCurves:
|
||||||
case TelemetryInternalAlarms:
|
|
||||||
return IS_TARANIS(board);
|
|
||||||
case HasFasOffset:
|
case HasFasOffset:
|
||||||
return (IS_STOCK(board) ? false : true);
|
return (IS_STOCK(board) ? false : true);
|
||||||
case HasMahPersistent:
|
case HasMahPersistent:
|
||||||
|
|||||||
@@ -145,8 +145,6 @@ int Th9xInterface::getCapability(const Capability capability)
|
|||||||
switch (capability) {
|
switch (capability) {
|
||||||
case Mixes:
|
case Mixes:
|
||||||
return TH9X_MAX_MIXERS;
|
return TH9X_MAX_MIXERS;
|
||||||
case OwnerName:
|
|
||||||
return 0;
|
|
||||||
case Timers:
|
case Timers:
|
||||||
return 1;
|
return 1;
|
||||||
case Pots:
|
case Pots:
|
||||||
@@ -168,8 +166,6 @@ int Th9xInterface::getCapability(const Capability capability)
|
|||||||
case Simulation:
|
case Simulation:
|
||||||
return 1;
|
return 1;
|
||||||
case HasContrast:
|
case HasContrast:
|
||||||
case HasInputFilter:
|
|
||||||
return 1;
|
|
||||||
case CSFunc:
|
case CSFunc:
|
||||||
return 13;
|
return 13;
|
||||||
case SlowScale:
|
case SlowScale:
|
||||||
|
|||||||
@@ -80,8 +80,6 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QRegExp rx(CHAR_FOR_NAMES_REGEX);
|
|
||||||
ui->ownerNameLE->setValidator(new QRegExpValidator(rx, this));
|
|
||||||
switchDefPosEditLock=true;
|
switchDefPosEditLock=true;
|
||||||
populateBacklightCB(ui->backlightswCB, g_eeGeneral.backlightMode);
|
populateBacklightCB(ui->backlightswCB, g_eeGeneral.backlightMode);
|
||||||
bool voice = current_firmware_variant.id.contains("voice");
|
bool voice = current_firmware_variant.id.contains("voice");
|
||||||
@@ -133,13 +131,6 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
ui->varioPMax_SB->setValue(700+(g_eeGeneral.varioPitch*10)+1000+(g_eeGeneral.varioRange*10));
|
ui->varioPMax_SB->setValue(700+(g_eeGeneral.varioPitch*10)+1000+(g_eeGeneral.varioRange*10));
|
||||||
ui->varioR0_SB->setValue(500+(g_eeGeneral.varioRepeat*10));
|
ui->varioR0_SB->setValue(500+(g_eeGeneral.varioRepeat*10));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(HasBlInvert)) {
|
|
||||||
ui->blinvert_cb->hide();
|
|
||||||
ui->blinvert_label->hide();
|
|
||||||
} else {
|
|
||||||
ui->blinvert_cb->setChecked(g_eeGeneral.blightinv);
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(HasFAIMode)) {
|
if (!GetEepromInterface()->getCapability(HasFAIMode)) {
|
||||||
ui->faimode_CB->hide();
|
ui->faimode_CB->hide();
|
||||||
ui->label_faimode->hide();
|
ui->label_faimode->hide();
|
||||||
@@ -147,35 +138,6 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
else {
|
else {
|
||||||
ui->faimode_CB->setChecked(g_eeGeneral.fai);
|
ui->faimode_CB->setChecked(g_eeGeneral.fai);
|
||||||
}
|
}
|
||||||
ui->ownerNameLE->setText(g_eeGeneral.ownerName);
|
|
||||||
if (!GetEepromInterface()->getCapability(OwnerName)) {
|
|
||||||
ui->ownerNameLE->setDisabled(true);
|
|
||||||
ui->label_ownerName->hide();
|
|
||||||
ui->ownerNameLE->hide();
|
|
||||||
ui->hideNameOnSplashChkB->setDisabled(true);
|
|
||||||
ui->hideNameOnSplashChkB->hide();
|
|
||||||
ui->label_hideOwnerName->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(HasInputFilter)) {
|
|
||||||
ui->inputfilterCB->hide();
|
|
||||||
ui->inputfilterLabel->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(HasStickScroll)) {
|
|
||||||
ui->StickScrollChkB->hide();
|
|
||||||
ui->StickScrollLB->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(TelemetryInternalAlarm)) {
|
|
||||||
ui->frskyintalarmChkB->hide();
|
|
||||||
ui->label_frskyintalarm->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(HasCrossTrims)) {
|
|
||||||
ui->crosstrimChkB->hide();
|
|
||||||
ui->crosstrimLB->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(HasPPMSim)) {
|
|
||||||
ui->PPMSimLB->hide();
|
|
||||||
ui->PPMSimChkB->hide();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability( HasPxxCountry)) {
|
if (!GetEepromInterface()->getCapability( HasPxxCountry)) {
|
||||||
ui->countrycode_label->hide();
|
ui->countrycode_label->hide();
|
||||||
ui->countrycode_CB->hide();
|
ui->countrycode_CB->hide();
|
||||||
@@ -223,9 +185,6 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
ui->label_CurrentCalib->hide();
|
ui->label_CurrentCalib->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetEepromInterface()->getCapability(TelemetryRSSIModel) ) {
|
|
||||||
ui->tabWidget->removeTab(2);
|
|
||||||
}
|
|
||||||
ui->tabWidget->setCurrentIndex(0);
|
ui->tabWidget->setCurrentIndex(0);
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(SoundMod)) {
|
if (!GetEepromInterface()->getCapability(SoundMod)) {
|
||||||
@@ -246,80 +205,12 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
ui->label_hapticStrengthSB->hide();
|
ui->label_hapticStrengthSB->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetEepromInterface()->getCapability(PerModelTimers)) {
|
|
||||||
ui->beepCountDownChkB->hide();
|
|
||||||
ui->beepFlashChkB->hide();
|
|
||||||
ui->beepMinuteChkB->hide();
|
|
||||||
ui->label_timers->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(HapticMode)) {
|
if (!GetEepromInterface()->getCapability(HapticMode)) {
|
||||||
ui->hapticmodeCB->setDisabled(true);
|
ui->hapticmodeCB->setDisabled(true);
|
||||||
ui->hapticmodeCB->hide();
|
ui->hapticmodeCB->hide();
|
||||||
ui->label_hapticmode->hide();
|
ui->label_hapticmode->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(BandgapMeasure)) {
|
|
||||||
ui->BandGapEnableChkB->setDisabled(true);
|
|
||||||
ui->BandGapEnableChkB->hide();
|
|
||||||
ui->label_BandGapEnable->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(PotScrolling)) {
|
|
||||||
ui->PotScrollEnableChkB->setDisabled(true);
|
|
||||||
ui->PotScrollEnableChkB->hide();
|
|
||||||
ui->label_PotScrollEnable->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!GetEepromInterface()->getCapability(TrainerSwitch)) {
|
|
||||||
ui->label_switch->hide();
|
|
||||||
ui->swtchCB_1->setDisabled(true);
|
|
||||||
ui->swtchCB_2->setDisabled(true);
|
|
||||||
ui->swtchCB_3->setDisabled(true);
|
|
||||||
ui->swtchCB_4->setDisabled(true);
|
|
||||||
ui->swtchCB_1->hide();
|
|
||||||
ui->swtchCB_2->hide();
|
|
||||||
ui->swtchCB_3->hide();
|
|
||||||
ui->swtchCB_4->hide();
|
|
||||||
} else {
|
|
||||||
populateSwitchCB(ui->swtchCB_1,g_eeGeneral.trainer.mix[0].swtch);
|
|
||||||
populateSwitchCB(ui->swtchCB_2,g_eeGeneral.trainer.mix[1].swtch);
|
|
||||||
populateSwitchCB(ui->swtchCB_3,g_eeGeneral.trainer.mix[2].swtch);
|
|
||||||
populateSwitchCB(ui->swtchCB_4,g_eeGeneral.trainer.mix[3].swtch);
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(BLonStickMove)) {
|
|
||||||
ui->blOnStickMoveSB->setDisabled(true);
|
|
||||||
ui->blOnStickMoveSB->hide();
|
|
||||||
ui->label_blOnStickMove->hide();
|
|
||||||
} else {
|
|
||||||
ui->blOnStickMoveSB->setValue(g_eeGeneral.lightOnStickMove*5);
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(gsSwitchMask)) {
|
|
||||||
ui->swAILChkB->setDisabled(true);
|
|
||||||
ui->swELEChkB->setDisabled(true);
|
|
||||||
ui->swTHRChkB->setDisabled(true);
|
|
||||||
ui->swRUDChkB->setDisabled(true);
|
|
||||||
ui->swGEAChkB->setDisabled(true);
|
|
||||||
ui->swID0ChkB->setDisabled(true);
|
|
||||||
ui->swID1ChkB->setDisabled(true);
|
|
||||||
ui->swID2ChkB->setDisabled(true);
|
|
||||||
ui->swAILChkB->hide();
|
|
||||||
ui->swELEChkB->hide();
|
|
||||||
ui->swTHRChkB->hide();
|
|
||||||
ui->swRUDChkB->hide();
|
|
||||||
ui->swGEAChkB->hide();
|
|
||||||
ui->swID0ChkB->hide();
|
|
||||||
ui->swID1ChkB->hide();
|
|
||||||
ui->swID2ChkB->hide();
|
|
||||||
this->layout()->removeItem(ui->switchMaskLayout);
|
|
||||||
} else {
|
|
||||||
setSwitchDefPos();
|
|
||||||
}
|
|
||||||
if (!GetEepromInterface()->getCapability(TelemetryAlarm)) {
|
|
||||||
ui->telalarmsChkB->hide();
|
|
||||||
ui->label_telalarms->hide();
|
|
||||||
}
|
|
||||||
int renumber=GetEepromInterface()->getCapability(RotaryEncoders);
|
int renumber=GetEepromInterface()->getCapability(RotaryEncoders);
|
||||||
if (renumber==0) {
|
if (renumber==0) {
|
||||||
ui->re_label->hide();
|
ui->re_label->hide();
|
||||||
@@ -327,28 +218,15 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
|
|||||||
} else {
|
} else {
|
||||||
populateRotEncCB(ui->re_CB, g_eeGeneral.reNavigation, renumber);
|
populateRotEncCB(ui->re_CB, g_eeGeneral.reNavigation, renumber);
|
||||||
}
|
}
|
||||||
ui->telalarmsChkB->setChecked(g_eeGeneral.enableTelemetryAlarm);
|
|
||||||
ui->PotScrollEnableChkB->setChecked(!g_eeGeneral.disablePotScroll);
|
|
||||||
ui->BandGapEnableChkB->setChecked(!g_eeGeneral.disableBG);
|
|
||||||
ui->contrastSB->setValue(g_eeGeneral.contrast);
|
ui->contrastSB->setValue(g_eeGeneral.contrast);
|
||||||
ui->battwarningDSB->setValue((double)g_eeGeneral.vBatWarn/10);
|
ui->battwarningDSB->setValue((double)g_eeGeneral.vBatWarn/10);
|
||||||
ui->backlightautoSB->setValue(g_eeGeneral.backlightDelay*5);
|
ui->backlightautoSB->setValue(g_eeGeneral.backlightDelay*5);
|
||||||
ui->inactimerSB->setValue(g_eeGeneral.inactivityTimer);
|
ui->inactimerSB->setValue(g_eeGeneral.inactivityTimer);
|
||||||
|
|
||||||
ui->crosstrimChkB->setChecked(g_eeGeneral.crosstrim);
|
|
||||||
ui->frskyintalarmChkB->setChecked(g_eeGeneral.frskyinternalalarm);
|
|
||||||
ui->StickScrollChkB->setChecked(g_eeGeneral.stickScroll);
|
|
||||||
ui->PPMSimChkB->setChecked(g_eeGeneral.enablePpmsim);
|
|
||||||
ui->inputfilterCB->setCurrentIndex(g_eeGeneral.filterInput);
|
|
||||||
ui->memwarnChkB->setChecked(!g_eeGeneral.disableMemoryWarning); //Default is zero=checked
|
ui->memwarnChkB->setChecked(!g_eeGeneral.disableMemoryWarning); //Default is zero=checked
|
||||||
ui->alarmwarnChkB->setChecked(!g_eeGeneral.disableAlarmWarning);//Default is zero=checked
|
ui->alarmwarnChkB->setChecked(!g_eeGeneral.disableAlarmWarning);//Default is zero=checked
|
||||||
ui->enableTelemetryAlarmChkB->setChecked(g_eeGeneral.enableTelemetryAlarm);
|
|
||||||
|
|
||||||
ui->beepMinuteChkB->setChecked(g_eeGeneral.minuteBeep);
|
|
||||||
ui->beepCountDownChkB->setChecked(g_eeGeneral.preBeep);
|
|
||||||
ui->beepFlashChkB->setChecked(g_eeGeneral.flashBeep);
|
|
||||||
ui->splashScreenChkB->setChecked(!g_eeGeneral.splashMode);
|
ui->splashScreenChkB->setChecked(!g_eeGeneral.splashMode);
|
||||||
ui->hideNameOnSplashChkB->setChecked(!g_eeGeneral.hideNameOnSplash);
|
|
||||||
|
|
||||||
ui->trnMode_1->setCurrentIndex(g_eeGeneral.trainer.mix[0].mode);
|
ui->trnMode_1->setCurrentIndex(g_eeGeneral.trainer.mix[0].mode);
|
||||||
ui->trnChn_1->setCurrentIndex(g_eeGeneral.trainer.mix[0].src);
|
ui->trnChn_1->setCurrentIndex(g_eeGeneral.trainer.mix[0].src);
|
||||||
@@ -462,9 +340,8 @@ void GeneralEdit::setValues()
|
|||||||
ui->speakerPitchSB->setValue(g_eeGeneral.speakerPitch);
|
ui->speakerPitchSB->setValue(g_eeGeneral.speakerPitch);
|
||||||
ui->hapticStrengthSB->setValue(g_eeGeneral.hapticStrength);
|
ui->hapticStrengthSB->setValue(g_eeGeneral.hapticStrength);
|
||||||
ui->hapticmodeCB->setCurrentIndex(g_eeGeneral.hapticMode+2);
|
ui->hapticmodeCB->setCurrentIndex(g_eeGeneral.hapticMode+2);
|
||||||
ui->battcalibDSB->setValue((double)g_eeGeneral.vBatCalib/10);
|
ui->battCalibDSB->setValue((double)g_eeGeneral.vBatCalib/10);
|
||||||
ui->CurrentCalib_SB->setValue((double)g_eeGeneral.currentCalib);
|
ui->CurrentCalib_SB->setValue((double)g_eeGeneral.currentCalib);
|
||||||
ui->battCalib->setValue((double)g_eeGeneral.vBatCalib/10);
|
|
||||||
|
|
||||||
ui->ana1Neg->setValue(g_eeGeneral.calibSpanNeg[0]);
|
ui->ana1Neg->setValue(g_eeGeneral.calibSpanNeg[0]);
|
||||||
ui->ana2Neg->setValue(g_eeGeneral.calibSpanNeg[1]);
|
ui->ana2Neg->setValue(g_eeGeneral.calibSpanNeg[1]);
|
||||||
@@ -500,27 +377,6 @@ void GeneralEdit::setValues()
|
|||||||
ui->PPM_MultiplierDSB->setValue((qreal)(g_eeGeneral.PPM_Multiplier+10)/10);
|
ui->PPM_MultiplierDSB->setValue((qreal)(g_eeGeneral.PPM_Multiplier+10)/10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::setSwitchDefPos()
|
|
||||||
{
|
|
||||||
quint8 x = g_eeGeneral.switchWarningStates & 0x38;
|
|
||||||
if(x==0x00 || x==0x18 || x== 0x28 || x==0x38 || x==0x30) //illegal states for ID0/1/2
|
|
||||||
{
|
|
||||||
g_eeGeneral.switchWarningStates &= ~0x38; // turn all off, make sure only one is on
|
|
||||||
g_eeGeneral.switchWarningStates |= 0x08;
|
|
||||||
}
|
|
||||||
|
|
||||||
switchDefPosEditLock = true;
|
|
||||||
ui->swTHRChkB->setChecked(g_eeGeneral.switchWarningStates & 0x01);
|
|
||||||
ui->swRUDChkB->setChecked(g_eeGeneral.switchWarningStates & 0x02);
|
|
||||||
ui->swELEChkB->setChecked(g_eeGeneral.switchWarningStates & 0x04);
|
|
||||||
ui->swID0ChkB->setChecked(g_eeGeneral.switchWarningStates & 0x08);
|
|
||||||
ui->swID1ChkB->setChecked(g_eeGeneral.switchWarningStates & 0x10);
|
|
||||||
ui->swID2ChkB->setChecked(g_eeGeneral.switchWarningStates & 0x20);
|
|
||||||
ui->swAILChkB->setChecked(g_eeGeneral.switchWarningStates & 0x40);
|
|
||||||
ui->swGEAChkB->setChecked(g_eeGeneral.switchWarningStates & 0x80);
|
|
||||||
switchDefPosEditLock = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::updateSettings()
|
void GeneralEdit::updateSettings()
|
||||||
{
|
{
|
||||||
radioData.generalSettings = g_eeGeneral;
|
radioData.generalSettings = g_eeGeneral;
|
||||||
@@ -539,10 +395,9 @@ void GeneralEdit::on_battwarningDSB_editingFinished()
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_battcalibDSB_editingFinished()
|
void GeneralEdit::on_battCalibDSB_editingFinished()
|
||||||
{
|
{
|
||||||
g_eeGeneral.vBatCalib = ui->battcalibDSB->value()*10;
|
g_eeGeneral.vBatCalib = ui->battCalibDSB->value()*10;
|
||||||
ui->battCalib->setValue(ui->battcalibDSB->value());
|
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -630,29 +485,12 @@ void GeneralEdit::on_timezoneSB_editingFinished()
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GeneralEdit::on_blOnStickMoveSB_editingFinished()
|
|
||||||
{
|
|
||||||
int i = ui->blOnStickMoveSB->value()/5;
|
|
||||||
if((i*5)!=ui->blOnStickMoveSB->value())
|
|
||||||
ui->blOnStickMoveSB->setValue(i*5);
|
|
||||||
|
|
||||||
g_eeGeneral.lightOnStickMove = i;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_inactimerSB_editingFinished()
|
void GeneralEdit::on_inactimerSB_editingFinished()
|
||||||
{
|
{
|
||||||
g_eeGeneral.inactivityTimer = ui->inactimerSB->value();
|
g_eeGeneral.inactivityTimer = ui->inactimerSB->value();
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_inputfilterCB_currentIndexChanged(int index)
|
|
||||||
{
|
|
||||||
g_eeGeneral.filterInput = index;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_memwarnChkB_stateChanged(int )
|
void GeneralEdit::on_memwarnChkB_stateChanged(int )
|
||||||
{
|
{
|
||||||
g_eeGeneral.disableMemoryWarning = ui->memwarnChkB->isChecked() ? 0 : 1;
|
g_eeGeneral.disableMemoryWarning = ui->memwarnChkB->isChecked() ? 0 : 1;
|
||||||
@@ -665,12 +503,6 @@ void GeneralEdit::on_alarmwarnChkB_stateChanged(int )
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_enableTelemetryAlarmChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.enableTelemetryAlarm = ui->enableTelemetryAlarmChkB->isChecked();
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_beeperCB_currentIndexChanged(int index)
|
void GeneralEdit::on_beeperCB_currentIndexChanged(int index)
|
||||||
{
|
{
|
||||||
g_eeGeneral.beeperMode = (BeeperMode)(index-2);
|
g_eeGeneral.beeperMode = (BeeperMode)(index-2);
|
||||||
@@ -919,13 +751,6 @@ void GeneralEdit::on_ana8Pos_editingFinished()
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_battCalib_editingFinished()
|
|
||||||
{
|
|
||||||
g_eeGeneral.vBatCalib = ui->battCalib->value()*10;
|
|
||||||
ui->battcalibDSB->setValue(ui->battCalib->value());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_volume_SB_editingFinished()
|
void GeneralEdit::on_volume_SB_editingFinished()
|
||||||
{
|
{
|
||||||
g_eeGeneral.speakerVolume = ui->volume_SB->value();
|
g_eeGeneral.speakerVolume = ui->volume_SB->value();
|
||||||
@@ -1022,49 +847,18 @@ void GeneralEdit::on_tabWidget_currentChanged(int index)
|
|||||||
g.generalEditTab(index);
|
g.generalEditTab(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GeneralEdit::on_beepMinuteChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.minuteBeep = ui->beepMinuteChkB->isChecked() ? 1 : 0;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_beepCountDownChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.preBeep = ui->beepCountDownChkB->isChecked() ? 1 : 0;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_beepFlashChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.flashBeep = ui->beepFlashChkB->isChecked() ? 1 : 0;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_splashScreenChkB_stateChanged(int )
|
void GeneralEdit::on_splashScreenChkB_stateChanged(int )
|
||||||
{
|
{
|
||||||
g_eeGeneral.splashMode = ui->splashScreenChkB->isChecked() ? 0 : 1;
|
g_eeGeneral.splashMode = ui->splashScreenChkB->isChecked() ? 0 : 1;
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_hideNameOnSplashChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.hideNameOnSplash = ui->hideNameOnSplashChkB->isChecked() ? 0 : 1;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_PPM_MultiplierDSB_editingFinished()
|
void GeneralEdit::on_PPM_MultiplierDSB_editingFinished()
|
||||||
{
|
{
|
||||||
g_eeGeneral.PPM_Multiplier = (int)(ui->PPM_MultiplierDSB->value()*10)-10;
|
g_eeGeneral.PPM_Multiplier = (int)(ui->PPM_MultiplierDSB->value()*10)-10;
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_ownerNameLE_editingFinished()
|
|
||||||
{
|
|
||||||
strncpy(g_eeGeneral.ownerName, ui->ownerNameLE->text().toAscii(), 10);
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_speakerPitchSB_editingFinished()
|
void GeneralEdit::on_speakerPitchSB_editingFinished()
|
||||||
{
|
{
|
||||||
g_eeGeneral.speakerPitch = ui->speakerPitchSB->value();
|
g_eeGeneral.speakerPitch = ui->speakerPitchSB->value();
|
||||||
@@ -1083,18 +877,6 @@ void GeneralEdit::on_soundModeCB_currentIndexChanged(int index)
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_PotScrollEnableChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.disablePotScroll = ui->PotScrollEnableChkB->isChecked() ? false : true;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_blinvert_cb_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.blightinv = ui->blinvert_cb->isChecked();
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_faimode_CB_stateChanged(int )
|
void GeneralEdit::on_faimode_CB_stateChanged(int )
|
||||||
{
|
{
|
||||||
if (ui->faimode_CB->isChecked()) {
|
if (ui->faimode_CB->isChecked()) {
|
||||||
@@ -1112,159 +894,6 @@ void GeneralEdit::on_faimode_CB_stateChanged(int )
|
|||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralEdit::on_BandGapEnableChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.disableBG = ui->BandGapEnableChkB->isChecked() ? false : true;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_crosstrimChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.crosstrim = ui->crosstrimChkB->isChecked() ? true : false;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_frskyintalarmChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.frskyinternalalarm = ui->frskyintalarmChkB->isChecked() ? true : false ;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_StickScrollChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.stickScroll = ui->StickScrollChkB->isChecked() ? true : false;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_PPMSimChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.enablePpmsim = ui->PPMSimChkB->isChecked() ? true : false;
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swtchCB_1_currentIndexChanged(int index)
|
|
||||||
{
|
|
||||||
g_eeGeneral.trainer.mix[0].swtch = RawSwitch(ui->swtchCB_1->itemData(ui->swtchCB_1->currentIndex()).toInt());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swtchCB_2_currentIndexChanged(int index)
|
|
||||||
{
|
|
||||||
g_eeGeneral.trainer.mix[1].swtch = RawSwitch(ui->swtchCB_2->itemData(ui->swtchCB_2->currentIndex()).toInt());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swtchCB_3_currentIndexChanged(int index)
|
|
||||||
{
|
|
||||||
g_eeGeneral.trainer.mix[2].swtch = RawSwitch(ui->swtchCB_3->itemData(ui->swtchCB_3->currentIndex()).toInt());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swtchCB_4_currentIndexChanged(int index)
|
|
||||||
{
|
|
||||||
g_eeGeneral.trainer.mix[3].swtch = RawSwitch(ui->swtchCB_4->itemData(ui->swtchCB_4->currentIndex()).toInt());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::getGeneralSwitchDefPos(int i, bool val)
|
|
||||||
{
|
|
||||||
if(val)
|
|
||||||
g_eeGeneral.switchWarningStates |= (1<<(i-1));
|
|
||||||
else
|
|
||||||
g_eeGeneral.switchWarningStates &= ~(1<<(i-1));
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swTHRChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
getGeneralSwitchDefPos(1,ui->swTHRChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_telalarmsChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
g_eeGeneral.enableTelemetryAlarm=ui->telalarmsChkB->isChecked();
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_swRUDChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
getGeneralSwitchDefPos(2,ui->swRUDChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swELEChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
getGeneralSwitchDefPos(3,ui->swELEChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swID0ChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
|
|
||||||
if(ui->swID0ChkB->isChecked())
|
|
||||||
{
|
|
||||||
switchDefPosEditLock = true;
|
|
||||||
ui->swID1ChkB->setChecked(false);
|
|
||||||
ui->swID2ChkB->setChecked(false);
|
|
||||||
switchDefPosEditLock = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_eeGeneral.switchWarningStates &= ~0x30; //turn off ID1/2
|
|
||||||
getGeneralSwitchDefPos(4,ui->swID0ChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swID1ChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
|
|
||||||
if(ui->swID1ChkB->isChecked())
|
|
||||||
{
|
|
||||||
switchDefPosEditLock = true;
|
|
||||||
ui->swID0ChkB->setChecked(false);
|
|
||||||
ui->swID2ChkB->setChecked(false);
|
|
||||||
switchDefPosEditLock = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_eeGeneral.switchWarningStates &= ~0x28; //turn off ID0/2
|
|
||||||
getGeneralSwitchDefPos(5,ui->swID1ChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swID2ChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
|
|
||||||
if(ui->swID2ChkB->isChecked())
|
|
||||||
{
|
|
||||||
switchDefPosEditLock = true;
|
|
||||||
ui->swID0ChkB->setChecked(false);
|
|
||||||
ui->swID1ChkB->setChecked(false);
|
|
||||||
switchDefPosEditLock = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_eeGeneral.switchWarningStates &= ~0x18; //turn off ID1/2
|
|
||||||
getGeneralSwitchDefPos(6,ui->swID2ChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swAILChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
getGeneralSwitchDefPos(7,ui->swAILChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
void GeneralEdit::on_swGEAChkB_stateChanged(int )
|
|
||||||
{
|
|
||||||
if(switchDefPosEditLock) return;
|
|
||||||
getGeneralSwitchDefPos(8,ui->swGEAChkB->isChecked());
|
|
||||||
updateSettings();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GeneralEdit::on_calretrieve_PB_clicked()
|
void GeneralEdit::on_calretrieve_PB_clicked()
|
||||||
{
|
{
|
||||||
int profile_id=ui->profile_CB->itemData(ui->profile_CB->currentIndex()).toInt();
|
int profile_id=ui->profile_CB->itemData(ui->profile_CB->currentIndex()).toInt();
|
||||||
|
|||||||
@@ -33,15 +33,7 @@ signals:
|
|||||||
void modelValuesChanged();
|
void modelValuesChanged();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_ownerNameLE_editingFinished();
|
|
||||||
void on_PotScrollEnableChkB_stateChanged(int);
|
|
||||||
void on_blinvert_cb_stateChanged(int);
|
|
||||||
void on_faimode_CB_stateChanged(int );
|
void on_faimode_CB_stateChanged(int );
|
||||||
void on_BandGapEnableChkB_stateChanged(int);
|
|
||||||
void on_crosstrimChkB_stateChanged(int );
|
|
||||||
void on_frskyintalarmChkB_stateChanged(int );
|
|
||||||
void on_StickScrollChkB_stateChanged(int );
|
|
||||||
void on_PPMSimChkB_stateChanged(int );
|
|
||||||
void on_speakerPitchSB_editingFinished();
|
void on_speakerPitchSB_editingFinished();
|
||||||
void on_timezoneSB_editingFinished();
|
void on_timezoneSB_editingFinished();
|
||||||
void on_hapticStrengthSB_editingFinished();
|
void on_hapticStrengthSB_editingFinished();
|
||||||
@@ -52,11 +44,7 @@ private slots:
|
|||||||
void on_hapticLengthCB_currentIndexChanged(int index);
|
void on_hapticLengthCB_currentIndexChanged(int index);
|
||||||
void on_PPM_MultiplierDSB_editingFinished();
|
void on_PPM_MultiplierDSB_editingFinished();
|
||||||
void on_splashScreenChkB_stateChanged(int );
|
void on_splashScreenChkB_stateChanged(int );
|
||||||
void on_hideNameOnSplashChkB_stateChanged(int);
|
|
||||||
void on_beepCountDownChkB_stateChanged(int );
|
|
||||||
void on_beepMinuteChkB_stateChanged(int );
|
|
||||||
void on_alarmwarnChkB_stateChanged(int );
|
void on_alarmwarnChkB_stateChanged(int );
|
||||||
void on_enableTelemetryAlarmChkB_stateChanged(int );
|
|
||||||
void on_gpsFormatCB_currentIndexChanged(int index);
|
void on_gpsFormatCB_currentIndexChanged(int index);
|
||||||
void on_tabWidget_currentChanged(int index);
|
void on_tabWidget_currentChanged(int index);
|
||||||
void on_displayTypeCB_currentIndexChanged(int index);
|
void on_displayTypeCB_currentIndexChanged(int index);
|
||||||
@@ -66,22 +54,17 @@ private slots:
|
|||||||
void on_units_CB_currentIndexChanged(int index);
|
void on_units_CB_currentIndexChanged(int index);
|
||||||
void on_trnMode_1_currentIndexChanged(int index);
|
void on_trnMode_1_currentIndexChanged(int index);
|
||||||
void on_trnChn_1_currentIndexChanged(int index);
|
void on_trnChn_1_currentIndexChanged(int index);
|
||||||
void on_swtchCB_1_currentIndexChanged(int index);
|
|
||||||
void on_trnWeight_1_editingFinished();
|
void on_trnWeight_1_editingFinished();
|
||||||
void on_trnMode_2_currentIndexChanged(int index);
|
void on_trnMode_2_currentIndexChanged(int index);
|
||||||
void on_trnChn_2_currentIndexChanged(int index);
|
void on_trnChn_2_currentIndexChanged(int index);
|
||||||
void on_swtchCB_2_currentIndexChanged(int index);
|
|
||||||
void on_trnWeight_2_editingFinished();
|
void on_trnWeight_2_editingFinished();
|
||||||
void on_trnMode_3_currentIndexChanged(int index);
|
void on_trnMode_3_currentIndexChanged(int index);
|
||||||
void on_trnChn_3_currentIndexChanged(int index);
|
void on_trnChn_3_currentIndexChanged(int index);
|
||||||
void on_swtchCB_3_currentIndexChanged(int index);
|
|
||||||
void on_trnWeight_3_editingFinished();
|
void on_trnWeight_3_editingFinished();
|
||||||
void on_trnMode_4_currentIndexChanged(int index);
|
void on_trnMode_4_currentIndexChanged(int index);
|
||||||
void on_swtchCB_4_currentIndexChanged(int index);
|
|
||||||
void on_trnChn_4_currentIndexChanged(int index);
|
void on_trnChn_4_currentIndexChanged(int index);
|
||||||
void on_trnWeight_4_editingFinished();
|
void on_trnWeight_4_editingFinished();
|
||||||
|
|
||||||
void on_battCalib_editingFinished();
|
|
||||||
void on_CurrentCalib_SB_editingFinished();
|
void on_CurrentCalib_SB_editingFinished();
|
||||||
|
|
||||||
void on_ana1Neg_editingFinished();
|
void on_ana1Neg_editingFinished();
|
||||||
@@ -133,26 +116,14 @@ private slots:
|
|||||||
void on_channelorderCB_currentIndexChanged(int index);
|
void on_channelorderCB_currentIndexChanged(int index);
|
||||||
void on_beeperCB_currentIndexChanged(int index);
|
void on_beeperCB_currentIndexChanged(int index);
|
||||||
void on_memwarnChkB_stateChanged(int );
|
void on_memwarnChkB_stateChanged(int );
|
||||||
void on_telalarmsChkB_stateChanged(int );
|
|
||||||
void on_inputfilterCB_currentIndexChanged(int index);
|
|
||||||
void on_inactimerSB_editingFinished();
|
void on_inactimerSB_editingFinished();
|
||||||
void on_backlightautoSB_editingFinished();
|
void on_backlightautoSB_editingFinished();
|
||||||
void on_backlightswCB_currentIndexChanged(int index);
|
void on_backlightswCB_currentIndexChanged(int index);
|
||||||
void on_mavbaud_CB_currentIndexChanged(int index);
|
void on_mavbaud_CB_currentIndexChanged(int index);
|
||||||
void on_voiceLang_CB_currentIndexChanged(int index);
|
void on_voiceLang_CB_currentIndexChanged(int index);
|
||||||
void on_blOnStickMoveSB_editingFinished();
|
void on_battCalibDSB_editingFinished();
|
||||||
void on_battcalibDSB_editingFinished();
|
|
||||||
void on_battwarningDSB_editingFinished();
|
void on_battwarningDSB_editingFinished();
|
||||||
void on_contrastSB_editingFinished();
|
void on_contrastSB_editingFinished();
|
||||||
void on_beepFlashChkB_stateChanged(int );
|
|
||||||
void on_swTHRChkB_stateChanged(int );
|
|
||||||
void on_swRUDChkB_stateChanged(int );
|
|
||||||
void on_swELEChkB_stateChanged(int );
|
|
||||||
void on_swID0ChkB_stateChanged(int );
|
|
||||||
void on_swID1ChkB_stateChanged(int );
|
|
||||||
void on_swID2ChkB_stateChanged(int );
|
|
||||||
void on_swAILChkB_stateChanged(int );
|
|
||||||
void on_swGEAChkB_stateChanged(int );
|
|
||||||
void on_calretrieve_PB_clicked();
|
void on_calretrieve_PB_clicked();
|
||||||
void on_calstore_PB_clicked();
|
void on_calstore_PB_clicked();
|
||||||
void unlockSwitchEdited();
|
void unlockSwitchEdited();
|
||||||
|
|||||||
+469
-1078
File diff suppressed because it is too large
Load Diff
@@ -271,10 +271,7 @@ void ModelsListWidget::refreshList()
|
|||||||
clear();
|
clear();
|
||||||
int msize;
|
int msize;
|
||||||
div_t divresult;
|
div_t divresult;
|
||||||
QString name = radioData->generalSettings.ownerName;
|
addItem(tr("General Settings"));
|
||||||
if(!name.isEmpty())
|
|
||||||
name.prepend(" - ");
|
|
||||||
addItem(tr("General Settings") + name);
|
|
||||||
|
|
||||||
EEPROMInterface *eepromInterface = GetEepromInterface();
|
EEPROMInterface *eepromInterface = GetEepromInterface();
|
||||||
int availableEEpromSize = eepromInterface->getEEpromSize()-64; //let's consider fat
|
int availableEEpromSize = eepromInterface->getEEpromSize()-64; //let's consider fat
|
||||||
|
|||||||
Reference in New Issue
Block a user