digiKam
localcontrastsettings.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-03-09
7  * Description : Local Contrast settings view.
8  * LDR ToneMapper zynaddsubfx.sourceforge.net/other/tonemapping
9  *
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles 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_LOCAL_CONTRAST_SETTINGS_H
26 #define DIGIKAM_LOCAL_CONTRAST_SETTINGS_H
27 
28 // Local includes
29 
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 #include "localcontrastcontainer.h"
36 
37 class KConfigGroup;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT LocalContrastSettings : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit LocalContrastSettings(QWidget* const parent);
49  ~LocalContrastSettings() override;
50 
51  LocalContrastContainer defaultSettings() const;
52  void resetToDefault();
53 
54  LocalContrastContainer settings() const;
55  void setSettings(const LocalContrastContainer& settings);
56 
57  void readSettings(KConfigGroup& group);
58  void writeSettings(KConfigGroup& group);
59 
60  void loadSettings();
61  void saveAsSettings();
62 
63 Q_SIGNALS:
64 
66 
67 private Q_SLOTS:
68 
69  void slotStageEnabled(int, bool);
70 
71 private:
72 
73  class Private;
74  Private* const d;
75 };
76 
77 } // namespace Digikam
78 
79 #endif // DIGIKAM_LOCAL_CONTRAST_SETTINGS_H
Definition: localcontrastcontainer.h:39
Definition: localcontrastsettings.h:43
Definition: datefolderview.cpp:43