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

0001 /*
0002     File                 : ColorMapsDialog.h
0003     Project              : LabPlot
0004     Description          : dialog showing the available color maps
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2021 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef COLORMAPSDIALOG_H
0011 #define COLORMAPSDIALOG_H
0012 
0013 #include <QDialog>
0014 
0015 class ColorMapsWidget;
0016 
0017 class ColorMapsDialog : public QDialog {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit ColorMapsDialog(QWidget*);
0022     ~ColorMapsDialog() override;
0023 
0024     QPixmap previewPixmap() const;
0025     QString name() const;
0026     QVector<QColor> colors() const;
0027 
0028 private:
0029     ColorMapsWidget* m_colorMapsWidget;
0030 };
0031 
0032 #endif // COLORMAPSDIALOG_H