-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbytearraycolumnview.cpp
147 lines (123 loc) · 3.56 KB
/
bytearraycolumnview.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
This file is part of the Okteta Gui library, made within the KDE community.
SPDX-FileCopyrightText: 2003, 2007-2010 Friedrich W. H. Kossebau <[email protected]>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include "bytearraycolumnview.hpp"
#include "bytearraycolumnview_p.hpp"
namespace Okteta {
ByteArrayColumnView::ByteArrayColumnView(QWidget* parent)
: AbstractByteArrayView(std::make_unique<ByteArrayColumnViewPrivate>(this), parent)
{
Q_D(ByteArrayColumnView);
d->init();
}
ByteArrayColumnView::~ByteArrayColumnView() = default;
PixelX ByteArrayColumnView::byteSpacingWidth() const
{
Q_D(const ByteArrayColumnView);
return d->byteSpacingWidth();
}
int ByteArrayColumnView::noOfGroupedBytes() const
{
Q_D(const ByteArrayColumnView);
return d->noOfGroupedBytes();
}
PixelX ByteArrayColumnView::groupSpacingWidth() const
{
Q_D(const ByteArrayColumnView);
return d->groupSpacingWidth();
}
PixelX ByteArrayColumnView::binaryGapWidth() const
{
Q_D(const ByteArrayColumnView);
return d->binaryGapWidth();
}
bool ByteArrayColumnView::showsNonprinting() const
{
Q_D(const ByteArrayColumnView);
return d->showsNonprinting();
}
QChar ByteArrayColumnView::substituteChar() const
{
Q_D(const ByteArrayColumnView);
return d->substituteChar();
}
QChar ByteArrayColumnView::undefinedChar() const
{
Q_D(const ByteArrayColumnView);
return d->undefinedChar();
}
bool ByteArrayColumnView::isByteTypeColored() const
{
Q_D(const ByteArrayColumnView);
return d->isByteTypeColored();
}
void ByteArrayColumnView::setBufferSpacing(/*PixelX*/ int byteSpacing, int noOfGroupedBytes, /*PixelX*/ int groupSpacing)
{
Q_D(ByteArrayColumnView);
d->setBufferSpacing(byteSpacing, noOfGroupedBytes, groupSpacing);
}
void ByteArrayColumnView::setValueCoding(ValueCoding valueCoding)
{
Q_D(ByteArrayColumnView);
d->setValueCoding(valueCoding);
}
void ByteArrayColumnView::setByteSpacingWidth(int /*PixelX*/ byteSpacingWidth)
{
Q_D(ByteArrayColumnView);
d->setByteSpacingWidth(byteSpacingWidth);
}
void ByteArrayColumnView::setNoOfGroupedBytes(int noOfGroupedBytes)
{
Q_D(ByteArrayColumnView);
d->setNoOfGroupedBytes(noOfGroupedBytes);
}
void ByteArrayColumnView::setGroupSpacingWidth(int /*PixelX*/ groupSpacingWidth)
{
Q_D(ByteArrayColumnView);
d->setGroupSpacingWidth(groupSpacingWidth);
}
void ByteArrayColumnView::setBinaryGapWidth(int /*PixelX*/ binaryGapWidth)
{
Q_D(ByteArrayColumnView);
d->setBinaryGapWidth(binaryGapWidth);
}
void ByteArrayColumnView::setSubstituteChar(QChar substituteChar)
{
Q_D(ByteArrayColumnView);
d->setSubstituteChar(substituteChar);
}
void ByteArrayColumnView::setUndefinedChar(QChar undefinedChar)
{
Q_D(ByteArrayColumnView);
d->setUndefinedChar(undefinedChar);
}
void ByteArrayColumnView::setShowsNonprinting(bool showsNonprinting)
{
Q_D(ByteArrayColumnView);
d->setShowsNonprinting(showsNonprinting);
}
void ByteArrayColumnView::setCharCoding(const QString& charCodingName)
{
Q_D(ByteArrayColumnView);
d->setCharCoding(charCodingName);
}
void ByteArrayColumnView::setByteTypeColored(bool isColored)
{
Q_D(ByteArrayColumnView);
d->setByteTypeColored(isColored);
}
void ByteArrayColumnView::changeEvent(QEvent* event)
{
Q_D(ByteArrayColumnView);
d->changeEvent(event);
}
QSize ByteArrayColumnView::minimumSizeHint() const
{
Q_D(const ByteArrayColumnView);
// TODO: better minimal width (visibility!)
return d->minimumSizeHint();
}
}
#include "moc_bytearraycolumnview.cpp"