File indexing completed on 2024-12-22 04:13:16

0001 /*
0002  * This file is part of the KDE project
0003  *
0004  * SPDX-FileCopyrightText: 2019 Carl Olsson <carl.olsson@gmail.com>
0005  *
0006  *  SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef KIS_DITHER_WIDGET_H
0010 #define KIS_DITHER_WIDGET_H
0011 
0012 #include <kritaui_export.h>
0013 #include <QWidget>
0014 #include "ui_KisDitherWidget.h"
0015 
0016 class KisResourceItemChooser;
0017 class KisPropertiesConfiguration;
0018 class KisFilterConfiguration;
0019 
0020 class KRITAUI_EXPORT KisDitherWidget : public QWidget, public Ui::KisDitherWidget
0021 {
0022     Q_OBJECT
0023 public:
0024     KisDitherWidget(QWidget* parent = 0);
0025     void setConfiguration(const KisFilterConfiguration &config, const QString &prefix = "");
0026     void configuration(KisPropertiesConfiguration &config, const QString &prefix = "") const;
0027     static void factoryConfiguration(KisPropertiesConfiguration &config, const QString &prefix = "");
0028     static QList<KoResourceLoadResult> prepareLinkedResources(const KisFilterConfiguration &config, const QString &prefix, KisResourcesInterfaceSP resourcesInterface);
0029 
0030 Q_SIGNALS:
0031     void sigConfigurationItemChanged();
0032 private:
0033     KisResourceItemChooser* m_ditherPatternWidget;
0034 };
0035 
0036 #endif