FlightGear next
LauncherController Class Reference

#include <LauncherController.hxx>

Inherits QObject.

Public Types

enum  AircraftType {
  Unknown = 0 , Airplane , Seaplane , Helicopter ,
  Airship
}
 

Public Slots

void setSelectedAircraft (QUrl selectedAircraft)
 
void setSettingsSearchTerm (QString settingsSearchTerm)
 
void setSettingsSummary (QStringList settingsSummary)
 
void setEnvironmentSummary (QStringList environmentSummary)
 
void fly ()
 
void quit ()
 
void requestRestoreDefaults ()
 
void requestChangeDataPath ()
 
void openConfig ()
 
void saveConfigAs ()
 
void setAircraftGridMode (bool aircraftGridMode)
 
void resetGettingStartedTips ()
 

Signals

void selectedAircraftChanged (QUrl selectedAircraft)
 
void selectedAircraftStateChanged ()
 
void searchChanged ()
 
void summaryChanged ()
 
void minWindowSizeChanged ()
 
void canFlyChanged ()
 
void viewCommandLine ()
 
void aircraftGridModeChanged (bool aircraftGridMode)
 
void inAppChanged ()
 
void installedAircraftCountChanged (int installedAircraftCount)
 
void didResetGettingStartedTips ()
 
void skipAircraftFromArgsChanged ()
 

Public Member Functions

 LauncherController (QObject *parent, QWindow *win)
 
void initQML (int &styleTypeId)
 
Q_INVOKABLE bool validateMetarString (QString metar)
 
Q_INVOKABLE void requestInstallUpdate (QUrl aircraftUri)
 
Q_INVOKABLE void requestUninstall (QUrl aircraftUri)
 
Q_INVOKABLE void requestInstallCancel (QUrl aircraftUri)
 
Q_INVOKABLE void downloadDirChanged (QString path)
 
Q_INVOKABLE void requestUpdateAllAircraft ()
 
Q_INVOKABLE void queryMPServers ()
 
QUrl selectedAircraft () const
 
Q_INVOKABLE QPointF mapToGlobal (QQuickItem *item, const QPointF &pos) const
 
QmlAircraftInfoselectedAircraftInfo () const
 
Q_INVOKABLE void restoreLocation (QVariant var)
 
Q_INVOKABLE bool matchesSearch (QString term, QStringList keywords) const
 
bool isSearchActive () const
 
QString settingsSearchTerm () const
 
QStringList settingsSummary () const
 
QStringList environmentSummary () const
 
QStringList combinedSummary () const
 
QString versionString () const
 
RecentAircraftModelaircraftHistory ()
 
RecentLocationsModellocationHistory ()
 
Q_INVOKABLE void launchUrl (QUrl url)
 
Q_INVOKABLE QVariantList defaultSplashUrls () const
 
Q_INVOKABLE QVariant loadUISetting (QString name, QVariant defaultValue) const
 
Q_INVOKABLE void saveUISetting (QString name, QVariant value) const
 
Q_INVOKABLE QUrl urlToDataPath (QString relPath) const
 urlToDataPath - convetr a FGData path into a gloabl file:/// URL suitable for Qt.openExternally()
 
LaunchConfigconfig () const
 
void doRun ()
 
void doApply ()
 
bool canFly () const
 
AircraftItemModelbaseAircraftModel () const
 
void initialRestoreSettings ()
 
void saveSettings ()
 
LocationControllerlocation () const
 
AircraftType aircraftType () const
 
void setInAppMode ()
 
bool keepRunningInAppMode () const
 
bool inAppResult () const
 
QSize minWindowSize () const
 
void setMinWindowSize (QSize sz)
 
QUrl flyIconUrl () const
 
bool aircraftGridMode () const
 
bool inApp () const
 
int launchCount () const
 
int versionLaunchCount () const
 
QString flyButtonLabel () const
 

Properties

AircraftProxyModelinstalledAircraftModel
 
AircraftProxyModelaircraftWithUpdatesModel
 
AircraftProxyModelbrowseAircraftModel
 
AircraftProxyModelsearchAircraftModel
 
AircraftProxyModelfavouriteAircraftModel
 
AircraftItemModelbaseAircraftModel
 
LocationControllerlocation
 
FlightPlanControllerflightPlan
 
MPServersModelmpServersModel
 
QUrl selectedAircraft
 
QmlAircraftInfoselectedAircraftInfo
 
QString selectedAircraftState
 
bool isSearchActive
 
QString settingsSearchTerm
 
QStringList settingsSummary
 
QStringList environmentSummary
 
QStringList combinedSummary
 
QString versionString
 
RecentAircraftModelaircraftHistory
 
RecentLocationsModellocationHistory
 
bool canFly
 
AircraftType aircraftType
 
