digiKam
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  * Copyright (C) 2020-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_HOTPIXEL_SETTINGS_H
25 #define DIGIKAM_HOTPIXEL_SETTINGS_H
26 
27 // Local includes
28 
29 #include <QWidget>
30 #include <QPolygon>
31 #include <QList>
32 #include <QUrl>
33 
34 // Local includes
35 
36 #include "digikam_export.h"
37 #include "hotpixelcontainer.h"
38 #include "hotpixelprops.h"
39 
40 class KConfigGroup;
41 
42 namespace Digikam
43 {
44 
45 class DIGIKAM_EXPORT HotPixelSettings : public QWidget
46 {
47  Q_OBJECT
48 
49 public:
50 
51  explicit HotPixelSettings(QWidget* const parent);
52  ~HotPixelSettings() override;
53 
54  HotPixelContainer defaultSettings() const;
55  void resetToDefault();
56 
57  HotPixelContainer settings() const;
58  void setSettings(const HotPixelContainer& settings);
59 
60  void readSettings(KConfigGroup& group);
61  void writeSettings(KConfigGroup& group);
62 
63  QString configGroupName() const;
64 
65 Q_SIGNALS:
66 
68  void signalHotPixels(const QPolygon& pointList);
69 
70 private Q_SLOTS:
71 
72  void slotAddBlackFrame();
73  void slotBlackFrameSelected(const QList<HotPixelProps>& hpList, const QUrl& url);
74  void slotBlackFrameRemoved(const QUrl& url);
75  void slotClearBlackFrameList();
76 
77 private:
78 
79  void loadBlackFrame(const QUrl& url, bool selected);
80 
81 private:
82 
83  class Private;
84  Private* const d;
85 };
86 
87 } // namespace Digikam
88 
89 #endif // DIGIKAM_HOTPIXEL_SETTINGS_H
Definition: hotpixelcontainer.h:44
Definition: hotpixelsettings.h:46
void signalHotPixels(const QPolygon &pointList)
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43