Debian Codegraph @

core/dplugins/bqm/enhance/restoration/restoration.h

raw
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2009-02-19
7 * Description : Restoration batch tool.
8 *
9 * SPDX-FileCopyrightText: 2009-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15 #pragma once
16
17 // Local includes
18
19 #include "batchtool.h"
20 #include "greycstorationfilter.h"
21
22 class QComboBox;
23
24 using namespace Digikam;
25
26 namespace DigikamBqmRestorationPlugin
27 {
28
29 class Restoration : public BatchTool
30 {
31 Q_OBJECT
32
33 public:
34
35 explicit Restoration(QObject* const parent = nullptr);
36 ~Restoration() override = default;
37
38 BatchToolSettings defaultSettings() override;
39
40 BatchTool* clone(QObject* const parent = nullptr) const override;
41
42 void registerSettingsWidget() override;
43
44 void cancel() override;
45
46 private:
47
48 bool toolOperations() override;
49
50 private Q_SLOTS:
51
52 void slotAssignSettings2Widget() override;
53 void slotSettingsChanged() override;
54
55 private:
56
57 enum RestorationPreset
58 {
59 ReduceUniformNoise = 0,
60 ReduceJPEGArtefacts,
61 ReduceTexturing
62 };
63
64 QComboBox* m_comboBox = nullptr;
65
66 GreycstorationFilter* m_cimgIface = nullptr;
67 };
68
69 } // namespace DigikamBqmRestorationPlugin