digiKam
filmgraintool.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 : 2004-08-26
7  * Description : a digiKam image editor tool for add film
8  * grain on an image.
9  *
10  * Copyright (C) 2004-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2006-2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_EDITOR_FILM_GRAIN_TOOL_H
27 #define DIGIKAM_EDITOR_FILM_GRAIN_TOOL_H
28 
29 // Local includes
30 
31 #include "editortool.h"
32 
33 using namespace Digikam;
34 
36 {
37 
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit FilmGrainTool(QObject* const parent);
45  ~FilmGrainTool() override;
46 
47 private Q_SLOTS:
48 
49  void slotResetSettings() override;
50 
51 private:
52 
53  void readSettings() override;
54  void writeSettings() override;
55  void preparePreview() override;
56  void prepareFinal() override;
57  void setPreviewImage() override;
58  void setFinalImage() override;
59  void renderingFinished() override;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace DigikamEditorFilmGrainToolPlugin
68 
69 #endif // DIGIKAM_EDITOR_FILM_GRAIN_TOOL_H
Definition: editortool.h:136
Definition: filmgraintool.cpp:52
Definition: datefolderview.cpp:43