Navigator2Go  2.0
Manage your local Ocean Navigator installation.
widgetthreddsconfig.h
1 #ifndef WIDGETTHREDDSCONFIG_H
2 #define WIDGETTHREDDSCONFIG_H
3 
4 #include "nodiscard.h"
5 
6 #include <QWidget>
7 
8 /***********************************************************************************/
9 // Forward declarations
10 namespace Ui {
12 }
13 
14 class QString;
15 
16 /***********************************************************************************/
18 class WidgetThreddsConfig : public QWidget {
19  Q_OBJECT
20 
21 public:
22  WidgetThreddsConfig(QWidget* parent, const QString* threddsCatalogLocation);
23  ~WidgetThreddsConfig() override;
24 
26  void BuildTable();
27 
28 private slots:
29  void on_tableWidget_cellChanged(int row, int column);
31  void on_pushButtonAddDataset_clicked();
33  void on_pushButtonRemoveDataset_clicked();
35  void on_pushButtonShowLogs_clicked();
37  void on_pushButtonBrowseTHREDDSDir_clicked();
38 
39 private:
41  void checkCatalogsPath();
43  NODISCARD bool validateDatasetName(const QString& datasetName);
45  void createRow(const QString& datasetName, const QString& dataPath);
46 
47  Ui::WidgetThreddsConfig* m_ui{nullptr};
48  const QString* const m_catalogLocation{nullptr};
49 };
50 
51 #endif // WIDGETTHREDDSCONFIG_H
Definition: dialogdatasetview.h:16
Thredds config widget in the THREDDS Config Editor tab.
Definition: widgetthreddsconfig.h:18