mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
As of RW/KB workshop
* changed aircraft view to siumlated aircraft models / views * functionality to change fast pos. updates (signals, slots) * allow to request text message widget from aircraft component
This commit is contained in:
@@ -216,7 +216,7 @@ void SwiftGuiStd::ps_handleTimerBasedUpdates()
|
||||
void SwiftGuiStd::setContextAvailability()
|
||||
{
|
||||
qint64 t = QDateTime::currentMSecsSinceEpoch();
|
||||
this->m_coreAvailable = this->getIContextApplication()->ping(t) == t;
|
||||
this->m_coreAvailable = (this->getIContextApplication()->ping(t) == t);
|
||||
this->m_contextNetworkAvailable = this->m_coreAvailable || this->getIContextNetwork()->isUsingImplementingObject();
|
||||
this->m_contextAudioAvailable = this->m_coreAvailable || this->getIContextAudio()->isUsingImplementingObject();
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ using namespace BlackMisc::Audio;
|
||||
*/
|
||||
bool SwiftGuiStd::ps_reloadOwnAircraft()
|
||||
{
|
||||
if (!this->isContextNetworkAvailableCheck()) return false;
|
||||
if (!this->isContextNetworkAvailableCheck()) { return false; }
|
||||
|
||||
// check for changed aircraft
|
||||
bool changed = false;
|
||||
|
||||
@@ -126,9 +126,9 @@ void SwiftGuiStd::init(const CRuntimeConfig &runtimeConfig)
|
||||
this->m_init = true;
|
||||
}
|
||||
|
||||
//
|
||||
// GUI signals
|
||||
//
|
||||
/*
|
||||
* GUI signals
|
||||
*/
|
||||
void SwiftGuiStd::initGuiSignals()
|
||||
{
|
||||
// Remark: With new style, only methods of same signature can be connected
|
||||
@@ -182,9 +182,10 @@ void SwiftGuiStd::initGuiSignals()
|
||||
this->ui->comp_MainInfoArea->getSettingsComponent()->setSettingsTab(CSettingsComponent::SettingTabNetworkServers);
|
||||
});
|
||||
|
||||
// textmessages
|
||||
connect(this->ui->comp_MainInfoArea->getAtcStationComponent(), &CAtcStationComponent::requestTextMessage, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab);
|
||||
connect(this->ui->comp_MainInfoArea->getMappingComponet(), &CMappingComponent::requestTextMessage, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab);
|
||||
// text messages
|
||||
connect(this->ui->comp_MainInfoArea->getAtcStationComponent(), &CAtcStationComponent::requestTextMessageWidget, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab);
|
||||
connect(this->ui->comp_MainInfoArea->getMappingComponet(), &CMappingComponent::requestTextMessageWidget, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab);
|
||||
connect(this->ui->comp_MainInfoArea->getAircraftComponent(), &CAircraftComponent::requestTextMessageWidget, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::showCorrespondingTab);
|
||||
|
||||
// main info area
|
||||
connect(this->ui->comp_MainInfoArea, &CMainInfoAreaComponent::changedWholeInfoAreaFloating, this, &SwiftGuiStd::ps_onChangedMainInfoAreaFloating);
|
||||
|
||||
Reference in New Issue
Block a user