digiKam
hotpixelstool.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-03-27
7  * Description : a digiKam image tool for fixing dots produced by
8  * hot/stuck/dead pixels from a CCD.
9  *
10  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net>
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_HOT_PIXELS_TOOL_H
27 #define DIGIKAM_EDITOR_HOT_PIXELS_TOOL_H
28 
29 // Qt includes
30 
31 #include <QList>
32 #include <QPolygon>
33 
34 // Local includes
35 
36 #include "editortool.h"
37 #include "hotpixelprops.h"
38 
39 class QUrl;
40 
41 using namespace Digikam;
42 
44 {
45 
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit HotPixelsTool(QObject* const parent);
53  ~HotPixelsTool() override;
54 
55  static void registerFilter();
56 
57 private Q_SLOTS:
58 
59  void slotHotPixels(const QPolygon&);
60  void slotResetSettings() override;
61 
62 private:
63 
64  void readSettings() override;
65  void writeSettings() override;
66  void preparePreview() override;
67  void prepareFinal() override;
68  void setPreviewImage() override;
69  void setFinalImage() override;
70 
71 private:
72 
73  class Private;
74  Private* const d;
75 };
76 
77 } // namespace DigikamEditorHotPixelsToolPlugin
78 
79 #endif // DIGIKAM_EDITOR_HOT_PIXELS_TOOL_H
Definition: editortool.h:136
Definition: hotpixelstool.cpp:55
Definition: datefolderview.cpp:43