| 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 |
* SPDX-FileCopyrightText: 2005-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 11 |
* SPDX-FileCopyrightText: 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net> |
| 12 |
* |
| 13 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 14 |
* |
| 15 |
* ============================================================ */ |
| 16 |
|
| 17 |
#pragma once |
| 18 |
|
| 19 |
// Qt includes |
| 20 |
|
| 21 |
#include <QList> |
| 22 |
#include <QPolygon> |
| 23 |
|
| 24 |
// Local includes |
| 25 |
|
| 26 |
#include "editortool.h" |
| 27 |
#include "hotpixelprops.h" |
| 28 |
|
| 29 |
class QUrl; |
| 30 |
|
| 31 |
using namespace Digikam; |
| 32 |
|
| 33 |
namespace DigikamEditorHotPixelsToolPlugin |
| 34 |
{ |
| 35 |
|
| 36 |
class HotPixelsTool : public Digikam::EditorToolThreaded |
| 37 |
{ |
| 38 |
Q_OBJECT |
| 39 |
|
| 40 |
public: |
| 41 |
|
| 42 |
explicit HotPixelsTool(QObject* const parent); |
| 43 |
~HotPixelsTool() override; |
| 44 |
|
| 45 |
static void registerFilter(); |
| 46 |
|
| 47 |
private Q_SLOTS: |
| 48 |
|
| 49 |
void slotHotPixels(const QPolygon&); |
| 50 |
void slotResetSettings() override; |
| 51 |
|
| 52 |
private: |
| 53 |
|
| 54 |
void readSettings() override; |
| 55 |
void writeSettings() override; |
| 56 |
void preparePreview() override; |
| 57 |
void prepareFinal() override; |
| 58 |
void setPreviewImage() override; |
| 59 |
void setFinalImage() override; |
| 60 |
|
| 61 |
private: |
| 62 |
|
| 63 |
class Private; |
| 64 |
Private* const d = nullptr; |
| 65 |
}; |
| 66 |
|
| 67 |
} // namespace DigikamEditorHotPixelsToolPlugin |