digiKam
Loading...
Searching...
No Matches
iccprofilewidget.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 : 2006-06-23
7 * Description : a tab widget to display ICC profile infos
8 *
9 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QWidget>
20#include <QString>
21
22// Local includes
23
24#include "metadatawidget.h"
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class IccProfile;
31
32class DIGIKAM_EXPORT ICCProfileWidget : public MetadataWidget
33{
34 Q_OBJECT
35
36public:
37
38 explicit ICCProfileWidget(QWidget* const parent, int w = 256, int h = 256);
39 ~ICCProfileWidget() override;
40
41 bool loadFromURL(const QUrl& url) override;
42 bool loadFromProfileData(const QString& fileName,
43 const QByteArray& data);
44 bool loadProfile(const QString& fileName,
45 const IccProfile& data);
46
47 QString getTagDescription(const QString& key) override;
48 QString getTagTitle(const QString& key) override;
49
50 QString getMetadataTitle() const override;
51
52 void setLoadingFailed();
53 void setDataLoading();
54 void setUncalibratedColor();
55
56 bool setProfile(const IccProfile& profile);
57 IccProfile getProfile() const;
58
59protected Q_SLOTS:
60
61 void slotSaveMetadataToFile() override;
62
63private:
64
65 bool decodeMetadata() override;
66 void buildView() override;
67
68private:
69
70 class Private;
71 Private* const d = nullptr;
72};
73
74} // namespace Digikam
Definition iccprofilewidget.h:33
Definition iccprofile.h:33
Definition metadatawidget.h:34
Definition datefolderview.cpp:34