Navigator2Go  2.0
Manage your local Ocean Navigator installation.
dialogimportnc.h
1 #ifndef DIALOGIMPORTNC_H
2 #define DIALOGIMPORTNC_H
3 
4 #include "netcdfimportdesc.h"
5 
6 #include <QDialog>
7 
8 /***********************************************************************************/
9 // Forward declarations
10 namespace Ui {
11 class DialogImportNC;
12 }
13 
14 /***********************************************************************************/
16 class DialogImportNC : public QDialog {
17  Q_OBJECT
18 
19 public:
20  DialogImportNC(const QString& threddsContentDir, QWidget* parent = nullptr);
21  ~DialogImportNC();
22 
24  NODISCARD QVector<NetCDFImportDesc> GetImportList() const;
25 
27  NODISCARD bool ShouldRemoveSourceNCFiles() const;
28 
29 private slots:
30  void on_pushButtonAdd_clicked();
31  void on_pushButtonDelete_clicked();
32  void on_tableWidget_doubleClicked(const QModelIndex& index);
33 
34 private:
36  void addDataset();
37 
38  Ui::DialogImportNC* m_ui{nullptr};
39  QStringList m_datasetList;
40 };
41 
42 #endif // DIALOGIMPORTNC_H
Definition: dialogdatasetview.h:16
Dialog window to import a netCDF file.
Definition: dialogimportnc.h:16