mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T717, "fetch" simulator data for model browser
This commit is contained in:
committed by
Mat Sutcliffe
parent
b3b2f5b751
commit
2d4472d64f
@@ -372,6 +372,7 @@ namespace BlackCore
|
||||
return false;
|
||||
}
|
||||
|
||||
//! \copydoc IContextSimulator::findClosestElevationWithinRange
|
||||
virtual BlackMisc::Geo::CElevationPlane findClosestElevationWithinRange(const BlackMisc::Geo::CCoordinateGeodetic &reference, const BlackMisc::PhysicalQuantities::CLength &range) const override
|
||||
{
|
||||
Q_UNUSED(reference);
|
||||
|
||||
@@ -106,9 +106,9 @@ namespace BlackGui
|
||||
{
|
||||
if (!this->hasContexts()) { return; }
|
||||
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);
|
||||
}
|
||||
@@ -120,6 +120,11 @@ namespace BlackGui
|
||||
sGui->getISimulator()->testSendSituationAndParts(ISimulator::getTestCallsign(), m_situation, parts);
|
||||
}
|
||||
|
||||
void CModelBrowserComponent::fetchSimulatorValues()
|
||||
{
|
||||
if (!this->hasContexts()) { return; }
|
||||
}
|
||||
|
||||
void CModelBrowserComponent::onModelDblClicked(const CVariant &object)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
@@ -164,6 +169,7 @@ namespace BlackGui
|
||||
ui->le_ModelInfo->setText(model.getModelStringAndDbKey());
|
||||
ui->le_Info->setText(m_situation.toQString(true));
|
||||
|
||||
sGui->getIContextSimulator()->requestElevationBySituation(m_situation);
|
||||
sGui->getIContextSimulator()->testRemoteAircraft(m_aircraft, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace BlackGui
|
||||
void selectTabParts();
|
||||
void onCGChecked(bool checked);
|
||||
void updatePartsAndPBH(bool setPbh, bool setParts);
|
||||
void fetchSimulatorValues();
|
||||
|
||||
QScopedPointer <Ui::CModelBrowserComponent> ui;
|
||||
BlackMisc::Aviation::CAircraftSituation m_situation;
|
||||
|
||||
Reference in New Issue
Block a user