From 945ef361518ec77a54ec592907f328139e0fc86e Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sun, 31 Dec 2023 12:08:07 +0100 Subject: [PATCH] refactor: Remove navigation equipment from remark generator The NAV/ field in the remarks (same as COM/) is a freetext field. The content may be dependent on the air traffic authority/country. Further, most of the equipment information is nowadays handled with the ICAO equipment code. NAV/ is likely required in special cases only, for example when filing equipment code Z (Other equipment). --- .../components/flightplancomponent.cpp | 22 +----- .../components/flightplancomponent.ui | 73 ++++--------------- 2 files changed, 17 insertions(+), 78 deletions(-) diff --git a/src/blackgui/components/flightplancomponent.cpp b/src/blackgui/components/flightplancomponent.cpp index e5b0c7e79..4b23a19d0 100644 --- a/src/blackgui/components/flightplancomponent.cpp +++ b/src/blackgui/components/flightplancomponent.cpp @@ -136,7 +136,6 @@ namespace BlackGui::Components connect(ui->cb_VoiceCapabilities, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::currentTextChangedToBuildRemarks, Qt::QueuedConnection); connect(ui->cb_VoiceCapabilities, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::syncVoiceComboBoxes, Qt::QueuedConnection); connect(ui->cb_VoiceCapabilitiesFirstPage, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::syncVoiceComboBoxes, Qt::QueuedConnection); - connect(ui->cb_NavigationEquipment, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::currentTextChangedToBuildRemarks, Qt::QueuedConnection); connect(ui->cb_PerformanceCategory, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::currentTextChangedToBuildRemarks, Qt::QueuedConnection); connect(ui->cb_PilotRating, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::currentTextChangedToBuildRemarks, Qt::QueuedConnection); connect(ui->cb_RequiredNavigationPerformance, &QComboBox::currentTextChanged, this, &CFlightPlanComponent::currentTextChangedToBuildRemarks, Qt::QueuedConnection); @@ -737,12 +736,6 @@ namespace BlackGui::Components if (v.contains("10")) { rem.append("RNP10 "); } else if (v.contains("4")) { rem.append("RNP4 "); } - v = ui->cb_NavigationEquipment->currentText().toUpper(); - if (v.contains("VORS")) { rem.append("NAV/VORNDB "); } - else if (v.contains("SIDS")) { rem.append("NAV/GPSRNAV "); } - if (v.contains("DEFAULT")) { rem.append("NAV/GPS "); } - else if (v.contains("OCEANIC")) { rem.append("NAV/GPSOCEANIC "); } - v = ui->cb_PerformanceCategory->currentText().toUpper(); if (v.startsWith("A")) { rem.append("PER/A "); } else if (v.startsWith("B")) { rem.append("PER/B "); } @@ -851,8 +844,7 @@ namespace BlackGui::Components msgs.push_back(CStatusMessage(this).validationInfo(u"No SID/STARs")); ui->cb_RequiredNavigationPerformance->setCurrentIndex(0); ui->cb_PerformanceCategory->setCurrentIndex(0); - ui->cb_NavigationEquipment->setCurrentIndex(0); - msgs.push_back(CStatusMessage(this).validationInfo(u"Set navigation and performance to VFR")); + msgs.push_back(CStatusMessage(this).validationInfo(u"Set performance to VFR")); } else { @@ -866,8 +858,7 @@ namespace BlackGui::Components msgs.push_back(CStatusMessage(this).validationInfo(u"Jet >=2 engines")); msgs.push_back(CStatusMessage(this).validationInfo(u"SID/STARs")); ui->cb_NoSidsStarts->setChecked(false); - ui->cb_NavigationEquipment->setCurrentText("GPS or FMC capable of SIDs/STARs"); - msgs.push_back(CStatusMessage(this).validationInfo(u"GPS or FMC capable of SIDs/STARs")); + msgs.push_back(CStatusMessage(this).validationInfo(u"Capable of SIDs/STARs")); // reset those values ui->cb_RequiredNavigationPerformance->setCurrentIndex(0); @@ -967,15 +958,6 @@ namespace BlackGui::Components CGuiUtility::setComboBoxValueByContainingString(ui->cb_VoiceCapabilities, "RECEIVE"); } - if (remarks.contains("NAV/GPSRNAV")) - { - CGuiUtility::setComboBoxValueByContainingString(ui->cb_NavigationEquipment, "GPS OR FMC"); - } - else if (remarks.contains("NAV/VORNDB")) - { - CGuiUtility::setComboBoxValueByContainingString(ui->cb_NavigationEquipment, "DIRECT VOR"); - } - const int selcal = remarks.indexOf("SEL/"); if (selcal >= 0 && remarks.length() > selcal + 7) { diff --git a/src/blackgui/components/flightplancomponent.ui b/src/blackgui/components/flightplancomponent.ui index 664c24dc6..00b3a99be 100644 --- a/src/blackgui/components/flightplancomponent.ui +++ b/src/blackgui/components/flightplancomponent.ui @@ -872,7 +872,7 @@ 6 - + @@ -901,7 +901,7 @@ - + Remarks @@ -911,7 +911,7 @@ - + Final Approach Speed @@ -948,16 +948,6 @@ - - - - Navigation equipment - - - true - - - @@ -965,7 +955,7 @@ - + SELCAL @@ -982,7 +972,7 @@ - + @@ -1016,7 +1006,7 @@ - + @@ -1032,7 +1022,7 @@ - + @@ -1055,7 +1045,7 @@ - + Performance category @@ -1065,7 +1055,7 @@ - + QFrame::StyledPanel @@ -1084,7 +1074,7 @@ - + @@ -1106,7 +1096,7 @@ - + Required Navigation Performance @@ -1116,17 +1106,17 @@ - + Pilot rating - + - + Voice capabilities @@ -1136,39 +1126,7 @@ - - - - How will you be navigating? - - - - VFR flying visually - - - - - Direct VORs and NDBs - - - - - Default GPS - - - - - GPS or FMC capable of SIDs/STARs - - - - - GPS oceanic certified - - - - - + add.remarks @@ -1234,7 +1192,6 @@ le_AirlineOperator le_AircraftRegistration cb_NoSidsStarts - cb_NavigationEquipment cb_RequiredNavigationPerformance cb_PerformanceCategory cb_VoiceCapabilities