QSize minimumWindowSize
 
QUrl flyIconUrl
 
QUrl flyButtonLabel
 
bool inAppMode
 
bool aircraftGridMode
 
int launchCount
 
int versionLaunchCount
 
bool skipAircraftFromArgs
 

Detailed Description

Definition at line 48 of file LauncherController.hxx.

Member Enumeration Documentation

◆ AircraftType

Enumerator
Unknown 
Airplane 
Seaplane 
Helicopter 
Airship 

Definition at line 184 of file LauncherController.hxx.

Constructor & Destructor Documentation

◆ LauncherController()

LauncherController::LauncherController ( QObject * parent,
QWindow * win )
explicit

Definition at line 74 of file LauncherController.cxx.

Member Function Documentation

◆ aircraftGridMode()

bool LauncherController::aircraftGridMode ( ) const
inline

Definition at line 211 of file LauncherController.hxx.

◆ aircraftGridModeChanged

void LauncherController::aircraftGridModeChanged ( bool aircraftGridMode)
signal

◆ aircraftHistory()

RecentAircraftModel * LauncherController::aircraftHistory ( )

◆ aircraftType()

AircraftType LauncherController::aircraftType ( ) const
inline

Definition at line 195 of file LauncherController.hxx.

◆ baseAircraftModel()

AircraftItemModel * LauncherController::baseAircraftModel ( ) const
inline

Definition at line 175 of file LauncherController.hxx.

◆ canFly()

bool LauncherController::canFly ( ) const

Definition at line 501 of file LauncherController.cxx.

◆ canFlyChanged

void LauncherController::canFlyChanged ( )
signal

◆ combinedSummary()

QStringList LauncherController::combinedSummary ( ) const

Definition at line 658 of file LauncherController.cxx.

◆ config()

LaunchConfig * LauncherController::config ( ) const
inline

Definition at line 167 of file LauncherController.hxx.

◆ defaultSplashUrls()

QVariantList LauncherController::defaultSplashUrls ( ) const

Definition at line 772 of file LauncherController.cxx.

◆ didResetGettingStartedTips

void LauncherController::didResetGettingStartedTips ( )
signal

◆ doApply()

void LauncherController::doApply ( )

Definition at line 395 of file LauncherController.cxx.

◆ doRun()

void LauncherController::doRun ( )

Definition at line 353 of file LauncherController.cxx.

◆ downloadDirChanged()

void LauncherController::downloadDirChanged ( QString path)

Definition at line 513 of file LauncherController.cxx.

◆ environmentSummary()

QStringList LauncherController::environmentSummary ( ) const

Definition at line 582 of file LauncherController.cxx.

◆ fly

void LauncherController::fly ( )
slot

Definition at line 628 of file LauncherController.cxx.

◆ flyButtonLabel()

QString LauncherController::flyButtonLabel ( ) const

Definition at line 949 of file LauncherController.cxx.

◆ flyIconUrl()

QUrl LauncherController::flyIconUrl ( ) const

Definition at line 936 of file LauncherController.cxx.

◆ inApp()

bool LauncherController::inApp ( ) const
inline

Definition at line 216 of file LauncherController.hxx.

◆ inAppChanged

void LauncherController::inAppChanged ( )
signal

◆ inAppResult()

bool LauncherController::inAppResult ( ) const

Definition at line 246 of file LauncherController.cxx.

◆ initialRestoreSettings()

void LauncherController::initialRestoreSettings ( )

Definition at line 251 of file LauncherController.cxx.

◆ initQML()

void LauncherController::initQML ( int & styleTypeId)

Definition at line 170 of file LauncherController.cxx.

◆ installedAircraftCountChanged

void LauncherController::installedAircraftCountChanged ( int installedAircraftCount)
signal

◆ isSearchActive()

bool LauncherController::isSearchActive ( ) const

Definition at line 572 of file LauncherController.cxx.

◆ keepRunningInAppMode()

bool LauncherController::keepRunningInAppMode ( ) const

Definition at line 241 of file LauncherController.cxx.

◆ launchCount()

int LauncherController::launchCount ( ) const
inline

Definition at line 221 of file LauncherController.hxx.

◆ launchUrl()

void LauncherController::launchUrl ( QUrl url)

Definition at line 767 of file LauncherController.cxx.

◆ loadUISetting()

QVariant LauncherController::loadUISetting ( QString name,
QVariant defaultValue ) const

Definition at line 784 of file LauncherController.cxx.

◆ location()

LocationController * LauncherController::location ( ) const
inline

Definition at line 181 of file LauncherController.hxx.

◆ locationHistory()

RecentLocationsModel * LauncherController::locationHistory ( )

◆ mapToGlobal()

QPointF LauncherController::mapToGlobal ( QQuickItem * item,
const QPointF & pos ) const

