digiKam
distortionfxtool.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2005-02-11
7  * Description : a tool to apply Distortion FX to an image.
8  *
9  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2006-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11  *
12  * Original Distortion algorithms copyrighted 2004-2005 by
13  * Pieter Z. Voloshyn <pieter dot voloshyn at gmail dot com>.
14  *
15  * This program is free software; you can redistribute it
16  * and/or modify it under the terms of the GNU General
17  * Public License as published by the Free Software Foundation;
18  * either version 2, or (at your option)
19  * any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * ============================================================ */
27 
28 #ifndef DIGIKAM_EDITOR_DISTORTION_FX_TOOL_H
29 #define DIGIKAM_EDITOR_DISTORTION_FX_TOOL_H
30 
31 // Local includes
32 
33 #include "editortool.h"
34 
35 using namespace Digikam;
36 
38 {
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit DistortionFXTool(QObject* const parent);
47  ~DistortionFXTool() override;
48 
49 private Q_SLOTS:
50 
51  void slotEffectTypeChanged(int type);
52  void slotResetSettings() override;
53 
54 private:
55 
56  void readSettings() override;
57  void writeSettings() override;
58  void preparePreview() override;
59  void prepareFinal() override;
60  void setPreviewImage() override;
61  void setFinalImage() override;
62  void renderingFinished() override;
63  void blockWidgetSignals(bool b);
64 
65 private:
66 
67  class Private;
68  Private* const d;
69 };
70 
71 } // namespace DigikamEditorDistortionFxToolPlugin
72 
73 #endif // DIGIKAM_EDITOR_DISTORTION_FX_TOOL_H
Definition: editortool.h:136
Definition: distortionfxtool.cpp:56
Definition: datefolderview.cpp:43