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 : 2004-06-06 0007 * Description : Red eyes correction tool for image editor 0008 * 0009 * SPDX-FileCopyrightText: 2004-2005 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2004-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_RED_EYE_TOOL_H 0017 #define DIGIKAM_EDITOR_RED_EYE_TOOL_H 0018 0019 // Local includes 0020 0021 #include "editortool.h" 0022 #include "dimg.h" 0023 0024 using namespace Digikam; 0025 0026 namespace DigikamEditorRedEyeToolPlugin 0027 { 0028 0029 class RedEyeTool : public EditorToolThreaded 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 0035 explicit RedEyeTool(QObject* const parent); 0036 ~RedEyeTool() override; 0037 0038 private Q_SLOTS: 0039 0040 void slotResetSettings() override; 0041 0042 private: 0043 0044 void readSettings() override; 0045 void writeSettings() override; 0046 void preparePreview() override; 0047 void prepareFinal() override; 0048 void setPreviewImage() override; 0049 void setFinalImage() override; 0050 0051 private: 0052 0053 class Private; 0054 Private* const d; 0055 }; 0056 0057 } // namespace DigikamEditorRedEyeToolPlugin 0058 0059 #endif // DIGIKAM_EDITOR_RED_EYE_TOOL_H