File indexing completed on 2025-01-05 03:51:40
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2005-05-25 0007 * Description : a digiKam image tool to reduce 0008 * vignetting on an image. 0009 * 0010 * SPDX-FileCopyrightText: 2005-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_ANTI_VIGNETTING_TOOL_H 0017 #define DIGIKAM_EDITOR_ANTI_VIGNETTING_TOOL_H 0018 0019 // Local includes 0020 0021 #include "editortool.h" 0022 0023 using namespace Digikam; 0024 0025 namespace DigikamEditorAntivignettingToolPlugin 0026 { 0027 0028 class AntiVignettingTool : public EditorToolThreaded 0029 { 0030 Q_OBJECT 0031 0032 public: 0033 0034 explicit AntiVignettingTool(QObject* const parent); 0035 ~AntiVignettingTool() override; 0036 0037 private Q_SLOTS: 0038 0039 void slotResetSettings() override; 0040 0041 private: 0042 0043 void writeSettings() override; 0044 void readSettings() override; 0045 void preparePreview() override; 0046 void prepareFinal() override; 0047 void setPreviewImage() override; 0048 void setFinalImage() override; 0049 0050 private: 0051 0052 class Private; 0053 Private* const d; 0054 }; 0055 0056 } // namespace DigikamEditorAntivignettingToolPlugin 0057 0058 #endif // DIGIKAM_EDITOR_ANTI_VIGNETTING_TOOL_H