refs #452 adjusted GUI components to

* changed classes (e.g. CAircraft -> CSimulatedAircraft)
* changes signatures in contexts / providers
* minor fixes as renamed GUI widgets, asserts, paint event
This commit is contained in:
Klaus Basan
2015-09-23 23:22:05 +02:00
committed by Mathew Sutcliffe
parent 4a3b553296
commit 6ca0d480d3
30 changed files with 132 additions and 178 deletions

View File

@@ -14,6 +14,7 @@
using namespace BlackMisc;
using namespace BlackMisc::Aviation;
using namespace BlackMisc::Simulation;
using namespace BlackCore;
namespace BlackGui
@@ -37,7 +38,7 @@ namespace BlackGui
this->setMode(getOwnTransponder().getTransponderMode());
}
void CCockpitTransponderModeLedsComponent::ps_onAircraftCockpitChanged(const CAircraft &aircraft, const BlackMisc::CIdentifier &originator)
void CCockpitTransponderModeLedsComponent::ps_onAircraftCockpitChanged(const CSimulatedAircraft &aircraft, const BlackMisc::CIdentifier &originator)
{
if (isMyIdentifier(originator)) { return; }
this->setMode(aircraft.getTransponderMode());
@@ -65,7 +66,7 @@ namespace BlackGui
{
return;
}
CAircraft ownAircraft = this->getOwnAircraft();
CSimulatedAircraft ownAircraft(this->getOwnAircraft());
if (ownAircraft.getTransponderMode() == mode) { return; }
this->setMode(mode);
@@ -128,7 +129,7 @@ namespace BlackGui
return getIContextOwnAircraft()->getOwnAircraft().getTransponder();
}
CAircraft CCockpitTransponderModeLedsComponent::getOwnAircraft() const
CSimulatedAircraft CCockpitTransponderModeLedsComponent::getOwnAircraft() const
{
Q_ASSERT(getIContextOwnAircraft());
return getIContextOwnAircraft()->getOwnAircraft();