mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T197, emulated driver dialog can update title
This commit is contained in:
@@ -77,6 +77,7 @@ namespace BlackSimPlugin
|
||||
this->enableInterpolationLogButtons(false);
|
||||
this->setSimulatorUiValues();
|
||||
this->setInternalAircraftUiValues();
|
||||
this->updateWindowTitle(simulator->getSimulatorInfo());
|
||||
}
|
||||
|
||||
CSimulatorEmulatedMonitorDialog::~CSimulatorEmulatedMonitorDialog()
|
||||
@@ -140,6 +141,12 @@ namespace BlackSimPlugin
|
||||
ui->pte_TextMessages->setPlainText(message.toQString(true));
|
||||
}
|
||||
|
||||
void CSimulatorEmulatedMonitorDialog::updateWindowTitle(const CSimulatorInfo &info)
|
||||
{
|
||||
if (!info.isSingleSimulator()) { return; }
|
||||
this->setWindowTitle("Emulated driver : " + info.toQString());
|
||||
}
|
||||
|
||||
void CSimulatorEmulatedMonitorDialog::onSimulatorValuesChanged()
|
||||
{
|
||||
m_simulator->setCombinedStatus(
|
||||
|
||||
@@ -63,6 +63,9 @@ namespace BlackSimPlugin
|
||||
//! Display text message
|
||||
void displayTextMessage(const BlackMisc::Network::CTextMessage &message);
|
||||
|
||||
//! The title
|
||||
void updateWindowTitle(const BlackMisc::Simulation::CSimulatorInfo &info);
|
||||
|
||||
private:
|
||||
static int constexpr MaxLogMessages = 500; //!< desired log message number
|
||||
|
||||
|
||||
Reference in New Issue
Block a user