mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 10:26:03 +08:00
Formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
2805979577
commit
0117558ea7
@@ -113,7 +113,7 @@ namespace BlackCore
|
|||||||
//! Update own cockpit
|
//! Update own cockpit
|
||||||
virtual bool updateCockpit(const BlackMisc::Aviation::CComSystem &com1, const BlackMisc::Aviation::CComSystem &com2, const BlackMisc::Aviation::CTransponder &transponder, const BlackMisc::CIdentifier &originator) = 0;
|
virtual bool updateCockpit(const BlackMisc::Aviation::CComSystem &com1, const BlackMisc::Aviation::CComSystem &com2, const BlackMisc::Aviation::CTransponder &transponder, const BlackMisc::CIdentifier &originator) = 0;
|
||||||
|
|
||||||
//! Tune in a com frequency
|
//! Tune in a COM frequency
|
||||||
virtual bool updateActiveComFrequency(const BlackMisc::PhysicalQuantities::CFrequency &frequency, BlackMisc::Aviation::CComSystem::ComUnit comUnit, const BlackMisc::CIdentifier &originator) = 0;
|
virtual bool updateActiveComFrequency(const BlackMisc::PhysicalQuantities::CFrequency &frequency, BlackMisc::Aviation::CComSystem::ComUnit comUnit, const BlackMisc::CIdentifier &originator) = 0;
|
||||||
|
|
||||||
//! Set current pilot
|
//! Set current pilot
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ namespace BlackMisc
|
|||||||
//! Find 0..n airports by ICAO code
|
//! Find 0..n airports by ICAO code
|
||||||
CAirportList findByIcao(const CAirportIcaoCode &icao) const;
|
CAirportList findByIcao(const CAirportIcaoCode &icao) const;
|
||||||
|
|
||||||
|
//! Find first station by callsign, if not return given value / default
|
||||||
|
CAirport findFirstByIcao(const CAirportIcaoCode &icao, const CAirport &ifNotFound = CAirport()) const;
|
||||||
|
|
||||||
//! Containing an airport with given ICAO code?
|
//! Containing an airport with given ICAO code?
|
||||||
bool containsAirportWithIcaoCode(const CAirportIcaoCode &icao) const;
|
bool containsAirportWithIcaoCode(const CAirportIcaoCode &icao) const;
|
||||||
|
|
||||||
@@ -55,9 +58,6 @@ namespace BlackMisc
|
|||||||
//! Update this list from the other list
|
//! Update this list from the other list
|
||||||
void updateMissingParts(const CAirportList &updateFromList);
|
void updateMissingParts(const CAirportList &updateFromList);
|
||||||
|
|
||||||
//! Find first station by callsign, if not return given value / default
|
|
||||||
CAirport findFirstByIcao(const CAirportIcaoCode &icao, const CAirport &ifNotFound = CAirport()) const;
|
|
||||||
|
|
||||||
//! All ICAO codes
|
//! All ICAO codes
|
||||||
QStringList allIcaoCodes(bool sorted) const;
|
QStringList allIcaoCodes(bool sorted) const;
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace BlackMisc
|
|||||||
//! Constructor
|
//! Constructor
|
||||||
CAltitude(double value, ReferenceDatum datum, const BlackMisc::PhysicalQuantities::CLengthUnit &unit) : CLength(value, unit), m_datum(datum) {}
|
CAltitude(double value, ReferenceDatum datum, const BlackMisc::PhysicalQuantities::CLengthUnit &unit) : CLength(value, unit), m_datum(datum) {}
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor, value as CAltitude::MeanSeaLevel
|
||||||
CAltitude(double value, const BlackMisc::PhysicalQuantities::CLengthUnit &unit) : CLength(value, unit), m_datum(MeanSeaLevel) {}
|
CAltitude(double value, const BlackMisc::PhysicalQuantities::CLengthUnit &unit) : CLength(value, unit), m_datum(MeanSeaLevel) {}
|
||||||
|
|
||||||
//! Altitude as string
|
//! Altitude as string
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
QString CCoordinateGeodetic::convertToQString(bool i18n) const
|
QString CCoordinateGeodetic::convertToQString(bool i18n) const
|
||||||
{
|
{
|
||||||
QString s = "Geodetic: {%1, %2, %3}";
|
static const QString s = "Geodetic: {%1, %2, %3}";
|
||||||
return s.arg(this->latitude().valueRoundedWithUnit(6, i18n), this->longitude().valueRoundedWithUnit(6, i18n), this->m_geodeticHeight.valueRoundedWithUnit(6, i18n));
|
return s.arg(this->latitude().valueRoundedWithUnit(6, i18n), this->longitude().valueRoundedWithUnit(6, i18n), this->m_geodeticHeight.valueRoundedWithUnit(6, i18n));
|
||||||
}
|
}
|
||||||
|
|
||||||
CCoordinateGeodetic CCoordinateGeodetic::fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const CAltitude &geodeticHeight)
|
CCoordinateGeodetic CCoordinateGeodetic::fromWgs84(const QString &latitudeWgs84, const QString &longitudeWgs84, const CAltitude &geodeticHeight)
|
||||||
{
|
{
|
||||||
CLatitude lat = CLatitude::fromWgs84(latitudeWgs84);
|
const CLatitude lat = CLatitude::fromWgs84(latitudeWgs84);
|
||||||
CLongitude lon = CLongitude::fromWgs84(longitudeWgs84);
|
const CLongitude lon = CLongitude::fromWgs84(longitudeWgs84);
|
||||||
return CCoordinateGeodetic(lat, lon, geodeticHeight);
|
return CCoordinateGeodetic(lat, lon, geodeticHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
if (!index.isMyself())
|
if (!index.isMyself())
|
||||||
{
|
{
|
||||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case IndexLatitude:
|
case IndexLatitude:
|
||||||
@@ -120,7 +120,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
if (!index.isMyself())
|
if (!index.isMyself())
|
||||||
{
|
{
|
||||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case IndexLatitude:
|
case IndexLatitude:
|
||||||
@@ -285,7 +285,7 @@ namespace BlackMisc
|
|||||||
if (ICoordinateGeodetic::canHandleIndex(index)) { return ICoordinateGeodetic::propertyByIndex(index); }
|
if (ICoordinateGeodetic::canHandleIndex(index)) { return ICoordinateGeodetic::propertyByIndex(index); }
|
||||||
if (!index.isMyself())
|
if (!index.isMyself())
|
||||||
{
|
{
|
||||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case IndexRelativeBearing:
|
case IndexRelativeBearing:
|
||||||
@@ -306,7 +306,7 @@ namespace BlackMisc
|
|||||||
if (ICoordinateGeodetic::canHandleIndex(index)) { return; }
|
if (ICoordinateGeodetic::canHandleIndex(index)) { return; }
|
||||||
if (!index.isMyself())
|
if (!index.isMyself())
|
||||||
{
|
{
|
||||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case IndexRelativeBearing:
|
case IndexRelativeBearing:
|
||||||
@@ -328,7 +328,7 @@ namespace BlackMisc
|
|||||||
if (ICoordinateGeodetic::canHandleIndex(index)) { return ICoordinateGeodetic::comparePropertyByIndex(index, compareValue); }
|
if (ICoordinateGeodetic::canHandleIndex(index)) { return ICoordinateGeodetic::comparePropertyByIndex(index, compareValue); }
|
||||||
if (!index.isMyself())
|
if (!index.isMyself())
|
||||||
{
|
{
|
||||||
ColumnIndex i = index.frontCasted<ColumnIndex>();
|
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case IndexRelativeBearing:
|
case IndexRelativeBearing:
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ namespace BlackMisc
|
|||||||
class BLACKMISC_EXPORT IOwnAircraftProvider
|
class BLACKMISC_EXPORT IOwnAircraftProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Own aircraft
|
//! Own aircraft
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
virtual CSimulatedAircraft getOwnAircraft() const = 0;
|
virtual CSimulatedAircraft getOwnAircraft() const = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user