File indexing completed on 2024-04-14 03:51:16

0001 /*
0002     SPDX-FileCopyrightText: 2009 Matthew Woehlke <mw_triad@users.sourceforge.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KCOLORUTILSDEMO_H
0008 #define KCOLORUTILSDEMO_H
0009 
0010 #include "ui_kcolorutilsdemo.h"
0011 
0012 class KColorUtilsDemo : public QWidget, Ui::form
0013 {
0014     Q_OBJECT
0015 public:
0016     KColorUtilsDemo(QWidget *parent = nullptr);
0017     ~KColorUtilsDemo() override
0018     {
0019     }
0020 
0021 public Q_SLOTS:
0022     void inputChanged();
0023     void lumaChanged();
0024     void mixChanged();
0025     void shadeChanged();
0026 
0027     void inputSpinChanged();
0028     void inputSwatchChanged(const QColor &);
0029 
0030     void targetSpinChanged();
0031     void targetSwatchChanged(const QColor &);
0032 
0033 protected:
0034     QImage _leOutImg, _mtMixOutImg, _mtTintOutImg;
0035     bool _noUpdate;
0036 };
0037 
0038 #endif