File indexing completed on 2025-01-19 03:51:16

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2004-12-23
0007  * Description : a tool to shear an image
0008  *
0009  * SPDX-FileCopyrightText: 2004-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_EDITOR_SHEAR_TOOL_H
0016 #define DIGIKAM_EDITOR_SHEAR_TOOL_H
0017 
0018 // Local includes
0019 
0020 #include "editortool.h"
0021 
0022 using namespace Digikam;
0023 
0024 namespace DigikamEditorShearToolPlugin
0025 {
0026 
0027 class ShearTool : public EditorToolThreaded
0028 {
0029     Q_OBJECT
0030 
0031 public:
0032 
0033     explicit ShearTool(QObject* const parent);
0034     ~ShearTool()                override;
0035 
0036 private Q_SLOTS:
0037 
0038     void slotResetSettings()    override;
0039     void slotColorGuideChanged();
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 DigikamEditorShearToolPlugin
0057 
0058 #endif // DIGIKAM_EDITOR_SHEAR_TOOL_H