digiKam
bwsepiasettings.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-23
7  * Description : black and white settings view.
8  *
9  * Copyright (C) 2010-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_BW_SEPIA_SETTINGS_H
25 #define DIGIKAM_BW_SEPIA_SETTINGS_H
26 
27 // Local includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "bwsepiafilter.h"
35 #include "dimg.h"
36 
37 class KConfigGroup;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT BWSepiaSettings : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit BWSepiaSettings(QWidget* const parent, DImg* const img);
49  ~BWSepiaSettings() override;
50 
51  BWSepiaContainer defaultSettings() const;
52  void resetToDefault();
53 
54  BWSepiaContainer settings() const;
55  void setSettings(const BWSepiaContainer& settings);
56 
57  void readSettings(KConfigGroup& group);
58  void writeSettings(KConfigGroup& group);
59 
60  void loadSettings();
61  void saveAsSettings();
62 
63  void setScaleType(HistogramScale scale);
64 
65  void startPreviewFilters();
66 
67 Q_SIGNALS:
68 
70 
71 private Q_SLOTS:
72 
73  void slotFilterSelected();
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_BW_SEPIA_SETTINGS_H
Definition: bwsepiafilter.h:47
Definition: bwsepiasettings.h:43
Definition: dimg.h:62
Definition: datefolderview.cpp:43
HistogramScale
Definition: digikam_globals.h:145