mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
c7b90ae439
commit
19c9a51c38
@@ -205,9 +205,9 @@ namespace BlackSimPlugin
|
||||
|
||||
void CSimulatorEmulated::setCombinedStatus(bool connected, bool simulating, bool paused)
|
||||
{
|
||||
m_connected = connected;
|
||||
m_connected = connected;
|
||||
m_simulating = simulating;
|
||||
m_paused = paused;
|
||||
m_paused = paused;
|
||||
this->emitSimulatorCombinedStatus();
|
||||
}
|
||||
|
||||
|
||||
@@ -161,19 +161,19 @@ namespace BlackSimPlugin
|
||||
//! \remarks basically does the same as a real driver, obtains data from the interpolator
|
||||
void updateRemoteAircraft();
|
||||
|
||||
bool m_log = false; //!< from settings
|
||||
bool m_paused = false;
|
||||
bool m_connected = true;
|
||||
bool m_log = false; //!< from settings
|
||||
bool m_paused = false;
|
||||
bool m_connected = true;
|
||||
bool m_simulating = true;
|
||||
bool m_timeSyncronized = false;
|
||||
int m_countInterpolatedSituations = 0;
|
||||
int m_countInterpolatedParts = 0;
|
||||
int m_countInterpolatedParts = 0;
|
||||
QTimer m_interpolatorFetchTimer; //!< fetch data from interpolator
|
||||
BlackMisc::PhysicalQuantities::CTime m_offsetTime;
|
||||
BlackMisc::Simulation::CSimulatedAircraft m_myAircraft; //!< represents own aircraft of simulator
|
||||
BlackMisc::Simulation::CSimulatedAircraftList m_renderedAircraft; //!< represents remote aircraft in simulator
|
||||
QScopedPointer<CSimulatorEmulatedMonitorDialog> m_monitorWidget; //!< parent will be main window, so we need to destroy widget when destroyed
|
||||
BlackMisc::CConnectionGuard m_connectionGuard; //!< connected with provider
|
||||
BlackMisc::PhysicalQuantities::CTime m_offsetTime;
|
||||
BlackMisc::Simulation::CSimulatedAircraft m_myAircraft; //!< represents own aircraft of simulator
|
||||
BlackMisc::Simulation::CSimulatedAircraftList m_renderedAircraft; //!< represents remote aircraft in simulator
|
||||
QScopedPointer<CSimulatorEmulatedMonitorDialog> m_monitorWidget; //!< parent will be main window, so we need to destroy widget when destroyed
|
||||
BlackMisc::CConnectionGuard m_connectionGuard; //!< connected with provider
|
||||
BlackMisc::CSettingReadOnly<BlackMisc::Simulation::Settings::TSwiftPlugin> m_pluginSettings { this, &CSimulatorEmulated::onSettingsChanged };
|
||||
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::Simulation::CInterpolatorMultiWrapper> m_interpolators; //!< interpolators per callsign
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackSimPlugin
|
||||
explicit CSimulatorEmulatedMonitorDialog(CSimulatorEmulated *simulator, QWidget *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CSimulatorEmulatedMonitorDialog();
|
||||
virtual ~CSimulatorEmulatedMonitorDialog() override;
|
||||
|
||||
//! \copydoc BlackGui::Components::CLogComponent::appendStatusMessageToList
|
||||
void appendStatusMessageToList(const BlackMisc::CStatusMessage &statusMessage);
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tw_SwiftMonitorDialog">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tb_AircraftSituation">
|
||||
<attribute name="title">
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (trace.isValid())
|
||||
{
|
||||
// it can happen the object is not yet
|
||||
// it can happen the object is not yet existing
|
||||
CSimConnectObject simObject = simulatorFsxP3D->getSimObjectForTrace(trace);
|
||||
if (simObject.isInvalid()) { simObject = trace.simObject; } // take the one in the trace
|
||||
if (simObject.isValid())
|
||||
|
||||
Reference in New Issue
Block a user