mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Ref T717, "fetch" simulator data for model browser
This commit is contained in:
@@ -372,6 +372,7 @@ namespace BlackCore
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! \copydoc IContextSimulator::findClosestElevationWithinRange
|
||||||
virtual BlackMisc::Geo::CElevationPlane findClosestElevationWithinRange(const BlackMisc::Geo::CCoordinateGeodetic &reference, const BlackMisc::PhysicalQuantities::CLength &range) const override
|
virtual BlackMisc::Geo::CElevationPlane findClosestElevationWithinRange(const BlackMisc::Geo::CCoordinateGeodetic &reference, const BlackMisc::PhysicalQuantities::CLength &range) const override
|
||||||
{
|
{
|
||||||
Q_UNUSED(reference);
|
Q_UNUSED(reference);
|
||||||
|
|||||||
@@ -106,9 +106,9 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
if (!this->hasContexts()) { return; }
|
if (!this->hasContexts()) { return; }
|
||||||
CAircraftParts parts = CAircraftParts::null();
|
CAircraftParts parts = CAircraftParts::null();
|
||||||
if (setParts) { parts = this->getParts(); }
|
if (setParts || ui->cb_UseParts->isChecked()) { parts = this->getParts(); }
|
||||||
|
|
||||||
if (setPbh)
|
if (setPbh || ui->cb_UsePBH->isChecked())
|
||||||
{
|
{
|
||||||
ui->editor_Pbh->updateSituation(m_situation);
|
ui->editor_Pbh->updateSituation(m_situation);
|
||||||
}
|
}
|
||||||
@@ -120,6 +120,11 @@ namespace BlackGui
|
|||||||
sGui->getISimulator()->testSendSituationAndParts(ISimulator::getTestCallsign(), m_situation, parts);
|
sGui->getISimulator()->testSendSituationAndParts(ISimulator::getTestCallsign(), m_situation, parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CModelBrowserComponent::fetchSimulatorValues()
|
||||||
|
{
|
||||||
|
if (!this->hasContexts()) { return; }
|
||||||
|
}
|
||||||
|
|
||||||
void CModelBrowserComponent::onModelDblClicked(const CVariant &object)
|
void CModelBrowserComponent::onModelDblClicked(const CVariant &object)
|
||||||
{
|
{
|
||||||
Q_UNUSED(object);
|
Q_UNUSED(object);
|
||||||
@@ -164,6 +169,7 @@ namespace BlackGui
|
|||||||
ui->le_ModelInfo->setText(model.getModelStringAndDbKey());
|
ui->le_ModelInfo->setText(model.getModelStringAndDbKey());
|
||||||
ui->le_Info->setText(m_situation.toQString(true));
|
ui->le_Info->setText(m_situation.toQString(true));
|
||||||
|
|
||||||
|
sGui->getIContextSimulator()->requestElevationBySituation(m_situation);
|
||||||
sGui->getIContextSimulator()->testRemoteAircraft(m_aircraft, true);
|
sGui->getIContextSimulator()->testRemoteAircraft(m_aircraft, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace BlackGui
|
|||||||
void selectTabParts();
|
void selectTabParts();
|
||||||
void onCGChecked(bool checked);
|
void onCGChecked(bool checked);
|
||||||
void updatePartsAndPBH(bool setPbh, bool setParts);
|
void updatePartsAndPBH(bool setPbh, bool setParts);
|
||||||
|
void fetchSimulatorValues();
|
||||||
|
|
||||||
QScopedPointer <Ui::CModelBrowserComponent> ui;
|
QScopedPointer <Ui::CModelBrowserComponent> ui;
|
||||||
BlackMisc::Aviation::CAircraftSituation m_situation;
|
BlackMisc::Aviation::CAircraftSituation m_situation;
|
||||||
|
|||||||
Reference in New Issue
Block a user