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

0001 /* ============================================================
0002  *
0003  * Date        : 2008-02-10
0004  * Description : a tool to fix automatically camera lens aberrations
0005  *
0006  * SPDX-FileCopyrightText: 2008      by Adrian Schroeter <adrian at suse dot de>
0007  * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0008  *
0009  * SPDX-License-Identifier: GPL-2.0-or-later
0010  *
0011  * ============================================================ */
0012 
0013 #ifndef DIGIKAM_EDITOR_LENS_AUTO_FIX_TOOL_H
0014 #define DIGIKAM_EDITOR_LENS_AUTO_FIX_TOOL_H
0015 
0016 // Local includes
0017 
0018 #include "editortool.h"
0019 
0020 using namespace Digikam;
0021 
0022 namespace DigikamEditorLensAutoFixToolPlugin
0023 {
0024 
0025 class LensAutoFixTool : public EditorToolThreaded
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit LensAutoFixTool(QObject* const parent);
0032     ~LensAutoFixTool()          override;
0033 
0034 private Q_SLOTS:
0035 
0036     void slotLensChanged();
0037     void slotResetSettings()    override;
0038 
0039 private:
0040 
0041     void readSettings()         override;
0042     void writeSettings()        override;
0043     void preparePreview()       override;
0044     void prepareFinal()         override;
0045     void setPreviewImage()      override;
0046     void setFinalImage()        override;
0047 
0048 private:
0049 
0050     class Private;
0051     Private* const d;
0052 };
0053 
0054 } // namespace DigikamEditorLensAutoFixToolPlugin
0055 
0056 #endif // DIGIKAM_EDITOR_LENS_AUTO_FIX_TOOL_H