digiKam
restoration.h
Go to the documentation of this file.
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  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_BQM_RESTORATION_H
25 #define DIGIKAM_BQM_RESTORATION_H
26 
27 // Local includes
28 
29 #include "batchtool.h"
30 #include "greycstorationfilter.h"
31 
32 class QComboBox;
33 
34 using namespace Digikam;
35 
36 namespace Digikam
37 {
38 
39 class Restoration : public BatchTool
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit Restoration(QObject* const parent = nullptr);
46  ~Restoration() override;
47 
49 
50  BatchTool* clone(QObject* const parent = nullptr) const override;
51 
52  void registerSettingsWidget() override;
53 
54  void cancel() override;
55 
56 private:
57 
58  bool toolOperations() override;
59 
60 private Q_SLOTS:
61 
62  void slotAssignSettings2Widget() override;
63  void slotSettingsChanged() override;
64 
65 private:
66 
67  enum RestorationPreset
68  {
69  ReduceUniformNoise = 0,
70  ReduceJPEGArtefacts,
71  ReduceTexturing
72  };
73 
74  QComboBox* m_comboBox;
75 
76  GreycstorationFilter* m_cimgIface;
77 };
78 
79 } // namespace Digikam
80 
81 #endif // DIGIKAM_BQM_RESTORATION_H
Definition: batchtool.h:56
Definition: greycstorationfilter.h:149
Definition: restoration.h:40
void cancel() override
Definition: restoration.cpp:167
void registerSettingsWidget() override
Definition: restoration.cpp:62
Restoration(QObject *const parent=nullptr)
Definition: restoration.cpp:46
BatchToolSettings defaultSettings() override
Definition: restoration.cpp:94
BatchTool * clone(QObject *const parent=nullptr) const override
Definition: restoration.cpp:57
~Restoration() override
Definition: restoration.cpp:53
Definition: datefolderview.cpp:43
QMap< QString, QVariant > BatchToolSettings
Definition: batchtool.h:48