2015-03-25 14:16:09 +00:00
|
|
|
#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();
|
2015-11-23 22:58:00 +00:00
|
|
|
void onAddDefaultCatalog();
|
|
|
|
|
2015-03-25 14:16:09 +00:00
|
|
|
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
|