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        : 2004-07-09
0007  * Description : a tool to blur an image
0008  *
0009  * SPDX-FileCopyrightText: 2004-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2009      by Andi Clemens <andi dot clemens at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_EDITOR_BLUR_TOOL_H
0017 #define DIGIKAM_EDITOR_BLUR_TOOL_H
0018 
0019 // Local includes
0020 
0021 #include "editortool.h"
0022 
0023 using namespace Digikam;
0024 
0025 namespace DigikamEditorBlurToolPlugin
0026 {
0027 
0028 class BlurTool : public EditorToolThreaded
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033 
0034     explicit BlurTool(QObject* const parent);
0035     ~BlurTool()                 override;
0036 
0037 private Q_SLOTS:
0038 
0039     void slotResetSettings()    override;
0040 
0041 private:
0042 
0043     void readSettings()         override;
0044     void writeSettings()        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 DigikamEditorBlurToolPlugin
0057 
0058 #endif // DIGIKAM_EDITOR_BLUR_TOOL_H