File indexing completed on 2025-01-19 03:50:56
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-02-19 0007 * Description : Restoration batch tool. 0008 * 0009 * SPDX-FileCopyrightText: 2009-2024 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_BQM_RESTORATION_H 0016 #define DIGIKAM_BQM_RESTORATION_H 0017 0018 // Local includes 0019 0020 #include "batchtool.h" 0021 #include "greycstorationfilter.h" 0022 0023 class QComboBox; 0024 0025 using namespace Digikam; 0026 0027 namespace DigikamBqmRestorationPlugin 0028 { 0029 0030 class Restoration : public BatchTool 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit Restoration(QObject* const parent = nullptr); 0037 ~Restoration() override; 0038 0039 BatchToolSettings defaultSettings() override; 0040 0041 BatchTool* clone(QObject* const parent = nullptr) const override; 0042 0043 void registerSettingsWidget() override; 0044 0045 void cancel() override; 0046 0047 private: 0048 0049 bool toolOperations() override; 0050 0051 private Q_SLOTS: 0052 0053 void slotAssignSettings2Widget() override; 0054 void slotSettingsChanged() override; 0055 0056 private: 0057 0058 enum RestorationPreset 0059 { 0060 ReduceUniformNoise = 0, 0061 ReduceJPEGArtefacts, 0062 ReduceTexturing 0063 }; 0064 0065 QComboBox* m_comboBox; 0066 0067 GreycstorationFilter* m_cimgIface; 0068 }; 0069 0070 } // namespace DigikamBqmRestorationPlugin 0071 0072 #endif // DIGIKAM_BQM_RESTORATION_H