src/eric7/Documentation/Source/eric7.HexEdit.HexEditMainWindow.html

branch
eric7
changeset 10479
856476537696
parent 10428
a071d4065202
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
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.HexEditMainWindow</h1> 9 <h1>eric7.HexEdit.HexEditMainWindow</h1>
10
11 <p> 10 <p>
12 Module implementing the hex editor main window. 11 Module implementing the hex editor main window.
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="#HexEditMainWindow">HexEditMainWindow</a></td> 22 <td><a href="#HexEditMainWindow">HexEditMainWindow</a></td>
25 <td>Class implementing the hex editor main window.</td> 23 <td>Class implementing the hex editor main window.</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="HexEditMainWindow" ID="HexEditMainWindow"></a> 34 <a NAME="HexEditMainWindow" ID="HexEditMainWindow"></a>
36 <h2>HexEditMainWindow</h2> 35 <h2>HexEditMainWindow</h2>
37
38 <p> 36 <p>
39 Class implementing the hex editor main window. 37 Class implementing the hex editor main window.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>editorClosed()</dt> 43 <dt>editorClosed()</dt>
45 <dd> 44 <dd>
47 </dd> 46 </dd>
48 </dl> 47 </dl>
49 <h3>Derived from</h3> 48 <h3>Derived from</h3>
50 EricMainWindow 49 EricMainWindow
51 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
52
53 <table> 51 <table>
54 <tr><td>maxMenuFilePathLen</td></tr><tr><td>windows</td></tr> 52 <tr><td>maxMenuFilePathLen</td></tr>
53 <tr><td>windows</td></tr>
55 </table> 54 </table>
55
56 <h3>Class Methods</h3> 56 <h3>Class Methods</h3>
57
58 <table> 57 <table>
59 <tr><td>None</td></tr> 58 <tr><td>None</td></tr>
60 </table> 59 </table>
60
61 <h3>Methods</h3> 61 <h3>Methods</h3>
62
63 <table> 62 <table>
64
65 <tr> 63 <tr>
66 <td><a href="#HexEditMainWindow.__init__">HexEditMainWindow</a></td> 64 <td><a href="#HexEditMainWindow.__init__">HexEditMainWindow</a></td>
67 <td>Constructor</td> 65 <td>Constructor</td>
68 </tr> 66 </tr>
69 <tr> 67 <tr>
269 <tr> 267 <tr>
270 <td><a href="#HexEditMainWindow.setRecentPaths">setRecentPaths</a></td> 268 <td><a href="#HexEditMainWindow.setRecentPaths">setRecentPaths</a></td>
271 <td>Public method to set the last open and save paths.</td> 269 <td>Public method to set the last open and save paths.</td>
272 </tr> 270 </tr>
273 </table> 271 </table>
272
274 <h3>Static Methods</h3> 273 <h3>Static Methods</h3>
275
276 <table> 274 <table>
277 <tr><td>None</td></tr> 275 <tr><td>None</td></tr>
278 </table> 276 </table>
279 277
278
280 <a NAME="HexEditMainWindow.__init__" ID="HexEditMainWindow.__init__"></a> 279 <a NAME="HexEditMainWindow.__init__" ID="HexEditMainWindow.__init__"></a>
281 <h4>HexEditMainWindow (Constructor)</h4> 280 <h4>HexEditMainWindow (Constructor)</h4>
282 <b>HexEditMainWindow</b>(<i>fileName="", parent=None, fromEric=False, project=None</i>) 281 <b>HexEditMainWindow</b>(<i>fileName="", parent=None, fromEric=False, project=None</i>)
283
284 <p> 282 <p>
285 Constructor 283 Constructor
286 </p> 284 </p>
285
287 <dl> 286 <dl>
288 287
289 <dt><i>fileName</i> (str)</dt> 288 <dt><i>fileName</i> (str)</dt>
290 <dd> 289 <dd>
291 name of a file to load on startup 290 name of a file to load on startup
305 </dd> 304 </dd>
306 </dl> 305 </dl>
307 <a NAME="HexEditMainWindow.__about" ID="HexEditMainWindow.__about"></a> 306 <a NAME="HexEditMainWindow.__about" ID="HexEditMainWindow.__about"></a>
308 <h4>HexEditMainWindow.__about</h4> 307 <h4>HexEditMainWindow.__about</h4>
309 <b>__about</b>(<i></i>) 308 <b>__about</b>(<i></i>)
310
311 <p> 309 <p>
312 Private slot to show a little About message. 310 Private slot to show a little About message.
313 </p> 311 </p>
312
314 <a NAME="HexEditMainWindow.__aboutQt" ID="HexEditMainWindow.__aboutQt"></a> 313 <a NAME="HexEditMainWindow.__aboutQt" ID="HexEditMainWindow.__aboutQt"></a>
315 <h4>HexEditMainWindow.__aboutQt</h4> 314 <h4>HexEditMainWindow.__aboutQt</h4>
316 <b>__aboutQt</b>(<i></i>) 315 <b>__aboutQt</b>(<i></i>)
317
318 <p> 316 <p>
319 Private slot to handle the About Qt dialog. 317 Private slot to handle the About Qt dialog.
320 </p> 318 </p>
319
321 <a NAME="HexEditMainWindow.__addToRecentList" ID="HexEditMainWindow.__addToRecentList"></a> 320 <a NAME="HexEditMainWindow.__addToRecentList" ID="HexEditMainWindow.__addToRecentList"></a>
322 <h4>HexEditMainWindow.__addToRecentList</h4> 321 <h4>HexEditMainWindow.__addToRecentList</h4>
323 <b>__addToRecentList</b>(<i>fileName</i>) 322 <b>__addToRecentList</b>(<i>fileName</i>)
324
325 <p> 323 <p>
326 Private method to add a file name to the list of recently opened files. 324 Private method to add a file name to the list of recently opened files.
327 </p> 325 </p>
326
328 <dl> 327 <dl>
329 328
330 <dt><i>fileName</i> (str)</dt> 329 <dt><i>fileName</i> (str)</dt>
331 <dd> 330 <dd>
332 name of the file to be added 331 name of the file to be added
333 </dd> 332 </dd>
334 </dl> 333 </dl>
335 <a NAME="HexEditMainWindow.__checkActions" ID="HexEditMainWindow.__checkActions"></a> 334 <a NAME="HexEditMainWindow.__checkActions" ID="HexEditMainWindow.__checkActions"></a>
336 <h4>HexEditMainWindow.__checkActions</h4> 335 <h4>HexEditMainWindow.__checkActions</h4>
337 <b>__checkActions</b>(<i></i>) 336 <b>__checkActions</b>(<i></i>)
338
339 <p> 337 <p>
340 Private slot to check some actions for their enable/disable status. 338 Private slot to check some actions for their enable/disable status.
341 </p> 339 </p>
340
342 <a NAME="HexEditMainWindow.__clearRecent" ID="HexEditMainWindow.__clearRecent"></a> 341 <a NAME="HexEditMainWindow.__clearRecent" ID="HexEditMainWindow.__clearRecent"></a>
343 <h4>HexEditMainWindow.__clearRecent</h4> 342 <h4>HexEditMainWindow.__clearRecent</h4>
344 <b>__clearRecent</b>(<i></i>) 343 <b>__clearRecent</b>(<i></i>)
345
346 <p> 344 <p>
347 Private method to clear the list of recently opened files. 345 Private method to clear the list of recently opened files.
348 </p> 346 </p>
347
349 <a NAME="HexEditMainWindow.__closeAll" ID="HexEditMainWindow.__closeAll"></a> 348 <a NAME="HexEditMainWindow.__closeAll" ID="HexEditMainWindow.__closeAll"></a>
350 <h4>HexEditMainWindow.__closeAll</h4> 349 <h4>HexEditMainWindow.__closeAll</h4>
351 <b>__closeAll</b>(<i></i>) 350 <b>__closeAll</b>(<i></i>)
352
353 <p> 351 <p>
354 Private slot to close all windows. 352 Private slot to close all windows.
355 </p> 353 </p>
354
356 <a NAME="HexEditMainWindow.__closeOthers" ID="HexEditMainWindow.__closeOthers"></a> 355 <a NAME="HexEditMainWindow.__closeOthers" ID="HexEditMainWindow.__closeOthers"></a>
357 <h4>HexEditMainWindow.__closeOthers</h4> 356 <h4>HexEditMainWindow.__closeOthers</h4>
358 <b>__closeOthers</b>(<i></i>) 357 <b>__closeOthers</b>(<i></i>)
359
360 <p> 358 <p>
361 Private slot to close all other windows. 359 Private slot to close all other windows.
362 </p> 360 </p>
361
363 <a NAME="HexEditMainWindow.__createStatusBar" ID="HexEditMainWindow.__createStatusBar"></a> 362 <a NAME="HexEditMainWindow.__createStatusBar" ID="HexEditMainWindow.__createStatusBar"></a>
364 <h4>HexEditMainWindow.__createStatusBar</h4> 363 <h4>HexEditMainWindow.__createStatusBar</h4>
365 <b>__createStatusBar</b>(<i></i>) 364 <b>__createStatusBar</b>(<i></i>)
366
367 <p> 365 <p>
368 Private method to initialize the status bar. 366 Private method to initialize the status bar.
369 </p> 367 </p>
368
370 <a NAME="HexEditMainWindow.__goto" ID="HexEditMainWindow.__goto"></a> 369 <a NAME="HexEditMainWindow.__goto" ID="HexEditMainWindow.__goto"></a>
371 <h4>HexEditMainWindow.__goto</h4> 370 <h4>HexEditMainWindow.__goto</h4>
372 <b>__goto</b>(<i></i>) 371 <b>__goto</b>(<i></i>)
373
374 <p> 372 <p>
375 Private method to handle the goto action. 373 Private method to handle the goto action.
376 </p> 374 </p>
375
377 <a NAME="HexEditMainWindow.__initActions" ID="HexEditMainWindow.__initActions"></a> 376 <a NAME="HexEditMainWindow.__initActions" ID="HexEditMainWindow.__initActions"></a>
378 <h4>HexEditMainWindow.__initActions</h4> 377 <h4>HexEditMainWindow.__initActions</h4>
379 <b>__initActions</b>(<i></i>) 378 <b>__initActions</b>(<i></i>)
380
381 <p> 379 <p>
382 Private method to define the user interface actions. 380 Private method to define the user interface actions.
383 </p> 381 </p>
382
384 <a NAME="HexEditMainWindow.__initConfigActions" ID="HexEditMainWindow.__initConfigActions"></a> 383 <a NAME="HexEditMainWindow.__initConfigActions" ID="HexEditMainWindow.__initConfigActions"></a>
385 <h4>HexEditMainWindow.__initConfigActions</h4> 384 <h4>HexEditMainWindow.__initConfigActions</h4>
386 <b>__initConfigActions</b>(<i></i>) 385 <b>__initConfigActions</b>(<i></i>)
387
388 <p> 386 <p>
389 Private method to create the Settings actions. 387 Private method to create the Settings actions.
390 </p> 388 </p>
389
391 <a NAME="HexEditMainWindow.__initEditActions" ID="HexEditMainWindow.__initEditActions"></a> 390 <a NAME="HexEditMainWindow.__initEditActions" ID="HexEditMainWindow.__initEditActions"></a>
392 <h4>HexEditMainWindow.__initEditActions</h4> 391 <h4>HexEditMainWindow.__initEditActions</h4>
393 <b>__initEditActions</b>(<i></i>) 392 <b>__initEditActions</b>(<i></i>)
394
395 <p> 393 <p>
396 Private method to create the Edit actions. 394 Private method to create the Edit actions.
397 </p> 395 </p>
396
398 <a NAME="HexEditMainWindow.__initFileActions" ID="HexEditMainWindow.__initFileActions"></a> 397 <a NAME="HexEditMainWindow.__initFileActions" ID="HexEditMainWindow.__initFileActions"></a>
399 <h4>HexEditMainWindow.__initFileActions</h4> 398 <h4>HexEditMainWindow.__initFileActions</h4>
400 <b>__initFileActions</b>(<i></i>) 399 <b>__initFileActions</b>(<i></i>)
401
402 <p> 400 <p>
403 Private method to define the file related user interface actions. 401 Private method to define the file related user interface actions.
404 </p> 402 </p>
403
405 <a NAME="HexEditMainWindow.__initHelpActions" ID="HexEditMainWindow.__initHelpActions"></a> 404 <a NAME="HexEditMainWindow.__initHelpActions" ID="HexEditMainWindow.__initHelpActions"></a>
406 <h4>HexEditMainWindow.__initHelpActions</h4> 405 <h4>HexEditMainWindow.__initHelpActions</h4>
407 <b>__initHelpActions</b>(<i></i>) 406 <b>__initHelpActions</b>(<i></i>)
408
409 <p> 407 <p>
410 Private method to create the Help actions. 408 Private method to create the Help actions.
411 </p> 409 </p>
410
412 <a NAME="HexEditMainWindow.__initMenus" ID="HexEditMainWindow.__initMenus"></a> 411 <a NAME="HexEditMainWindow.__initMenus" ID="HexEditMainWindow.__initMenus"></a>
413 <h4>HexEditMainWindow.__initMenus</h4> 412 <h4>HexEditMainWindow.__initMenus</h4>
414 <b>__initMenus</b>(<i></i>) 413 <b>__initMenus</b>(<i></i>)
415
416 <p> 414 <p>
417 Private method to create the menus. 415 Private method to create the menus.
418 </p> 416 </p>
417
419 <a NAME="HexEditMainWindow.__initToolbars" ID="HexEditMainWindow.__initToolbars"></a> 418 <a NAME="HexEditMainWindow.__initToolbars" ID="HexEditMainWindow.__initToolbars"></a>
420 <h4>HexEditMainWindow.__initToolbars</h4> 419 <h4>HexEditMainWindow.__initToolbars</h4>
421 <b>__initToolbars</b>(<i></i>) 420 <b>__initToolbars</b>(<i></i>)
422
423 <p> 421 <p>
424 Private method to create the toolbars. 422 Private method to create the toolbars.
425 </p> 423 </p>
424
426 <a NAME="HexEditMainWindow.__loadHexFile" ID="HexEditMainWindow.__loadHexFile"></a> 425 <a NAME="HexEditMainWindow.__loadHexFile" ID="HexEditMainWindow.__loadHexFile"></a>
427 <h4>HexEditMainWindow.__loadHexFile</h4> 426 <h4>HexEditMainWindow.__loadHexFile</h4>
428 <b>__loadHexFile</b>(<i>fileName</i>) 427 <b>__loadHexFile</b>(<i>fileName</i>)
429
430 <p> 428 <p>
431 Private method to load a binary file. 429 Private method to load a binary file.
432 </p> 430 </p>
431
433 <dl> 432 <dl>
434 433
435 <dt><i>fileName</i> (str)</dt> 434 <dt><i>fileName</i> (str)</dt>
436 <dd> 435 <dd>
437 name of the binary file to load 436 name of the binary file to load
438 </dd> 437 </dd>
439 </dl> 438 </dl>
440 <a NAME="HexEditMainWindow.__loadRecent" ID="HexEditMainWindow.__loadRecent"></a> 439 <a NAME="HexEditMainWindow.__loadRecent" ID="HexEditMainWindow.__loadRecent"></a>
441 <h4>HexEditMainWindow.__loadRecent</h4> 440 <h4>HexEditMainWindow.__loadRecent</h4>
442 <b>__loadRecent</b>(<i></i>) 441 <b>__loadRecent</b>(<i></i>)
443
444 <p> 442 <p>
445 Private method to load the list of recently opened files. 443 Private method to load the list of recently opened files.
446 </p> 444 </p>
445
447 <a NAME="HexEditMainWindow.__maybeSave" ID="HexEditMainWindow.__maybeSave"></a> 446 <a NAME="HexEditMainWindow.__maybeSave" ID="HexEditMainWindow.__maybeSave"></a>
448 <h4>HexEditMainWindow.__maybeSave</h4> 447 <h4>HexEditMainWindow.__maybeSave</h4>
449 <b>__maybeSave</b>(<i></i>) 448 <b>__maybeSave</b>(<i></i>)
450
451 <p> 449 <p>
452 Private method to ask the user to save the file, if it was modified. 450 Private method to ask the user to save the file, if it was modified.
453 </p> 451 </p>
452
454 <dl> 453 <dl>
455 <dt>Return:</dt> 454 <dt>Return:</dt>
456 <dd> 455 <dd>
457 flag indicating, if it is ok to continue 456 flag indicating, if it is ok to continue
458 </dd> 457 </dd>
464 </dd> 463 </dd>
465 </dl> 464 </dl>
466 <a NAME="HexEditMainWindow.__modificationChanged" ID="HexEditMainWindow.__modificationChanged"></a> 465 <a NAME="HexEditMainWindow.__modificationChanged" ID="HexEditMainWindow.__modificationChanged"></a>
467 <h4>HexEditMainWindow.__modificationChanged</h4> 466 <h4>HexEditMainWindow.__modificationChanged</h4>
468 <b>__modificationChanged</b>(<i>m</i>) 467 <b>__modificationChanged</b>(<i>m</i>)
469
470 <p> 468 <p>
471 Private slot to handle the dataChanged signal. 469 Private slot to handle the dataChanged signal.
472 </p> 470 </p>
471
473 <dl> 472 <dl>
474 473
475 <dt><i>m</i> (bool)</dt> 474 <dt><i>m</i> (bool)</dt>
476 <dd> 475 <dd>
477 modification status 476 modification status
478 </dd> 477 </dd>
479 </dl> 478 </dl>
480 <a NAME="HexEditMainWindow.__openHexFile" ID="HexEditMainWindow.__openHexFile"></a> 479 <a NAME="HexEditMainWindow.__openHexFile" ID="HexEditMainWindow.__openHexFile"></a>
481 <h4>HexEditMainWindow.__openHexFile</h4> 480 <h4>HexEditMainWindow.__openHexFile</h4>
482 <b>__openHexFile</b>(<i></i>) 481 <b>__openHexFile</b>(<i></i>)
483
484 <p> 482 <p>
485 Private slot to open a binary file. 483 Private slot to open a binary file.
486 </p> 484 </p>
485
487 <a NAME="HexEditMainWindow.__openHexFileNewWindow" ID="HexEditMainWindow.__openHexFileNewWindow"></a> 486 <a NAME="HexEditMainWindow.__openHexFileNewWindow" ID="HexEditMainWindow.__openHexFileNewWindow"></a>
488 <h4>HexEditMainWindow.__openHexFileNewWindow</h4> 487 <h4>HexEditMainWindow.__openHexFileNewWindow</h4>
489 <b>__openHexFileNewWindow</b>(<i></i>) 488 <b>__openHexFileNewWindow</b>(<i></i>)
490
491 <p> 489 <p>
492 Private slot called to open a binary file in new hex editor window. 490 Private slot called to open a binary file in new hex editor window.
493 </p> 491 </p>
492
494 <a NAME="HexEditMainWindow.__openHexFileReadOnly" ID="HexEditMainWindow.__openHexFileReadOnly"></a> 493 <a NAME="HexEditMainWindow.__openHexFileReadOnly" ID="HexEditMainWindow.__openHexFileReadOnly"></a>
495 <h4>HexEditMainWindow.__openHexFileReadOnly</h4> 494 <h4>HexEditMainWindow.__openHexFileReadOnly</h4>
496 <b>__openHexFileReadOnly</b>(<i></i>) 495 <b>__openHexFileReadOnly</b>(<i></i>)
497
498 <p> 496 <p>
499 Private slot to open a binary file in read only mode. 497 Private slot to open a binary file in read only mode.
500 </p> 498 </p>
499
501 <a NAME="HexEditMainWindow.__openRecentHexFile" ID="HexEditMainWindow.__openRecentHexFile"></a> 500 <a NAME="HexEditMainWindow.__openRecentHexFile" ID="HexEditMainWindow.__openRecentHexFile"></a>
502 <h4>HexEditMainWindow.__openRecentHexFile</h4> 501 <h4>HexEditMainWindow.__openRecentHexFile</h4>
503 <b>__openRecentHexFile</b>(<i>act</i>) 502 <b>__openRecentHexFile</b>(<i>act</i>)
504
505 <p> 503 <p>
506 Private method to open a file from the list of recently opened files. 504 Private method to open a file from the list of recently opened files.
507 </p> 505 </p>
506
508 <dl> 507 <dl>
509 508
510 <dt><i>act</i> (QAction)</dt> 509 <dt><i>act</i> (QAction)</dt>
511 <dd> 510 <dd>
512 reference to the action that triggered 511 reference to the action that triggered
513 </dd> 512 </dd>
514 </dl> 513 </dl>
515 <a NAME="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog" ID="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog"></a> 514 <a NAME="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog" ID="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog"></a>
516 <h4>HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog</h4> 515 <h4>HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog</h4>
517 <b>__preferencesChangedByLocalPreferencesDialog</b>(<i></i>) 516 <b>__preferencesChangedByLocalPreferencesDialog</b>(<i></i>)
518
519 <p> 517 <p>
520 Private slot to handle preferences changes by our local dialog. 518 Private slot to handle preferences changes by our local dialog.
521 </p> 519 </p>
520
522 <a NAME="HexEditMainWindow.__replace" ID="HexEditMainWindow.__replace"></a> 521 <a NAME="HexEditMainWindow.__replace" ID="HexEditMainWindow.__replace"></a>
523 <h4>HexEditMainWindow.__replace</h4> 522 <h4>HexEditMainWindow.__replace</h4>
524 <b>__replace</b>(<i></i>) 523 <b>__replace</b>(<i></i>)
525
526 <p> 524 <p>
527 Private method to handle the replace action. 525 Private method to handle the replace action.
528 </p> 526 </p>
527
529 <a NAME="HexEditMainWindow.__saveHexDataFile" ID="HexEditMainWindow.__saveHexDataFile"></a> 528 <a NAME="HexEditMainWindow.__saveHexDataFile" ID="HexEditMainWindow.__saveHexDataFile"></a>
530 <h4>HexEditMainWindow.__saveHexDataFile</h4> 529 <h4>HexEditMainWindow.__saveHexDataFile</h4>
531 <b>__saveHexDataFile</b>(<i>fileName</i>) 530 <b>__saveHexDataFile</b>(<i>fileName</i>)
532
533 <p> 531 <p>
534 Private method to save the binary data to a file. 532 Private method to save the binary data to a file.
535 </p> 533 </p>
534
536 <dl> 535 <dl>
537 536
538 <dt><i>fileName</i> (str)</dt> 537 <dt><i>fileName</i> (str)</dt>
539 <dd> 538 <dd>
540 name of the file to write to 539 name of the file to write to
553 </dd> 552 </dd>
554 </dl> 553 </dl>
555 <a NAME="HexEditMainWindow.__saveHexFile" ID="HexEditMainWindow.__saveHexFile"></a> 554 <a NAME="HexEditMainWindow.__saveHexFile" ID="HexEditMainWindow.__saveHexFile"></a>
556 <h4>HexEditMainWindow.__saveHexFile</h4> 555 <h4>HexEditMainWindow.__saveHexFile</h4>
557 <b>__saveHexFile</b>(<i></i>) 556 <b>__saveHexFile</b>(<i></i>)
558
559 <p> 557 <p>
560 Private method to save a binary file. 558 Private method to save a binary file.
561 </p> 559 </p>
560
562 <dl> 561 <dl>
563 <dt>Return:</dt> 562 <dt>Return:</dt>
564 <dd> 563 <dd>
565 flag indicating success 564 flag indicating success
566 </dd> 565 </dd>
572 </dd> 571 </dd>
573 </dl> 572 </dl>
574 <a NAME="HexEditMainWindow.__saveHexFileAs" ID="HexEditMainWindow.__saveHexFileAs"></a> 573 <a NAME="HexEditMainWindow.__saveHexFileAs" ID="HexEditMainWindow.__saveHexFileAs"></a>
575 <h4>HexEditMainWindow.__saveHexFileAs</h4> 574 <h4>HexEditMainWindow.__saveHexFileAs</h4>
576 <b>__saveHexFileAs</b>(<i></i>) 575 <b>__saveHexFileAs</b>(<i></i>)
577
578 <p> 576 <p>
579 Private method to save the data to a new file. 577 Private method to save the data to a new file.
580 </p> 578 </p>
579
581 <dl> 580 <dl>
582 <dt>Return:</dt> 581 <dt>Return:</dt>
583 <dd> 582 <dd>
584 flag indicating success 583 flag indicating success
585 </dd> 584 </dd>
591 </dd> 590 </dd>
592 </dl> 591 </dl>
593 <a NAME="HexEditMainWindow.__saveHexFileReadable" ID="HexEditMainWindow.__saveHexFileReadable"></a> 592 <a NAME="HexEditMainWindow.__saveHexFileReadable" ID="HexEditMainWindow.__saveHexFileReadable"></a>
594 <h4>HexEditMainWindow.__saveHexFileReadable</h4> 593 <h4>HexEditMainWindow.__saveHexFileReadable</h4>
595 <b>__saveHexFileReadable</b>(<i>selectionOnly=False</i>) 594 <b>__saveHexFileReadable</b>(<i>selectionOnly=False</i>)
596
597 <p> 595 <p>
598 Private method to save the binary data in readable format. 596 Private method to save the binary data in readable format.
599 </p> 597 </p>
598
600 <dl> 599 <dl>
601 600
602 <dt><i>selectionOnly</i> (bool)</dt> 601 <dt><i>selectionOnly</i> (bool)</dt>
603 <dd> 602 <dd>
604 flag indicating to save the selection only 603 flag indicating to save the selection only
605 </dd> 604 </dd>
606 </dl> 605 </dl>
607 <a NAME="HexEditMainWindow.__saveRecent" ID="HexEditMainWindow.__saveRecent"></a> 606 <a NAME="HexEditMainWindow.__saveRecent" ID="HexEditMainWindow.__saveRecent"></a>
608 <h4>HexEditMainWindow.__saveRecent</h4> 607 <h4>HexEditMainWindow.__saveRecent</h4>
609 <b>__saveRecent</b>(<i></i>) 608 <b>__saveRecent</b>(<i></i>)
610
611 <p> 609 <p>
612 Private method to save the list of recently opened files. 610 Private method to save the list of recently opened files.
613 </p> 611 </p>
612
614 <a NAME="HexEditMainWindow.__saveSelectionReadable" ID="HexEditMainWindow.__saveSelectionReadable"></a> 613 <a NAME="HexEditMainWindow.__saveSelectionReadable" ID="HexEditMainWindow.__saveSelectionReadable"></a>
615 <h4>HexEditMainWindow.__saveSelectionReadable</h4> 614 <h4>HexEditMainWindow.__saveSelectionReadable</h4>
616 <b>__saveSelectionReadable</b>(<i></i>) 615 <b>__saveSelectionReadable</b>(<i></i>)
617
618 <p> 616 <p>
619 Private method to save the data of the current selection in readable 617 Private method to save the data of the current selection in readable
620 format. 618 format.
621 </p> 619 </p>
620
622 <a NAME="HexEditMainWindow.__search" ID="HexEditMainWindow.__search"></a> 621 <a NAME="HexEditMainWindow.__search" ID="HexEditMainWindow.__search"></a>
623 <h4>HexEditMainWindow.__search</h4> 622 <h4>HexEditMainWindow.__search</h4>
624 <b>__search</b>(<i></i>) 623 <b>__search</b>(<i></i>)
625
626 <p> 624 <p>
627 Private method to handle the search action. 625 Private method to handle the search action.
628 </p> 626 </p>
627
629 <a NAME="HexEditMainWindow.__setCurrentFile" ID="HexEditMainWindow.__setCurrentFile"></a> 628 <a NAME="HexEditMainWindow.__setCurrentFile" ID="HexEditMainWindow.__setCurrentFile"></a>
630 <h4>HexEditMainWindow.__setCurrentFile</h4> 629 <h4>HexEditMainWindow.__setCurrentFile</h4>
631 <b>__setCurrentFile</b>(<i>fileName</i>) 630 <b>__setCurrentFile</b>(<i>fileName</i>)
632
633 <p> 631 <p>
634 Private method to register the file name of the current file. 632 Private method to register the file name of the current file.
635 </p> 633 </p>
634
636 <dl> 635 <dl>
637 636
638 <dt><i>fileName</i> (str)</dt> 637 <dt><i>fileName</i> (str)</dt>
639 <dd> 638 <dd>
640 name of the file to register 639 name of the file to register
641 </dd> 640 </dd>
642 </dl> 641 </dl>
643 <a NAME="HexEditMainWindow.__setReadOnlyActionTexts" ID="HexEditMainWindow.__setReadOnlyActionTexts"></a> 642 <a NAME="HexEditMainWindow.__setReadOnlyActionTexts" ID="HexEditMainWindow.__setReadOnlyActionTexts"></a>
644 <h4>HexEditMainWindow.__setReadOnlyActionTexts</h4> 643 <h4>HexEditMainWindow.__setReadOnlyActionTexts</h4>
645 <b>__setReadOnlyActionTexts</b>(<i></i>) 644 <b>__setReadOnlyActionTexts</b>(<i></i>)
646
647 <p> 645 <p>
648 Private method to switch the 'Open Read Only' action between 646 Private method to switch the 'Open Read Only' action between
649 'read only' and 'read write'. 647 'read only' and 'read write'.
650 </p> 648 </p>
649
651 <a NAME="HexEditMainWindow.__showAddress" ID="HexEditMainWindow.__showAddress"></a> 650 <a NAME="HexEditMainWindow.__showAddress" ID="HexEditMainWindow.__showAddress"></a>
652 <h4>HexEditMainWindow.__showAddress</h4> 651 <h4>HexEditMainWindow.__showAddress</h4>
653 <b>__showAddress</b>(<i>address</i>) 652 <b>__showAddress</b>(<i>address</i>)
654
655 <p> 653 <p>
656 Private slot to show the address of the cursor position. 654 Private slot to show the address of the cursor position.
657 </p> 655 </p>
656
658 <dl> 657 <dl>
659 658
660 <dt><i>address</i> (int)</dt> 659 <dt><i>address</i> (int)</dt>
661 <dd> 660 <dd>
662 address of the cursor 661 address of the cursor
663 </dd> 662 </dd>
664 </dl> 663 </dl>
665 <a NAME="HexEditMainWindow.__showEditMode" ID="HexEditMainWindow.__showEditMode"></a> 664 <a NAME="HexEditMainWindow.__showEditMode" ID="HexEditMainWindow.__showEditMode"></a>
666 <h4>HexEditMainWindow.__showEditMode</h4> 665 <h4>HexEditMainWindow.__showEditMode</h4>
667 <b>__showEditMode</b>(<i>overwrite</i>) 666 <b>__showEditMode</b>(<i>overwrite</i>)
668
669 <p> 667 <p>
670 Private slot to show the edit mode. 668 Private slot to show the edit mode.
671 </p> 669 </p>
670
672 <dl> 671 <dl>
673 672
674 <dt><i>overwrite</i> (bool)</dt> 673 <dt><i>overwrite</i> (bool)</dt>
675 <dd> 674 <dd>
676 flag indicating overwrite mode 675 flag indicating overwrite mode
677 </dd> 676 </dd>
678 </dl> 677 </dl>
679 <a NAME="HexEditMainWindow.__showFileMenu" ID="HexEditMainWindow.__showFileMenu"></a> 678 <a NAME="HexEditMainWindow.__showFileMenu" ID="HexEditMainWindow.__showFileMenu"></a>
680 <h4>HexEditMainWindow.__showFileMenu</h4> 679 <h4>HexEditMainWindow.__showFileMenu</h4>
681 <b>__showFileMenu</b>(<i></i>) 680 <b>__showFileMenu</b>(<i></i>)
682
683 <p> 681 <p>
684 Private slot to modify the file menu before being shown. 682 Private slot to modify the file menu before being shown.
685 </p> 683 </p>
684
686 <a NAME="HexEditMainWindow.__showPreferences" ID="HexEditMainWindow.__showPreferences"></a> 685 <a NAME="HexEditMainWindow.__showPreferences" ID="HexEditMainWindow.__showPreferences"></a>
687 <h4>HexEditMainWindow.__showPreferences</h4> 686 <h4>HexEditMainWindow.__showPreferences</h4>
688 <b>__showPreferences</b>(<i></i>) 687 <b>__showPreferences</b>(<i></i>)
689
690 <p> 688 <p>
691 Private slot to set the preferences. 689 Private slot to set the preferences.
692 </p> 690 </p>
691
693 <a NAME="HexEditMainWindow.__showReadOnlyMode" ID="HexEditMainWindow.__showReadOnlyMode"></a> 692 <a NAME="HexEditMainWindow.__showReadOnlyMode" ID="HexEditMainWindow.__showReadOnlyMode"></a>
694 <h4>HexEditMainWindow.__showReadOnlyMode</h4> 693 <h4>HexEditMainWindow.__showReadOnlyMode</h4>
695 <b>__showReadOnlyMode</b>(<i>on</i>) 694 <b>__showReadOnlyMode</b>(<i>on</i>)
696
697 <p> 695 <p>
698 Private slot to show the read only mode. 696 Private slot to show the read only mode.
699 </p> 697 </p>
698
700 <dl> 699 <dl>
701 700
702 <dt><i>on</i> (bool)</dt> 701 <dt><i>on</i> (bool)</dt>
703 <dd> 702 <dd>
704 flag indicating the read only state 703 flag indicating the read only state
705 </dd> 704 </dd>
706 </dl> 705 </dl>
707 <a NAME="HexEditMainWindow.__showRecentMenu" ID="HexEditMainWindow.__showRecentMenu"></a> 706 <a NAME="HexEditMainWindow.__showRecentMenu" ID="HexEditMainWindow.__showRecentMenu"></a>
708 <h4>HexEditMainWindow.__showRecentMenu</h4> 707 <h4>HexEditMainWindow.__showRecentMenu</h4>
709 <b>__showRecentMenu</b>(<i></i>) 708 <b>__showRecentMenu</b>(<i></i>)
710
711 <p> 709 <p>
712 Private slot to set up the recent files menu. 710 Private slot to set up the recent files menu.
713 </p> 711 </p>
712
714 <a NAME="HexEditMainWindow.__showSelectionInfo" ID="HexEditMainWindow.__showSelectionInfo"></a> 713 <a NAME="HexEditMainWindow.__showSelectionInfo" ID="HexEditMainWindow.__showSelectionInfo"></a>
715 <h4>HexEditMainWindow.__showSelectionInfo</h4> 714 <h4>HexEditMainWindow.__showSelectionInfo</h4>
716 <b>__showSelectionInfo</b>(<i>avail</i>) 715 <b>__showSelectionInfo</b>(<i>avail</i>)
717
718 <p> 716 <p>
719 Private slot to show selection information. 717 Private slot to show selection information.
720 </p> 718 </p>
719
721 <dl> 720 <dl>
722 721
723 <dt><i>avail</i> (bool)</dt> 722 <dt><i>avail</i> (bool)</dt>
724 <dd> 723 <dd>
725 flag indicating the availability of a selection. 724 flag indicating the availability of a selection.
726 </dd> 725 </dd>
727 </dl> 726 </dl>
728 <a NAME="HexEditMainWindow.__showSize" ID="HexEditMainWindow.__showSize"></a> 727 <a NAME="HexEditMainWindow.__showSize" ID="HexEditMainWindow.__showSize"></a>
729 <h4>HexEditMainWindow.__showSize</h4> 728 <h4>HexEditMainWindow.__showSize</h4>
730 <b>__showSize</b>(<i>size</i>) 729 <b>__showSize</b>(<i>size</i>)
731
732 <p> 730 <p>
733 Private slot to show the binary data size. 731 Private slot to show the binary data size.
734 </p> 732 </p>
733
735 <dl> 734 <dl>
736 735
737 <dt><i>size</i> (int)</dt> 736 <dt><i>size</i> (int)</dt>
738 <dd> 737 <dd>
739 size of the binary data 738 size of the binary data
740 </dd> 739 </dd>
741 </dl> 740 </dl>
742 <a NAME="HexEditMainWindow.__strippedName" ID="HexEditMainWindow.__strippedName"></a> 741 <a NAME="HexEditMainWindow.__strippedName" ID="HexEditMainWindow.__strippedName"></a>
743 <h4>HexEditMainWindow.__strippedName</h4> 742 <h4>HexEditMainWindow.__strippedName</h4>
744 <b>__strippedName</b>(<i>fullFileName</i>) 743 <b>__strippedName</b>(<i>fullFileName</i>)
745
746 <p> 744 <p>
747 Private method to return the filename part of the given path. 745 Private method to return the filename part of the given path.
748 </p> 746 </p>
747
749 <dl> 748 <dl>
750 749
751 <dt><i>fullFileName</i> (str)</dt> 750 <dt><i>fullFileName</i> (str)</dt>
752 <dd> 751 <dd>
753 full pathname of the given file 752 full pathname of the given file
766 </dd> 765 </dd>
767 </dl> 766 </dl>
768 <a NAME="HexEditMainWindow.__toggleEditMode" ID="HexEditMainWindow.__toggleEditMode"></a> 767 <a NAME="HexEditMainWindow.__toggleEditMode" ID="HexEditMainWindow.__toggleEditMode"></a>
769 <h4>HexEditMainWindow.__toggleEditMode</h4> 768 <h4>HexEditMainWindow.__toggleEditMode</h4>
770 <b>__toggleEditMode</b>(<i></i>) 769 <b>__toggleEditMode</b>(<i></i>)
771
772 <p> 770 <p>
773 Private slot to toggle the edit mode upon a click on the status bar 771 Private slot to toggle the edit mode upon a click on the status bar
774 label. 772 label.
775 </p> 773 </p>
774
776 <a NAME="HexEditMainWindow.__toggleReadOnlyMode" ID="HexEditMainWindow.__toggleReadOnlyMode"></a> 775 <a NAME="HexEditMainWindow.__toggleReadOnlyMode" ID="HexEditMainWindow.__toggleReadOnlyMode"></a>
777 <h4>HexEditMainWindow.__toggleReadOnlyMode</h4> 776 <h4>HexEditMainWindow.__toggleReadOnlyMode</h4>
778 <b>__toggleReadOnlyMode</b>(<i></i>) 777 <b>__toggleReadOnlyMode</b>(<i></i>)
779
780 <p> 778 <p>
781 Private slot to toggle the read only mode upon a click on the status 779 Private slot to toggle the read only mode upon a click on the status
782 bar label. 780 bar label.
783 </p> 781 </p>
782
784 <a NAME="HexEditMainWindow.__whatsThis" ID="HexEditMainWindow.__whatsThis"></a> 783 <a NAME="HexEditMainWindow.__whatsThis" ID="HexEditMainWindow.__whatsThis"></a>
785 <h4>HexEditMainWindow.__whatsThis</h4> 784 <h4>HexEditMainWindow.__whatsThis</h4>
786 <b>__whatsThis</b>(<i></i>) 785 <b>__whatsThis</b>(<i></i>)
787
788 <p> 786 <p>
789 Private slot called in to enter Whats This mode. 787 Private slot called in to enter Whats This mode.
790 </p> 788 </p>
789
791 <a NAME="HexEditMainWindow.closeEvent" ID="HexEditMainWindow.closeEvent"></a> 790 <a NAME="HexEditMainWindow.closeEvent" ID="HexEditMainWindow.closeEvent"></a>
792 <h4>HexEditMainWindow.closeEvent</h4> 791 <h4>HexEditMainWindow.closeEvent</h4>
793 <b>closeEvent</b>(<i>evt</i>) 792 <b>closeEvent</b>(<i>evt</i>)
794
795 <p> 793 <p>
796 Protected event handler for the close event. 794 Protected event handler for the close event.
797 </p> 795 </p>
796
798 <dl> 797 <dl>
799 798
800 <dt><i>evt</i> (QCloseEvent)</dt> 799 <dt><i>evt</i> (QCloseEvent)</dt>
801 <dd> 800 <dd>
802 reference to the close event 801 reference to the close event
805 </dd> 804 </dd>
806 </dl> 805 </dl>
807 <a NAME="HexEditMainWindow.getSRHistory" ID="HexEditMainWindow.getSRHistory"></a> 806 <a NAME="HexEditMainWindow.getSRHistory" ID="HexEditMainWindow.getSRHistory"></a>
808 <h4>HexEditMainWindow.getSRHistory</h4> 807 <h4>HexEditMainWindow.getSRHistory</h4>
809 <b>getSRHistory</b>(<i>key</i>) 808 <b>getSRHistory</b>(<i>key</i>)
810
811 <p> 809 <p>
812 Public method to get the search or replace history list. 810 Public method to get the search or replace history list.
813 </p> 811 </p>
812
814 <dl> 813 <dl>
815 814
816 <dt><i>key</i> (str (must be 'search' or 'replace'))</dt> 815 <dt><i>key</i> (str (must be 'search' or 'replace'))</dt>
817 <dd> 816 <dd>
818 name of list to return 817 name of list to return
831 </dd> 830 </dd>
832 </dl> 831 </dl>
833 <a NAME="HexEditMainWindow.preferencesChanged" ID="HexEditMainWindow.preferencesChanged"></a> 832 <a NAME="HexEditMainWindow.preferencesChanged" ID="HexEditMainWindow.preferencesChanged"></a>
834 <h4>HexEditMainWindow.preferencesChanged</h4> 833 <h4>HexEditMainWindow.preferencesChanged</h4>
835 <b>preferencesChanged</b>(<i></i>) 834 <b>preferencesChanged</b>(<i></i>)
836
837 <p> 835 <p>
838 Public method to (re-)read the various settings. 836 Public method to (re-)read the various settings.
839 </p> 837 </p>
838
840 <a NAME="HexEditMainWindow.setRecentPaths" ID="HexEditMainWindow.setRecentPaths"></a> 839 <a NAME="HexEditMainWindow.setRecentPaths" ID="HexEditMainWindow.setRecentPaths"></a>
841 <h4>HexEditMainWindow.setRecentPaths</h4> 840 <h4>HexEditMainWindow.setRecentPaths</h4>
842 <b>setRecentPaths</b>(<i>openPath, savePath</i>) 841 <b>setRecentPaths</b>(<i>openPath, savePath</i>)
843
844 <p> 842 <p>
845 Public method to set the last open and save paths. 843 Public method to set the last open and save paths.
846 </p> 844 </p>
845
847 <dl> 846 <dl>
848 847
849 <dt><i>openPath</i> (str)</dt> 848 <dt><i>openPath</i> (str)</dt>
850 <dd> 849 <dd>
851 least recently used open path 850 least recently used open path

eric ide

mercurial