mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Ref T431, FSD setup allow to force 4 letter airline ICAO code
This commit is contained in:
@@ -44,6 +44,7 @@ namespace BlackGui
|
||||
ui->cb_GndFlagSend->isChecked(), ui->cb_GndFlagReceive->isChecked(),
|
||||
ui->cb_FastPositionSend->isChecked(), ui->cb_FastPositionReceive->isChecked()
|
||||
);
|
||||
s.setForce3LetterAirlineCodes(ui->cb_3LetterAirlineICAO->isChecked());
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -62,6 +63,7 @@ namespace BlackGui
|
||||
ui->cb_AircraftPartsSend->setChecked(d & CFsdSetup::SendAircraftParts);
|
||||
ui->cb_FastPositionReceive->setChecked(d & CFsdSetup::ReceiveInterimPositions);
|
||||
ui->cb_FastPositionSend->setChecked(d & CFsdSetup::SendInterimPositions);
|
||||
ui->cb_3LetterAirlineICAO->setChecked(setup.force3LetterAirlineCodes());
|
||||
}
|
||||
|
||||
bool CFsdSetupForm::isFsdSetupEnabled() const
|
||||
@@ -84,12 +86,8 @@ namespace BlackGui
|
||||
{
|
||||
ui->le_TextCodec->setReadOnly(readonly);
|
||||
ui->pb_SetDefaults->setEnabled(!readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_AircraftPartsReceive, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_AircraftPartsSend, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_FastPositionReceive, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_FastPositionSend, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_GndFlagReceive, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_GndFlagSend, readonly);
|
||||
CGuiUtility::checkBoxesReadOnly(this, readonly);
|
||||
CGuiUtility::checkBoxReadOnly(ui->cb_Override, false); // always editable
|
||||
|
||||
if (readonly && ui->cb_Override->isChecked())
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>255</width>
|
||||
<width>248</width>
|
||||
<height>82</height>
|
||||
</rect>
|
||||
</property>
|
||||
@@ -130,6 +130,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="4">
|
||||
<widget class="QCheckBox" name="cb_3LetterAirlineICAO">
|
||||
<property name="toolTip">
|
||||
<string>force 3 letter airline ICAO code</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>3 letter airline</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
@@ -142,6 +152,7 @@
|
||||
<tabstop>cb_FastPositionSend</tabstop>
|
||||
<tabstop>cb_FastPositionReceive</tabstop>
|
||||
<tabstop>le_TextCodec</tabstop>
|
||||
<tabstop>cb_3LetterAirlineICAO</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
Reference in New Issue
Block a user