3 #include <QScopedPointer>
7 #include <Airports/airport.hxx>
14 class AirportSearchModel;
16 class AircraftProxyModel;
19 class QtLauncher : public QDialog
24 virtual ~QtLauncher();
26 static void initApp(int argc, char** argv);
28 static bool runLauncherDialog();
34 void onSearchAirports();
36 void onAirportChanged();
38 void onAirportChoiceSelected(const QModelIndex& index);
39 void onAircraftSelected(const QModelIndex& index);
41 void onPopupAirportHistory();
42 void onPopupAircraftHistory();
44 void onOpenCustomAircraftDir();
46 void onEditRatingsFilter();
48 void updateAirportDescription();
49 void updateSettingsSummary();
51 void onAirportSearchComplete();
53 void onAddSceneryPath();
54 void onRemoveSceneryPath();
56 void onRembrandtToggled(bool b);
58 void setAirport(FGAirportRef ref);
59 void updateSelectedAircraft();
61 void restoreSettings();
64 QModelIndex proxyIndexForAircraftPath(QString path) const;
65 QModelIndex sourceIndexForAircraftPath(QString path) const;
67 void setEnableDisableOptionFromCheckbox(QCheckBox* cbox, QString name) const;
69 QScopedPointer<Ui::Launcher> m_ui;
70 AirportSearchModel* m_airportsModel;
71 AircraftProxyModel* m_aircraftProxy;
73 FGAirportRef m_selectedAirport;
75 QString m_selectedAircraft;
76 QStringList m_recentAircraft,
78 QString m_customAircraftDir;
80 int m_ratingFilters[4];