File indexing completed on 2024-12-22 04:15:39

0001 /*
0002  *  SPDX-FileCopyrightText: 2010 Cyrille Berger <cberger@cberger.net>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef _EXR_EXPORT_H_
0008 #define _EXR_EXPORT_H_
0009 
0010 #include <QVariant>
0011 
0012 #include <KisImportExportFilter.h>
0013 #include <kis_config_widget.h>
0014 #include "ui_exr_export_widget.h"
0015 
0016 class KisWdgOptionsExr : public KisConfigWidget, public Ui::ExrExportWidget
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     KisWdgOptionsExr(QWidget *parent)
0022         : KisConfigWidget(parent)
0023     {
0024         setupUi(this);
0025     }
0026 
0027     void setConfiguration(const KisPropertiesConfigurationSP  cfg) override;
0028     KisPropertiesConfigurationSP configuration() const override;
0029 };
0030 
0031 
0032 class EXRExport : public KisImportExportFilter
0033 {
0034     Q_OBJECT
0035 public:
0036     EXRExport(QObject *parent, const QVariantList &);
0037     ~EXRExport() override;
0038     bool supportsIO() const override { return false; }
0039     KisImportExportErrorCode convert(KisDocument *document, QIODevice *io,  KisPropertiesConfigurationSP configuration = 0) override;
0040     KisPropertiesConfigurationSP defaultConfiguration(const QByteArray& from = "", const QByteArray& to = "") const override;
0041     KisConfigWidget *createConfigurationWidget(QWidget *parent, const QByteArray& from = "", const QByteArray& to = "") const override;
0042     void initializeCapabilities() override;
0043 
0044 };
0045 
0046 #endif