digiKam
itempropertiestxtlabel.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 : 2008-11-05
7
* Description : simple text labels to display item
8
* properties meta infos
9
*
10
* Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
*
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
16
* any later version.
17
*
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* ============================================================ */
24
25
#ifndef DIGIKAM_ITEM_PROPERTIES_TXT_LABEL_H
26
#define DIGIKAM_ITEM_PROPERTIES_TXT_LABEL_H
27
28
// Qt includes
29
30
#include <QLabel>
31
#include <QString>
32
#include <QListWidget>
33
#include <QTextBrowser>
34
35
// Local includes
36
37
#include "
dexpanderbox.h
"
38
#include "
digikam_export.h
"
39
40
namespace
Digikam
41
{
42
43
class
DIGIKAM_EXPORT
DTextLabelName
:
public
DAdjustableLabel
44
{
45
Q_OBJECT
46
47
public
:
48
49
explicit
DTextLabelName
(
const
QString& name, QWidget*
const
parent =
nullptr
);
50
~
DTextLabelName
()
override
;
51
};
52
53
// -------------------------------------------------------------------
54
55
class
DIGIKAM_EXPORT
DTextLabelValue
:
public
DAdjustableLabel
56
{
57
Q_OBJECT
58
59
public
:
60
61
explicit
DTextLabelValue
(
const
QString&
value
, QWidget*
const
parent =
nullptr
);
62
~
DTextLabelValue
()
override
;
63
};
64
65
// -------------------------------------------------------------------
66
67
class
DIGIKAM_EXPORT
DTextBrowser
:
public
QTextBrowser
68
{
69
Q_OBJECT
70
71
public
:
72
73
explicit
DTextBrowser
(
const
QString& text, QWidget*
const
parent =
nullptr
);
74
~
DTextBrowser
()
override
;
75
76
void
setLinesNumber(
int
l);
77
};
78
79
// -------------------------------------------------------------------
80
81
class
DIGIKAM_EXPORT
DTextList
:
public
QListWidget
82
{
83
Q_OBJECT
84
85
public
:
86
87
explicit
DTextList
(
const
QStringList& list, QWidget*
const
parent =
nullptr
);
88
~
DTextList
()
override
;
89
90
void
setLinesNumber(
int
l);
91
};
92
93
}
// namespace Digikam
94
95
#endif
// DIGIKAM_ITEM_PROPERTIES_TXT_LABEL_H
Digikam::DAdjustableLabel
Definition:
dexpanderbox.h:66
Digikam::DTextBrowser
Definition:
itempropertiestxtlabel.h:68
Digikam::DTextLabelName
Definition:
itempropertiestxtlabel.h:44
Digikam::DTextLabelValue
Definition:
itempropertiestxtlabel.h:56
Digikam::DTextList
Definition:
itempropertiestxtlabel.h:82
dexpanderbox.h
digikam_export.h
value
qulonglong value
Definition:
itemviewutilities.cpp:592
Digikam
Definition:
datefolderview.cpp:43
core
libs
properties
itempropertiestxtlabel.h
Generated by
1.9.1