File indexing completed on 2025-01-05 03:35:42

0001 /*
0002     File                 : RescaleDialog.h
0003     Project              : LabPlot
0004     Description          : Dialog to provide the rescale interval
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2020 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef RESCALEDIALOG_H
0011 #define RESCALEDIALOG_H
0012 
0013 #include <QDialog>
0014 #include <ui_rescalewidget.h>
0015 class Column;
0016 
0017 class RescaleDialog : public QDialog {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit RescaleDialog(QWidget* parent = nullptr);
0022     ~RescaleDialog() override;
0023 
0024     void setColumns(const QVector<Column*>&);
0025     double min() const;
0026     double max() const;
0027 
0028 private:
0029     Ui::RescaleWidget ui;
0030 
0031 private Q_SLOTS:
0032     void validateOkButton();
0033 };
0034 
0035 #endif