File indexing completed on 2025-01-05 03:51:42

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2009-08-09
0007  * Description : a tool to enhance image with local contrasts (as human eye does).
0008  *
0009  * SPDX-FileCopyrightText: 2009      by Julien Pontabry <julien dot pontabry at gmail dot com>
0010  * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H
0017 #define DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H
0018 
0019 // Local includes
0020 
0021 #include "editortool.h"
0022 
0023 using namespace Digikam;
0024 
0025 namespace DigikamEditorLocalContrastToolPlugin
0026 {
0027 
0028 class LocalContrastTool : public EditorToolThreaded
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033 
0034     explicit LocalContrastTool(QObject* const parent);
0035     ~LocalContrastTool()        override;
0036 
0037 private:
0038 
0039     void readSettings()         override;
0040     void writeSettings()        override;
0041     void preparePreview()       override;
0042     void prepareFinal()         override;
0043     void setPreviewImage()      override;
0044     void setFinalImage()        override;
0045 
0046 private Q_SLOTS:
0047 
0048     void slotSaveAsSettings()   override;
0049     void slotLoadSettings()     override;
0050     void slotResetSettings()    override;
0051 
0052 private:
0053 
0054     class Private;
0055     Private* const d;
0056 };
0057 
0058 } // namespace DigikamEditorLocalContrastToolPlugin
0059 
0060 #endif // DIGIKAM_EDITOR_LOCAL_CONTRAST_TOOL_H