digiKam
iccprofilesettings.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-17
7  * Description : Icc profile 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_ICC_PROFILE_SETTINGS_H
25 #define DIGIKAM_ICC_PROFILE_SETTINGS_H
26 
27 // Local includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "dlayoutbox.h"
34 #include "digikam_export.h"
35 #include "iccprofile.h"
36 
37 class KConfigGroup;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT IccProfilesSettings : public DVBox
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit IccProfilesSettings(QWidget* const parent = nullptr);
49  ~IccProfilesSettings() override;
50 
51  IccProfile defaultProfile() const;
52  void resetToDefault();
53 
54  IccProfile currentProfile() const;
55  void setCurrentProfile(const IccProfile& prof);
56 
57  void readSettings(KConfigGroup& group);
58  void writeSettings(KConfigGroup& group);
59 
60  static QStringList favoriteProfiles(KConfigGroup& group);
61 
62 Q_SIGNALS:
63 
65 
66 private Q_SLOTS:
67 
68  void slotNewProfInfo();
69  void slotProfileChanged();
70 
71 private:
72 
73  class Private;
74  Private* const d;
75 };
76 
77 } // namespace Digikam
78 
79 #endif // DIGIKAM_ICC_PROFILE_SETTINGS_H
Definition: dlayoutbox.h:75
Definition: iccprofile.h:43
Definition: iccprofilesettings.h:43
Definition: datefolderview.cpp:43