digiKam
redeyecorrectionsettings.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 : 2010-02-09
7  * Description : Red Eyes auto correction settings view.
8  *
9  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2016 by Omar Amin <Omar dot moh dot amin at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_RED_EYE_CORRECTION_SETTINGS_H
26 #define DIGIKAM_RED_EYE_CORRECTION_SETTINGS_H
27 
28 // Local includes
29 
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 #include "redeyecorrectionfilter.h"
36 
37 class KConfigGroup;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT RedEyeCorrectionSettings : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit RedEyeCorrectionSettings(QWidget* const parent = nullptr);
49  ~RedEyeCorrectionSettings() override;
50 
51  RedEyeCorrectionContainer defaultSettings() const;
52  void resetToDefault();
53 
54  RedEyeCorrectionContainer settings() const;
55  void setSettings(const RedEyeCorrectionContainer& settings);
56 
57  void readSettings(KConfigGroup& group);
58  void writeSettings(KConfigGroup& group);
59 
60 Q_SIGNALS:
61 
63 
64 private:
65 
66  class Private;
67  Private* const d;
68 };
69 
70 } // namespace Digikam
71 
72 #endif // DIGIKAM_RED_EYE_CORRECTION_SETTINGS_H
Definition: redeyecorrectioncontainer.h:42
Definition: redeyecorrectionsettings.h:43
Definition: datefolderview.cpp:43