mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T226, renamed to swiftDbAllDataRead
This commit is contained in:
@@ -62,7 +62,7 @@ namespace BlackCore
|
||||
|
||||
if (sApp && sApp->getWebDataServices())
|
||||
{
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::allSwiftDbDataRead, this, &CContextOwnAircraft::allSwiftWebDataRead);
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::swiftDbAllDataRead, this, &CContextOwnAircraft::allSwiftWebDataRead);
|
||||
}
|
||||
|
||||
// Init own aircraft
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace BlackCore
|
||||
// swift data
|
||||
if (sApp && sApp->hasWebDataServices())
|
||||
{
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::allSwiftDbDataRead, this, &CSimulatorCommon::onSwiftDbAllDataRead, Qt::QueuedConnection);
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::swiftDbAllDataRead, this, &CSimulatorCommon::onSwiftDbAllDataRead, Qt::QueuedConnection);
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::swiftDbAirportsRead, this, &CSimulatorCommon::onSwiftDbAirportsRead, Qt::QueuedConnection);
|
||||
connect(sApp->getWebDataServices(), &CWebDataServices::swiftDbModelMatchingEntitiesRead, this, &CSimulatorCommon::onSwiftDbModelMatchingEntitiesRead, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
@@ -1248,7 +1248,7 @@ namespace BlackCore
|
||||
const int allUsedEntities = static_cast<int>(this->allDbEntitiesForUsedReaders());
|
||||
if (((static_cast<int>(m_swiftDbEntitiesRead)) & allUsedEntities) == allUsedEntities)
|
||||
{
|
||||
emit this->allSwiftDbDataRead();
|
||||
emit this->swiftDbAllDataRead();
|
||||
}
|
||||
|
||||
// individual signals
|
||||
|
||||
@@ -472,7 +472,7 @@ namespace BlackCore
|
||||
//! \name Simplified read signals
|
||||
//! @{
|
||||
//! All swift DB data have been read
|
||||
void allSwiftDbDataRead();
|
||||
void swiftDbAllDataRead();
|
||||
|
||||
//! Shared info objects read
|
||||
void sharedInfoObjectsRead();
|
||||
|
||||
@@ -28,12 +28,12 @@ namespace BlackGui
|
||||
ui(new Ui::CAircraftCombinedTypeSelector)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
connect(ui->le_CombinedType, &QLineEdit::editingFinished, this, &CAircraftCombinedTypeSelector::ps_CombinedTypeEntered);
|
||||
connect(ui->le_CombinedType, &QLineEdit::returnPressed, this, &CAircraftCombinedTypeSelector::ps_CombinedTypeEntered);
|
||||
connect(ui->le_CombinedType, &QLineEdit::editingFinished, this, &CAircraftCombinedTypeSelector::combinedTypeEntered);
|
||||
connect(ui->le_CombinedType, &QLineEdit::returnPressed, this, &CAircraftCombinedTypeSelector::combinedTypeEntered);
|
||||
|
||||
connect(ui->cb_EngineCount, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::ps_ChangedComboBox);
|
||||
connect(ui->cb_EngineType, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::ps_ChangedComboBox);
|
||||
connect(ui->cb_Type, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::ps_ChangedComboBox);
|
||||
connect(ui->cb_EngineCount, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
|
||||
connect(ui->cb_EngineType, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
|
||||
connect(ui->cb_Type, &QComboBox::currentTextChanged, this, &CAircraftCombinedTypeSelector::changedComboBox);
|
||||
|
||||
ui->le_CombinedType->setValidator(new CUpperCaseValidator(this));
|
||||
}
|
||||
@@ -84,13 +84,13 @@ namespace BlackGui
|
||||
return ct2;
|
||||
}
|
||||
|
||||
void CAircraftCombinedTypeSelector::ps_CombinedTypeEntered()
|
||||
void CAircraftCombinedTypeSelector::combinedTypeEntered()
|
||||
{
|
||||
QString cc(ui->le_CombinedType->text().trimmed().toUpper());
|
||||
this->setCombinedType(cc);
|
||||
}
|
||||
|
||||
void CAircraftCombinedTypeSelector::ps_ChangedComboBox(const QString &text)
|
||||
void CAircraftCombinedTypeSelector::changedComboBox(const QString &text)
|
||||
{
|
||||
Q_UNUSED(text);
|
||||
QString ct(getCombinedTypeFromComboBoxes());
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace BlackGui
|
||||
explicit CAircraftCombinedTypeSelector(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CAircraftCombinedTypeSelector();
|
||||
virtual ~CAircraftCombinedTypeSelector();
|
||||
|
||||
//! Set comined code, e.g. L1P
|
||||
void setCombinedType(const QString &combinedCode);
|
||||
@@ -57,14 +57,13 @@ namespace BlackGui
|
||||
//! Get the combined type, e.g. "L2P"
|
||||
QString getCombinedType() const;
|
||||
|
||||
private slots:
|
||||
private:
|
||||
//! Code has been entered
|
||||
void ps_CombinedTypeEntered();
|
||||
void combinedTypeEntered();
|
||||
|
||||
//! Changed combobox
|
||||
void ps_ChangedComboBox(const QString &text);
|
||||
void changedComboBox(const QString &text);
|
||||
|
||||
private:
|
||||
//! Combined type from comboboxes
|
||||
QString getCombinedTypeFromComboBoxes() const;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace BlackGui
|
||||
ui->editor_AircraftModel->allowDrop(false);
|
||||
ui->editor_AircraftModel->setReadOnly(true);
|
||||
|
||||
connect(sGui->getWebDataServices(), &CWebDataServices::allSwiftDbDataRead, this, &CDbQuickMappingWizard::ps_webDataRead);
|
||||
connect(sGui->getWebDataServices(), &CWebDataServices::swiftDbAllDataRead, this, &CDbQuickMappingWizard::ps_webDataRead);
|
||||
connect(sGui->getWebDataServices()->getDatabaseWriter(), &CDatabaseWriter::publishedModels, this, &CDbQuickMappingWizard::ps_publishedModels);
|
||||
|
||||
connect(this, &CDbQuickMappingWizard::currentIdChanged, this, &CDbQuickMappingWizard::ps_currentWizardPageChanged);
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace BlackGui
|
||||
connect(ui->cb_Tcas, &QCheckBox::released, this, &CFlightPlanComponent::prefixCheckBoxChanged);
|
||||
|
||||
// web services
|
||||
connect(sGui->getWebDataServices(), &CWebDataServices::allSwiftDbDataRead, this, &CFlightPlanComponent::swiftWebDataRead);
|
||||
connect(sGui->getWebDataServices(), &CWebDataServices::swiftDbAllDataRead, this, &CFlightPlanComponent::swiftWebDataRead);
|
||||
|
||||
// init GUI
|
||||
this->resetFlightPlan();
|
||||
|
||||
Reference in New Issue
Block a user