digiKam
localcontrasttool.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-08-09
7  * Description : a tool to enhance image with local contrasts (as human eye does).
8  *
9  * Copyright (C) 2009 by Julien Pontabry <julien dot pontabry at gmail dot com>
10  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H
26 #define DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H
27 
28 // Local includes
29 
30 #include "editortool.h"
31 
32 using namespace Digikam;
33 
35 {
36 
38 {
39  Q_OBJECT
40 
41 public:
42 
43  explicit LocalContrastTool(QObject* const parent);
44  ~LocalContrastTool() override;
45 
46 private:
47 
48  void readSettings() override;
49  void writeSettings() override;
50  void preparePreview() override;
51  void prepareFinal() override;
52  void setPreviewImage() override;
53  void setFinalImage() override;
54 
55 private Q_SLOTS:
56 
57  void slotSaveAsSettings() override;
58  void slotLoadSettings() override;
59  void slotResetSettings() override;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace DigikamEditorLocalContrastToolPlugin
68 
69 #endif // DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H
Definition: editortool.h:136
Definition: localcontrasttool.cpp:56
Definition: datefolderview.cpp:43