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 onRembrandtToggled(bool b);
56 void setAirport(FGAirportRef ref);
57 void updateSelectedAircraft();
59 void restoreSettings();
62 QModelIndex proxyIndexForAircraftPath(QString path) const;
63 QModelIndex sourceIndexForAircraftPath(QString path) const;
65 void setEnableDisableOptionFromCheckbox(QCheckBox* cbox, QString name) const;
67 QScopedPointer<Ui::Launcher> m_ui;
68 AirportSearchModel* m_airportsModel;
69 AircraftProxyModel* m_aircraftProxy;
71 FGAirportRef m_selectedAirport;
73 QString m_selectedAircraft;
74 QStringList m_recentAircraft,
76 QString m_customAircraftDir;
78 int m_ratingFilters[4];