mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
refs #707, refactoring geo interfaces
* added compare functions (also to ATC list) * renamed to relative position, e.g. station.setRelativeDistance * delegate set/get/compare to correct interface
This commit is contained in:
@@ -54,7 +54,6 @@ namespace BlackMisc
|
||||
IndexPosition,
|
||||
IndexRange,
|
||||
IndexIsInRange,
|
||||
IndexDistanceToOwnAircraft,
|
||||
IndexIsOnline,
|
||||
IndexBookedFrom,
|
||||
IndexBookedUntil,
|
||||
@@ -148,7 +147,6 @@ namespace BlackMisc
|
||||
//! Updates two stations (normally a booked and online ATC station) with complementary data
|
||||
void syncronizeControllerData(CAtcStation &otherStation);
|
||||
|
||||
|
||||
//! Syncronize station data
|
||||
//! Updates the two stations (a booked and online ATC station) with complementary data
|
||||
//! \pre this object is the online station, the passed station the booked station
|
||||
@@ -253,6 +251,9 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
|
||||
void setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant);
|
||||
|
||||
//! Compare by index
|
||||
int comparePropertyByIndex(const CPropertyIndex &index, const CAtcStation &compareValue) const;
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
@@ -282,8 +283,8 @@ namespace BlackMisc
|
||||
BLACK_METAMEMBER(bookedUntilUtc),
|
||||
BLACK_METAMEMBER(metar),
|
||||
BLACK_METAMEMBER(voiceRoom),
|
||||
BLACK_METAMEMBER(distanceToOwnAircraft),
|
||||
BLACK_METAMEMBER(bearingToOwnAircraft)
|
||||
BLACK_METAMEMBER(relativeDistance),
|
||||
BLACK_METAMEMBER(relativeBearing)
|
||||
);
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user