digiKam
autocorrectiontool.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 : 2005-05-31
7  * Description : Auto-Color correction tool.
8  *
9  * Copyright (C) 2005-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_EDITOR_AUTO_CORRECTION_TOOL_H
25 #define DIGIKAM_EDITOR_AUTO_CORRECTION_TOOL_H
26 
27 // Qt includes
28 
29 #include <QPixmap>
30 
31 // Local includes
32 
33 #include "editortool.h"
34 #include "dimg.h"
35 
36 using namespace Digikam;
37 
39 {
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit AutoCorrectionTool(QObject* const parent);
48  ~AutoCorrectionTool() override;
49 
50 private Q_SLOTS:
51 
52  void slotInit() override;
53  void slotResetSettings() override;
54 
55 private:
56 
57  void writeSettings() override;
58  void readSettings() override;
59  void preparePreview() override;
60  void prepareFinal() override;
61  void setPreviewImage() override;
62  void setFinalImage() override;
63 
64  void autoCorrection(DImg* const img, DImg* const ref, int type);
65 
66 private:
67 
68  class Private;
69  Private* const d;
70 };
71 
72 } // namespace DigikamEditorAutoCorrectionToolPlugin
73 
74 #endif // DIGIKAM_EDITOR_AUTO_CORRECTION_TOOL_H
Definition: dimg.h:62
Definition: editortool.h:136
Definition: autocorrectiontool.cpp:52
Definition: datefolderview.cpp:43