mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Remove separate button to validate flightplan
The flightplan is already automatically validated when sending it to the server. To simplify the UI, this removes the possibility for this extra check.
This commit is contained in:
@@ -124,7 +124,6 @@ namespace BlackGui::Components
|
||||
connect(ui->pb_Send, &QPushButton::pressed, this, &CFlightPlanComponent::sendFlightPlan, Qt::QueuedConnection);
|
||||
connect(ui->pb_Download, &QPushButton::pressed, this, &CFlightPlanComponent::loadFlightPlanFromNetwork, Qt::QueuedConnection);
|
||||
connect(ui->pb_Reset, &QPushButton::pressed, this, &CFlightPlanComponent::resetFlightPlan, Qt::QueuedConnection);
|
||||
connect(ui->pb_ValidateFlightPlan, &QPushButton::pressed, this, &CFlightPlanComponent::validateFlightPlan, Qt::QueuedConnection);
|
||||
connect(ui->tb_SyncWithSimulator, &QPushButton::released, this, &CFlightPlanComponent::syncWithSimulator, Qt::QueuedConnection);
|
||||
connect(ui->pb_Prefill, &QPushButton::pressed, this, &CFlightPlanComponent::anticipateValues, Qt::QueuedConnection);
|
||||
connect(ui->pb_SimBrief, &QPushButton::pressed, this, &CFlightPlanComponent::loadFromSimBrief, Qt::QueuedConnection);
|
||||
@@ -528,13 +527,6 @@ namespace BlackGui::Components
|
||||
}
|
||||
}
|
||||
|
||||
void CFlightPlanComponent::validateFlightPlan()
|
||||
{
|
||||
CFlightPlan flightPlan;
|
||||
const CStatusMessageList messages = this->validateAndInitializeFlightPlan(flightPlan);
|
||||
this->showOverlayMessages(messages);
|
||||
}
|
||||
|
||||
void CFlightPlanComponent::resetFlightPlan()
|
||||
{
|
||||
this->prefillWithOwnAircraftData();
|
||||
|
||||
@@ -206,9 +206,6 @@ namespace BlackGui::Components
|
||||
//! Load Flightplan
|
||||
void loadFlightPlanFromNetwork();
|
||||
|
||||
//! Validate Flightplan
|
||||
void validateFlightPlan();
|
||||
|
||||
//! Remarks
|
||||
void buildRemarksString();
|
||||
|
||||
|
||||
@@ -708,17 +708,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="pb_ValidateFlightPlan">
|
||||
<property name="text">
|
||||
<string>&Validate</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../blackmisc/blackmisc.qrc">
|
||||
<normaloff>:/diagona/icons/diagona/icons/abacus.png</normaloff>:/diagona/icons/diagona/icons/abacus.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="pb_LoadDisk">
|
||||
<property name="toolTip">
|
||||
@@ -1168,7 +1157,6 @@
|
||||
<tabstop>le_LastSent</tabstop>
|
||||
<tabstop>pb_Prefill</tabstop>
|
||||
<tabstop>pb_Reset</tabstop>
|
||||
<tabstop>pb_ValidateFlightPlan</tabstop>
|
||||
<tabstop>pb_Send</tabstop>
|
||||
<tabstop>pb_Download</tabstop>
|
||||
<tabstop>pb_SimBrief</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user