mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
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:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user