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

0001 /*
0002     File                 : ImageOptionsWidget.h
0003     Project              : LabPlot
0004     Description          : widget providing options for the import of image data
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2015-2017 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 #ifndef IMAGEOPTIONSWIDGET_H
0011 #define IMAGEOPTIONSWIDGET_H
0012 
0013 #include "backend/datasources/filters/ImageFilter.h"
0014 #include "ui_imageoptionswidget.h"
0015 
0016 class ImageOptionsWidget : public QWidget {
0017     Q_OBJECT
0018 
0019 public:
0020     explicit ImageOptionsWidget(QWidget*);
0021     void loadSettings() const;
0022     void saveSettings();
0023     ImageFilter::ImportFormat currentFormat() const {
0024         return (ImageFilter::ImportFormat)ui.cbImportFormat->currentIndex();
0025     }
0026 
0027 private:
0028     Ui::ImageOptionsWidget ui;
0029 };
0030 
0031 #endif