digiKam
Loading...
Searching...
No Matches
hotpixelsettings.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 : 2020-08-05)
7 * Description : HotPixel settings view.
8 *
9 * SPDX-FileCopyrightText: 2020-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Local includes
18
19#include <QWidget>
20#include <QPolygon>
21#include <QList>
22#include <QUrl>
23
24// Local includes
25
26#include "digikam_export.h"
27#include "hotpixelcontainer.h"
28#include "hotpixelprops.h"
29
30class KConfigGroup;
31
32namespace Digikam
33{
34
35class DIGIKAM_EXPORT HotPixelSettings : public QWidget
36{
37 Q_OBJECT
38
39public:
40
41 explicit HotPixelSettings(QWidget* const parent);
42 ~HotPixelSettings() override;
43
44 HotPixelContainer defaultSettings() const;
45 void resetToDefault();
46
47 HotPixelContainer settings() const;
48 void setSettings(const HotPixelContainer& settings);
49
50 void readSettings(const KConfigGroup& group);
51 void writeSettings(KConfigGroup& group);
52
53 QString configGroupName() const;
54
55Q_SIGNALS:
56
58 void signalHotPixels(const QPolygon& pointList);
59
60private Q_SLOTS:
61
62 void slotAddBlackFrame();
63 void slotBlackFrameSelected(const QList<HotPixelProps>& hpList, const QUrl& url);
64 void slotBlackFrameRemoved(const QUrl& url);
65 void slotClearBlackFrameList();
66
67private:
68
69 void loadBlackFrame(const QUrl& url, bool selected);
70
71private:
72
73 class Private;
74 Private* const d = nullptr;
75};
76
77} // namespace Digikam
Definition hotpixelcontainer.h:34
Definition hotpixelsettings.h:36
void signalHotPixels(const QPolygon &pointList)
Definition datefolderview.cpp:34