1
0
Fork 0
flightgear/src/GUI/PathsDialog.hxx
James Turner be1291f689 Change handling of default hangar / catalog.
- no longer re-add it on startup, add an explicit button in the UI

(will add a more obvious item to the aircraft list in a follow-up
commit)
2015-11-23 22:58:00 +00:00

49 lines
853 B
C++

#ifndef PATHSDIALOG_HXX
#define PATHSDIALOG_HXX
#include <QDialog>
#include <simgear/package/Root.hxx>
namespace Ui {
class PathsDialog;
}
class CatalogListModel;
class PathsDialog : public QDialog
{
Q_OBJECT
public:
explicit PathsDialog(QWidget *parent, simgear::pkg::RootRef root);
~PathsDialog();
protected:
virtual void accept();
private slots:
void onAddSceneryPath();
void onRemoveSceneryPath();
void onAddAircraftPath();
void onRemoveAircraftPath();
void onAddCatalog();
void onRemoveCatalog();
void onAddDefaultCatalog();
void onChangeDownloadDir();
void onClearDownloadDir();
private:
void updateUi();
Ui::PathsDialog* m_ui;
CatalogListModel* m_catalogsModel;
simgear::pkg::RootRef m_packageRoot;
QString m_downloadDir;
};
#endif // PATHSDIALOG_HXX