mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
refs #417 Rename ISimulator::SimulatorStatus to SimulatorStatusFlag
This commit is contained in:
committed by
Michal Garapich
parent
49a9b91258
commit
e3bb701d7b
@@ -72,7 +72,7 @@ namespace BlackCore
|
|||||||
void simulatorStatusChanged(int status);
|
void simulatorStatusChanged(int status);
|
||||||
|
|
||||||
//! Simulator plugin loaded / unloaded (default info)
|
//! Simulator plugin loaded / unloaded (default info)
|
||||||
void simulatorPluginChanged(const BlackMisc::Simulation::CSimulatorPluginInfo &info);
|
void simulatorPluginChanged(BlackMisc::Simulation::CSimulatorPluginInfo info);
|
||||||
|
|
||||||
//! Render restrictions have been changed
|
//! Render restrictions have been changed
|
||||||
void renderRestrictionsChanged(bool restricted, bool enabled, int maxAircraft, const BlackMisc::PhysicalQuantities::CLength &maxRenderedDistance, const BlackMisc::PhysicalQuantities::CLength &maxRenderedBoundary);
|
void renderRestrictionsChanged(bool restricted, bool enabled, int maxAircraft, const BlackMisc::PhysicalQuantities::CLength &maxRenderedDistance, const BlackMisc::PhysicalQuantities::CLength &maxRenderedBoundary);
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
//! ISimulator status
|
//! ISimulator status
|
||||||
|
//! \todo Qt5.5: Make use of QFlags
|
||||||
enum SimulatorStatusFlag
|
enum SimulatorStatusFlag
|
||||||
{
|
{
|
||||||
Disconnected = 0,
|
Disconnected = 0,
|
||||||
@@ -48,6 +49,7 @@ namespace BlackCore
|
|||||||
Simulating = 1 << 1, //!< Is the simulator actually simulating?
|
Simulating = 1 << 1, //!< Is the simulator actually simulating?
|
||||||
Paused = 1 << 2, //!< Is the simulator paused?
|
Paused = 1 << 2, //!< Is the simulator paused?
|
||||||
};
|
};
|
||||||
|
Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag)
|
||||||
|
|
||||||
Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag)
|
Q_DECLARE_FLAGS(SimulatorStatus, SimulatorStatusFlag)
|
||||||
|
|
||||||
@@ -180,6 +182,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Simulator combined status
|
//! Simulator combined status
|
||||||
|
//! \todo Qt5.5: Make use of QFlags
|
||||||
void simulatorStatusChanged(int status);
|
void simulatorStatusChanged(int status);
|
||||||
|
|
||||||
//! Emitted when own aircraft model has changed
|
//! Emitted when own aircraft model has changed
|
||||||
|
|||||||
Reference in New Issue
Block a user