mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T506, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
6a9bde5095
commit
eddaeddfc4
@@ -91,9 +91,9 @@ namespace BlackGui
|
||||
if (this->isVisibleWidget()) { return; }
|
||||
|
||||
// select myself
|
||||
if (getParentInfoArea())
|
||||
if (this->getParentInfoArea())
|
||||
{
|
||||
getParentInfoArea()->selectArea(this->getDockWidgetInfoArea());
|
||||
this->getParentInfoArea()->selectArea(this->getDockWidgetInfoArea());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@ namespace BlackGui
|
||||
{
|
||||
public:
|
||||
//! Corresponding dockable widget in info area
|
||||
BlackGui::CDockWidgetInfoArea *getDockWidgetInfoArea() const { return m_parentDockableInfoArea; }
|
||||
CDockWidgetInfoArea *getDockWidgetInfoArea() const { return m_parentDockableInfoArea; }
|
||||
|
||||
//! Has dock area?
|
||||
bool hasDockWidgetArea() const { return m_parentDockableInfoArea; }
|
||||
|
||||
//! Corresponding dockable widget in info area
|
||||
//! \remarks Usually set from CDockWidgetInfoArea when it is fully initialized
|
||||
virtual bool setParentDockWidgetInfoArea(BlackGui::CDockWidgetInfoArea *parentDockableWidget);
|
||||
virtual bool setParentDockWidgetInfoArea(CDockWidgetInfoArea *parentDockableWidget);
|
||||
|
||||
//! The parent info area
|
||||
CInfoArea *getParentInfoArea() const;
|
||||
@@ -67,7 +67,7 @@ namespace BlackGui
|
||||
virtual ~CEnableForDockWidgetInfoArea() {}
|
||||
|
||||
private:
|
||||
BlackGui::CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr; //!< my parent dockable widget
|
||||
CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr; //!< my parent dockable widget
|
||||
BlackMisc::CConnectionGuard m_connections;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -643,12 +643,12 @@ namespace BlackGui
|
||||
{
|
||||
if (!callsign.isAtcCallsign() && sGui->getIContextNetwork()->isAircraftInRange(callsign))
|
||||
{
|
||||
// we assume a private message
|
||||
// we assume a private message from a pilot
|
||||
w = this->addNewTextMessageTab(callsign);
|
||||
}
|
||||
else if (sGui->getIContextNetwork()->isOnlineStation(callsign))
|
||||
{
|
||||
// we assume a private message
|
||||
// we assume a private message of ATC
|
||||
w = this->addNewTextMessageTab(callsign);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user