Definition at line 818 of file LauncherController.cxx.

◆ matchesSearch()

bool LauncherController::matchesSearch ( QString term,
QStringList keywords ) const

Definition at line 561 of file LauncherController.cxx.

◆ minWindowSize()

QSize LauncherController::minWindowSize ( ) const
inline

Definition at line 202 of file LauncherController.hxx.

◆ minWindowSizeChanged

void LauncherController::minWindowSizeChanged ( )
signal

◆ openConfig

void LauncherController::openConfig ( )
slot

Definition at line 881 of file LauncherController.cxx.

◆ queryMPServers()

void LauncherController::queryMPServers ( )

Definition at line 739 of file LauncherController.cxx.

◆ quit

void LauncherController::quit ( )
slot

Definition at line 647 of file LauncherController.cxx.

◆ requestChangeDataPath

void LauncherController::requestChangeDataPath ( )
slot

Definition at line 849 of file LauncherController.cxx.

◆ requestInstallCancel()

void LauncherController::requestInstallCancel ( QUrl aircraftUri)

Definition at line 716 of file LauncherController.cxx.

◆ requestInstallUpdate()

void LauncherController::requestInstallUpdate ( QUrl aircraftUri)

Definition at line 690 of file LauncherController.cxx.

◆ requestRestoreDefaults

void LauncherController::requestRestoreDefaults ( )
slot

Definition at line 825 of file LauncherController.cxx.

◆ requestUninstall()

void LauncherController::requestUninstall ( QUrl aircraftUri)

Definition at line 705 of file LauncherController.cxx.

◆ requestUpdateAllAircraft()

void LauncherController::requestUpdateAllAircraft ( )

Definition at line 727 of file LauncherController.cxx.

◆ resetGettingStartedTips

void LauncherController::resetGettingStartedTips ( )
slot

Definition at line 915 of file LauncherController.cxx.

◆ restoreLocation()

void LauncherController::restoreLocation ( QVariant var)

Definition at line 551 of file LauncherController.cxx.

◆ saveConfigAs

void LauncherController::saveConfigAs ( )
slot

Definition at line 891 of file LauncherController.cxx.

◆ saveSettings()

void LauncherController::saveSettings ( )

Definition at line 288 of file LauncherController.cxx.

◆ saveUISetting()

void LauncherController::saveUISetting ( QString name,
QVariant value ) const

Definition at line 792 of file LauncherController.cxx.

◆ searchChanged

void LauncherController::searchChanged ( )
signal

◆ selectedAircraft()

QUrl LauncherController::selectedAircraft ( ) const

Definition at line 556 of file LauncherController.cxx.

◆ selectedAircraftChanged

void LauncherController::selectedAircraftChanged ( QUrl selectedAircraft)
signal

◆ selectedAircraftInfo()

QmlAircraftInfo * LauncherController::selectedAircraftInfo ( ) const

Definition at line 546 of file LauncherController.cxx.

◆ selectedAircraftStateChanged

void LauncherController::selectedAircraftStateChanged ( )
signal

◆ setAircraftGridMode

void LauncherController::setAircraftGridMode ( bool aircraftGridMode)
slot

Definition at line 904 of file LauncherController.cxx.

◆ setEnvironmentSummary

void LauncherController::setEnvironmentSummary ( QStringList environmentSummary)
slot

Definition at line 619 of file LauncherController.cxx.

◆ setInAppMode()

void LauncherController::setInAppMode ( )

Definition at line 233 of file LauncherController.cxx.

◆ setMinWindowSize()

void LauncherController::setMinWindowSize ( QSize sz)

Definition at line 927 of file LauncherController.cxx.

◆ setSelectedAircraft

void LauncherController::setSelectedAircraft ( QUrl selectedAircraft)
slot

Definition at line 588 of file LauncherController.cxx.

◆ setSettingsSearchTerm

void LauncherController::setSettingsSearchTerm ( QString settingsSearchTerm)
slot

Definition at line 601 of file LauncherController.cxx.

◆ setSettingsSummary

void LauncherController::setSettingsSummary ( QStringList settingsSummary)
slot

Definition at line 610 of file LauncherController.cxx.

◆ settingsSearchTerm()

QString LauncherController::settingsSearchTerm ( ) const
inline

Definition at line 134 of file LauncherController.hxx.

◆ settingsSummary()

QStringList LauncherController::settingsSummary ( ) const

Definition at line 577 of file LauncherController.cxx.

◆ skipAircraftFromArgsChanged

void LauncherController::skipAircraftFromArgsChanged ( )
signal

◆ summaryChanged

void LauncherController::summaryChanged ( )
signal

◆ urlToDataPath()

QUrl LauncherController::urlToDataPath ( QString relPath) const

