mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +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->enableInterpolationLogButtons(false);
|
||||||
this->setSimulatorUiValues();
|
this->setSimulatorUiValues();
|
||||||
this->setInternalAircraftUiValues();
|
this->setInternalAircraftUiValues();
|
||||||
|
this->updateWindowTitle(simulator->getSimulatorInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
CSimulatorEmulatedMonitorDialog::~CSimulatorEmulatedMonitorDialog()
|
CSimulatorEmulatedMonitorDialog::~CSimulatorEmulatedMonitorDialog()
|
||||||
@@ -140,6 +141,12 @@ namespace BlackSimPlugin
|
|||||||
ui->pte_TextMessages->setPlainText(message.toQString(true));
|
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()
|
void CSimulatorEmulatedMonitorDialog::onSimulatorValuesChanged()
|
||||||
{
|
{
|
||||||
m_simulator->setCombinedStatus(
|
m_simulator->setCombinedStatus(
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ namespace BlackSimPlugin
|
|||||||
//! Display text message
|
//! Display text message
|
||||||
void displayTextMessage(const BlackMisc::Network::CTextMessage &message);
|
void displayTextMessage(const BlackMisc::Network::CTextMessage &message);
|
||||||
|
|
||||||
|
//! The title
|
||||||
|
void updateWindowTitle(const BlackMisc::Simulation::CSimulatorInfo &info);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static int constexpr MaxLogMessages = 500; //!< desired log message number
|
static int constexpr MaxLogMessages = 500; //!< desired log message number
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user