mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Ref T111, using a simulated aircraft to represent emulated driver's own aircraft (this is the aircraft a user would fly in a real simulator)
* change functions for that aircraft * support for SELCAL * removed unused function * adjusted simulated aircraft monitor ** unified naming of functions ** support for text/status messages
This commit is contained in:
committed by
Mathew Sutcliffe
parent
71fa0fc7b8
commit
753bbc1847
@@ -14,6 +14,7 @@
|
||||
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
#include "blackmisc/simulation/simulatedaircraft.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/logcategorylist.h"
|
||||
|
||||
@@ -50,19 +51,36 @@ namespace BlackSimPlugin
|
||||
//! Append a function call as status message
|
||||
void appendFunctionCall(const QString &function, const QString &p1 = {}, const QString &p2 = {}, const QString &p3 = {});
|
||||
|
||||
//! Display status message
|
||||
void displayStatusMessage(const BlackMisc::CStatusMessage &message);
|
||||
|
||||
//! Display text message
|
||||
void displayTextMessage(const BlackMisc::Network::CTextMessage &message);
|
||||
|
||||
private:
|
||||
static int constexpr MaxLogMessages = 500; //!< desired log message number
|
||||
|
||||
//! UI values changed
|
||||
void onSimulatorValuesChanged();
|
||||
|
||||
//! Cockpit COM values changed
|
||||
void changeComFromUi(const BlackMisc::Simulation::CSimulatedAircraft &aircraft);
|
||||
|
||||
//! SELCAL values changed
|
||||
void changeSelcalFromUi(const BlackMisc::Aviation::CSelcal &selcal);
|
||||
|
||||
//! Update aircraft situation
|
||||
void changeSituation();
|
||||
void changeSituationFromUi();
|
||||
|
||||
//! Change the aircraft parts
|
||||
void changeParts();
|
||||
void changePartsFromUi();
|
||||
|
||||
//! UI values
|
||||
void setSimulatorUiValues();
|
||||
|
||||
//! Set values from internal aircraft
|
||||
void setInteralAircraftUiValues();
|
||||
|
||||
QScopedPointer<Ui::CSimulatorEmulatedMonitorDialog> ui;
|
||||
CSimulatorEmulated *m_simulator = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user