|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.HexEdit.HexEditWidget</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.HexEdit.HexEditWidget</h1> |
|
23 <p> |
|
24 Module implementing an editor for binary data. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#HexEditWidget">HexEditWidget</a></td> |
|
34 <td>Class implementing an editor for binary data.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="HexEditWidget" ID="HexEditWidget"></a> |
|
43 <h2>HexEditWidget</h2> |
|
44 <p> |
|
45 Class implementing an editor for binary data. |
|
46 </p><h3>Signals</h3> |
|
47 <dl> |
|
48 <dt>canRedoChanged(bool)</dt> |
|
49 <dd> |
|
50 emitted after the redo status has changed |
|
51 </dd><dt>canUndoChanged(bool)</dt> |
|
52 <dd> |
|
53 emitted after the undo status has changed |
|
54 </dd><dt>currentAddressChanged(address)</dt> |
|
55 <dd> |
|
56 emitted to indicate the new |
|
57 cursor position |
|
58 </dd><dt>currentSizeChanged(size)</dt> |
|
59 <dd> |
|
60 emitted to indicate the new size of |
|
61 the data |
|
62 </dd><dt>dataChanged(modified)</dt> |
|
63 <dd> |
|
64 emitted to indicate a change of the data |
|
65 </dd><dt>overwriteModeChanged(state)</dt> |
|
66 <dd> |
|
67 emitted to indicate a change of |
|
68 the overwrite mode |
|
69 </dd><dt>readOnlyChanged(state)</dt> |
|
70 <dd> |
|
71 emitted to indicate a change of the |
|
72 read only state |
|
73 </dd><dt>selectionAvailable(bool)</dt> |
|
74 <dd> |
|
75 emitted to signal a change of the |
|
76 selection |
|
77 </dd> |
|
78 </dl> |
|
79 <h3>Derived from</h3> |
|
80 QAbstractScrollArea |
|
81 <h3>Class Attributes</h3> |
|
82 <table> |
|
83 <tr><td>BYTES_PER_LINE</td></tr><tr><td>HEXCHARS_PER_LINE</td></tr> |
|
84 </table> |
|
85 <h3>Class Methods</h3> |
|
86 <table> |
|
87 <tr><td>None</td></tr> |
|
88 </table> |
|
89 <h3>Methods</h3> |
|
90 <table> |
|
91 <tr> |
|
92 <td><a href="#HexEditWidget.__init__">HexEditWidget</a></td> |
|
93 <td>Constructor</td> |
|
94 </tr><tr> |
|
95 <td><a href="#HexEditWidget.__adjust">__adjust</a></td> |
|
96 <td>Private slot to recalculate pixel positions.</td> |
|
97 </tr><tr> |
|
98 <td><a href="#HexEditWidget.__canRedoChanged">__canRedoChanged</a></td> |
|
99 <td>Private slot handling changes of the Redo state.</td> |
|
100 </tr><tr> |
|
101 <td><a href="#HexEditWidget.__canUndoChanged">__canUndoChanged</a></td> |
|
102 <td>Private slot handling changes of the Undo state.</td> |
|
103 </tr><tr> |
|
104 <td><a href="#HexEditWidget.__dataChangedPrivate">__dataChangedPrivate</a></td> |
|
105 <td>Private slot to handle data changes.</td> |
|
106 </tr><tr> |
|
107 <td><a href="#HexEditWidget.__fromHex">__fromHex</a></td> |
|
108 <td>Private method to convert data of a Python bytearray from hex.</td> |
|
109 </tr><tr> |
|
110 <td><a href="#HexEditWidget.__initialize">__initialize</a></td> |
|
111 <td>Private method to do some initialization.</td> |
|
112 </tr><tr> |
|
113 <td><a href="#HexEditWidget.__readBuffers">__readBuffers</a></td> |
|
114 <td>Private method to read the buffers.</td> |
|
115 </tr><tr> |
|
116 <td><a href="#HexEditWidget.__refresh">__refresh</a></td> |
|
117 <td>Private slot to refresh the display.</td> |
|
118 </tr><tr> |
|
119 <td><a href="#HexEditWidget.__resetSelection">__resetSelection</a></td> |
|
120 <td>Private method to reset the selection.</td> |
|
121 </tr><tr> |
|
122 <td><a href="#HexEditWidget.__setData">__setData</a></td> |
|
123 <td>Private method to set the data to show.</td> |
|
124 </tr><tr> |
|
125 <td><a href="#HexEditWidget.__setHexCursorRect">__setHexCursorRect</a></td> |
|
126 <td>Private method to set the cursor.</td> |
|
127 </tr><tr> |
|
128 <td><a href="#HexEditWidget.__setSelection">__setSelection</a></td> |
|
129 <td>Private method to set the selection.</td> |
|
130 </tr><tr> |
|
131 <td><a href="#HexEditWidget.__toHex">__toHex</a></td> |
|
132 <td>Private method to convert the data of a Python bytearray to hex.</td> |
|
133 </tr><tr> |
|
134 <td><a href="#HexEditWidget.__toReadable">__toReadable</a></td> |
|
135 <td>Private method to convert some data into a readable format.</td> |
|
136 </tr><tr> |
|
137 <td><a href="#HexEditWidget.__updateCursor">__updateCursor</a></td> |
|
138 <td>Private slot to update the blinking cursor.</td> |
|
139 </tr><tr> |
|
140 <td><a href="#HexEditWidget.addressArea">addressArea</a></td> |
|
141 <td>Public method to get the address area visibility.</td> |
|
142 </tr><tr> |
|
143 <td><a href="#HexEditWidget.addressAreaColors">addressAreaColors</a></td> |
|
144 <td>Public method to get the address area colors.</td> |
|
145 </tr><tr> |
|
146 <td><a href="#HexEditWidget.addressOffset">addressOffset</a></td> |
|
147 <td>Public method to get the address offset.</td> |
|
148 </tr><tr> |
|
149 <td><a href="#HexEditWidget.addressWidth">addressWidth</a></td> |
|
150 <td>Public method to get the width of the address area in characters.</td> |
|
151 </tr><tr> |
|
152 <td><a href="#HexEditWidget.asciiArea">asciiArea</a></td> |
|
153 <td>Public method to get the visibility of the ASCII area.</td> |
|
154 </tr><tr> |
|
155 <td><a href="#HexEditWidget.copy">copy</a></td> |
|
156 <td>Public method to copy the selected bytes to the clipboard.</td> |
|
157 </tr><tr> |
|
158 <td><a href="#HexEditWidget.cursorBytePosition">cursorBytePosition</a></td> |
|
159 <td>Public method to get the cursor position in bytes.</td> |
|
160 </tr><tr> |
|
161 <td><a href="#HexEditWidget.cursorPosition">cursorPosition</a></td> |
|
162 <td>Public method to get the cursor position.</td> |
|
163 </tr><tr> |
|
164 <td><a href="#HexEditWidget.cursorPositionFromPoint">cursorPositionFromPoint</a></td> |
|
165 <td>Public method to calculate a cursor position from a graphics position.</td> |
|
166 </tr><tr> |
|
167 <td><a href="#HexEditWidget.cut">cut</a></td> |
|
168 <td>Public method to cut the selected bytes and move them to the clipboard.</td> |
|
169 </tr><tr> |
|
170 <td><a href="#HexEditWidget.data">data</a></td> |
|
171 <td>Public method to get the binary data.</td> |
|
172 </tr><tr> |
|
173 <td><a href="#HexEditWidget.dataAt">dataAt</a></td> |
|
174 <td>Public method to get data from a given position.</td> |
|
175 </tr><tr> |
|
176 <td><a href="#HexEditWidget.deleteByte">deleteByte</a></td> |
|
177 <td>Public method to delete the current byte.</td> |
|
178 </tr><tr> |
|
179 <td><a href="#HexEditWidget.deleteByteBack">deleteByteBack</a></td> |
|
180 <td>Public method to delete the previous byte.</td> |
|
181 </tr><tr> |
|
182 <td><a href="#HexEditWidget.deselectAll">deselectAll</a></td> |
|
183 <td>Public method to deselect all data.</td> |
|
184 </tr><tr> |
|
185 <td><a href="#HexEditWidget.ensureVisible">ensureVisible</a></td> |
|
186 <td>Public method to ensure, that the cursor is visible.</td> |
|
187 </tr><tr> |
|
188 <td><a href="#HexEditWidget.font">font</a></td> |
|
189 <td>Public method to get the font used to show the data.</td> |
|
190 </tr><tr> |
|
191 <td><a href="#HexEditWidget.getSelectionBegin">getSelectionBegin</a></td> |
|
192 <td>Public method to get the start of the selection.</td> |
|
193 </tr><tr> |
|
194 <td><a href="#HexEditWidget.getSelectionEnd">getSelectionEnd</a></td> |
|
195 <td>Public method to get the end of the selection.</td> |
|
196 </tr><tr> |
|
197 <td><a href="#HexEditWidget.getSelectionLength">getSelectionLength</a></td> |
|
198 <td>Public method to get the length of the selection.</td> |
|
199 </tr><tr> |
|
200 <td><a href="#HexEditWidget.goto">goto</a></td> |
|
201 <td>Public method to move the cursor.</td> |
|
202 </tr><tr> |
|
203 <td><a href="#HexEditWidget.hasSelection">hasSelection</a></td> |
|
204 <td>Public method to test for a selection.</td> |
|
205 </tr><tr> |
|
206 <td><a href="#HexEditWidget.highlightColors">highlightColors</a></td> |
|
207 <td>Public method to get the highlight colors.</td> |
|
208 </tr><tr> |
|
209 <td><a href="#HexEditWidget.highlighting">highlighting</a></td> |
|
210 <td>Public method to get the highlighting state.</td> |
|
211 </tr><tr> |
|
212 <td><a href="#HexEditWidget.indexOf">indexOf</a></td> |
|
213 <td>Public method to find the first occurrence of a byte array in our data.</td> |
|
214 </tr><tr> |
|
215 <td><a href="#HexEditWidget.insert">insert</a></td> |
|
216 <td>Public method to insert a byte.</td> |
|
217 </tr><tr> |
|
218 <td><a href="#HexEditWidget.insertByteArray">insertByteArray</a></td> |
|
219 <td>Public method to insert bytes.</td> |
|
220 </tr><tr> |
|
221 <td><a href="#HexEditWidget.isModified">isModified</a></td> |
|
222 <td>Public method to check for any modification.</td> |
|
223 </tr><tr> |
|
224 <td><a href="#HexEditWidget.isReadOnly">isReadOnly</a></td> |
|
225 <td>Public method to test the read only state.</td> |
|
226 </tr><tr> |
|
227 <td><a href="#HexEditWidget.keyPressEvent">keyPressEvent</a></td> |
|
228 <td>Protected method to handle key press events.</td> |
|
229 </tr><tr> |
|
230 <td><a href="#HexEditWidget.lastIndexOf">lastIndexOf</a></td> |
|
231 <td>Public method to find the last occurrence of a byte array in our data.</td> |
|
232 </tr><tr> |
|
233 <td><a href="#HexEditWidget.mouseMoveEvent">mouseMoveEvent</a></td> |
|
234 <td>Protected method to handle mouse moves.</td> |
|
235 </tr><tr> |
|
236 <td><a href="#HexEditWidget.mousePressEvent">mousePressEvent</a></td> |
|
237 <td>Protected method to handle mouse button presses.</td> |
|
238 </tr><tr> |
|
239 <td><a href="#HexEditWidget.moveCursorToEndOfDocument">moveCursorToEndOfDocument</a></td> |
|
240 <td>Public method to move the cursor to the end of the data.</td> |
|
241 </tr><tr> |
|
242 <td><a href="#HexEditWidget.moveCursorToEndOfLine">moveCursorToEndOfLine</a></td> |
|
243 <td>Public method to move the cursor to the end of the current line.</td> |
|
244 </tr><tr> |
|
245 <td><a href="#HexEditWidget.moveCursorToNextChar">moveCursorToNextChar</a></td> |
|
246 <td>Public method to move the cursor to the next byte.</td> |
|
247 </tr><tr> |
|
248 <td><a href="#HexEditWidget.moveCursorToNextLine">moveCursorToNextLine</a></td> |
|
249 <td>Public method to move the cursor to the next line.</td> |
|
250 </tr><tr> |
|
251 <td><a href="#HexEditWidget.moveCursorToNextPage">moveCursorToNextPage</a></td> |
|
252 <td>Public method to move the cursor to the next page.</td> |
|
253 </tr><tr> |
|
254 <td><a href="#HexEditWidget.moveCursorToPreviousChar">moveCursorToPreviousChar</a></td> |
|
255 <td>Public method to move the cursor to the previous byte.</td> |
|
256 </tr><tr> |
|
257 <td><a href="#HexEditWidget.moveCursorToPreviousLine">moveCursorToPreviousLine</a></td> |
|
258 <td>Public method to move the cursor to the previous line.</td> |
|
259 </tr><tr> |
|
260 <td><a href="#HexEditWidget.moveCursorToPreviousPage">moveCursorToPreviousPage</a></td> |
|
261 <td>Public method to move the cursor to the previous page.</td> |
|
262 </tr><tr> |
|
263 <td><a href="#HexEditWidget.moveCursorToStartOfDocument">moveCursorToStartOfDocument</a></td> |
|
264 <td>Public method to move the cursor to the start of the data.</td> |
|
265 </tr><tr> |
|
266 <td><a href="#HexEditWidget.moveCursorToStartOfLine">moveCursorToStartOfLine</a></td> |
|
267 <td>Public method to move the cursor to the beginning of the current line.</td> |
|
268 </tr><tr> |
|
269 <td><a href="#HexEditWidget.overwriteMode">overwriteMode</a></td> |
|
270 <td>Public method to get the overwrite mode.</td> |
|
271 </tr><tr> |
|
272 <td><a href="#HexEditWidget.paintEvent">paintEvent</a></td> |
|
273 <td>Protected method to handle paint events.</td> |
|
274 </tr><tr> |
|
275 <td><a href="#HexEditWidget.paste">paste</a></td> |
|
276 <td>Public method to paste bytes from the clipboard.</td> |
|
277 </tr><tr> |
|
278 <td><a href="#HexEditWidget.redo">redo</a></td> |
|
279 <td>Public slot to redo the last operation.</td> |
|
280 </tr><tr> |
|
281 <td><a href="#HexEditWidget.remove">remove</a></td> |
|
282 <td>Public method to remove bytes.</td> |
|
283 </tr><tr> |
|
284 <td><a href="#HexEditWidget.replace">replace</a></td> |
|
285 <td>Public method to replace a byte.</td> |
|
286 </tr><tr> |
|
287 <td><a href="#HexEditWidget.replaceByteArray">replaceByteArray</a></td> |
|
288 <td>Public method to replace bytes.</td> |
|
289 </tr><tr> |
|
290 <td><a href="#HexEditWidget.resizeEvent">resizeEvent</a></td> |
|
291 <td>Protected method to handle resize events.</td> |
|
292 </tr><tr> |
|
293 <td><a href="#HexEditWidget.revertToUnmodified">revertToUnmodified</a></td> |
|
294 <td>Public slot to revert all changes.</td> |
|
295 </tr><tr> |
|
296 <td><a href="#HexEditWidget.selectAll">selectAll</a></td> |
|
297 <td>Public method to select all data.</td> |
|
298 </tr><tr> |
|
299 <td><a href="#HexEditWidget.selectEndOfDocument">selectEndOfDocument</a></td> |
|
300 <td>Public method to extend the selection to the end of the data.</td> |
|
301 </tr><tr> |
|
302 <td><a href="#HexEditWidget.selectNextChar">selectNextChar</a></td> |
|
303 <td>Public method to extend the selection by one byte right.</td> |
|
304 </tr><tr> |
|
305 <td><a href="#HexEditWidget.selectNextLine">selectNextLine</a></td> |
|
306 <td>Public method to extend the selection one line down.</td> |
|
307 </tr><tr> |
|
308 <td><a href="#HexEditWidget.selectNextPage">selectNextPage</a></td> |
|
309 <td>Public method to extend the selection one page down.</td> |
|
310 </tr><tr> |
|
311 <td><a href="#HexEditWidget.selectPreviousChar">selectPreviousChar</a></td> |
|
312 <td>Public method to extend the selection by one byte left.</td> |
|
313 </tr><tr> |
|
314 <td><a href="#HexEditWidget.selectPreviousLine">selectPreviousLine</a></td> |
|
315 <td>Public method to extend the selection one line up.</td> |
|
316 </tr><tr> |
|
317 <td><a href="#HexEditWidget.selectPreviousPage">selectPreviousPage</a></td> |
|
318 <td>Public method to extend the selection one page up.</td> |
|
319 </tr><tr> |
|
320 <td><a href="#HexEditWidget.selectStartOfDocument">selectStartOfDocument</a></td> |
|
321 <td>Public method to extend the selection to the start of the data.</td> |
|
322 </tr><tr> |
|
323 <td><a href="#HexEditWidget.selectToEndOfLine">selectToEndOfLine</a></td> |
|
324 <td>Public method to extend the selection to the end of line.</td> |
|
325 </tr><tr> |
|
326 <td><a href="#HexEditWidget.selectToStartOfLine">selectToStartOfLine</a></td> |
|
327 <td>Public method to extend the selection to the start of line.</td> |
|
328 </tr><tr> |
|
329 <td><a href="#HexEditWidget.selectionColors">selectionColors</a></td> |
|
330 <td>Public method to get the selection colors.</td> |
|
331 </tr><tr> |
|
332 <td><a href="#HexEditWidget.selectionToHexString">selectionToHexString</a></td> |
|
333 <td>Public method to get a hexadecimal representation of the selection.</td> |
|
334 </tr><tr> |
|
335 <td><a href="#HexEditWidget.selectionToReadableString">selectionToReadableString</a></td> |
|
336 <td>Public method to get a formatted representation of the selection.</td> |
|
337 </tr><tr> |
|
338 <td><a href="#HexEditWidget.setAddressArea">setAddressArea</a></td> |
|
339 <td>Public method to set the address area visibility.</td> |
|
340 </tr><tr> |
|
341 <td><a href="#HexEditWidget.setAddressAreaColors">setAddressAreaColors</a></td> |
|
342 <td>Public method to set the address area colors.</td> |
|
343 </tr><tr> |
|
344 <td><a href="#HexEditWidget.setAddressOffset">setAddressOffset</a></td> |
|
345 <td>Public method to set the address offset.</td> |
|
346 </tr><tr> |
|
347 <td><a href="#HexEditWidget.setAddressWidth">setAddressWidth</a></td> |
|
348 <td>Public method to set the width of the address area.</td> |
|
349 </tr><tr> |
|
350 <td><a href="#HexEditWidget.setAsciiArea">setAsciiArea</a></td> |
|
351 <td>Public method to set the visibility of the ASCII area.</td> |
|
352 </tr><tr> |
|
353 <td><a href="#HexEditWidget.setCursorBytePosition">setCursorBytePosition</a></td> |
|
354 <td>Public method to set the cursor position in bytes.</td> |
|
355 </tr><tr> |
|
356 <td><a href="#HexEditWidget.setCursorPosition">setCursorPosition</a></td> |
|
357 <td>Public method to set the cursor position.</td> |
|
358 </tr><tr> |
|
359 <td><a href="#HexEditWidget.setData">setData</a></td> |
|
360 <td>Public method to set the data to show.</td> |
|
361 </tr><tr> |
|
362 <td><a href="#HexEditWidget.setFont">setFont</a></td> |
|
363 <td>Public method to set the font used to show the data.</td> |
|
364 </tr><tr> |
|
365 <td><a href="#HexEditWidget.setHighlightColors">setHighlightColors</a></td> |
|
366 <td>Public method to set the highlight colors.</td> |
|
367 </tr><tr> |
|
368 <td><a href="#HexEditWidget.setHighlighting">setHighlighting</a></td> |
|
369 <td>Public method to set the highlighting state.</td> |
|
370 </tr><tr> |
|
371 <td><a href="#HexEditWidget.setModified">setModified</a></td> |
|
372 <td>Public slot to set the modified flag.</td> |
|
373 </tr><tr> |
|
374 <td><a href="#HexEditWidget.setOverwriteMode">setOverwriteMode</a></td> |
|
375 <td>Public method to set the overwrite mode.</td> |
|
376 </tr><tr> |
|
377 <td><a href="#HexEditWidget.setReadOnly">setReadOnly</a></td> |
|
378 <td>Public method to set the read only state.</td> |
|
379 </tr><tr> |
|
380 <td><a href="#HexEditWidget.setSelectionColors">setSelectionColors</a></td> |
|
381 <td>Public method to set the selection colors.</td> |
|
382 </tr><tr> |
|
383 <td><a href="#HexEditWidget.toReadableString">toReadableString</a></td> |
|
384 <td>Public method to get a formatted representation of our data.</td> |
|
385 </tr><tr> |
|
386 <td><a href="#HexEditWidget.undo">undo</a></td> |
|
387 <td>Public slot to undo the last operation.</td> |
|
388 </tr><tr> |
|
389 <td><a href="#HexEditWidget.undoStack">undoStack</a></td> |
|
390 <td>Public method to get a reference to the undo stack.</td> |
|
391 </tr><tr> |
|
392 <td><a href="#HexEditWidget.write">write</a></td> |
|
393 <td>Public method to write data from a given position to a device.</td> |
|
394 </tr> |
|
395 </table> |
|
396 <h3>Static Methods</h3> |
|
397 <table> |
|
398 <tr><td>None</td></tr> |
|
399 </table> |
|
400 <a NAME="HexEditWidget.__init__" ID="HexEditWidget.__init__"></a> |
|
401 <h4>HexEditWidget (Constructor)</h4> |
|
402 <b>HexEditWidget</b>(<i>parent=None</i>) |
|
403 <p> |
|
404 Constructor |
|
405 </p><dl> |
|
406 <dt><i>parent</i> (QWidget)</dt> |
|
407 <dd> |
|
408 refernce to the parent widget |
|
409 </dd> |
|
410 </dl><a NAME="HexEditWidget.__adjust" ID="HexEditWidget.__adjust"></a> |
|
411 <h4>HexEditWidget.__adjust</h4> |
|
412 <b>__adjust</b>(<i></i>) |
|
413 <p> |
|
414 Private slot to recalculate pixel positions. |
|
415 </p><a NAME="HexEditWidget.__canRedoChanged" ID="HexEditWidget.__canRedoChanged"></a> |
|
416 <h4>HexEditWidget.__canRedoChanged</h4> |
|
417 <b>__canRedoChanged</b>(<i></i>) |
|
418 <p> |
|
419 Private slot handling changes of the Redo state. |
|
420 </p><a NAME="HexEditWidget.__canUndoChanged" ID="HexEditWidget.__canUndoChanged"></a> |
|
421 <h4>HexEditWidget.__canUndoChanged</h4> |
|
422 <b>__canUndoChanged</b>(<i></i>) |
|
423 <p> |
|
424 Private slot handling changes of the Undo state. |
|
425 </p><a NAME="HexEditWidget.__dataChangedPrivate" ID="HexEditWidget.__dataChangedPrivate"></a> |
|
426 <h4>HexEditWidget.__dataChangedPrivate</h4> |
|
427 <b>__dataChangedPrivate</b>(<i>idx=0</i>) |
|
428 <p> |
|
429 Private slot to handle data changes. |
|
430 </p><dl> |
|
431 <dt><i>idx</i> (int)</dt> |
|
432 <dd> |
|
433 index |
|
434 </dd> |
|
435 </dl><a NAME="HexEditWidget.__fromHex" ID="HexEditWidget.__fromHex"></a> |
|
436 <h4>HexEditWidget.__fromHex</h4> |
|
437 <b>__fromHex</b>(<i>byteArray</i>) |
|
438 <p> |
|
439 Private method to convert data of a Python bytearray from hex. |
|
440 </p><dl> |
|
441 <dt><i>byteArray</i> (bytearray)</dt> |
|
442 <dd> |
|
443 byte array to be converted |
|
444 </dd> |
|
445 </dl><dl> |
|
446 <dt>Returns:</dt> |
|
447 <dd> |
|
448 converted data |
|
449 </dd> |
|
450 </dl><dl> |
|
451 <dt>Return Type:</dt> |
|
452 <dd> |
|
453 bytearray |
|
454 </dd> |
|
455 </dl><a NAME="HexEditWidget.__initialize" ID="HexEditWidget.__initialize"></a> |
|
456 <h4>HexEditWidget.__initialize</h4> |
|
457 <b>__initialize</b>(<i></i>) |
|
458 <p> |
|
459 Private method to do some initialization. |
|
460 </p><a NAME="HexEditWidget.__readBuffers" ID="HexEditWidget.__readBuffers"></a> |
|
461 <h4>HexEditWidget.__readBuffers</h4> |
|
462 <b>__readBuffers</b>(<i></i>) |
|
463 <p> |
|
464 Private method to read the buffers. |
|
465 </p><a NAME="HexEditWidget.__refresh" ID="HexEditWidget.__refresh"></a> |
|
466 <h4>HexEditWidget.__refresh</h4> |
|
467 <b>__refresh</b>(<i></i>) |
|
468 <p> |
|
469 Private slot to refresh the display. |
|
470 </p><a NAME="HexEditWidget.__resetSelection" ID="HexEditWidget.__resetSelection"></a> |
|
471 <h4>HexEditWidget.__resetSelection</h4> |
|
472 <b>__resetSelection</b>(<i>pos=None</i>) |
|
473 <p> |
|
474 Private method to reset the selection. |
|
475 </p><dl> |
|
476 <dt><i>pos</i> (int or None)</dt> |
|
477 <dd> |
|
478 position to set selection start and end to |
|
479 (if this is None, selection end is set to selection start) |
|
480 </dd> |
|
481 </dl><a NAME="HexEditWidget.__setData" ID="HexEditWidget.__setData"></a> |
|
482 <h4>HexEditWidget.__setData</h4> |
|
483 <b>__setData</b>(<i>ioDevice</i>) |
|
484 <p> |
|
485 Private method to set the data to show. |
|
486 </p><dl> |
|
487 <dt><i>ioDevice</i> (QIODevice)</dt> |
|
488 <dd> |
|
489 device containing the data |
|
490 </dd> |
|
491 </dl><dl> |
|
492 <dt>Returns:</dt> |
|
493 <dd> |
|
494 flag indicating success |
|
495 </dd> |
|
496 </dl><dl> |
|
497 <dt>Return Type:</dt> |
|
498 <dd> |
|
499 bool |
|
500 </dd> |
|
501 </dl><a NAME="HexEditWidget.__setHexCursorRect" ID="HexEditWidget.__setHexCursorRect"></a> |
|
502 <h4>HexEditWidget.__setHexCursorRect</h4> |
|
503 <b>__setHexCursorRect</b>(<i></i>) |
|
504 <p> |
|
505 Private method to set the cursor. |
|
506 </p><a NAME="HexEditWidget.__setSelection" ID="HexEditWidget.__setSelection"></a> |
|
507 <h4>HexEditWidget.__setSelection</h4> |
|
508 <b>__setSelection</b>(<i>pos</i>) |
|
509 <p> |
|
510 Private method to set the selection. |
|
511 </p><dl> |
|
512 <dt><i>pos</i> (int)</dt> |
|
513 <dd> |
|
514 position |
|
515 </dd> |
|
516 </dl><a NAME="HexEditWidget.__toHex" ID="HexEditWidget.__toHex"></a> |
|
517 <h4>HexEditWidget.__toHex</h4> |
|
518 <b>__toHex</b>(<i>byteArray</i>) |
|
519 <p> |
|
520 Private method to convert the data of a Python bytearray to hex. |
|
521 </p><dl> |
|
522 <dt><i>byteArray</i> (bytearray)</dt> |
|
523 <dd> |
|
524 byte array to be converted |
|
525 </dd> |
|
526 </dl><dl> |
|
527 <dt>Returns:</dt> |
|
528 <dd> |
|
529 converted data |
|
530 </dd> |
|
531 </dl><dl> |
|
532 <dt>Return Type:</dt> |
|
533 <dd> |
|
534 bytearray |
|
535 </dd> |
|
536 </dl><a NAME="HexEditWidget.__toReadable" ID="HexEditWidget.__toReadable"></a> |
|
537 <h4>HexEditWidget.__toReadable</h4> |
|
538 <b>__toReadable</b>(<i>byteArray</i>) |
|
539 <p> |
|
540 Private method to convert some data into a readable format. |
|
541 </p><dl> |
|
542 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> |
|
543 <dd> |
|
544 data to be converted |
|
545 </dd> |
|
546 </dl><dl> |
|
547 <dt>Returns:</dt> |
|
548 <dd> |
|
549 readable data |
|
550 </dd> |
|
551 </dl><dl> |
|
552 <dt>Return Type:</dt> |
|
553 <dd> |
|
554 str |
|
555 </dd> |
|
556 </dl><a NAME="HexEditWidget.__updateCursor" ID="HexEditWidget.__updateCursor"></a> |
|
557 <h4>HexEditWidget.__updateCursor</h4> |
|
558 <b>__updateCursor</b>(<i></i>) |
|
559 <p> |
|
560 Private slot to update the blinking cursor. |
|
561 </p><a NAME="HexEditWidget.addressArea" ID="HexEditWidget.addressArea"></a> |
|
562 <h4>HexEditWidget.addressArea</h4> |
|
563 <b>addressArea</b>(<i></i>) |
|
564 <p> |
|
565 Public method to get the address area visibility. |
|
566 </p><dl> |
|
567 <dt>Returns:</dt> |
|
568 <dd> |
|
569 flag indicating the address area visibility |
|
570 </dd> |
|
571 </dl><dl> |
|
572 <dt>Return Type:</dt> |
|
573 <dd> |
|
574 bool |
|
575 </dd> |
|
576 </dl><a NAME="HexEditWidget.addressAreaColors" ID="HexEditWidget.addressAreaColors"></a> |
|
577 <h4>HexEditWidget.addressAreaColors</h4> |
|
578 <b>addressAreaColors</b>(<i></i>) |
|
579 <p> |
|
580 Public method to get the address area colors. |
|
581 </p><dl> |
|
582 <dt>Returns:</dt> |
|
583 <dd> |
|
584 address area foreground and background colors |
|
585 </dd> |
|
586 </dl><dl> |
|
587 <dt>Return Type:</dt> |
|
588 <dd> |
|
589 tuple of 2 QColor |
|
590 </dd> |
|
591 </dl><a NAME="HexEditWidget.addressOffset" ID="HexEditWidget.addressOffset"></a> |
|
592 <h4>HexEditWidget.addressOffset</h4> |
|
593 <b>addressOffset</b>(<i></i>) |
|
594 <p> |
|
595 Public method to get the address offset. |
|
596 </p><dl> |
|
597 <dt>Returns:</dt> |
|
598 <dd> |
|
599 address offset |
|
600 </dd> |
|
601 </dl><dl> |
|
602 <dt>Return Type:</dt> |
|
603 <dd> |
|
604 int |
|
605 </dd> |
|
606 </dl><a NAME="HexEditWidget.addressWidth" ID="HexEditWidget.addressWidth"></a> |
|
607 <h4>HexEditWidget.addressWidth</h4> |
|
608 <b>addressWidth</b>(<i></i>) |
|
609 <p> |
|
610 Public method to get the width of the address area in |
|
611 characters. |
|
612 </p><p> |
|
613 Note: The address area width is always a multiple of four. |
|
614 </p><dl> |
|
615 <dt>Returns:</dt> |
|
616 <dd> |
|
617 minimum width of the address area |
|
618 </dd> |
|
619 </dl><dl> |
|
620 <dt>Return Type:</dt> |
|
621 <dd> |
|
622 int |
|
623 </dd> |
|
624 </dl><a NAME="HexEditWidget.asciiArea" ID="HexEditWidget.asciiArea"></a> |
|
625 <h4>HexEditWidget.asciiArea</h4> |
|
626 <b>asciiArea</b>(<i></i>) |
|
627 <p> |
|
628 Public method to get the visibility of the ASCII area. |
|
629 </p><dl> |
|
630 <dt>Returns:</dt> |
|
631 <dd> |
|
632 visibility of the ASCII area |
|
633 </dd> |
|
634 </dl><dl> |
|
635 <dt>Return Type:</dt> |
|
636 <dd> |
|
637 bool |
|
638 </dd> |
|
639 </dl><a NAME="HexEditWidget.copy" ID="HexEditWidget.copy"></a> |
|
640 <h4>HexEditWidget.copy</h4> |
|
641 <b>copy</b>(<i></i>) |
|
642 <p> |
|
643 Public method to copy the selected bytes to the clipboard. |
|
644 </p><a NAME="HexEditWidget.cursorBytePosition" ID="HexEditWidget.cursorBytePosition"></a> |
|
645 <h4>HexEditWidget.cursorBytePosition</h4> |
|
646 <b>cursorBytePosition</b>(<i></i>) |
|
647 <p> |
|
648 Public method to get the cursor position in bytes. |
|
649 </p><dl> |
|
650 <dt>Returns:</dt> |
|
651 <dd> |
|
652 cursor position in bytes |
|
653 </dd> |
|
654 </dl><dl> |
|
655 <dt>Return Type:</dt> |
|
656 <dd> |
|
657 int |
|
658 </dd> |
|
659 </dl><a NAME="HexEditWidget.cursorPosition" ID="HexEditWidget.cursorPosition"></a> |
|
660 <h4>HexEditWidget.cursorPosition</h4> |
|
661 <b>cursorPosition</b>(<i></i>) |
|
662 <p> |
|
663 Public method to get the cursor position. |
|
664 </p><dl> |
|
665 <dt>Returns:</dt> |
|
666 <dd> |
|
667 cursor position |
|
668 </dd> |
|
669 </dl><dl> |
|
670 <dt>Return Type:</dt> |
|
671 <dd> |
|
672 int |
|
673 </dd> |
|
674 </dl><a NAME="HexEditWidget.cursorPositionFromPoint" ID="HexEditWidget.cursorPositionFromPoint"></a> |
|
675 <h4>HexEditWidget.cursorPositionFromPoint</h4> |
|
676 <b>cursorPositionFromPoint</b>(<i>point</i>) |
|
677 <p> |
|
678 Public method to calculate a cursor position from a graphics position. |
|
679 </p><dl> |
|
680 <dt><i>point</i> (QPoint)</dt> |
|
681 <dd> |
|
682 graphics position |
|
683 </dd> |
|
684 </dl><dl> |
|
685 <dt>Returns:</dt> |
|
686 <dd> |
|
687 cursor position |
|
688 </dd> |
|
689 </dl><dl> |
|
690 <dt>Return Type:</dt> |
|
691 <dd> |
|
692 int |
|
693 </dd> |
|
694 </dl><a NAME="HexEditWidget.cut" ID="HexEditWidget.cut"></a> |
|
695 <h4>HexEditWidget.cut</h4> |
|
696 <b>cut</b>(<i></i>) |
|
697 <p> |
|
698 Public method to cut the selected bytes and move them to the clipboard. |
|
699 </p><a NAME="HexEditWidget.data" ID="HexEditWidget.data"></a> |
|
700 <h4>HexEditWidget.data</h4> |
|
701 <b>data</b>(<i></i>) |
|
702 <p> |
|
703 Public method to get the binary data. |
|
704 </p><dl> |
|
705 <dt>Returns:</dt> |
|
706 <dd> |
|
707 binary data |
|
708 </dd> |
|
709 </dl><dl> |
|
710 <dt>Return Type:</dt> |
|
711 <dd> |
|
712 bytearray |
|
713 </dd> |
|
714 </dl><a NAME="HexEditWidget.dataAt" ID="HexEditWidget.dataAt"></a> |
|
715 <h4>HexEditWidget.dataAt</h4> |
|
716 <b>dataAt</b>(<i>pos, count=-1</i>) |
|
717 <p> |
|
718 Public method to get data from a given position. |
|
719 </p><dl> |
|
720 <dt><i>pos</i> (int)</dt> |
|
721 <dd> |
|
722 position to get data from |
|
723 </dd><dt><i>count</i> (int)</dt> |
|
724 <dd> |
|
725 amount of bytes to get |
|
726 </dd> |
|
727 </dl><dl> |
|
728 <dt>Returns:</dt> |
|
729 <dd> |
|
730 requested data |
|
731 </dd> |
|
732 </dl><dl> |
|
733 <dt>Return Type:</dt> |
|
734 <dd> |
|
735 bytearray |
|
736 </dd> |
|
737 </dl><a NAME="HexEditWidget.deleteByte" ID="HexEditWidget.deleteByte"></a> |
|
738 <h4>HexEditWidget.deleteByte</h4> |
|
739 <b>deleteByte</b>(<i></i>) |
|
740 <p> |
|
741 Public method to delete the current byte. |
|
742 </p><a NAME="HexEditWidget.deleteByteBack" ID="HexEditWidget.deleteByteBack"></a> |
|
743 <h4>HexEditWidget.deleteByteBack</h4> |
|
744 <b>deleteByteBack</b>(<i></i>) |
|
745 <p> |
|
746 Public method to delete the previous byte. |
|
747 </p><a NAME="HexEditWidget.deselectAll" ID="HexEditWidget.deselectAll"></a> |
|
748 <h4>HexEditWidget.deselectAll</h4> |
|
749 <b>deselectAll</b>(<i></i>) |
|
750 <p> |
|
751 Public method to deselect all data. |
|
752 </p><a NAME="HexEditWidget.ensureVisible" ID="HexEditWidget.ensureVisible"></a> |
|
753 <h4>HexEditWidget.ensureVisible</h4> |
|
754 <b>ensureVisible</b>(<i></i>) |
|
755 <p> |
|
756 Public method to ensure, that the cursor is visible. |
|
757 </p><a NAME="HexEditWidget.font" ID="HexEditWidget.font"></a> |
|
758 <h4>HexEditWidget.font</h4> |
|
759 <b>font</b>(<i></i>) |
|
760 <p> |
|
761 Public method to get the font used to show the data. |
|
762 </p><dl> |
|
763 <dt>Returns:</dt> |
|
764 <dd> |
|
765 font used to show the data |
|
766 </dd> |
|
767 </dl><dl> |
|
768 <dt>Return Type:</dt> |
|
769 <dd> |
|
770 QFont |
|
771 </dd> |
|
772 </dl><a NAME="HexEditWidget.getSelectionBegin" ID="HexEditWidget.getSelectionBegin"></a> |
|
773 <h4>HexEditWidget.getSelectionBegin</h4> |
|
774 <b>getSelectionBegin</b>(<i></i>) |
|
775 <p> |
|
776 Public method to get the start of the selection. |
|
777 </p><dl> |
|
778 <dt>Returns:</dt> |
|
779 <dd> |
|
780 selection start |
|
781 </dd> |
|
782 </dl><dl> |
|
783 <dt>Return Type:</dt> |
|
784 <dd> |
|
785 int |
|
786 </dd> |
|
787 </dl><a NAME="HexEditWidget.getSelectionEnd" ID="HexEditWidget.getSelectionEnd"></a> |
|
788 <h4>HexEditWidget.getSelectionEnd</h4> |
|
789 <b>getSelectionEnd</b>(<i></i>) |
|
790 <p> |
|
791 Public method to get the end of the selection. |
|
792 </p><dl> |
|
793 <dt>Returns:</dt> |
|
794 <dd> |
|
795 selection end |
|
796 </dd> |
|
797 </dl><dl> |
|
798 <dt>Return Type:</dt> |
|
799 <dd> |
|
800 int |
|
801 </dd> |
|
802 </dl><a NAME="HexEditWidget.getSelectionLength" ID="HexEditWidget.getSelectionLength"></a> |
|
803 <h4>HexEditWidget.getSelectionLength</h4> |
|
804 <b>getSelectionLength</b>(<i></i>) |
|
805 <p> |
|
806 Public method to get the length of the selection. |
|
807 </p><dl> |
|
808 <dt>Returns:</dt> |
|
809 <dd> |
|
810 selection length |
|
811 </dd> |
|
812 </dl><dl> |
|
813 <dt>Return Type:</dt> |
|
814 <dd> |
|
815 int |
|
816 </dd> |
|
817 </dl><a NAME="HexEditWidget.goto" ID="HexEditWidget.goto"></a> |
|
818 <h4>HexEditWidget.goto</h4> |
|
819 <b>goto</b>(<i>offset, fromCursor=False, backwards=False, extendSelection=False</i>) |
|
820 <p> |
|
821 Public method to move the cursor. |
|
822 </p><dl> |
|
823 <dt><i>offset</i> (int)</dt> |
|
824 <dd> |
|
825 offset to move to |
|
826 </dd><dt><i>fromCursor</i> (bool)</dt> |
|
827 <dd> |
|
828 flag indicating a move relative to the current cursor |
|
829 </dd><dt><i>backwards</i> (bool)</dt> |
|
830 <dd> |
|
831 flag indicating a backwards move |
|
832 </dd><dt><i>extendSelection</i> (bool)</dt> |
|
833 <dd> |
|
834 flag indicating to extend the selection |
|
835 </dd> |
|
836 </dl><a NAME="HexEditWidget.hasSelection" ID="HexEditWidget.hasSelection"></a> |
|
837 <h4>HexEditWidget.hasSelection</h4> |
|
838 <b>hasSelection</b>(<i></i>) |
|
839 <p> |
|
840 Public method to test for a selection. |
|
841 </p><dl> |
|
842 <dt>Returns:</dt> |
|
843 <dd> |
|
844 flag indicating the presence of a selection |
|
845 </dd> |
|
846 </dl><dl> |
|
847 <dt>Return Type:</dt> |
|
848 <dd> |
|
849 bool |
|
850 </dd> |
|
851 </dl><a NAME="HexEditWidget.highlightColors" ID="HexEditWidget.highlightColors"></a> |
|
852 <h4>HexEditWidget.highlightColors</h4> |
|
853 <b>highlightColors</b>(<i></i>) |
|
854 <p> |
|
855 Public method to get the highlight colors. |
|
856 </p><dl> |
|
857 <dt>Returns:</dt> |
|
858 <dd> |
|
859 highlight foreground and background colors |
|
860 </dd> |
|
861 </dl><dl> |
|
862 <dt>Return Type:</dt> |
|
863 <dd> |
|
864 tuple of 2 QColor |
|
865 </dd> |
|
866 </dl><a NAME="HexEditWidget.highlighting" ID="HexEditWidget.highlighting"></a> |
|
867 <h4>HexEditWidget.highlighting</h4> |
|
868 <b>highlighting</b>(<i></i>) |
|
869 <p> |
|
870 Public method to get the highlighting state. |
|
871 </p><dl> |
|
872 <dt>Returns:</dt> |
|
873 <dd> |
|
874 highlighting state |
|
875 </dd> |
|
876 </dl><dl> |
|
877 <dt>Return Type:</dt> |
|
878 <dd> |
|
879 bool |
|
880 </dd> |
|
881 </dl><a NAME="HexEditWidget.indexOf" ID="HexEditWidget.indexOf"></a> |
|
882 <h4>HexEditWidget.indexOf</h4> |
|
883 <b>indexOf</b>(<i>byteArray, start</i>) |
|
884 <p> |
|
885 Public method to find the first occurrence of a byte array in our data. |
|
886 </p><dl> |
|
887 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> |
|
888 <dd> |
|
889 data to search for |
|
890 </dd><dt><i>start</i> (int)</dt> |
|
891 <dd> |
|
892 start position of the search |
|
893 </dd> |
|
894 </dl><dl> |
|
895 <dt>Returns:</dt> |
|
896 <dd> |
|
897 position of match (or -1 if not found) |
|
898 </dd> |
|
899 </dl><dl> |
|
900 <dt>Return Type:</dt> |
|
901 <dd> |
|
902 int |
|
903 </dd> |
|
904 </dl><a NAME="HexEditWidget.insert" ID="HexEditWidget.insert"></a> |
|
905 <h4>HexEditWidget.insert</h4> |
|
906 <b>insert</b>(<i>pos, ch</i>) |
|
907 <p> |
|
908 Public method to insert a byte. |
|
909 </p><dl> |
|
910 <dt><i>pos</i> (int)</dt> |
|
911 <dd> |
|
912 position to insert the byte at |
|
913 </dd><dt><i>ch</i> (int in the range 0x00 to 0xff)</dt> |
|
914 <dd> |
|
915 byte to insert |
|
916 </dd> |
|
917 </dl><a NAME="HexEditWidget.insertByteArray" ID="HexEditWidget.insertByteArray"></a> |
|
918 <h4>HexEditWidget.insertByteArray</h4> |
|
919 <b>insertByteArray</b>(<i>pos, byteArray</i>) |
|
920 <p> |
|
921 Public method to insert bytes. |
|
922 </p><dl> |
|
923 <dt><i>pos</i> (int)</dt> |
|
924 <dd> |
|
925 position to insert the bytes at |
|
926 </dd><dt><i>byteArray</i> (bytearray or QByteArray)</dt> |
|
927 <dd> |
|
928 bytes to be insert |
|
929 </dd> |
|
930 </dl><a NAME="HexEditWidget.isModified" ID="HexEditWidget.isModified"></a> |
|
931 <h4>HexEditWidget.isModified</h4> |
|
932 <b>isModified</b>(<i></i>) |
|
933 <p> |
|
934 Public method to check for any modification. |
|
935 </p><dl> |
|
936 <dt>Returns:</dt> |
|
937 <dd> |
|
938 flag indicating a modified state |
|
939 </dd> |
|
940 </dl><dl> |
|
941 <dt>Return Type:</dt> |
|
942 <dd> |
|
943 bool |
|
944 </dd> |
|
945 </dl><a NAME="HexEditWidget.isReadOnly" ID="HexEditWidget.isReadOnly"></a> |
|
946 <h4>HexEditWidget.isReadOnly</h4> |
|
947 <b>isReadOnly</b>(<i></i>) |
|
948 <p> |
|
949 Public method to test the read only state. |
|
950 </p><dl> |
|
951 <dt>Returns:</dt> |
|
952 <dd> |
|
953 flag indicating the read only state |
|
954 </dd> |
|
955 </dl><dl> |
|
956 <dt>Return Type:</dt> |
|
957 <dd> |
|
958 bool |
|
959 </dd> |
|
960 </dl><a NAME="HexEditWidget.keyPressEvent" ID="HexEditWidget.keyPressEvent"></a> |
|
961 <h4>HexEditWidget.keyPressEvent</h4> |
|
962 <b>keyPressEvent</b>(<i>evt</i>) |
|
963 <p> |
|
964 Protected method to handle key press events. |
|
965 </p><dl> |
|
966 <dt><i>evt</i> (QKeyEvent)</dt> |
|
967 <dd> |
|
968 reference to the key event |
|
969 </dd> |
|
970 </dl><a NAME="HexEditWidget.lastIndexOf" ID="HexEditWidget.lastIndexOf"></a> |
|
971 <h4>HexEditWidget.lastIndexOf</h4> |
|
972 <b>lastIndexOf</b>(<i>byteArray, start</i>) |
|
973 <p> |
|
974 Public method to find the last occurrence of a byte array in our data. |
|
975 </p><dl> |
|
976 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> |
|
977 <dd> |
|
978 data to search for |
|
979 </dd><dt><i>start</i> (int)</dt> |
|
980 <dd> |
|
981 start position of the search |
|
982 </dd> |
|
983 </dl><dl> |
|
984 <dt>Returns:</dt> |
|
985 <dd> |
|
986 position of match (or -1 if not found) |
|
987 </dd> |
|
988 </dl><dl> |
|
989 <dt>Return Type:</dt> |
|
990 <dd> |
|
991 int |
|
992 </dd> |
|
993 </dl><a NAME="HexEditWidget.mouseMoveEvent" ID="HexEditWidget.mouseMoveEvent"></a> |
|
994 <h4>HexEditWidget.mouseMoveEvent</h4> |
|
995 <b>mouseMoveEvent</b>(<i>evt</i>) |
|
996 <p> |
|
997 Protected method to handle mouse moves. |
|
998 </p><dl> |
|
999 <dt><i>evt</i> (QMouseEvent)</dt> |
|
1000 <dd> |
|
1001 reference to the mouse event |
|
1002 </dd> |
|
1003 </dl><a NAME="HexEditWidget.mousePressEvent" ID="HexEditWidget.mousePressEvent"></a> |
|
1004 <h4>HexEditWidget.mousePressEvent</h4> |
|
1005 <b>mousePressEvent</b>(<i>evt</i>) |
|
1006 <p> |
|
1007 Protected method to handle mouse button presses. |
|
1008 </p><dl> |
|
1009 <dt><i>evt</i> (QMouseEvent)</dt> |
|
1010 <dd> |
|
1011 reference to the mouse event |
|
1012 </dd> |
|
1013 </dl><a NAME="HexEditWidget.moveCursorToEndOfDocument" ID="HexEditWidget.moveCursorToEndOfDocument"></a> |
|
1014 <h4>HexEditWidget.moveCursorToEndOfDocument</h4> |
|
1015 <b>moveCursorToEndOfDocument</b>(<i></i>) |
|
1016 <p> |
|
1017 Public method to move the cursor to the end of the data. |
|
1018 </p><a NAME="HexEditWidget.moveCursorToEndOfLine" ID="HexEditWidget.moveCursorToEndOfLine"></a> |
|
1019 <h4>HexEditWidget.moveCursorToEndOfLine</h4> |
|
1020 <b>moveCursorToEndOfLine</b>(<i></i>) |
|
1021 <p> |
|
1022 Public method to move the cursor to the end of the current line. |
|
1023 </p><a NAME="HexEditWidget.moveCursorToNextChar" ID="HexEditWidget.moveCursorToNextChar"></a> |
|
1024 <h4>HexEditWidget.moveCursorToNextChar</h4> |
|
1025 <b>moveCursorToNextChar</b>(<i></i>) |
|
1026 <p> |
|
1027 Public method to move the cursor to the next byte. |
|
1028 </p><a NAME="HexEditWidget.moveCursorToNextLine" ID="HexEditWidget.moveCursorToNextLine"></a> |
|
1029 <h4>HexEditWidget.moveCursorToNextLine</h4> |
|
1030 <b>moveCursorToNextLine</b>(<i></i>) |
|
1031 <p> |
|
1032 Public method to move the cursor to the next line. |
|
1033 </p><a NAME="HexEditWidget.moveCursorToNextPage" ID="HexEditWidget.moveCursorToNextPage"></a> |
|
1034 <h4>HexEditWidget.moveCursorToNextPage</h4> |
|
1035 <b>moveCursorToNextPage</b>(<i></i>) |
|
1036 <p> |
|
1037 Public method to move the cursor to the next page. |
|
1038 </p><a NAME="HexEditWidget.moveCursorToPreviousChar" ID="HexEditWidget.moveCursorToPreviousChar"></a> |
|
1039 <h4>HexEditWidget.moveCursorToPreviousChar</h4> |
|
1040 <b>moveCursorToPreviousChar</b>(<i></i>) |
|
1041 <p> |
|
1042 Public method to move the cursor to the previous byte. |
|
1043 </p><a NAME="HexEditWidget.moveCursorToPreviousLine" ID="HexEditWidget.moveCursorToPreviousLine"></a> |
|
1044 <h4>HexEditWidget.moveCursorToPreviousLine</h4> |
|
1045 <b>moveCursorToPreviousLine</b>(<i></i>) |
|
1046 <p> |
|
1047 Public method to move the cursor to the previous line. |
|
1048 </p><a NAME="HexEditWidget.moveCursorToPreviousPage" ID="HexEditWidget.moveCursorToPreviousPage"></a> |
|
1049 <h4>HexEditWidget.moveCursorToPreviousPage</h4> |
|
1050 <b>moveCursorToPreviousPage</b>(<i></i>) |
|
1051 <p> |
|
1052 Public method to move the cursor to the previous page. |
|
1053 </p><a NAME="HexEditWidget.moveCursorToStartOfDocument" ID="HexEditWidget.moveCursorToStartOfDocument"></a> |
|
1054 <h4>HexEditWidget.moveCursorToStartOfDocument</h4> |
|
1055 <b>moveCursorToStartOfDocument</b>(<i></i>) |
|
1056 <p> |
|
1057 Public method to move the cursor to the start of the data. |
|
1058 </p><a NAME="HexEditWidget.moveCursorToStartOfLine" ID="HexEditWidget.moveCursorToStartOfLine"></a> |
|
1059 <h4>HexEditWidget.moveCursorToStartOfLine</h4> |
|
1060 <b>moveCursorToStartOfLine</b>(<i></i>) |
|
1061 <p> |
|
1062 Public method to move the cursor to the beginning of the current line. |
|
1063 </p><a NAME="HexEditWidget.overwriteMode" ID="HexEditWidget.overwriteMode"></a> |
|
1064 <h4>HexEditWidget.overwriteMode</h4> |
|
1065 <b>overwriteMode</b>(<i></i>) |
|
1066 <p> |
|
1067 Public method to get the overwrite mode. |
|
1068 </p><dl> |
|
1069 <dt>Returns:</dt> |
|
1070 <dd> |
|
1071 overwrite mode |
|
1072 </dd> |
|
1073 </dl><dl> |
|
1074 <dt>Return Type:</dt> |
|
1075 <dd> |
|
1076 bool |
|
1077 </dd> |
|
1078 </dl><a NAME="HexEditWidget.paintEvent" ID="HexEditWidget.paintEvent"></a> |
|
1079 <h4>HexEditWidget.paintEvent</h4> |
|
1080 <b>paintEvent</b>(<i>evt</i>) |
|
1081 <p> |
|
1082 Protected method to handle paint events. |
|
1083 </p><dl> |
|
1084 <dt><i>evt</i> (QPaintEvent)</dt> |
|
1085 <dd> |
|
1086 reference to the paint event |
|
1087 </dd> |
|
1088 </dl><a NAME="HexEditWidget.paste" ID="HexEditWidget.paste"></a> |
|
1089 <h4>HexEditWidget.paste</h4> |
|
1090 <b>paste</b>(<i></i>) |
|
1091 <p> |
|
1092 Public method to paste bytes from the clipboard. |
|
1093 </p><a NAME="HexEditWidget.redo" ID="HexEditWidget.redo"></a> |
|
1094 <h4>HexEditWidget.redo</h4> |
|
1095 <b>redo</b>(<i></i>) |
|
1096 <p> |
|
1097 Public slot to redo the last operation. |
|
1098 </p><a NAME="HexEditWidget.remove" ID="HexEditWidget.remove"></a> |
|
1099 <h4>HexEditWidget.remove</h4> |
|
1100 <b>remove</b>(<i>pos, length=1</i>) |
|
1101 <p> |
|
1102 Public method to remove bytes. |
|
1103 </p><dl> |
|
1104 <dt><i>pos</i> (int)</dt> |
|
1105 <dd> |
|
1106 position to remove bytes from |
|
1107 </dd><dt><i>length</i> (int)</dt> |
|
1108 <dd> |
|
1109 amount of bytes to remove |
|
1110 </dd> |
|
1111 </dl><a NAME="HexEditWidget.replace" ID="HexEditWidget.replace"></a> |
|
1112 <h4>HexEditWidget.replace</h4> |
|
1113 <b>replace</b>(<i>pos, ch</i>) |
|
1114 <p> |
|
1115 Public method to replace a byte. |
|
1116 </p><dl> |
|
1117 <dt><i>pos</i> (int)</dt> |
|
1118 <dd> |
|
1119 position to replace the byte at |
|
1120 </dd><dt><i>ch</i> (int in the range 0x00 to 0xff)</dt> |
|
1121 <dd> |
|
1122 byte to replace with |
|
1123 </dd> |
|
1124 </dl><a NAME="HexEditWidget.replaceByteArray" ID="HexEditWidget.replaceByteArray"></a> |
|
1125 <h4>HexEditWidget.replaceByteArray</h4> |
|
1126 <b>replaceByteArray</b>(<i>pos, length, byteArray</i>) |
|
1127 <p> |
|
1128 Public method to replace bytes. |
|
1129 </p><dl> |
|
1130 <dt><i>pos</i> (int)</dt> |
|
1131 <dd> |
|
1132 position to replace the bytes at |
|
1133 </dd><dt><i>length</i> (int)</dt> |
|
1134 <dd> |
|
1135 amount of bytes to replace |
|
1136 </dd><dt><i>byteArray</i> (bytearray or QByteArray)</dt> |
|
1137 <dd> |
|
1138 bytes to replace with |
|
1139 </dd> |
|
1140 </dl><a NAME="HexEditWidget.resizeEvent" ID="HexEditWidget.resizeEvent"></a> |
|
1141 <h4>HexEditWidget.resizeEvent</h4> |
|
1142 <b>resizeEvent</b>(<i>evt</i>) |
|
1143 <p> |
|
1144 Protected method to handle resize events. |
|
1145 </p><dl> |
|
1146 <dt><i>evt</i> (QResizeEvent)</dt> |
|
1147 <dd> |
|
1148 reference to the resize event |
|
1149 </dd> |
|
1150 </dl><a NAME="HexEditWidget.revertToUnmodified" ID="HexEditWidget.revertToUnmodified"></a> |
|
1151 <h4>HexEditWidget.revertToUnmodified</h4> |
|
1152 <b>revertToUnmodified</b>(<i></i>) |
|
1153 <p> |
|
1154 Public slot to revert all changes. |
|
1155 </p><a NAME="HexEditWidget.selectAll" ID="HexEditWidget.selectAll"></a> |
|
1156 <h4>HexEditWidget.selectAll</h4> |
|
1157 <b>selectAll</b>(<i></i>) |
|
1158 <p> |
|
1159 Public method to select all data. |
|
1160 </p><a NAME="HexEditWidget.selectEndOfDocument" ID="HexEditWidget.selectEndOfDocument"></a> |
|
1161 <h4>HexEditWidget.selectEndOfDocument</h4> |
|
1162 <b>selectEndOfDocument</b>(<i></i>) |
|
1163 <p> |
|
1164 Public method to extend the selection to the end of the data. |
|
1165 </p><a NAME="HexEditWidget.selectNextChar" ID="HexEditWidget.selectNextChar"></a> |
|
1166 <h4>HexEditWidget.selectNextChar</h4> |
|
1167 <b>selectNextChar</b>(<i></i>) |
|
1168 <p> |
|
1169 Public method to extend the selection by one byte right. |
|
1170 </p><a NAME="HexEditWidget.selectNextLine" ID="HexEditWidget.selectNextLine"></a> |
|
1171 <h4>HexEditWidget.selectNextLine</h4> |
|
1172 <b>selectNextLine</b>(<i></i>) |
|
1173 <p> |
|
1174 Public method to extend the selection one line down. |
|
1175 </p><a NAME="HexEditWidget.selectNextPage" ID="HexEditWidget.selectNextPage"></a> |
|
1176 <h4>HexEditWidget.selectNextPage</h4> |
|
1177 <b>selectNextPage</b>(<i></i>) |
|
1178 <p> |
|
1179 Public method to extend the selection one page down. |
|
1180 </p><a NAME="HexEditWidget.selectPreviousChar" ID="HexEditWidget.selectPreviousChar"></a> |
|
1181 <h4>HexEditWidget.selectPreviousChar</h4> |
|
1182 <b>selectPreviousChar</b>(<i></i>) |
|
1183 <p> |
|
1184 Public method to extend the selection by one byte left. |
|
1185 </p><a NAME="HexEditWidget.selectPreviousLine" ID="HexEditWidget.selectPreviousLine"></a> |
|
1186 <h4>HexEditWidget.selectPreviousLine</h4> |
|
1187 <b>selectPreviousLine</b>(<i></i>) |
|
1188 <p> |
|
1189 Public method to extend the selection one line up. |
|
1190 </p><a NAME="HexEditWidget.selectPreviousPage" ID="HexEditWidget.selectPreviousPage"></a> |
|
1191 <h4>HexEditWidget.selectPreviousPage</h4> |
|
1192 <b>selectPreviousPage</b>(<i></i>) |
|
1193 <p> |
|
1194 Public method to extend the selection one page up. |
|
1195 </p><a NAME="HexEditWidget.selectStartOfDocument" ID="HexEditWidget.selectStartOfDocument"></a> |
|
1196 <h4>HexEditWidget.selectStartOfDocument</h4> |
|
1197 <b>selectStartOfDocument</b>(<i></i>) |
|
1198 <p> |
|
1199 Public method to extend the selection to the start of the data. |
|
1200 </p><a NAME="HexEditWidget.selectToEndOfLine" ID="HexEditWidget.selectToEndOfLine"></a> |
|
1201 <h4>HexEditWidget.selectToEndOfLine</h4> |
|
1202 <b>selectToEndOfLine</b>(<i></i>) |
|
1203 <p> |
|
1204 Public method to extend the selection to the end of line. |
|
1205 </p><a NAME="HexEditWidget.selectToStartOfLine" ID="HexEditWidget.selectToStartOfLine"></a> |
|
1206 <h4>HexEditWidget.selectToStartOfLine</h4> |
|
1207 <b>selectToStartOfLine</b>(<i></i>) |
|
1208 <p> |
|
1209 Public method to extend the selection to the start of line. |
|
1210 </p><a NAME="HexEditWidget.selectionColors" ID="HexEditWidget.selectionColors"></a> |
|
1211 <h4>HexEditWidget.selectionColors</h4> |
|
1212 <b>selectionColors</b>(<i></i>) |
|
1213 <p> |
|
1214 Public method to get the selection colors. |
|
1215 </p><dl> |
|
1216 <dt>Returns:</dt> |
|
1217 <dd> |
|
1218 selection foreground and background colors |
|
1219 </dd> |
|
1220 </dl><dl> |
|
1221 <dt>Return Type:</dt> |
|
1222 <dd> |
|
1223 tuple of 2 QColor |
|
1224 </dd> |
|
1225 </dl><a NAME="HexEditWidget.selectionToHexString" ID="HexEditWidget.selectionToHexString"></a> |
|
1226 <h4>HexEditWidget.selectionToHexString</h4> |
|
1227 <b>selectionToHexString</b>(<i></i>) |
|
1228 <p> |
|
1229 Public method to get a hexadecimal representation of the selection. |
|
1230 </p><dl> |
|
1231 <dt>Returns:</dt> |
|
1232 <dd> |
|
1233 hexadecimal representation of the selection |
|
1234 </dd> |
|
1235 </dl><dl> |
|
1236 <dt>Return Type:</dt> |
|
1237 <dd> |
|
1238 str |
|
1239 </dd> |
|
1240 </dl><a NAME="HexEditWidget.selectionToReadableString" ID="HexEditWidget.selectionToReadableString"></a> |
|
1241 <h4>HexEditWidget.selectionToReadableString</h4> |
|
1242 <b>selectionToReadableString</b>(<i></i>) |
|
1243 <p> |
|
1244 Public method to get a formatted representation of the selection. |
|
1245 </p><dl> |
|
1246 <dt>Returns:</dt> |
|
1247 <dd> |
|
1248 formatted representation of the selection |
|
1249 </dd> |
|
1250 </dl><dl> |
|
1251 <dt>Return Type:</dt> |
|
1252 <dd> |
|
1253 str |
|
1254 </dd> |
|
1255 </dl><a NAME="HexEditWidget.setAddressArea" ID="HexEditWidget.setAddressArea"></a> |
|
1256 <h4>HexEditWidget.setAddressArea</h4> |
|
1257 <b>setAddressArea</b>(<i>on</i>) |
|
1258 <p> |
|
1259 Public method to set the address area visibility. |
|
1260 </p><dl> |
|
1261 <dt><i>on</i> (bool)</dt> |
|
1262 <dd> |
|
1263 flag indicating the address area visibility |
|
1264 </dd> |
|
1265 </dl><a NAME="HexEditWidget.setAddressAreaColors" ID="HexEditWidget.setAddressAreaColors"></a> |
|
1266 <h4>HexEditWidget.setAddressAreaColors</h4> |
|
1267 <b>setAddressAreaColors</b>(<i>foreground, background</i>) |
|
1268 <p> |
|
1269 Public method to set the address area colors. |
|
1270 </p><dl> |
|
1271 <dt><i>foreground</i> (QColor)</dt> |
|
1272 <dd> |
|
1273 address area foreground color |
|
1274 </dd><dt><i>background</i> (QColor)</dt> |
|
1275 <dd> |
|
1276 address area background color |
|
1277 </dd> |
|
1278 </dl><a NAME="HexEditWidget.setAddressOffset" ID="HexEditWidget.setAddressOffset"></a> |
|
1279 <h4>HexEditWidget.setAddressOffset</h4> |
|
1280 <b>setAddressOffset</b>(<i>offset</i>) |
|
1281 <p> |
|
1282 Public method to set the address offset. |
|
1283 </p><dl> |
|
1284 <dt><i>offset</i> (int)</dt> |
|
1285 <dd> |
|
1286 address offset |
|
1287 </dd> |
|
1288 </dl><a NAME="HexEditWidget.setAddressWidth" ID="HexEditWidget.setAddressWidth"></a> |
|
1289 <h4>HexEditWidget.setAddressWidth</h4> |
|
1290 <b>setAddressWidth</b>(<i>width</i>) |
|
1291 <p> |
|
1292 Public method to set the width of the address area. |
|
1293 </p><p> |
|
1294 Note: The address area width is always a multiple of four. |
|
1295 The given value will be adjusted as required. |
|
1296 </p><dl> |
|
1297 <dt><i>width</i> (int)</dt> |
|
1298 <dd> |
|
1299 width of the address area in characters |
|
1300 </dd> |
|
1301 </dl><a NAME="HexEditWidget.setAsciiArea" ID="HexEditWidget.setAsciiArea"></a> |
|
1302 <h4>HexEditWidget.setAsciiArea</h4> |
|
1303 <b>setAsciiArea</b>(<i>on</i>) |
|
1304 <p> |
|
1305 Public method to set the visibility of the ASCII area. |
|
1306 </p><dl> |
|
1307 <dt><i>on</i> (bool)</dt> |
|
1308 <dd> |
|
1309 flag indicating the visibility of the ASCII area |
|
1310 </dd> |
|
1311 </dl><a NAME="HexEditWidget.setCursorBytePosition" ID="HexEditWidget.setCursorBytePosition"></a> |
|
1312 <h4>HexEditWidget.setCursorBytePosition</h4> |
|
1313 <b>setCursorBytePosition</b>(<i>pos</i>) |
|
1314 <p> |
|
1315 Public method to set the cursor position in bytes. |
|
1316 </p><dl> |
|
1317 <dt><i>pos</i> (int)</dt> |
|
1318 <dd> |
|
1319 cursor position in bytes |
|
1320 </dd> |
|
1321 </dl><a NAME="HexEditWidget.setCursorPosition" ID="HexEditWidget.setCursorPosition"></a> |
|
1322 <h4>HexEditWidget.setCursorPosition</h4> |
|
1323 <b>setCursorPosition</b>(<i>pos</i>) |
|
1324 <p> |
|
1325 Public method to set the cursor position. |
|
1326 </p><dl> |
|
1327 <dt><i>pos</i> (int)</dt> |
|
1328 <dd> |
|
1329 cursor position |
|
1330 </dd> |
|
1331 </dl><a NAME="HexEditWidget.setData" ID="HexEditWidget.setData"></a> |
|
1332 <h4>HexEditWidget.setData</h4> |
|
1333 <b>setData</b>(<i>dataOrDevice</i>) |
|
1334 <p> |
|
1335 Public method to set the data to show. |
|
1336 </p><dl> |
|
1337 <dt><i>dataOrDevice</i> (bytearray, QByteArray or QIODevice)</dt> |
|
1338 <dd> |
|
1339 byte array or device containing the data |
|
1340 </dd> |
|
1341 </dl><dl> |
|
1342 <dt>Returns:</dt> |
|
1343 <dd> |
|
1344 flag indicating success |
|
1345 </dd> |
|
1346 </dl><dl> |
|
1347 <dt>Return Type:</dt> |
|
1348 <dd> |
|
1349 bool |
|
1350 </dd> |
|
1351 </dl><dl> |
|
1352 <dt>Raises <b>TypeError</b>:</dt> |
|
1353 <dd> |
|
1354 raised to indicate a wrong parameter type |
|
1355 </dd> |
|
1356 </dl><a NAME="HexEditWidget.setFont" ID="HexEditWidget.setFont"></a> |
|
1357 <h4>HexEditWidget.setFont</h4> |
|
1358 <b>setFont</b>(<i>font</i>) |
|
1359 <p> |
|
1360 Public method to set the font used to show the data. |
|
1361 </p><dl> |
|
1362 <dt><i>font</i> (QFont)</dt> |
|
1363 <dd> |
|
1364 font used to show the data |
|
1365 </dd> |
|
1366 </dl><a NAME="HexEditWidget.setHighlightColors" ID="HexEditWidget.setHighlightColors"></a> |
|
1367 <h4>HexEditWidget.setHighlightColors</h4> |
|
1368 <b>setHighlightColors</b>(<i>foreground, background</i>) |
|
1369 <p> |
|
1370 Public method to set the highlight colors. |
|
1371 </p><dl> |
|
1372 <dt><i>foreground</i> (QColor)</dt> |
|
1373 <dd> |
|
1374 highlight foreground color |
|
1375 </dd><dt><i>background</i> (QColor)</dt> |
|
1376 <dd> |
|
1377 highlight background color |
|
1378 </dd> |
|
1379 </dl><a NAME="HexEditWidget.setHighlighting" ID="HexEditWidget.setHighlighting"></a> |
|
1380 <h4>HexEditWidget.setHighlighting</h4> |
|
1381 <b>setHighlighting</b>(<i>on</i>) |
|
1382 <p> |
|
1383 Public method to set the highlighting state. |
|
1384 </p><dl> |
|
1385 <dt><i>on</i> (bool)</dt> |
|
1386 <dd> |
|
1387 new highlighting state |
|
1388 </dd> |
|
1389 </dl><a NAME="HexEditWidget.setModified" ID="HexEditWidget.setModified"></a> |
|
1390 <h4>HexEditWidget.setModified</h4> |
|
1391 <b>setModified</b>(<i>modified, setCleanState=False</i>) |
|
1392 <p> |
|
1393 Public slot to set the modified flag. |
|
1394 </p><dl> |
|
1395 <dt><i>modified</i> (bool)</dt> |
|
1396 <dd> |
|
1397 flag indicating the new modification status |
|
1398 </dd><dt><i>setCleanState</i> (bool)</dt> |
|
1399 <dd> |
|
1400 flag indicating to set the undo stack to clean |
|
1401 </dd> |
|
1402 </dl><a NAME="HexEditWidget.setOverwriteMode" ID="HexEditWidget.setOverwriteMode"></a> |
|
1403 <h4>HexEditWidget.setOverwriteMode</h4> |
|
1404 <b>setOverwriteMode</b>(<i>on</i>) |
|
1405 <p> |
|
1406 Public method to set the overwrite mode. |
|
1407 </p><dl> |
|
1408 <dt><i>on</i> (bool)</dt> |
|
1409 <dd> |
|
1410 flag indicating the new overwrite mode |
|
1411 </dd> |
|
1412 </dl><a NAME="HexEditWidget.setReadOnly" ID="HexEditWidget.setReadOnly"></a> |
|
1413 <h4>HexEditWidget.setReadOnly</h4> |
|
1414 <b>setReadOnly</b>(<i>on</i>) |
|
1415 <p> |
|
1416 Public method to set the read only state. |
|
1417 </p><dl> |
|
1418 <dt><i>on</i> (bool)</dt> |
|
1419 <dd> |
|
1420 new read only state |
|
1421 </dd> |
|
1422 </dl><a NAME="HexEditWidget.setSelectionColors" ID="HexEditWidget.setSelectionColors"></a> |
|
1423 <h4>HexEditWidget.setSelectionColors</h4> |
|
1424 <b>setSelectionColors</b>(<i>foreground, background</i>) |
|
1425 <p> |
|
1426 Public method to set the selection colors. |
|
1427 </p><dl> |
|
1428 <dt><i>foreground</i> (QColor)</dt> |
|
1429 <dd> |
|
1430 selection foreground color |
|
1431 </dd><dt><i>background</i> (QColor)</dt> |
|
1432 <dd> |
|
1433 selection background color |
|
1434 </dd> |
|
1435 </dl><a NAME="HexEditWidget.toReadableString" ID="HexEditWidget.toReadableString"></a> |
|
1436 <h4>HexEditWidget.toReadableString</h4> |
|
1437 <b>toReadableString</b>(<i></i>) |
|
1438 <p> |
|
1439 Public method to get a formatted representation of our data. |
|
1440 </p><dl> |
|
1441 <dt>Returns:</dt> |
|
1442 <dd> |
|
1443 formatted representation of our data |
|
1444 </dd> |
|
1445 </dl><dl> |
|
1446 <dt>Return Type:</dt> |
|
1447 <dd> |
|
1448 str |
|
1449 </dd> |
|
1450 </dl><a NAME="HexEditWidget.undo" ID="HexEditWidget.undo"></a> |
|
1451 <h4>HexEditWidget.undo</h4> |
|
1452 <b>undo</b>(<i></i>) |
|
1453 <p> |
|
1454 Public slot to undo the last operation. |
|
1455 </p><a NAME="HexEditWidget.undoStack" ID="HexEditWidget.undoStack"></a> |
|
1456 <h4>HexEditWidget.undoStack</h4> |
|
1457 <b>undoStack</b>(<i></i>) |
|
1458 <p> |
|
1459 Public method to get a reference to the undo stack. |
|
1460 </p><dl> |
|
1461 <dt>Returns:</dt> |
|
1462 <dd> |
|
1463 reference to the undo stack |
|
1464 </dd> |
|
1465 </dl><dl> |
|
1466 <dt>Return Type:</dt> |
|
1467 <dd> |
|
1468 HexEditUndoStack |
|
1469 </dd> |
|
1470 </dl><a NAME="HexEditWidget.write" ID="HexEditWidget.write"></a> |
|
1471 <h4>HexEditWidget.write</h4> |
|
1472 <b>write</b>(<i>device, pos=0, count=-1</i>) |
|
1473 <p> |
|
1474 Public method to write data from a given position to a device. |
|
1475 </p><dl> |
|
1476 <dt><i>device</i> (QIODevice)</dt> |
|
1477 <dd> |
|
1478 device to write to |
|
1479 </dd><dt><i>pos</i> (int)</dt> |
|
1480 <dd> |
|
1481 position to start the write at |
|
1482 </dd><dt><i>count</i> (int)</dt> |
|
1483 <dd> |
|
1484 amount of bytes to write |
|
1485 </dd> |
|
1486 </dl><dl> |
|
1487 <dt>Returns:</dt> |
|
1488 <dd> |
|
1489 flag indicating success |
|
1490 </dd> |
|
1491 </dl><dl> |
|
1492 <dt>Return Type:</dt> |
|
1493 <dd> |
|
1494 bool |
|
1495 </dd> |
|
1496 </dl> |
|
1497 <div align="right"><a href="#top">Up</a></div> |
|
1498 <hr /> |
|
1499 </body></html> |