digiKam
mixersettings.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 : 2009-02-18
7  * Description : Channel mixer 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_MIXER_SETTINGS_H
25 #define DIGIKAM_MIXER_SETTINGS_H
26 
27 // Local includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "mixerfilter.h"
35 
36 class KConfigGroup;
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_EXPORT MixerSettings : public QWidget
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit MixerSettings(QWidget* const parent);
48  ~MixerSettings() override;
49 
50  MixerContainer defaultSettings() const;
51  void resetToDefault();
52 
53  MixerContainer settings() const;
54  void setSettings(const MixerContainer& settings);
55 
56  void readSettings(KConfigGroup& group);
57  void writeSettings(KConfigGroup& group);
58 
59  void loadSettings();
60  void saveAsSettings();
61 
62  int currentChannel() const;
63 
64  void setMonochromeTipsVisible(bool b);
65 
66 Q_SIGNALS:
67 
71 
72 private:
73 
74  void updateSettingsWidgets();
75  void updateTotalPercents();
76 
77 private Q_SLOTS:
78 
79  void slotResetCurrentChannel();
80  void slotGainsChanged();
81  void slotMonochromeActived(bool);
82  void slotLuminosityChanged(bool);
83  void slotOutChannelChanged();
84 
85 private:
86 
87  class Private;
88  Private* const d;
89 };
90 
91 } // namespace Digikam
92 
93 #endif // DIGIKAM_MIXER_SETTINGS_H
Definition: mixerfilter.h:40
Definition: mixersettings.h:42
void signalMonochromeActived(bool)
Definition: datefolderview.cpp:43