digiKam
Loading...
Searching...
No Matches
itempropertiescolorstab.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 : 2004-11-17
7 * Description : a tab to display item colors information
8 *
9 * SPDX-FileCopyrightText: 2004-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 <QByteArray>
21#include <QTabWidget>
22#include <QUrl>
23#include <QRect>
24
25// Local includes
26
27#include "dimg.h"
28#include "digikam_export.h"
29
30class KConfigGroup;
31
32namespace Digikam
33{
34
35class DImg;
36class LoadingDescription;
37
38class DIGIKAM_EXPORT ItemPropertiesColorsTab : public QTabWidget
39{
40 Q_OBJECT
41
42public:
43
44 explicit ItemPropertiesColorsTab(QWidget* const parent);
45 ~ItemPropertiesColorsTab() override;
46
47 void setData(const QUrl& url=QUrl(),
48 const QRect& selectionArea = QRect(),
49 DImg* const img=nullptr);
50
51 void setSelection(const QRect& selectionArea);
52
53 void readSettings(const KConfigGroup& group);
54 void writeSettings(KConfigGroup& group);
55
56private:
57
58 void loadImageFromUrl(const QUrl& url);
59 void updateInformation();
60 void updateStatistics();
61 void getICCData();
62
63private Q_SLOTS:
64
65 void slotRefreshOptions();
66 void slotHistogramComputationFailed();
67 void slotChannelChanged();
68 void slotScaleChanged();
69 void slotRenderingChanged(int rendering);
70 void slotMinValueChanged(int);
71 void slotMaxValueChanged(int);
72
73 void slotUpdateInterval(int min, int max);
74 void slotUpdateIntervalFromRGB(int min, int max);
75 void slotUpdateIntervRange(int range);
76
77 void slotLoadImageFromUrlComplete(const LoadingDescription& loadingDescription, const DImg& img);
78 void slotMoreCompleteLoadingAvailable(const LoadingDescription& oldLoadingDescription,
79 const LoadingDescription& newLoadingDescription);
80
81private:
82
83 class Private;
84 Private* const d = nullptr;
85};
86
87} // namespace Digikam
Definition dimg.h:52
Definition itempropertiescolorstab.h:39
Definition loadingdescription.h:35
Definition datefolderview.cpp:34