5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.HexEdit.HexEditWidget</h1> |
9 <h1>eric7.HexEdit.HexEditWidget</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing an editor for binary data. |
11 Module implementing an editor for binary data. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#HexEditWidget">HexEditWidget</a></td> |
22 <td><a href="#HexEditWidget">HexEditWidget</a></td> |
25 <td>Class implementing an editor for binary data.</td> |
23 <td>Class implementing an editor for binary data.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
|
30 <table> |
28 <table> |
31 <tr><td>None</td></tr> |
29 <tr><td>None</td></tr> |
32 </table> |
30 </table> |
|
31 |
33 <hr /> |
32 <hr /> |
34 <hr /> |
33 <hr /> |
35 <a NAME="HexEditWidget" ID="HexEditWidget"></a> |
34 <a NAME="HexEditWidget" ID="HexEditWidget"></a> |
36 <h2>HexEditWidget</h2> |
35 <h2>HexEditWidget</h2> |
37 |
|
38 <p> |
36 <p> |
39 Class implementing an editor for binary data. |
37 Class implementing an editor for binary data. |
40 </p> |
38 </p> |
|
39 |
41 <h3>Signals</h3> |
40 <h3>Signals</h3> |
42 <dl> |
41 <dl> |
43 |
42 |
44 <dt>canRedoChanged(bool)</dt> |
43 <dt>canRedoChanged(bool)</dt> |
45 <dd> |
44 <dd> |
474 <tr> |
472 <tr> |
475 <td><a href="#HexEditWidget.write">write</a></td> |
473 <td><a href="#HexEditWidget.write">write</a></td> |
476 <td>Public method to write data from a given position to a device.</td> |
474 <td>Public method to write data from a given position to a device.</td> |
477 </tr> |
475 </tr> |
478 </table> |
476 </table> |
|
477 |
479 <h3>Static Methods</h3> |
478 <h3>Static Methods</h3> |
480 |
|
481 <table> |
479 <table> |
482 <tr><td>None</td></tr> |
480 <tr><td>None</td></tr> |
483 </table> |
481 </table> |
484 |
482 |
|
483 |
485 <a NAME="HexEditWidget.__init__" ID="HexEditWidget.__init__"></a> |
484 <a NAME="HexEditWidget.__init__" ID="HexEditWidget.__init__"></a> |
486 <h4>HexEditWidget (Constructor)</h4> |
485 <h4>HexEditWidget (Constructor)</h4> |
487 <b>HexEditWidget</b>(<i>parent=None</i>) |
486 <b>HexEditWidget</b>(<i>parent=None</i>) |
488 |
|
489 <p> |
487 <p> |
490 Constructor |
488 Constructor |
491 </p> |
489 </p> |
|
490 |
492 <dl> |
491 <dl> |
493 |
492 |
494 <dt><i>parent</i> (QWidget)</dt> |
493 <dt><i>parent</i> (QWidget)</dt> |
495 <dd> |
494 <dd> |
496 refernce to the parent widget |
495 refernce to the parent widget |
497 </dd> |
496 </dd> |
498 </dl> |
497 </dl> |
499 <a NAME="HexEditWidget.__adjust" ID="HexEditWidget.__adjust"></a> |
498 <a NAME="HexEditWidget.__adjust" ID="HexEditWidget.__adjust"></a> |
500 <h4>HexEditWidget.__adjust</h4> |
499 <h4>HexEditWidget.__adjust</h4> |
501 <b>__adjust</b>(<i></i>) |
500 <b>__adjust</b>(<i></i>) |
502 |
|
503 <p> |
501 <p> |
504 Private slot to recalculate pixel positions. |
502 Private slot to recalculate pixel positions. |
505 </p> |
503 </p> |
|
504 |
506 <a NAME="HexEditWidget.__canRedoChanged" ID="HexEditWidget.__canRedoChanged"></a> |
505 <a NAME="HexEditWidget.__canRedoChanged" ID="HexEditWidget.__canRedoChanged"></a> |
507 <h4>HexEditWidget.__canRedoChanged</h4> |
506 <h4>HexEditWidget.__canRedoChanged</h4> |
508 <b>__canRedoChanged</b>(<i></i>) |
507 <b>__canRedoChanged</b>(<i></i>) |
509 |
|
510 <p> |
508 <p> |
511 Private slot handling changes of the Redo state. |
509 Private slot handling changes of the Redo state. |
512 </p> |
510 </p> |
|
511 |
513 <a NAME="HexEditWidget.__canUndoChanged" ID="HexEditWidget.__canUndoChanged"></a> |
512 <a NAME="HexEditWidget.__canUndoChanged" ID="HexEditWidget.__canUndoChanged"></a> |
514 <h4>HexEditWidget.__canUndoChanged</h4> |
513 <h4>HexEditWidget.__canUndoChanged</h4> |
515 <b>__canUndoChanged</b>(<i></i>) |
514 <b>__canUndoChanged</b>(<i></i>) |
516 |
|
517 <p> |
515 <p> |
518 Private slot handling changes of the Undo state. |
516 Private slot handling changes of the Undo state. |
519 </p> |
517 </p> |
|
518 |
520 <a NAME="HexEditWidget.__dataChangedPrivate" ID="HexEditWidget.__dataChangedPrivate"></a> |
519 <a NAME="HexEditWidget.__dataChangedPrivate" ID="HexEditWidget.__dataChangedPrivate"></a> |
521 <h4>HexEditWidget.__dataChangedPrivate</h4> |
520 <h4>HexEditWidget.__dataChangedPrivate</h4> |
522 <b>__dataChangedPrivate</b>(<i>idx=0</i>) |
521 <b>__dataChangedPrivate</b>(<i>idx=0</i>) |
523 |
|
524 <p> |
522 <p> |
525 Private slot to handle data changes. |
523 Private slot to handle data changes. |
526 </p> |
524 </p> |
|
525 |
527 <dl> |
526 <dl> |
528 |
527 |
529 <dt><i>idx</i> (int)</dt> |
528 <dt><i>idx</i> (int)</dt> |
530 <dd> |
529 <dd> |
531 index |
530 index |
532 </dd> |
531 </dd> |
533 </dl> |
532 </dl> |
534 <a NAME="HexEditWidget.__fromHex" ID="HexEditWidget.__fromHex"></a> |
533 <a NAME="HexEditWidget.__fromHex" ID="HexEditWidget.__fromHex"></a> |
535 <h4>HexEditWidget.__fromHex</h4> |
534 <h4>HexEditWidget.__fromHex</h4> |
536 <b>__fromHex</b>(<i>byteArray</i>) |
535 <b>__fromHex</b>(<i>byteArray</i>) |
537 |
|
538 <p> |
536 <p> |
539 Private method to convert data of a Python bytearray from hex. |
537 Private method to convert data of a Python bytearray from hex. |
540 </p> |
538 </p> |
|
539 |
541 <dl> |
540 <dl> |
542 |
541 |
543 <dt><i>byteArray</i> (bytearray)</dt> |
542 <dt><i>byteArray</i> (bytearray)</dt> |
544 <dd> |
543 <dd> |
545 byte array to be converted |
544 byte array to be converted |
558 </dd> |
557 </dd> |
559 </dl> |
558 </dl> |
560 <a NAME="HexEditWidget.__initialize" ID="HexEditWidget.__initialize"></a> |
559 <a NAME="HexEditWidget.__initialize" ID="HexEditWidget.__initialize"></a> |
561 <h4>HexEditWidget.__initialize</h4> |
560 <h4>HexEditWidget.__initialize</h4> |
562 <b>__initialize</b>(<i></i>) |
561 <b>__initialize</b>(<i></i>) |
563 |
|
564 <p> |
562 <p> |
565 Private method to do some initialization. |
563 Private method to do some initialization. |
566 </p> |
564 </p> |
|
565 |
567 <a NAME="HexEditWidget.__readBuffers" ID="HexEditWidget.__readBuffers"></a> |
566 <a NAME="HexEditWidget.__readBuffers" ID="HexEditWidget.__readBuffers"></a> |
568 <h4>HexEditWidget.__readBuffers</h4> |
567 <h4>HexEditWidget.__readBuffers</h4> |
569 <b>__readBuffers</b>(<i></i>) |
568 <b>__readBuffers</b>(<i></i>) |
570 |
|
571 <p> |
569 <p> |
572 Private method to read the buffers. |
570 Private method to read the buffers. |
573 </p> |
571 </p> |
|
572 |
574 <a NAME="HexEditWidget.__refresh" ID="HexEditWidget.__refresh"></a> |
573 <a NAME="HexEditWidget.__refresh" ID="HexEditWidget.__refresh"></a> |
575 <h4>HexEditWidget.__refresh</h4> |
574 <h4>HexEditWidget.__refresh</h4> |
576 <b>__refresh</b>(<i></i>) |
575 <b>__refresh</b>(<i></i>) |
577 |
|
578 <p> |
576 <p> |
579 Private slot to refresh the display. |
577 Private slot to refresh the display. |
580 </p> |
578 </p> |
|
579 |
581 <a NAME="HexEditWidget.__resetSelection" ID="HexEditWidget.__resetSelection"></a> |
580 <a NAME="HexEditWidget.__resetSelection" ID="HexEditWidget.__resetSelection"></a> |
582 <h4>HexEditWidget.__resetSelection</h4> |
581 <h4>HexEditWidget.__resetSelection</h4> |
583 <b>__resetSelection</b>(<i>pos=None</i>) |
582 <b>__resetSelection</b>(<i>pos=None</i>) |
584 |
|
585 <p> |
583 <p> |
586 Private method to reset the selection. |
584 Private method to reset the selection. |
587 </p> |
585 </p> |
|
586 |
588 <dl> |
587 <dl> |
589 |
588 |
590 <dt><i>pos</i> (int or None)</dt> |
589 <dt><i>pos</i> (int or None)</dt> |
591 <dd> |
590 <dd> |
592 position to set selection start and end to |
591 position to set selection start and end to |
620 </dd> |
619 </dd> |
621 </dl> |
620 </dl> |
622 <a NAME="HexEditWidget.__setHexCursorRect" ID="HexEditWidget.__setHexCursorRect"></a> |
621 <a NAME="HexEditWidget.__setHexCursorRect" ID="HexEditWidget.__setHexCursorRect"></a> |
623 <h4>HexEditWidget.__setHexCursorRect</h4> |
622 <h4>HexEditWidget.__setHexCursorRect</h4> |
624 <b>__setHexCursorRect</b>(<i></i>) |
623 <b>__setHexCursorRect</b>(<i></i>) |
625 |
|
626 <p> |
624 <p> |
627 Private method to set the cursor. |
625 Private method to set the cursor. |
628 </p> |
626 </p> |
|
627 |
629 <a NAME="HexEditWidget.__setSelection" ID="HexEditWidget.__setSelection"></a> |
628 <a NAME="HexEditWidget.__setSelection" ID="HexEditWidget.__setSelection"></a> |
630 <h4>HexEditWidget.__setSelection</h4> |
629 <h4>HexEditWidget.__setSelection</h4> |
631 <b>__setSelection</b>(<i>pos</i>) |
630 <b>__setSelection</b>(<i>pos</i>) |
632 |
|
633 <p> |
631 <p> |
634 Private method to set the selection. |
632 Private method to set the selection. |
635 </p> |
633 </p> |
|
634 |
636 <dl> |
635 <dl> |
637 |
636 |
638 <dt><i>pos</i> (int)</dt> |
637 <dt><i>pos</i> (int)</dt> |
639 <dd> |
638 <dd> |
640 position |
639 position |
641 </dd> |
640 </dd> |
642 </dl> |
641 </dl> |
643 <a NAME="HexEditWidget.__toHex" ID="HexEditWidget.__toHex"></a> |
642 <a NAME="HexEditWidget.__toHex" ID="HexEditWidget.__toHex"></a> |
644 <h4>HexEditWidget.__toHex</h4> |
643 <h4>HexEditWidget.__toHex</h4> |
645 <b>__toHex</b>(<i>byteArray</i>) |
644 <b>__toHex</b>(<i>byteArray</i>) |
646 |
|
647 <p> |
645 <p> |
648 Private method to convert the data of a Python bytearray to hex. |
646 Private method to convert the data of a Python bytearray to hex. |
649 </p> |
647 </p> |
|
648 |
650 <dl> |
649 <dl> |
651 |
650 |
652 <dt><i>byteArray</i> (bytearray)</dt> |
651 <dt><i>byteArray</i> (bytearray)</dt> |
653 <dd> |
652 <dd> |
654 byte array to be converted |
653 byte array to be converted |
907 </dd> |
906 </dd> |
908 </dl> |
907 </dl> |
909 <a NAME="HexEditWidget.deleteByte" ID="HexEditWidget.deleteByte"></a> |
908 <a NAME="HexEditWidget.deleteByte" ID="HexEditWidget.deleteByte"></a> |
910 <h4>HexEditWidget.deleteByte</h4> |
909 <h4>HexEditWidget.deleteByte</h4> |
911 <b>deleteByte</b>(<i></i>) |
910 <b>deleteByte</b>(<i></i>) |
912 |
|
913 <p> |
911 <p> |
914 Public method to delete the current byte. |
912 Public method to delete the current byte. |
915 </p> |
913 </p> |
|
914 |
916 <a NAME="HexEditWidget.deleteByteBack" ID="HexEditWidget.deleteByteBack"></a> |
915 <a NAME="HexEditWidget.deleteByteBack" ID="HexEditWidget.deleteByteBack"></a> |
917 <h4>HexEditWidget.deleteByteBack</h4> |
916 <h4>HexEditWidget.deleteByteBack</h4> |
918 <b>deleteByteBack</b>(<i></i>) |
917 <b>deleteByteBack</b>(<i></i>) |
919 |
|
920 <p> |
918 <p> |
921 Public method to delete the previous byte. |
919 Public method to delete the previous byte. |
922 </p> |
920 </p> |
|
921 |
923 <a NAME="HexEditWidget.deselectAll" ID="HexEditWidget.deselectAll"></a> |
922 <a NAME="HexEditWidget.deselectAll" ID="HexEditWidget.deselectAll"></a> |
924 <h4>HexEditWidget.deselectAll</h4> |
923 <h4>HexEditWidget.deselectAll</h4> |
925 <b>deselectAll</b>(<i></i>) |
924 <b>deselectAll</b>(<i></i>) |
926 |
|
927 <p> |
925 <p> |
928 Public method to deselect all data. |
926 Public method to deselect all data. |
929 </p> |
927 </p> |
|
928 |
930 <a NAME="HexEditWidget.ensureVisible" ID="HexEditWidget.ensureVisible"></a> |
929 <a NAME="HexEditWidget.ensureVisible" ID="HexEditWidget.ensureVisible"></a> |
931 <h4>HexEditWidget.ensureVisible</h4> |
930 <h4>HexEditWidget.ensureVisible</h4> |
932 <b>ensureVisible</b>(<i></i>) |
931 <b>ensureVisible</b>(<i></i>) |
933 |
|
934 <p> |
932 <p> |
935 Public method to ensure, that the cursor is visible. |
933 Public method to ensure, that the cursor is visible. |
936 </p> |
934 </p> |
|
935 |
937 <a NAME="HexEditWidget.font" ID="HexEditWidget.font"></a> |
936 <a NAME="HexEditWidget.font" ID="HexEditWidget.font"></a> |
938 <h4>HexEditWidget.font</h4> |
937 <h4>HexEditWidget.font</h4> |
939 <b>font</b>(<i></i>) |
938 <b>font</b>(<i></i>) |
940 |
|
941 <p> |
939 <p> |
942 Public method to get the font used to show the data. |
940 Public method to get the font used to show the data. |
943 </p> |
941 </p> |
|
942 |
944 <dl> |
943 <dl> |
945 <dt>Return:</dt> |
944 <dt>Return:</dt> |
946 <dd> |
945 <dd> |
947 font used to show the data |
946 font used to show the data |
948 </dd> |
947 </dd> |
1223 </dd> |
1222 </dd> |
1224 </dl> |
1223 </dl> |
1225 <a NAME="HexEditWidget.mouseMoveEvent" ID="HexEditWidget.mouseMoveEvent"></a> |
1224 <a NAME="HexEditWidget.mouseMoveEvent" ID="HexEditWidget.mouseMoveEvent"></a> |
1226 <h4>HexEditWidget.mouseMoveEvent</h4> |
1225 <h4>HexEditWidget.mouseMoveEvent</h4> |
1227 <b>mouseMoveEvent</b>(<i>evt</i>) |
1226 <b>mouseMoveEvent</b>(<i>evt</i>) |
1228 |
|
1229 <p> |
1227 <p> |
1230 Protected method to handle mouse moves. |
1228 Protected method to handle mouse moves. |
1231 </p> |
1229 </p> |
|
1230 |
1232 <dl> |
1231 <dl> |
1233 |
1232 |
1234 <dt><i>evt</i> (QMouseEvent)</dt> |
1233 <dt><i>evt</i> (QMouseEvent)</dt> |
1235 <dd> |
1234 <dd> |
1236 reference to the mouse event |
1235 reference to the mouse event |
1237 </dd> |
1236 </dd> |
1238 </dl> |
1237 </dl> |
1239 <a NAME="HexEditWidget.mousePressEvent" ID="HexEditWidget.mousePressEvent"></a> |
1238 <a NAME="HexEditWidget.mousePressEvent" ID="HexEditWidget.mousePressEvent"></a> |
1240 <h4>HexEditWidget.mousePressEvent</h4> |
1239 <h4>HexEditWidget.mousePressEvent</h4> |
1241 <b>mousePressEvent</b>(<i>evt</i>) |
1240 <b>mousePressEvent</b>(<i>evt</i>) |
1242 |
|
1243 <p> |
1241 <p> |
1244 Protected method to handle mouse button presses. |
1242 Protected method to handle mouse button presses. |
1245 </p> |
1243 </p> |
|
1244 |
1246 <dl> |
1245 <dl> |
1247 |
1246 |
1248 <dt><i>evt</i> (QMouseEvent)</dt> |
1247 <dt><i>evt</i> (QMouseEvent)</dt> |
1249 <dd> |
1248 <dd> |
1250 reference to the mouse event |
1249 reference to the mouse event |
1251 </dd> |
1250 </dd> |
1252 </dl> |
1251 </dl> |
1253 <a NAME="HexEditWidget.moveCursorToEndOfDocument" ID="HexEditWidget.moveCursorToEndOfDocument"></a> |
1252 <a NAME="HexEditWidget.moveCursorToEndOfDocument" ID="HexEditWidget.moveCursorToEndOfDocument"></a> |
1254 <h4>HexEditWidget.moveCursorToEndOfDocument</h4> |
1253 <h4>HexEditWidget.moveCursorToEndOfDocument</h4> |
1255 <b>moveCursorToEndOfDocument</b>(<i></i>) |
1254 <b>moveCursorToEndOfDocument</b>(<i></i>) |
1256 |
|
1257 <p> |
1255 <p> |
1258 Public method to move the cursor to the end of the data. |
1256 Public method to move the cursor to the end of the data. |
1259 </p> |
1257 </p> |
|
1258 |
1260 <a NAME="HexEditWidget.moveCursorToEndOfLine" ID="HexEditWidget.moveCursorToEndOfLine"></a> |
1259 <a NAME="HexEditWidget.moveCursorToEndOfLine" ID="HexEditWidget.moveCursorToEndOfLine"></a> |
1261 <h4>HexEditWidget.moveCursorToEndOfLine</h4> |
1260 <h4>HexEditWidget.moveCursorToEndOfLine</h4> |
1262 <b>moveCursorToEndOfLine</b>(<i></i>) |
1261 <b>moveCursorToEndOfLine</b>(<i></i>) |
1263 |
|
1264 <p> |
1262 <p> |
1265 Public method to move the cursor to the end of the current line. |
1263 Public method to move the cursor to the end of the current line. |
1266 </p> |
1264 </p> |
|
1265 |
1267 <a NAME="HexEditWidget.moveCursorToNextChar" ID="HexEditWidget.moveCursorToNextChar"></a> |
1266 <a NAME="HexEditWidget.moveCursorToNextChar" ID="HexEditWidget.moveCursorToNextChar"></a> |
1268 <h4>HexEditWidget.moveCursorToNextChar</h4> |
1267 <h4>HexEditWidget.moveCursorToNextChar</h4> |
1269 <b>moveCursorToNextChar</b>(<i></i>) |
1268 <b>moveCursorToNextChar</b>(<i></i>) |
1270 |
|
1271 <p> |
1269 <p> |
1272 Public method to move the cursor to the next byte. |
1270 Public method to move the cursor to the next byte. |
1273 </p> |
1271 </p> |
|
1272 |
1274 <a NAME="HexEditWidget.moveCursorToNextLine" ID="HexEditWidget.moveCursorToNextLine"></a> |
1273 <a NAME="HexEditWidget.moveCursorToNextLine" ID="HexEditWidget.moveCursorToNextLine"></a> |
1275 <h4>HexEditWidget.moveCursorToNextLine</h4> |
1274 <h4>HexEditWidget.moveCursorToNextLine</h4> |
1276 <b>moveCursorToNextLine</b>(<i></i>) |
1275 <b>moveCursorToNextLine</b>(<i></i>) |
1277 |
|
1278 <p> |
1276 <p> |
1279 Public method to move the cursor to the next line. |
1277 Public method to move the cursor to the next line. |
1280 </p> |
1278 </p> |
|
1279 |
1281 <a NAME="HexEditWidget.moveCursorToNextPage" ID="HexEditWidget.moveCursorToNextPage"></a> |
1280 <a NAME="HexEditWidget.moveCursorToNextPage" ID="HexEditWidget.moveCursorToNextPage"></a> |
1282 <h4>HexEditWidget.moveCursorToNextPage</h4> |
1281 <h4>HexEditWidget.moveCursorToNextPage</h4> |
1283 <b>moveCursorToNextPage</b>(<i></i>) |
1282 <b>moveCursorToNextPage</b>(<i></i>) |
1284 |
|
1285 <p> |
1283 <p> |
1286 Public method to move the cursor to the next page. |
1284 Public method to move the cursor to the next page. |
1287 </p> |
1285 </p> |
|
1286 |
1288 <a NAME="HexEditWidget.moveCursorToPreviousChar" ID="HexEditWidget.moveCursorToPreviousChar"></a> |
1287 <a NAME="HexEditWidget.moveCursorToPreviousChar" ID="HexEditWidget.moveCursorToPreviousChar"></a> |
1289 <h4>HexEditWidget.moveCursorToPreviousChar</h4> |
1288 <h4>HexEditWidget.moveCursorToPreviousChar</h4> |
1290 <b>moveCursorToPreviousChar</b>(<i></i>) |
1289 <b>moveCursorToPreviousChar</b>(<i></i>) |
1291 |
|
1292 <p> |
1290 <p> |
1293 Public method to move the cursor to the previous byte. |
1291 Public method to move the cursor to the previous byte. |
1294 </p> |
1292 </p> |
|
1293 |
1295 <a NAME="HexEditWidget.moveCursorToPreviousLine" ID="HexEditWidget.moveCursorToPreviousLine"></a> |
1294 <a NAME="HexEditWidget.moveCursorToPreviousLine" ID="HexEditWidget.moveCursorToPreviousLine"></a> |
1296 <h4>HexEditWidget.moveCursorToPreviousLine</h4> |
1295 <h4>HexEditWidget.moveCursorToPreviousLine</h4> |
1297 <b>moveCursorToPreviousLine</b>(<i></i>) |
1296 <b>moveCursorToPreviousLine</b>(<i></i>) |
1298 |
|
1299 <p> |
1297 <p> |
1300 Public method to move the cursor to the previous line. |
1298 Public method to move the cursor to the previous line. |
1301 </p> |
1299 </p> |
|
1300 |
1302 <a NAME="HexEditWidget.moveCursorToPreviousPage" ID="HexEditWidget.moveCursorToPreviousPage"></a> |
1301 <a NAME="HexEditWidget.moveCursorToPreviousPage" ID="HexEditWidget.moveCursorToPreviousPage"></a> |
1303 <h4>HexEditWidget.moveCursorToPreviousPage</h4> |
1302 <h4>HexEditWidget.moveCursorToPreviousPage</h4> |
1304 <b>moveCursorToPreviousPage</b>(<i></i>) |
1303 <b>moveCursorToPreviousPage</b>(<i></i>) |
1305 |
|
1306 <p> |
1304 <p> |
1307 Public method to move the cursor to the previous page. |
1305 Public method to move the cursor to the previous page. |
1308 </p> |
1306 </p> |
|
1307 |
1309 <a NAME="HexEditWidget.moveCursorToStartOfDocument" ID="HexEditWidget.moveCursorToStartOfDocument"></a> |
1308 <a NAME="HexEditWidget.moveCursorToStartOfDocument" ID="HexEditWidget.moveCursorToStartOfDocument"></a> |
1310 <h4>HexEditWidget.moveCursorToStartOfDocument</h4> |
1309 <h4>HexEditWidget.moveCursorToStartOfDocument</h4> |
1311 <b>moveCursorToStartOfDocument</b>(<i></i>) |
1310 <b>moveCursorToStartOfDocument</b>(<i></i>) |
1312 |
|
1313 <p> |
1311 <p> |
1314 Public method to move the cursor to the start of the data. |
1312 Public method to move the cursor to the start of the data. |
1315 </p> |
1313 </p> |
|
1314 |
1316 <a NAME="HexEditWidget.moveCursorToStartOfLine" ID="HexEditWidget.moveCursorToStartOfLine"></a> |
1315 <a NAME="HexEditWidget.moveCursorToStartOfLine" ID="HexEditWidget.moveCursorToStartOfLine"></a> |
1317 <h4>HexEditWidget.moveCursorToStartOfLine</h4> |
1316 <h4>HexEditWidget.moveCursorToStartOfLine</h4> |
1318 <b>moveCursorToStartOfLine</b>(<i></i>) |
1317 <b>moveCursorToStartOfLine</b>(<i></i>) |
1319 |
|
1320 <p> |
1318 <p> |
1321 Public method to move the cursor to the beginning of the current line. |
1319 Public method to move the cursor to the beginning of the current line. |
1322 </p> |
1320 </p> |
|
1321 |
1323 <a NAME="HexEditWidget.overwriteMode" ID="HexEditWidget.overwriteMode"></a> |
1322 <a NAME="HexEditWidget.overwriteMode" ID="HexEditWidget.overwriteMode"></a> |
1324 <h4>HexEditWidget.overwriteMode</h4> |
1323 <h4>HexEditWidget.overwriteMode</h4> |
1325 <b>overwriteMode</b>(<i></i>) |
1324 <b>overwriteMode</b>(<i></i>) |
1326 |
|
1327 <p> |
1325 <p> |
1328 Public method to get the overwrite mode. |
1326 Public method to get the overwrite mode. |
1329 </p> |
1327 </p> |
|
1328 |
1330 <dl> |
1329 <dl> |
1331 <dt>Return:</dt> |
1330 <dt>Return:</dt> |
1332 <dd> |
1331 <dd> |
1333 overwrite mode |
1332 overwrite mode |
1334 </dd> |
1333 </dd> |
1340 </dd> |
1339 </dd> |
1341 </dl> |
1340 </dl> |
1342 <a NAME="HexEditWidget.paintEvent" ID="HexEditWidget.paintEvent"></a> |
1341 <a NAME="HexEditWidget.paintEvent" ID="HexEditWidget.paintEvent"></a> |
1343 <h4>HexEditWidget.paintEvent</h4> |
1342 <h4>HexEditWidget.paintEvent</h4> |
1344 <b>paintEvent</b>(<i>evt</i>) |
1343 <b>paintEvent</b>(<i>evt</i>) |
1345 |
|
1346 <p> |
1344 <p> |
1347 Protected method to handle paint events. |
1345 Protected method to handle paint events. |
1348 </p> |
1346 </p> |
|
1347 |
1349 <dl> |
1348 <dl> |
1350 |
1349 |
1351 <dt><i>evt</i> (QPaintEvent)</dt> |
1350 <dt><i>evt</i> (QPaintEvent)</dt> |
1352 <dd> |
1351 <dd> |
1353 reference to the paint event |
1352 reference to the paint event |
1354 </dd> |
1353 </dd> |
1355 </dl> |
1354 </dl> |
1356 <a NAME="HexEditWidget.paste" ID="HexEditWidget.paste"></a> |
1355 <a NAME="HexEditWidget.paste" ID="HexEditWidget.paste"></a> |
1357 <h4>HexEditWidget.paste</h4> |
1356 <h4>HexEditWidget.paste</h4> |
1358 <b>paste</b>(<i></i>) |
1357 <b>paste</b>(<i></i>) |
1359 |
|
1360 <p> |
1358 <p> |
1361 Public method to paste bytes from the clipboard. |
1359 Public method to paste bytes from the clipboard. |
1362 </p> |
1360 </p> |
|
1361 |
1363 <a NAME="HexEditWidget.redo" ID="HexEditWidget.redo"></a> |
1362 <a NAME="HexEditWidget.redo" ID="HexEditWidget.redo"></a> |
1364 <h4>HexEditWidget.redo</h4> |
1363 <h4>HexEditWidget.redo</h4> |
1365 <b>redo</b>(<i></i>) |
1364 <b>redo</b>(<i></i>) |
1366 |
|
1367 <p> |
1365 <p> |
1368 Public slot to redo the last operation. |
1366 Public slot to redo the last operation. |
1369 </p> |
1367 </p> |
|
1368 |
1370 <a NAME="HexEditWidget.remove" ID="HexEditWidget.remove"></a> |
1369 <a NAME="HexEditWidget.remove" ID="HexEditWidget.remove"></a> |
1371 <h4>HexEditWidget.remove</h4> |
1370 <h4>HexEditWidget.remove</h4> |
1372 <b>remove</b>(<i>pos, length=1</i>) |
1371 <b>remove</b>(<i>pos, length=1</i>) |
1373 |
|
1374 <p> |
1372 <p> |
1375 Public method to remove bytes. |
1373 Public method to remove bytes. |
1376 </p> |
1374 </p> |
|
1375 |
1377 <dl> |
1376 <dl> |
1378 |
1377 |
1379 <dt><i>pos</i> (int)</dt> |
1378 <dt><i>pos</i> (int)</dt> |
1380 <dd> |
1379 <dd> |
1381 position to remove bytes from |
1380 position to remove bytes from |
1426 </dd> |
1425 </dd> |
1427 </dl> |
1426 </dl> |
1428 <a NAME="HexEditWidget.resizeEvent" ID="HexEditWidget.resizeEvent"></a> |
1427 <a NAME="HexEditWidget.resizeEvent" ID="HexEditWidget.resizeEvent"></a> |
1429 <h4>HexEditWidget.resizeEvent</h4> |
1428 <h4>HexEditWidget.resizeEvent</h4> |
1430 <b>resizeEvent</b>(<i>evt</i>) |
1429 <b>resizeEvent</b>(<i>evt</i>) |
1431 |
|
1432 <p> |
1430 <p> |
1433 Protected method to handle resize events. |
1431 Protected method to handle resize events. |
1434 </p> |
1432 </p> |
|
1433 |
1435 <dl> |
1434 <dl> |
1436 |
1435 |
1437 <dt><i>evt</i> (QResizeEvent)</dt> |
1436 <dt><i>evt</i> (QResizeEvent)</dt> |
1438 <dd> |
1437 <dd> |
1439 reference to the resize event |
1438 reference to the resize event |
1440 </dd> |
1439 </dd> |
1441 </dl> |
1440 </dl> |
1442 <a NAME="HexEditWidget.revertToUnmodified" ID="HexEditWidget.revertToUnmodified"></a> |
1441 <a NAME="HexEditWidget.revertToUnmodified" ID="HexEditWidget.revertToUnmodified"></a> |
1443 <h4>HexEditWidget.revertToUnmodified</h4> |
1442 <h4>HexEditWidget.revertToUnmodified</h4> |
1444 <b>revertToUnmodified</b>(<i></i>) |
1443 <b>revertToUnmodified</b>(<i></i>) |
1445 |
|
1446 <p> |
1444 <p> |
1447 Public slot to revert all changes. |
1445 Public slot to revert all changes. |
1448 </p> |
1446 </p> |
|
1447 |
1449 <a NAME="HexEditWidget.selectAll" ID="HexEditWidget.selectAll"></a> |
1448 <a NAME="HexEditWidget.selectAll" ID="HexEditWidget.selectAll"></a> |
1450 <h4>HexEditWidget.selectAll</h4> |
1449 <h4>HexEditWidget.selectAll</h4> |
1451 <b>selectAll</b>(<i></i>) |
1450 <b>selectAll</b>(<i></i>) |
1452 |
|
1453 <p> |
1451 <p> |
1454 Public method to select all data. |
1452 Public method to select all data. |
1455 </p> |
1453 </p> |
|
1454 |
1456 <a NAME="HexEditWidget.selectEndOfDocument" ID="HexEditWidget.selectEndOfDocument"></a> |
1455 <a NAME="HexEditWidget.selectEndOfDocument" ID="HexEditWidget.selectEndOfDocument"></a> |
1457 <h4>HexEditWidget.selectEndOfDocument</h4> |
1456 <h4>HexEditWidget.selectEndOfDocument</h4> |
1458 <b>selectEndOfDocument</b>(<i></i>) |
1457 <b>selectEndOfDocument</b>(<i></i>) |
1459 |
|
1460 <p> |
1458 <p> |
1461 Public method to extend the selection to the end of the data. |
1459 Public method to extend the selection to the end of the data. |
1462 </p> |
1460 </p> |
|
1461 |
1463 <a NAME="HexEditWidget.selectNextChar" ID="HexEditWidget.selectNextChar"></a> |
1462 <a NAME="HexEditWidget.selectNextChar" ID="HexEditWidget.selectNextChar"></a> |
1464 <h4>HexEditWidget.selectNextChar</h4> |
1463 <h4>HexEditWidget.selectNextChar</h4> |
1465 <b>selectNextChar</b>(<i></i>) |
1464 <b>selectNextChar</b>(<i></i>) |
1466 |
|
1467 <p> |
1465 <p> |
1468 Public method to extend the selection by one byte right. |
1466 Public method to extend the selection by one byte right. |
1469 </p> |
1467 </p> |
|
1468 |
1470 <a NAME="HexEditWidget.selectNextLine" ID="HexEditWidget.selectNextLine"></a> |
1469 <a NAME="HexEditWidget.selectNextLine" ID="HexEditWidget.selectNextLine"></a> |
1471 <h4>HexEditWidget.selectNextLine</h4> |
1470 <h4>HexEditWidget.selectNextLine</h4> |
1472 <b>selectNextLine</b>(<i></i>) |
1471 <b>selectNextLine</b>(<i></i>) |
1473 |
|
1474 <p> |
1472 <p> |
1475 Public method to extend the selection one line down. |
1473 Public method to extend the selection one line down. |
1476 </p> |
1474 </p> |
|
1475 |
1477 <a NAME="HexEditWidget.selectNextPage" ID="HexEditWidget.selectNextPage"></a> |
1476 <a NAME="HexEditWidget.selectNextPage" ID="HexEditWidget.selectNextPage"></a> |
1478 <h4>HexEditWidget.selectNextPage</h4> |
1477 <h4>HexEditWidget.selectNextPage</h4> |
1479 <b>selectNextPage</b>(<i></i>) |
1478 <b>selectNextPage</b>(<i></i>) |
1480 |
|
1481 <p> |
1479 <p> |
1482 Public method to extend the selection one page down. |
1480 Public method to extend the selection one page down. |
1483 </p> |
1481 </p> |
|
1482 |
1484 <a NAME="HexEditWidget.selectPreviousChar" ID="HexEditWidget.selectPreviousChar"></a> |
1483 <a NAME="HexEditWidget.selectPreviousChar" ID="HexEditWidget.selectPreviousChar"></a> |
1485 <h4>HexEditWidget.selectPreviousChar</h4> |
1484 <h4>HexEditWidget.selectPreviousChar</h4> |
1486 <b>selectPreviousChar</b>(<i></i>) |
1485 <b>selectPreviousChar</b>(<i></i>) |
1487 |
|
1488 <p> |
1486 <p> |
1489 Public method to extend the selection by one byte left. |
1487 Public method to extend the selection by one byte left. |
1490 </p> |
1488 </p> |
|
1489 |
1491 <a NAME="HexEditWidget.selectPreviousLine" ID="HexEditWidget.selectPreviousLine"></a> |
1490 <a NAME="HexEditWidget.selectPreviousLine" ID="HexEditWidget.selectPreviousLine"></a> |
1492 <h4>HexEditWidget.selectPreviousLine</h4> |
1491 <h4>HexEditWidget.selectPreviousLine</h4> |
1493 <b>selectPreviousLine</b>(<i></i>) |
1492 <b>selectPreviousLine</b>(<i></i>) |
1494 |
|
1495 <p> |
1493 <p> |
1496 Public method to extend the selection one line up. |
1494 Public method to extend the selection one line up. |
1497 </p> |
1495 </p> |
|
1496 |
1498 <a NAME="HexEditWidget.selectPreviousPage" ID="HexEditWidget.selectPreviousPage"></a> |
1497 <a NAME="HexEditWidget.selectPreviousPage" ID="HexEditWidget.selectPreviousPage"></a> |
1499 <h4>HexEditWidget.selectPreviousPage</h4> |
1498 <h4>HexEditWidget.selectPreviousPage</h4> |
1500 <b>selectPreviousPage</b>(<i></i>) |
1499 <b>selectPreviousPage</b>(<i></i>) |
1501 |
|
1502 <p> |
1500 <p> |
1503 Public method to extend the selection one page up. |
1501 Public method to extend the selection one page up. |
1504 </p> |
1502 </p> |
|
1503 |
1505 <a NAME="HexEditWidget.selectStartOfDocument" ID="HexEditWidget.selectStartOfDocument"></a> |
1504 <a NAME="HexEditWidget.selectStartOfDocument" ID="HexEditWidget.selectStartOfDocument"></a> |
1506 <h4>HexEditWidget.selectStartOfDocument</h4> |
1505 <h4>HexEditWidget.selectStartOfDocument</h4> |
1507 <b>selectStartOfDocument</b>(<i></i>) |
1506 <b>selectStartOfDocument</b>(<i></i>) |
1508 |
|
1509 <p> |
1507 <p> |
1510 Public method to extend the selection to the start of the data. |
1508 Public method to extend the selection to the start of the data. |
1511 </p> |
1509 </p> |
|
1510 |
1512 <a NAME="HexEditWidget.selectToEndOfLine" ID="HexEditWidget.selectToEndOfLine"></a> |
1511 <a NAME="HexEditWidget.selectToEndOfLine" ID="HexEditWidget.selectToEndOfLine"></a> |
1513 <h4>HexEditWidget.selectToEndOfLine</h4> |
1512 <h4>HexEditWidget.selectToEndOfLine</h4> |
1514 <b>selectToEndOfLine</b>(<i></i>) |
1513 <b>selectToEndOfLine</b>(<i></i>) |
1515 |
|
1516 <p> |
1514 <p> |
1517 Public method to extend the selection to the end of line. |
1515 Public method to extend the selection to the end of line. |
1518 </p> |
1516 </p> |
|
1517 |
1519 <a NAME="HexEditWidget.selectToStartOfLine" ID="HexEditWidget.selectToStartOfLine"></a> |
1518 <a NAME="HexEditWidget.selectToStartOfLine" ID="HexEditWidget.selectToStartOfLine"></a> |
1520 <h4>HexEditWidget.selectToStartOfLine</h4> |
1519 <h4>HexEditWidget.selectToStartOfLine</h4> |
1521 <b>selectToStartOfLine</b>(<i></i>) |
1520 <b>selectToStartOfLine</b>(<i></i>) |
1522 |
|
1523 <p> |
1521 <p> |
1524 Public method to extend the selection to the start of line. |
1522 Public method to extend the selection to the start of line. |
1525 </p> |
1523 </p> |
|
1524 |
1526 <a NAME="HexEditWidget.selectionToHexString" ID="HexEditWidget.selectionToHexString"></a> |
1525 <a NAME="HexEditWidget.selectionToHexString" ID="HexEditWidget.selectionToHexString"></a> |
1527 <h4>HexEditWidget.selectionToHexString</h4> |
1526 <h4>HexEditWidget.selectionToHexString</h4> |
1528 <b>selectionToHexString</b>(<i></i>) |
1527 <b>selectionToHexString</b>(<i></i>) |
1529 |
|
1530 <p> |
1528 <p> |
1531 Public method to get a hexadecimal representation of the selection. |
1529 Public method to get a hexadecimal representation of the selection. |
1532 </p> |
1530 </p> |
|
1531 |
1533 <dl> |
1532 <dl> |
1534 <dt>Return:</dt> |
1533 <dt>Return:</dt> |
1535 <dd> |
1534 <dd> |
1536 hexadecimal representation of the selection |
1535 hexadecimal representation of the selection |
1537 </dd> |
1536 </dd> |
1562 </dd> |
1561 </dd> |
1563 </dl> |
1562 </dl> |
1564 <a NAME="HexEditWidget.setAddressArea" ID="HexEditWidget.setAddressArea"></a> |
1563 <a NAME="HexEditWidget.setAddressArea" ID="HexEditWidget.setAddressArea"></a> |
1565 <h4>HexEditWidget.setAddressArea</h4> |
1564 <h4>HexEditWidget.setAddressArea</h4> |
1566 <b>setAddressArea</b>(<i>on</i>) |
1565 <b>setAddressArea</b>(<i>on</i>) |
1567 |
|
1568 <p> |
1566 <p> |
1569 Public method to set the address area visibility. |
1567 Public method to set the address area visibility. |
1570 </p> |
1568 </p> |
|
1569 |
1571 <dl> |
1570 <dl> |
1572 |
1571 |
1573 <dt><i>on</i> (bool)</dt> |
1572 <dt><i>on</i> (bool)</dt> |
1574 <dd> |
1573 <dd> |
1575 flag indicating the address area visibility |
1574 flag indicating the address area visibility |
1576 </dd> |
1575 </dd> |
1577 </dl> |
1576 </dl> |
1578 <a NAME="HexEditWidget.setAddressOffset" ID="HexEditWidget.setAddressOffset"></a> |
1577 <a NAME="HexEditWidget.setAddressOffset" ID="HexEditWidget.setAddressOffset"></a> |
1579 <h4>HexEditWidget.setAddressOffset</h4> |
1578 <h4>HexEditWidget.setAddressOffset</h4> |
1580 <b>setAddressOffset</b>(<i>offset</i>) |
1579 <b>setAddressOffset</b>(<i>offset</i>) |
1581 |
|
1582 <p> |
1580 <p> |
1583 Public method to set the address offset. |
1581 Public method to set the address offset. |
1584 </p> |
1582 </p> |
|
1583 |
1585 <dl> |
1584 <dl> |
1586 |
1585 |
1587 <dt><i>offset</i> (int)</dt> |
1586 <dt><i>offset</i> (int)</dt> |
1588 <dd> |
1587 <dd> |
1589 address offset |
1588 address offset |
1590 </dd> |
1589 </dd> |
1591 </dl> |
1590 </dl> |
1592 <a NAME="HexEditWidget.setAddressWidth" ID="HexEditWidget.setAddressWidth"></a> |
1591 <a NAME="HexEditWidget.setAddressWidth" ID="HexEditWidget.setAddressWidth"></a> |
1593 <h4>HexEditWidget.setAddressWidth</h4> |
1592 <h4>HexEditWidget.setAddressWidth</h4> |
1594 <b>setAddressWidth</b>(<i>width</i>) |
1593 <b>setAddressWidth</b>(<i>width</i>) |
1595 |
|
1596 <p> |
1594 <p> |
1597 Public method to set the width of the address area. |
1595 Public method to set the width of the address area. |
1598 </p> |
1596 </p> |
1599 <p> |
1597 <p> |
1600 Note: The address area width is always a multiple of four. |
1598 Note: The address area width is always a multiple of four. |
1601 The given value will be adjusted as required. |
1599 The given value will be adjusted as required. |
1602 </p> |
1600 </p> |
|
1601 |
1603 <dl> |
1602 <dl> |
1604 |
1603 |
1605 <dt><i>width</i> (int)</dt> |
1604 <dt><i>width</i> (int)</dt> |
1606 <dd> |
1605 <dd> |
1607 width of the address area in characters |
1606 width of the address area in characters |
1608 </dd> |
1607 </dd> |
1609 </dl> |
1608 </dl> |
1610 <a NAME="HexEditWidget.setAsciiArea" ID="HexEditWidget.setAsciiArea"></a> |
1609 <a NAME="HexEditWidget.setAsciiArea" ID="HexEditWidget.setAsciiArea"></a> |
1611 <h4>HexEditWidget.setAsciiArea</h4> |
1610 <h4>HexEditWidget.setAsciiArea</h4> |
1612 <b>setAsciiArea</b>(<i>on</i>) |
1611 <b>setAsciiArea</b>(<i>on</i>) |
1613 |
|
1614 <p> |
1612 <p> |
1615 Public method to set the visibility of the ASCII area. |
1613 Public method to set the visibility of the ASCII area. |
1616 </p> |
1614 </p> |
|
1615 |
1617 <dl> |
1616 <dl> |
1618 |
1617 |
1619 <dt><i>on</i> (bool)</dt> |
1618 <dt><i>on</i> (bool)</dt> |
1620 <dd> |
1619 <dd> |
1621 flag indicating the visibility of the ASCII area |
1620 flag indicating the visibility of the ASCII area |
1622 </dd> |
1621 </dd> |
1623 </dl> |
1622 </dl> |
1624 <a NAME="HexEditWidget.setCursorBytePosition" ID="HexEditWidget.setCursorBytePosition"></a> |
1623 <a NAME="HexEditWidget.setCursorBytePosition" ID="HexEditWidget.setCursorBytePosition"></a> |
1625 <h4>HexEditWidget.setCursorBytePosition</h4> |
1624 <h4>HexEditWidget.setCursorBytePosition</h4> |
1626 <b>setCursorBytePosition</b>(<i>pos</i>) |
1625 <b>setCursorBytePosition</b>(<i>pos</i>) |
1627 |
|
1628 <p> |
1626 <p> |
1629 Public method to set the cursor position in bytes. |
1627 Public method to set the cursor position in bytes. |
1630 </p> |
1628 </p> |
|
1629 |
1631 <dl> |
1630 <dl> |
1632 |
1631 |
1633 <dt><i>pos</i> (int)</dt> |
1632 <dt><i>pos</i> (int)</dt> |
1634 <dd> |
1633 <dd> |
1635 cursor position in bytes |
1634 cursor position in bytes |
1636 </dd> |
1635 </dd> |
1637 </dl> |
1636 </dl> |
1638 <a NAME="HexEditWidget.setCursorPosition" ID="HexEditWidget.setCursorPosition"></a> |
1637 <a NAME="HexEditWidget.setCursorPosition" ID="HexEditWidget.setCursorPosition"></a> |
1639 <h4>HexEditWidget.setCursorPosition</h4> |
1638 <h4>HexEditWidget.setCursorPosition</h4> |
1640 <b>setCursorPosition</b>(<i>pos</i>) |
1639 <b>setCursorPosition</b>(<i>pos</i>) |
1641 |
|
1642 <p> |
1640 <p> |
1643 Public method to set the cursor position. |
1641 Public method to set the cursor position. |
1644 </p> |
1642 </p> |
|
1643 |
1645 <dl> |
1644 <dl> |
1646 |
1645 |
1647 <dt><i>pos</i> (int)</dt> |
1646 <dt><i>pos</i> (int)</dt> |
1648 <dd> |
1647 <dd> |
1649 cursor position |
1648 cursor position |
1650 </dd> |
1649 </dd> |
1651 </dl> |
1650 </dl> |
1652 <a NAME="HexEditWidget.setData" ID="HexEditWidget.setData"></a> |
1651 <a NAME="HexEditWidget.setData" ID="HexEditWidget.setData"></a> |
1653 <h4>HexEditWidget.setData</h4> |
1652 <h4>HexEditWidget.setData</h4> |
1654 <b>setData</b>(<i>dataOrDevice</i>) |
1653 <b>setData</b>(<i>dataOrDevice</i>) |
1655 |
|
1656 <p> |
1654 <p> |
1657 Public method to set the data to show. |
1655 Public method to set the data to show. |
1658 </p> |
1656 </p> |
|
1657 |
1659 <dl> |
1658 <dl> |
1660 |
1659 |
1661 <dt><i>dataOrDevice</i> (bytes, bytearray, QByteArray or QIODevice)</dt> |
1660 <dt><i>dataOrDevice</i> (bytes, bytearray, QByteArray or QIODevice)</dt> |
1662 <dd> |
1661 <dd> |
1663 byte array or device containing the data |
1662 byte array or device containing the data |
1683 </dd> |
1682 </dd> |
1684 </dl> |
1683 </dl> |
1685 <a NAME="HexEditWidget.setFont" ID="HexEditWidget.setFont"></a> |
1684 <a NAME="HexEditWidget.setFont" ID="HexEditWidget.setFont"></a> |
1686 <h4>HexEditWidget.setFont</h4> |
1685 <h4>HexEditWidget.setFont</h4> |
1687 <b>setFont</b>(<i>font</i>) |
1686 <b>setFont</b>(<i>font</i>) |
1688 |
|
1689 <p> |
1687 <p> |
1690 Public method to set the font used to show the data. |
1688 Public method to set the font used to show the data. |
1691 </p> |
1689 </p> |
|
1690 |
1692 <dl> |
1691 <dl> |
1693 |
1692 |
1694 <dt><i>font</i> (QFont)</dt> |
1693 <dt><i>font</i> (QFont)</dt> |
1695 <dd> |
1694 <dd> |
1696 font used to show the data |
1695 font used to show the data |
1697 </dd> |
1696 </dd> |
1698 </dl> |
1697 </dl> |
1699 <a NAME="HexEditWidget.setHighlighting" ID="HexEditWidget.setHighlighting"></a> |
1698 <a NAME="HexEditWidget.setHighlighting" ID="HexEditWidget.setHighlighting"></a> |
1700 <h4>HexEditWidget.setHighlighting</h4> |
1699 <h4>HexEditWidget.setHighlighting</h4> |
1701 <b>setHighlighting</b>(<i>on</i>) |
1700 <b>setHighlighting</b>(<i>on</i>) |
1702 |
|
1703 <p> |
1701 <p> |
1704 Public method to set the highlighting state. |
1702 Public method to set the highlighting state. |
1705 </p> |
1703 </p> |
|
1704 |
1706 <dl> |
1705 <dl> |
1707 |
1706 |
1708 <dt><i>on</i> (bool)</dt> |
1707 <dt><i>on</i> (bool)</dt> |
1709 <dd> |
1708 <dd> |
1710 new highlighting state |
1709 new highlighting state |
1711 </dd> |
1710 </dd> |
1712 </dl> |
1711 </dl> |
1713 <a NAME="HexEditWidget.setModified" ID="HexEditWidget.setModified"></a> |
1712 <a NAME="HexEditWidget.setModified" ID="HexEditWidget.setModified"></a> |
1714 <h4>HexEditWidget.setModified</h4> |
1713 <h4>HexEditWidget.setModified</h4> |
1715 <b>setModified</b>(<i>modified, setCleanState=False</i>) |
1714 <b>setModified</b>(<i>modified, setCleanState=False</i>) |
1716 |
|
1717 <p> |
1715 <p> |
1718 Public slot to set the modified flag. |
1716 Public slot to set the modified flag. |
1719 </p> |
1717 </p> |
|
1718 |
1720 <dl> |
1719 <dl> |
1721 |
1720 |
1722 <dt><i>modified</i> (bool)</dt> |
1721 <dt><i>modified</i> (bool)</dt> |
1723 <dd> |
1722 <dd> |
1724 flag indicating the new modification status |
1723 flag indicating the new modification status |
1729 </dd> |
1728 </dd> |
1730 </dl> |
1729 </dl> |
1731 <a NAME="HexEditWidget.setOverwriteMode" ID="HexEditWidget.setOverwriteMode"></a> |
1730 <a NAME="HexEditWidget.setOverwriteMode" ID="HexEditWidget.setOverwriteMode"></a> |
1732 <h4>HexEditWidget.setOverwriteMode</h4> |
1731 <h4>HexEditWidget.setOverwriteMode</h4> |
1733 <b>setOverwriteMode</b>(<i>on</i>) |
1732 <b>setOverwriteMode</b>(<i>on</i>) |
1734 |
|
1735 <p> |
1733 <p> |
1736 Public method to set the overwrite mode. |
1734 Public method to set the overwrite mode. |
1737 </p> |
1735 </p> |
|
1736 |
1738 <dl> |
1737 <dl> |
1739 |
1738 |
1740 <dt><i>on</i> (bool)</dt> |
1739 <dt><i>on</i> (bool)</dt> |
1741 <dd> |
1740 <dd> |
1742 flag indicating the new overwrite mode |
1741 flag indicating the new overwrite mode |
1743 </dd> |
1742 </dd> |
1744 </dl> |
1743 </dl> |
1745 <a NAME="HexEditWidget.setReadOnly" ID="HexEditWidget.setReadOnly"></a> |
1744 <a NAME="HexEditWidget.setReadOnly" ID="HexEditWidget.setReadOnly"></a> |
1746 <h4>HexEditWidget.setReadOnly</h4> |
1745 <h4>HexEditWidget.setReadOnly</h4> |
1747 <b>setReadOnly</b>(<i>on</i>) |
1746 <b>setReadOnly</b>(<i>on</i>) |
1748 |
|
1749 <p> |
1747 <p> |
1750 Public method to set the read only state. |
1748 Public method to set the read only state. |
1751 </p> |
1749 </p> |
|
1750 |
1752 <dl> |
1751 <dl> |
1753 |
1752 |
1754 <dt><i>on</i> (bool)</dt> |
1753 <dt><i>on</i> (bool)</dt> |
1755 <dd> |
1754 <dd> |
1756 new read only state |
1755 new read only state |
1757 </dd> |
1756 </dd> |
1758 </dl> |
1757 </dl> |
1759 <a NAME="HexEditWidget.toReadableString" ID="HexEditWidget.toReadableString"></a> |
1758 <a NAME="HexEditWidget.toReadableString" ID="HexEditWidget.toReadableString"></a> |
1760 <h4>HexEditWidget.toReadableString</h4> |
1759 <h4>HexEditWidget.toReadableString</h4> |
1761 <b>toReadableString</b>(<i></i>) |
1760 <b>toReadableString</b>(<i></i>) |
1762 |
|
1763 <p> |
1761 <p> |
1764 Public method to get a formatted representation of our data. |
1762 Public method to get a formatted representation of our data. |
1765 </p> |
1763 </p> |
|
1764 |
1766 <dl> |
1765 <dl> |
1767 <dt>Return:</dt> |
1766 <dt>Return:</dt> |
1768 <dd> |
1767 <dd> |
1769 formatted representation of our data |
1768 formatted representation of our data |
1770 </dd> |
1769 </dd> |