#ifndef PATHSDIALOG_HXX #define PATHSDIALOG_HXX #include #include namespace Ui { class AddOnsPage; } class CatalogListModel; class AddOnsPage : public QWidget { Q_OBJECT public: explicit AddOnsPage(QWidget *parent, simgear::pkg::RootRef root); ~AddOnsPage(); static void addDefaultCatalog(QWidget* pr); signals: void downloadDirChanged(); void sceneryPathsChanged(); private slots: void onAddSceneryPath(); void onRemoveSceneryPath(); void onAddAircraftPath(); void onRemoveAircraftPath(); void onAddCatalog(); void onRemoveCatalog(); void onAddDefaultCatalog(); void onChangeDownloadDir(); void onClearDownloadDir(); void onChangeDataDir(); void onInstallScenery(); private: void updateUi(); void setDownloadDir(); void saveAircraftPaths(); void saveSceneryPaths(); bool haveSceneryPath(QString path) const; Ui::AddOnsPage* m_ui; CatalogListModel* m_catalogsModel; simgear::pkg::RootRef m_packageRoot; QString m_downloadDir; }; #endif // PATHSDIALOG_HXX