mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T111, show sending and receiving API calls by LED
* monitor and log own signals * indcated receiving and sending
This commit is contained in:
committed by
Mathew Sutcliffe
parent
766c32e25d
commit
f972fdf715
@@ -14,6 +14,7 @@
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Simulation;
|
||||
using namespace BlackGui;
|
||||
using namespace BlackGui::Editors;
|
||||
|
||||
namespace BlackSimPlugin
|
||||
@@ -49,6 +50,11 @@ namespace BlackSimPlugin
|
||||
connect(ui->editor_Com, &CCockpitComForm::changedCockpitValues, this, &CSimulatorEmulatedMonitorDialog::changeComFromUi);
|
||||
connect(ui->editor_Com, &CCockpitComForm::changedSelcal, this, &CSimulatorEmulatedMonitorDialog::changeSelcalFromUi);
|
||||
|
||||
ui->wi_LedReceiving->setToolTips("receiving", "idle");
|
||||
ui->wi_LedReceiving->setShape(CLedWidget::Rounded);
|
||||
ui->wi_LedSending->setToolTips("sending", "idle");
|
||||
ui->wi_LedSending->setShape(CLedWidget::Rounded);
|
||||
|
||||
this->setSimulatorUiValues();
|
||||
this->setInteralAircraftUiValues();
|
||||
}
|
||||
@@ -66,6 +72,18 @@ namespace BlackSimPlugin
|
||||
ui->comp_LogComponent->appendStatusMessagesToList(statusMessages);
|
||||
}
|
||||
|
||||
void CSimulatorEmulatedMonitorDialog::appendReceivingCall(const QString &function, const QString &p1, const QString &p2, const QString &p3)
|
||||
{
|
||||
ui->wi_LedReceiving->blink();
|
||||
this->appendFunctionCall(function, p1, p2, p3);
|
||||
}
|
||||
|
||||
void CSimulatorEmulatedMonitorDialog::appendSendingCall(const QString &function, const QString &p1, const QString &p2, const QString &p3)
|
||||
{
|
||||
ui->wi_LedSending->blink();
|
||||
this->appendFunctionCall(function, p1, p2, p3);
|
||||
}
|
||||
|
||||
void CSimulatorEmulatedMonitorDialog::appendFunctionCall(const QString &function, const QString &p1, const QString &p2, const QString &p3)
|
||||
{
|
||||
static const QString c1("%1 %2");
|
||||
|
||||
Reference in New Issue
Block a user