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

0001 /*
0002     File                 : BatchEditValueLabelsDialog.h
0003     Project              : LabPlot
0004     Description          : Dialog to modify multiple value labels in a batch mode
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2021 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef BATCHEDITVALUELABELSDIALOG_H
0011 #define BATCHEDITVALUELABELSDIALOG_H
0012 
0013 #include <QDialog>
0014 
0015 class Column;
0016 class QTextEdit;
0017 
0018 class BatchEditValueLabelsDialog : public QDialog {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit BatchEditValueLabelsDialog(QWidget* parent = nullptr);
0023     ~BatchEditValueLabelsDialog() override;
0024 
0025     void setColumns(const QList<Column*>&);
0026 
0027 private:
0028     QTextEdit* teValueLabels;
0029     QList<Column*> m_columns;
0030     Column* m_column{nullptr};
0031     QString m_dateTimeFormat;
0032 
0033 private Q_SLOTS:
0034     void save() const;
0035 };
0036 
0037 #endif