diff --git a/src/blackgui/editors/aircrafticaoform.cpp b/src/blackgui/editors/aircrafticaoform.cpp
index 7b9e3f863..b2224a91c 100644
--- a/src/blackgui/editors/aircrafticaoform.cpp
+++ b/src/blackgui/editors/aircrafticaoform.cpp
@@ -47,6 +47,8 @@ namespace BlackGui
this->ui->aircraft_Selector->setAircraftIcao(icao);
this->ui->le_Manufacturer->setText(icao.getManufacturer());
this->ui->le_ModelDescription->setText(icao.getModelDescription());
+ this->ui->le_Family->setText(icao.getFamily());
+ this->ui->le_Iata->setText(icao.getIataCode());
this->ui->cb_Legacy->setChecked(icao.isLegacyAircraft());
this->ui->cb_Military->setChecked(icao.isMilitary());
@@ -80,10 +82,12 @@ namespace BlackGui
}
}
- QString manufacturer(this->ui->le_Manufacturer->text().trimmed().toUpper());
- QString modelDescription(this->ui->le_ModelDescription->text());
- QString wtc(ui->cb_Wtc->currentText().left(1));
- QString combined(ui->combined_TypeSelector->getCombinedType());
+ const QString manufacturer(this->ui->le_Manufacturer->text().trimmed().toUpper());
+ const QString modelDescription(this->ui->le_ModelDescription->text().trimmed());
+ const QString iata(this->ui->le_Family->text().trimmed().toUpper());
+ const QString family(this->ui->le_Iata->text().trimmed().toUpper());
+ const QString wtc(ui->cb_Wtc->currentText().left(1));
+ const QString combined(ui->combined_TypeSelector->getCombinedType());
bool ok;
int rank = this->ui->cb_Rank->currentText().toInt(&ok);
if (!ok) { rank = 10; }
@@ -96,6 +100,8 @@ namespace BlackGui
icao.setCodeFlags(military, legacy, realWorld);
icao.setRank(rank);
icao.setCombinedType(combined);
+ icao.setFamily(family);
+ icao.setIataCode(iata);
return icao;
}
@@ -123,6 +129,8 @@ namespace BlackGui
this->ui->aircraft_Selector->setReadOnly(readOnly);
this->ui->le_Manufacturer->setReadOnly(readOnly);
this->ui->le_ModelDescription->setReadOnly(readOnly);
+ this->ui->le_Family->setReadOnly(readOnly);
+ this->ui->le_Iata->setReadOnly(readOnly);
this->ui->cb_Legacy->setCheckable(!readOnly);
this->ui->cb_Military->setCheckable(!readOnly);
diff --git a/src/blackgui/editors/aircrafticaoform.ui b/src/blackgui/editors/aircrafticaoform.ui
index 8e5c86b57..dde5147a0 100644
--- a/src/blackgui/editors/aircrafticaoform.ui
+++ b/src/blackgui/editors/aircrafticaoform.ui
@@ -128,10 +128,26 @@
- -
-
+
-
+
+
+
+ 10
+ 0
+
+
+
+ QFrame::StyledPanel
+
+
+ QFrame::Raised
+
+
-
+
+
+ -
@@ -223,78 +239,10 @@
- -
-
-
- e.g. Boeing, Airbus
-
-
-
- -
-
-
- Model:
-
-
- le_ModelDescription
-
-
-
- -
-
-
- Aircraft model
-
-
-
- -
-
-
- Type / Engine / Engine count
-
-
- Combined type:
-
-
-
- -
-
-
- Misc.:
-
-
-
- -
-
-
- Last updated:
-
-
- le_Updated
-
-
-
- -
-
-
- true
-
-
-
- -
-
-
- Design./Rank:
-
-
-
-
-
+
- Manufacturer:
-
-
- le_Manufacturer
+ IATA/family:
@@ -314,27 +262,130 @@
- -
+
-
+
+
+ e.g. Boeing, Airbus
+
+
+
+ -
+
+
+ Model:
+
+
+ le_ModelDescription
+
+
+
+ -
+
+
+ Misc.:
+
+
+
+ -
+
+
+ Type / Engine / Engine count
+
+
+ Combined type:
+
+
+
+ -
+
+
+ Aircraft model
+
+
+
+ -
+
+
+ true
+
+
+ Last updated
+
+
+
+ -
+
+
+ Last updated:
+
+
+ le_Updated
+
+
+
+ -
+
+
+ Design./Rank:
+
+
+
+ -
+
+
+ Manufacturer:
+
+
+ le_Manufacturer
+
+
+
+ -
Drop data here
- -
-
-
-
- 10
- 0
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
+
-
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
-
+
+
+ Qt::RightToLeft
+
+
+ 10
+
+
+ IATA
+
+
+
+ -
+
+
+ 10
+
+
+ Family
+
+
+
+