21#ifndef LOCATION_CONTROLLER_HXX
22#define LOCATION_CONTROLLER_HXX
35#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
36Q_MOC_INCLUDE(
"NavaidSearchModel.hxx")
37Q_MOC_INCLUDE(
"QmlPositionedModel.hxx")
119 return m_offsetDistance;
136 return m_offsetEnabled;
148 return m_useActiveRunway;
155 return m_runwaysModel;
160 return m_helipadsModel;
165 return m_parkingsModel;
186 return m_useAvailableParking;
191 return m_locationIsLatLon;
201 return m_locationIsCarrier;
208 return m_useCarrierFLOLS;
241 void onCollectConfig();
242 void onRestoreCurrentLocation();
243 void onSaveCurrentLocation();
245 void clearLocation();
246 void updateAirportModels();
248 void onSearchComplete();
250 void setNavRadioOption();
252 void applyPositionOffset();
253 void applyAltitude();
254 void applyAirspeed();
257 QString compassPointFromHeading(
int heading)
const;
265 bool m_locationIsLatLon =
false;
266 SGGeod m_geodLocation;
267 bool m_locationIsCarrier =
false;
268 QString m_carrierName;
279 bool m_offsetEnabled =
false;
287 m_defaultHeading, m_defaultOffsetDistance, m_defaultOffsetRadial;
289 bool m_onFinal =
false;
290 bool m_useActiveRunway =
true;
291 bool m_tuneNAV1 =
false;
292 bool m_useAvailableParking;
293 bool m_headingEnabled =
false;
294 bool m_speedEnabled =
false;
295 bool m_altitudeEnabled =
false;
296 bool m_skipFromArgs =
false;
299 bool m_useCarrierFLOLS =
false;
300 QString m_carrierParking;
301 QStringList m_carrierParkings;
SGSharedPtr< FGAirport > FGAirportRef
SGSharedPtr< FGPositioned > FGPositionedRef
void setLaunchConfig(LaunchConfig *config)
bool isBaseLatLon() const
QuantityValue offsetRadial
void restoreLocation(QVariantMap l)
QmlPositionedModel * airportRunways() const
void setUseCarrierFLOLS(bool useCarrierFLOLS)
QStringList carrierParkings
void setCarrierParking(QString name)
bool isAirborneLocation() const
used to automatically select aircraft state
bool useAvailableParking() const
QmlPositionedModel * airportHelipads
bool shouldStartPaused() const
void setAbeam(bool abeam)
void setOnFinal(bool onFinal)
QmlPositioned * baseLocation() const
bool offsetEnabled() const
Q_INVOKABLE void showHistoryInSearchModel()
Q_INVOKABLE void addToRecent(QmlPositioned *pos)
void setOffsetRadial(QuantityValue offsetRadial)
QmlPositionedModel * airportRunways
void setUseAvailableParking(bool useAvailableParking)
void setBaseLocation(FGPositionedRef ref)
void restoreSearchHistory()
void setBaseGeod(QmlGeod geod)
bool useActiveRunway() const
void setOffsetEnabled(bool offsetEnabled)
bool useCarrierFLOLS() const
QVariantMap saveLocation() const
QmlPositionedModel * airportHelipads() const
Q_INVOKABLE QmlGeod parseStringAsGeod(QString string) const
NavaidSearchModel * searchModel
QuantityValue offsetDistance
void descriptionChanged()
void skipFromArgsChanged()
QmlPositionedModel * airportParkings
void setLocationProperties()
QmlPositionedModel * airportParkings() const
void setOffsetDistance(QuantityValue offsetNm)
bool isParkedLocation() const
used to automatically select aircraft state
void baseLocationChanged()
void setUseActiveRunway(bool b)
CarriersLocationModel * carriersModel
LocationController(QObject *parent=nullptr)
void setTuneNAV1(bool tuneNAV1)
QString carrierName() const
Q_INVOKABLE void setDetailLocation(QmlPositioned *pos)
QuantityValue altitude() const
void setCarrierLocation(QString name)
Expose an SGGeod as Qml-friendly class.
std::vector< FGPositionedRef > FGPositionedList