summaryrefslogtreecommitdiff
path: root/externals/qhexedit/qhexedit.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2017-01-22 22:35:13 -0500
committerGravatar GitHub2017-01-22 22:35:13 -0500
commit291ded52ac4ab8234fc30468e941c1800adffe8c (patch)
tree18cc6dce3434ecf7e363a52590bd9484394898b0 /externals/qhexedit/qhexedit.cpp
parentMerge pull request #2458 from wwylele/reset-accel-gyro (diff)
parentRemoved unused and outdated external qhexedit (diff)
downloadyuzu-291ded52ac4ab8234fc30468e941c1800adffe8c.tar.gz
yuzu-291ded52ac4ab8234fc30468e941c1800adffe8c.tar.xz
yuzu-291ded52ac4ab8234fc30468e941c1800adffe8c.zip
Merge pull request #2466 from Kloen/we-dont-need-this
Removed unused and outdated external qhexedit
Diffstat (limited to 'externals/qhexedit/qhexedit.cpp')
-rw-r--r--externals/qhexedit/qhexedit.cpp180
1 files changed, 0 insertions, 180 deletions
diff --git a/externals/qhexedit/qhexedit.cpp b/externals/qhexedit/qhexedit.cpp
deleted file mode 100644
index b12624e08..000000000
--- a/externals/qhexedit/qhexedit.cpp
+++ /dev/null
@@ -1,180 +0,0 @@
1#include <QtGui>
2
3#include "qhexedit.h"
4
5
6QHexEdit::QHexEdit(QWidget *parent) : QScrollArea(parent)
7{
8 qHexEdit_p = new QHexEditPrivate(this);
9 setWidget(qHexEdit_p);
10 setWidgetResizable(true);
11
12 connect(qHexEdit_p, SIGNAL(currentAddressChanged(int)), this, SIGNAL(currentAddressChanged(int)));
13 connect(qHexEdit_p, SIGNAL(currentSizeChanged(int)), this, SIGNAL(currentSizeChanged(int)));
14 connect(qHexEdit_p, SIGNAL(dataChanged()), this, SIGNAL(dataChanged()));
15 connect(qHexEdit_p, SIGNAL(overwriteModeChanged(bool)), this, SIGNAL(overwriteModeChanged(bool)));
16 setFocusPolicy(Qt::NoFocus);
17}
18
19int QHexEdit::indexOf(const QByteArray & ba, int from) const
20{
21 return qHexEdit_p->indexOf(ba, from);
22}
23
24void QHexEdit::insert(int i, const QByteArray & ba)
25{
26 qHexEdit_p->insert(i, ba);
27}
28
29void QHexEdit::insert(int i, char ch)
30{
31 qHexEdit_p->insert(i, ch);
32}
33
34int QHexEdit::lastIndexOf(const QByteArray & ba, int from) const
35{
36 return qHexEdit_p->lastIndexOf(ba, from);
37}
38
39void QHexEdit::remove(int pos, int len)
40{
41 qHexEdit_p->remove(pos, len);
42}
43
44void QHexEdit::replace( int pos, int len, const QByteArray & after)
45{
46 qHexEdit_p->replace(pos, len, after);
47}
48
49QString QHexEdit::toReadableString()
50{
51 return qHexEdit_p->toRedableString();
52}
53
54QString QHexEdit::selectionToReadableString()
55{
56 return qHexEdit_p->selectionToReadableString();
57}
58
59void QHexEdit::setAddressArea(bool addressArea)
60{
61 qHexEdit_p->setAddressArea(addressArea);
62}
63
64void QHexEdit::redo()
65{
66 qHexEdit_p->redo();
67}
68
69void QHexEdit::undo()
70{
71 qHexEdit_p->undo();
72}
73
74void QHexEdit::setAddressWidth(int addressWidth)
75{
76 qHexEdit_p->setAddressWidth(addressWidth);
77}
78
79void QHexEdit::setAsciiArea(bool asciiArea)
80{
81 qHexEdit_p->setAsciiArea(asciiArea);
82}
83
84void QHexEdit::setHighlighting(bool mode)
85{
86 qHexEdit_p->setHighlighting(mode);
87}
88
89void QHexEdit::setAddressOffset(int offset)
90{
91 qHexEdit_p->setAddressOffset(offset);
92}
93
94int QHexEdit::addressOffset()
95{
96 return qHexEdit_p->addressOffset();
97}
98
99void QHexEdit::setCursorPosition(int cursorPos)
100{
101 // cursorPos in QHexEditPrivate is the position of the textcoursor without
102 // blanks, means bytePos*2
103 qHexEdit_p->setCursorPos(cursorPos*2);
104}
105
106int QHexEdit::cursorPosition()
107{
108 return qHexEdit_p->cursorPos() / 2;
109}
110
111
112void QHexEdit::setData(const QByteArray &data)
113{
114 qHexEdit_p->setData(data);
115}
116
117QByteArray QHexEdit::data()
118{
119 return qHexEdit_p->data();
120}
121
122void QHexEdit::setAddressAreaColor(const QColor &color)
123{
124 qHexEdit_p->setAddressAreaColor(color);
125}
126
127QColor QHexEdit::addressAreaColor()
128{
129 return qHexEdit_p->addressAreaColor();
130}
131
132void QHexEdit::setHighlightingColor(const QColor &color)
133{
134 qHexEdit_p->setHighlightingColor(color);
135}
136
137QColor QHexEdit::highlightingColor()
138{
139 return qHexEdit_p->highlightingColor();
140}
141
142void QHexEdit::setSelectionColor(const QColor &color)
143{
144 qHexEdit_p->setSelectionColor(color);
145}
146
147QColor QHexEdit::selectionColor()
148{
149 return qHexEdit_p->selectionColor();
150}
151
152void QHexEdit::setOverwriteMode(bool overwriteMode)
153{
154 qHexEdit_p->setOverwriteMode(overwriteMode);
155}
156
157bool QHexEdit::overwriteMode()
158{
159 return qHexEdit_p->overwriteMode();
160}
161
162void QHexEdit::setReadOnly(bool readOnly)
163{
164 qHexEdit_p->setReadOnly(readOnly);
165}
166
167bool QHexEdit::isReadOnly()
168{
169 return qHexEdit_p->isReadOnly();
170}
171
172void QHexEdit::setFont(const QFont &font)
173{
174 qHexEdit_p->setFont(font);
175}
176
177const QFont & QHexEdit::font() const
178{
179 return qHexEdit_p->font();
180}