1
0
Fork 0
flightgear/src/GUI/PathsDialog.hxx
James Turner 5f8f2886dc Launcher: fix bugs around paths setting.
We now show paths in ‘view command line’ and set them through the
standard mechanism. Re-ordering the paths also notifies the rest of
the system correctly.
2017-04-13 12:55:51 +01:00

57 lines
1 KiB
C++

#ifndef PATHSDIALOG_HXX
#define PATHSDIALOG_HXX
#include <QDialog>
#include <simgear/package/Root.hxx>
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, bool silent);
signals:
void sceneryPathsChanged();
void aircraftPathsChanged();
private slots:
void onAddSceneryPath();
void onRemoveSceneryPath();
void onAddAircraftPath();
void onRemoveAircraftPath();
void onAddCatalog();
void onRemoveCatalog();
void onAddDefaultCatalog();
void onInstallScenery();
void onDraggedAircraftList();
void saveAircraftPaths();
void saveSceneryPaths();
private:
void updateUi();
bool haveSceneryPath(QString path) const;
Ui::AddOnsPage* m_ui;
CatalogListModel* m_catalogsModel;
simgear::pkg::RootRef m_packageRoot;
};
#endif // PATHSDIALOG_HXX