digiKam
Loading...
Searching...
No Matches
setupicc.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 : 2005-11-24
7 * Description : Color management setup tab.
8 *
9 * SPDX-FileCopyrightText: 2005-2007 by F.J. Cruz <fj dot cruz at supercable dot es>
10 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 * SPDX-FileCopyrightText: 2009-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Qt includes
20
21#include <QScrollArea>
22#include <QMap>
23#include <QDir>
24#include <QUrl>
25
26// Local includes
27
28#include "digikam_export.h"
29
30class QDialogButtonBox;
31
32namespace Digikam
33{
34
35class IccProfile;
36
37class DIGIKAM_EXPORT SetupICC : public QScrollArea
38{
39 Q_OBJECT
40
41public:
42
43 enum ICCTab
44 {
45 Behavior = 0,
47 Advanced
48 };
49
50public:
51
52 explicit SetupICC(QDialogButtonBox* const dlgBtnBox, QWidget* const parent = nullptr);
53 ~SetupICC() override;
54
55 void applySettings();
56
57 void setActiveTab(ICCTab tab);
58 ICCTab activeTab() const;
59
60 static bool iccRepositoryIsValid();
61
62private:
63
64 void readSettings(bool restore = false);
65 void fillCombos(bool report);
66 void setWidgetsEnabled(bool enabled);
67 void profileInfo(const IccProfile&);
68
69private Q_SLOTS:
70
71 void slotToggledEnabled();
72 void slotUrlChanged();
73 void slotUrlTextChanged();
74 void slotClickedIn();
75 void slotClickedWork();
76 void slotClickedMonitor();
77 void slotClickedProof();
78 void slotShowDefaultSearchPaths();
79 void slotMissingToggled(bool);
80
81private:
82
83 class Private;
84 Private* const d = nullptr;
85};
86
87} // namespace Digikam
Definition iccprofile.h:33
Definition setupicc.h:38
ICCTab
Definition setupicc.h:44
@ Profiles
Definition setupicc.h:46
Definition datefolderview.cpp:34