3 #include <QScopedPointer>
7 #include <Airports/airport.hxx>
14 class AirportSearchModel;
16 class AircraftProxyModel;
19 class QtLauncher : public QDialog
24 virtual ~QtLauncher();
26 static bool runLauncherDialog();
32 void onSearchAirports();
34 void onAirportChanged();
36 void onAirportChoiceSelected(const QModelIndex& index);
37 void onAircraftSelected(const QModelIndex& index);
39 void onPopupAirportHistory();
40 void onPopupAircraftHistory();
42 void onOpenCustomAircraftDir();
44 void onEditRatingsFilter();
46 void updateAirportDescription();
47 void updateSettingsSummary();
49 void onAirportSearchComplete();
51 void onAddSceneryPath();
52 void onRemoveSceneryPath();
54 void setAirport(FGAirportRef ref);
55 void updateSelectedAircraft();
57 void restoreSettings();
60 QModelIndex proxyIndexForAircraftPath(QString path) const;
61 QModelIndex sourceIndexForAircraftPath(QString path) const;
63 void setEnableDisableOptionFromCheckbox(QCheckBox* cbox, QString name) const;
65 QScopedPointer<Ui::Launcher> m_ui;
66 AirportSearchModel* m_airportsModel;
67 AircraftProxyModel* m_aircraftProxy;
69 FGAirportRef m_selectedAirport;
71 QString m_selectedAircraft;
72 QStringList m_recentAircraft,
74 QString m_customAircraftDir;
76 int m_ratingFilters[4];