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

0001 /*
0002  * SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef DLG_JPEGXL_EXPORT_H
0008 #define DLG_JPEGXL_EXPORT_H
0009 
0010 #include <QVariant>
0011 
0012 #include <KisImportExportFilter.h>
0013 #include <kis_config_widget.h>
0014 #include <kis_meta_data_filter_registry_model.h>
0015 
0016 #include "ui_kis_wdg_options_jpegxl.h"
0017 
0018 class KisWdgOptionsJPEGXL : public KisConfigWidget, public Ui::KisWdgOptionsJPEGXL
0019 {
0020     Q_OBJECT
0021 
0022 public:
0023     KisWdgOptionsJPEGXL(QWidget *parent);
0024 
0025     void setConfiguration(const KisPropertiesConfigurationSP cfg) override;
0026     KisPropertiesConfigurationSP configuration() const override;
0027 
0028 private Q_SLOTS:
0029     // Disable all HLG options when the index is not for an HLG option.
0030     void toggleExtraHDROptions(int index);
0031     // Disable parameters unless its corresponding encoder is explicitly selected.
0032     void toggleModularTabs(int index);
0033 
0034 private:
0035     KisMetaData::FilterRegistryModel m_filterRegistryModel;
0036 };
0037 
0038 #endif // DLG_JPEGXL_EXPORT_H