File indexing completed on 2024-12-22 04:15:50
0001 /* 0002 * SPDX-FileCopyrightText: 2005 Cyrille Berger <cberger@cberger.net> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _KIS_PNG_EXPORT_H_ 0008 #define _KIS_PNG_EXPORT_H_ 0009 0010 #include "ui_kis_wdg_options_png.h" 0011 0012 #include <KisImportExportFilter.h> 0013 #include <kis_config_widget.h> 0014 0015 class KisWdgOptionsPNG : public KisConfigWidget, public Ui::KisWdgOptionsPNG 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 KisWdgOptionsPNG(QWidget *parent); 0021 0022 void setConfiguration(const KisPropertiesConfigurationSP config) override; 0023 KisPropertiesConfigurationSP configuration() const override; 0024 0025 private Q_SLOTS: 0026 void on_alpha_toggled(bool checked); 0027 void slotUseHDRChanged(bool value); 0028 }; 0029 0030 class KisPNGExport : public KisImportExportFilter 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 KisPNGExport(QObject *parent, const QVariantList &); 0037 ~KisPNGExport() override; 0038 public: 0039 KisImportExportErrorCode convert(KisDocument *document, QIODevice *io, KisPropertiesConfigurationSP configuration = 0) override; 0040 0041 KisPropertiesConfigurationSP defaultConfiguration(const QByteArray& from = "", const QByteArray& to = "") const override; 0042 KisConfigWidget *createConfigurationWidget(QWidget *parent, const QByteArray& from = "", const QByteArray& to = "") const override; 0043 void initializeCapabilities() override; 0044 }; 0045 0046 #endif