digiKam
lensfunsettings.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * Date : 2008-02-10
4  * Description : a tool to fix automatically camera lens aberrations
5  *
6  * Copyright (C) 2008 by Adrian Schroeter <adrian at suse dot de>
7  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
8  *
9  * This program is free software; you can redistribute it
10  * and/or modify it under the terms of the GNU General
11  * Public License as published by the Free Software Foundation;
12  * either version 2, or (at your option)
13  * any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * ============================================================ */
21 
22 #ifndef DIGIKAM_LENS_FUN_SETTINGS_H
23 #define DIGIKAM_LENS_FUN_SETTINGS_H
24 
25 // Qt includes
26 
27 #include <QWidget>
28 
29 // Local includes
30 
31 #include "lensfunfilter.h"
32 #include "digikam_export.h"
33 
34 class KConfigGroup;
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT LensFunSettings : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit LensFunSettings(QWidget* const parent = nullptr);
46  ~LensFunSettings() override;
47 
48  void setEnabledCCA(bool b);
49  void setEnabledVig(bool b);
50  void setEnabledDist(bool b);
51  void setEnabledGeom(bool b);
52 
53  LensFunContainer defaultSettings() const;
54  LensFunContainer settings() const;
55  void resetToDefault();
56 
57  void assignFilterSettings(LensFunContainer& prm);
58  void setFilterSettings(const LensFunContainer& settings);
59 
60  void readSettings(KConfigGroup& group);
61  void writeSettings(KConfigGroup& group);
62 
63 Q_SIGNALS:
64 
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace Digikam
74 
75 #endif // DIGIKAM_LENS_FUN_SETTINGS_H
Definition: lensfunfilter.h:35
Definition: lensfunsettings.h:40
Definition: datefolderview.cpp:43