refs #242, changed different classes/components to use aircraft context instead of network context

* removed own aircraft from simulator context
* in GUI, also added originator for signals/ slots
* flightplan / text messages
This commit is contained in:
Klaus Basan
2014-05-21 20:34:04 +02:00
parent c55c9be51c
commit 48267f314c
11 changed files with 30 additions and 51 deletions

View File

@@ -242,7 +242,7 @@ namespace BlackGui
{
if (this->getIContextNetwork())
{
this->prefillWithAircraftData(this->getIContextNetwork()->getOwnAircraft());
this->prefillWithAircraftData(this->getIContextOwnAircraft()->getOwnAircraft());
}
this->ui->le_AircraftRegistration->clear();
this->ui->le_AirlineOperator->clear();

View File

@@ -86,7 +86,7 @@ namespace BlackGui
BlackMisc::Network::CTextMessage getTextMessageStubForChannel();
//! own aircraft
const BlackMisc::Aviation::CAircraft getOwnAircraft() const { Q_ASSERT(this->getIContextNetwork()); return this->getIContextNetwork()->getOwnAircraft(); }
const BlackMisc::Aviation::CAircraft getOwnAircraft() const { Q_ASSERT(this->getIContextOwnAircraft()); return this->getIContextOwnAircraft()->getOwnAircraft(); }
//! For this text message's recepient, is the current tab selected?
bool isCorrespondingTextMessageTabSelected(BlackMisc::Network::CTextMessage textMessage) const;