urlToDataPath - convetr a FGData path into a gloabl file:/// URL suitable for Qt.openExternally()

Parameters
relPath- the path rlative to FG_ROOT
Returns
a file QUrl

Definition at line 962 of file LauncherController.cxx.

◆ validateMetarString()

bool LauncherController::validateMetarString ( QString metar)

Definition at line 674 of file LauncherController.cxx.

◆ versionLaunchCount()

int LauncherController::versionLaunchCount ( ) const
inline

Definition at line 226 of file LauncherController.hxx.

◆ versionString()

QString LauncherController::versionString ( ) const

Definition at line 744 of file LauncherController.cxx.

◆ viewCommandLine

void LauncherController::viewCommandLine ( )
signal

Property Documentation

◆ aircraftGridMode

bool LauncherController::aircraftGridMode
readwrite

Definition at line 95 of file LauncherController.hxx.

◆ aircraftHistory

RecentAircraftModel * LauncherController::aircraftHistory
read

Definition at line 81 of file LauncherController.hxx.

◆ aircraftType

AircraftType LauncherController::aircraftType
read

Definition at line 86 of file LauncherController.hxx.

◆ aircraftWithUpdatesModel

AircraftProxyModel* LauncherController::aircraftWithUpdatesModel

Definition at line 53 of file LauncherController.hxx.

◆ baseAircraftModel

AircraftItemModel* LauncherController::baseAircraftModel

Definition at line 58 of file LauncherController.hxx.

◆ browseAircraftModel

AircraftProxyModel* LauncherController::browseAircraftModel

Definition at line 54 of file LauncherController.hxx.

◆ canFly

bool LauncherController::canFly
read

Definition at line 84 of file LauncherController.hxx.

◆ combinedSummary

QStringList LauncherController::combinedSummary
read

Definition at line 77 of file LauncherController.hxx.

◆ environmentSummary

QStringList LauncherController::environmentSummary
readwrite

Definition at line 75 of file LauncherController.hxx.

◆ favouriteAircraftModel

AircraftProxyModel* LauncherController::favouriteAircraftModel

Definition at line 56 of file LauncherController.hxx.

◆ flightPlan

FlightPlanController* LauncherController::flightPlan

Definition at line 61 of file LauncherController.hxx.

◆ flyButtonLabel

QUrl LauncherController::flyButtonLabel
read

Definition at line 91 of file LauncherController.hxx.

◆ flyIconUrl

QUrl LauncherController::flyIconUrl
read

Definition at line 90 of file LauncherController.hxx.

◆ inAppMode

bool LauncherController::inAppMode
read

Definition at line 93 of file LauncherController.hxx.

◆ installedAircraftModel

AircraftProxyModel* LauncherController::installedAircraftModel

Definition at line 52 of file LauncherController.hxx.

◆ isSearchActive

bool LauncherController::isSearchActive
read

Definition at line 71 of file LauncherController.hxx.

◆ launchCount

int LauncherController::launchCount
read

Definition at line 97 of file LauncherController.hxx.

◆ location

LocationController* LauncherController::location

Definition at line 60 of file LauncherController.hxx.

◆ locationHistory

RecentLocationsModel * LauncherController::locationHistory
read

Definition at line 82 of file LauncherController.hxx.

◆ minimumWindowSize

QSize LauncherController::minimumWindowSize
readwrite

Definition at line 88 of file LauncherController.hxx.

◆ mpServersModel

MPServersModel* LauncherController::mpServersModel

Definition at line 63 of file LauncherController.hxx.

◆ searchAircraftModel

AircraftProxyModel* LauncherController::searchAircraftModel

Definition at line 55 of file LauncherController.hxx.

◆ selectedAircraft

QUrl LauncherController::selectedAircraft
readwrite

Definition at line 65 of file LauncherController.hxx.

◆ selectedAircraftInfo

QmlAircraftInfo* LauncherController::selectedAircraftInfo
read

Definition at line 67 of file LauncherController.hxx.

◆ selectedAircraftState

QString LauncherController::selectedAircraftState

Definition at line 69 of file LauncherController.hxx.

◆ settingsSearchTerm

QString LauncherController::settingsSearchTerm
readwrite

Definition at line 72 of file LauncherController.hxx.

◆ settingsSummary

QStringList LauncherController::settingsSummary
readwrite

Definition at line 74 of file LauncherController.hxx.

◆ skipAircraftFromArgs

bool LauncherController::skipAircraftFromArgs

Definition at line 101 of file LauncherController.hxx.

◆ versionLaunchCount

int LauncherController::versionLaunchCount
read

Definition at line 98 of file LauncherController.hxx.

◆ versionString

QString LauncherController::versionString
read

Definition at line 79 of file LauncherController.hxx.


The documentation for this class was generated from the following files: