File indexing completed on 2025-01-19 03:51:02
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2022-04-04 0007 * Description : WEBP image export settings widget. 0008 * 0009 * SPDX-FileCopyrightText: 2022 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_DIMG_WEBP_EXPORT_SETTINGS_H 0016 #define DIGIKAM_DIMG_WEBP_EXPORT_SETTINGS_H 0017 0018 // Local includes 0019 0020 #include "dimgloadersettings.h" 0021 0022 namespace Digikam 0023 { 0024 0025 class DImgWEBPExportSettings : public DImgLoaderSettings 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 0031 explicit DImgWEBPExportSettings(QWidget* const parent = nullptr); 0032 ~DImgWEBPExportSettings() override; 0033 0034 /** 0035 * This widget manage 2 parameters for the image encoding: 0036 * "quality" as integer [1 - 99]. 0037 * "lossless" as boolean. 0038 */ 0039 void setSettings(const DImgLoaderPrms& set) override; 0040 DImgLoaderPrms settings() const override; 0041 0042 private Q_SLOTS: 0043 0044 void slotToggleWEBPLossLess(bool); 0045 0046 private: 0047 0048 class Private; 0049 Private* const d; 0050 }; 0051 0052 } // namespace Digikam 0053 0054 #endif // DIGIKAM_DIMG_WEBP_EXPORT_SETTINGS_H