@@ -125,7 +125,6 @@ namespace BlackGui::Components
125
125
connect (ui->pb_Download , &QPushButton::pressed, this , &CFlightPlanComponent::loadFlightPlanFromNetwork, Qt::QueuedConnection);
126
126
connect (ui->pb_Reset , &QPushButton::pressed, this , &CFlightPlanComponent::resetFlightPlan, Qt::QueuedConnection);
127
127
connect (ui->tb_SyncWithSimulator , &QPushButton::released, this , &CFlightPlanComponent::syncWithSimulator, Qt::QueuedConnection);
128
- connect (ui->pb_Prefill , &QPushButton::pressed, this , &CFlightPlanComponent::anticipateValues, Qt::QueuedConnection);
129
128
connect (ui->pb_SimBrief , &QPushButton::pressed, this , &CFlightPlanComponent::loadFromSimBrief, Qt::QueuedConnection);
130
129
131
130
connect (ui->pb_SaveTemplate , &QPushButton::released, this , &CFlightPlanComponent::saveTemplateToDisk, Qt::QueuedConnection);
@@ -812,62 +811,6 @@ namespace BlackGui::Components
812
811
return true ;
813
812
}
814
813
815
- void CFlightPlanComponent::anticipateValues ()
816
- {
817
- if (!this ->overrideRemarks ()) { return ; }
818
- CStatusMessageList msgs;
819
- const bool vfr = this ->isVfr ();
820
- const bool airline = m_model.hasAirlineDesignator ();
821
-
822
- if (vfr)
823
- {
824
- ui->cb_NoSidsStarts ->setChecked (true );
825
- msgs.push_back (CStatusMessage (this ).validationInfo (u" No SID/STARs" ));
826
- ui->cb_RequiredNavigationPerformance ->setCurrentIndex (0 );
827
- ui->cb_PerformanceCategory ->setCurrentIndex (0 );
828
- msgs.push_back (CStatusMessage (this ).validationInfo (u" Set performance to VFR" ));
829
- }
830
- else
831
- {
832
- // IFR
833
- const CAircraftIcaoCode icao = this ->getAircraftIcaoCode ();
834
- if (icao.isLoadedFromDb ())
835
- {
836
- if (icao.getEnginesCount () >= 2 && icao.getEngineType () == " J" )
837
- {
838
- // jet with >=2 engines
839
- msgs.push_back (CStatusMessage (this ).validationInfo (u" Jet >=2 engines" ));
840
- msgs.push_back (CStatusMessage (this ).validationInfo (u" SID/STARs" ));
841
- ui->cb_NoSidsStarts ->setChecked (false );
842
- msgs.push_back (CStatusMessage (this ).validationInfo (u" Capable of SIDs/STARs" ));
843
-
844
- // reset those values
845
- ui->cb_RequiredNavigationPerformance ->setCurrentIndex (0 );
846
- ui->cb_PerformanceCategory ->setCurrentIndex (0 );
847
- }
848
- } // ICAO
849
- }
850
-
851
- // further info if having model from DB
852
- if (m_model.isLoadedFromDb ())
853
- {
854
- if (airline)
855
- {
856
- ui->le_AirlineOperator ->setText (m_model.getAirlineIcaoCode ().getName ());
857
- }
858
- }
859
-
860
- // messages
861
- this ->showOverlayMessages (msgs, false , OverlayTimeoutMs);
862
-
863
- // copy over
864
- if (msgs.isSuccess ())
865
- {
866
- this ->buildRemarksString ();
867
- this ->copyRemarks (false );
868
- }
869
- }
870
-
871
814
void CFlightPlanComponent::updateDirectorySettings (const QString &fileOrDirectory)
872
815
{
873
816
if (fileOrDirectory.isEmpty ()) { return ; }
0 commit comments