mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T226, renamed to swiftDbAllDataRead
This commit is contained in:
@@ -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