File indexing completed on 2025-10-12 03:31:10

0001 /*
0002     File                 : NetCDFOptionsWidget.h
0003     Project              : LabPlot
0004     Description          : widget providing options for the import of NetCDF data
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2015-2017 Stefan Gerlach <stefan.gerlach@uni.kn>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef NETCDFOPTIONSWIDGET_H
0011 #define NETCDFOPTIONSWIDGET_H
0012 
0013 #include "ui_netcdfoptionswidget.h"
0014 
0015 class NetCDFFilter;
0016 class ImportFileWidget;
0017 
0018 class NetCDFOptionsWidget : public QWidget {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit NetCDFOptionsWidget(QWidget*, ImportFileWidget*);
0023     void clear();
0024     void updateContent(NetCDFFilter*, const QString& fileName);
0025     const QStringList selectedNames() const;
0026     int lines() const {
0027         return ui.sbPreviewLines->value();
0028     }
0029     QTableWidget* previewWidget() const {
0030         return ui.twPreview;
0031     }
0032 
0033 private:
0034     Ui::NetCDFOptionsWidget ui;
0035     ImportFileWidget* m_fileWidget;
0036 
0037 private Q_SLOTS:
0038     void netcdfTreeWidgetSelectionChanged();
0039 };
0040 
0041 #endif