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

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.HexEdit.HexEditMainWindow</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.HexEdit.HexEditMainWindow</h1>
24
25 <p>
26 Module implementing the hex editor main window.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#HexEditMainWindow">HexEditMainWindow</a></td>
39 <td>Class implementing the web browser main window.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="HexEditMainWindow" ID="HexEditMainWindow"></a>
50 <h2>HexEditMainWindow</h2>
51
52 <p>
53 Class implementing the web browser main window.
54 </p>
55 <h3>Signals</h3>
56 <dl>
57
58 <dt>editorClosed()</dt>
59 <dd>
60 emitted after the window was requested to close down
61 </dd>
62 </dl>
63 <h3>Derived from</h3>
64 EricMainWindow
65 <h3>Class Attributes</h3>
66
67 <table>
68 <tr><td>maxMenuFilePathLen</td></tr><tr><td>windows</td></tr>
69 </table>
70 <h3>Class Methods</h3>
71
72 <table>
73 <tr><td>None</td></tr>
74 </table>
75 <h3>Methods</h3>
76
77 <table>
78
79 <tr>
80 <td><a href="#HexEditMainWindow.__init__">HexEditMainWindow</a></td>
81 <td>Constructor</td>
82 </tr>
83 <tr>
84 <td><a href="#HexEditMainWindow.__about">__about</a></td>
85 <td>Private slot to show a little About message.</td>
86 </tr>
87 <tr>
88 <td><a href="#HexEditMainWindow.__aboutQt">__aboutQt</a></td>
89 <td>Private slot to handle the About Qt dialog.</td>
90 </tr>
91 <tr>
92 <td><a href="#HexEditMainWindow.__addToRecentList">__addToRecentList</a></td>
93 <td>Private method to add a file name to the list of recently opened files.</td>
94 </tr>
95 <tr>
96 <td><a href="#HexEditMainWindow.__checkActions">__checkActions</a></td>
97 <td>Private slot to check some actions for their enable/disable status.</td>
98 </tr>
99 <tr>
100 <td><a href="#HexEditMainWindow.__clearRecent">__clearRecent</a></td>
101 <td>Private method to clear the list of recently opened files.</td>
102 </tr>
103 <tr>
104 <td><a href="#HexEditMainWindow.__closeAll">__closeAll</a></td>
105 <td>Private slot to close all windows.</td>
106 </tr>
107 <tr>
108 <td><a href="#HexEditMainWindow.__closeOthers">__closeOthers</a></td>
109 <td>Private slot to close all other windows.</td>
110 </tr>
111 <tr>
112 <td><a href="#HexEditMainWindow.__createStatusBar">__createStatusBar</a></td>
113 <td>Private method to initialize the status bar.</td>
114 </tr>
115 <tr>
116 <td><a href="#HexEditMainWindow.__goto">__goto</a></td>
117 <td>Private method to handle the goto action.</td>
118 </tr>
119 <tr>
120 <td><a href="#HexEditMainWindow.__initActions">__initActions</a></td>
121 <td>Private method to define the user interface actions.</td>
122 </tr>
123 <tr>
124 <td><a href="#HexEditMainWindow.__initConfigActions">__initConfigActions</a></td>
125 <td>Private method to create the Settings actions.</td>
126 </tr>
127 <tr>
128 <td><a href="#HexEditMainWindow.__initEditActions">__initEditActions</a></td>
129 <td>Private method to create the Edit actions.</td>
130 </tr>
131 <tr>
132 <td><a href="#HexEditMainWindow.__initFileActions">__initFileActions</a></td>
133 <td>Private method to define the file related user interface actions.</td>
134 </tr>
135 <tr>
136 <td><a href="#HexEditMainWindow.__initHelpActions">__initHelpActions</a></td>
137 <td>Private method to create the Help actions.</td>
138 </tr>
139 <tr>
140 <td><a href="#HexEditMainWindow.__initMenus">__initMenus</a></td>
141 <td>Private method to create the menus.</td>
142 </tr>
143 <tr>
144 <td><a href="#HexEditMainWindow.__initToolbars">__initToolbars</a></td>
145 <td>Private method to create the toolbars.</td>
146 </tr>
147 <tr>
148 <td><a href="#HexEditMainWindow.__loadHexFile">__loadHexFile</a></td>
149 <td>Private method to load a binary file.</td>
150 </tr>
151 <tr>
152 <td><a href="#HexEditMainWindow.__loadRecent">__loadRecent</a></td>
153 <td>Private method to load the list of recently opened files.</td>
154 </tr>
155 <tr>
156 <td><a href="#HexEditMainWindow.__maybeSave">__maybeSave</a></td>
157 <td>Private method to ask the user to save the file, if it was modified.</td>
158 </tr>
159 <tr>
160 <td><a href="#HexEditMainWindow.__modificationChanged">__modificationChanged</a></td>
161 <td>Private slot to handle the dataChanged signal.</td>
162 </tr>
163 <tr>
164 <td><a href="#HexEditMainWindow.__openHexFile">__openHexFile</a></td>
165 <td>Private slot to open a binary file.</td>
166 </tr>
167 <tr>
168 <td><a href="#HexEditMainWindow.__openHexFileNewWindow">__openHexFileNewWindow</a></td>
169 <td>Private slot called to open a binary file in new hex editor window.</td>
170 </tr>
171 <tr>
172 <td><a href="#HexEditMainWindow.__openHexFileReadOnly">__openHexFileReadOnly</a></td>
173 <td>Private slot to open a binary file in read only mode.</td>
174 </tr>
175 <tr>
176 <td><a href="#HexEditMainWindow.__openRecentHexFile">__openRecentHexFile</a></td>
177 <td>Private method to open a file from the list of recently opened files.</td>
178 </tr>
179 <tr>
180 <td><a href="#HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog">__preferencesChangedByLocalPreferencesDialog</a></td>
181 <td>Private slot to handle preferences changes by our local dialog.</td>
182 </tr>
183 <tr>
184 <td><a href="#HexEditMainWindow.__replace">__replace</a></td>
185 <td>Private method to handle the replace action.</td>
186 </tr>
187 <tr>
188 <td><a href="#HexEditMainWindow.__saveHexDataFile">__saveHexDataFile</a></td>
189 <td>Private method to save the binary data to a file.</td>
190 </tr>
191 <tr>
192 <td><a href="#HexEditMainWindow.__saveHexFile">__saveHexFile</a></td>
193 <td>Private method to save a binary file.</td>
194 </tr>
195 <tr>
196 <td><a href="#HexEditMainWindow.__saveHexFileAs">__saveHexFileAs</a></td>
197 <td>Private method to save the data to a new file.</td>
198 </tr>
199 <tr>
200 <td><a href="#HexEditMainWindow.__saveHexFileReadable">__saveHexFileReadable</a></td>
201 <td>Private method to save the binary data in readable format.</td>
202 </tr>
203 <tr>
204 <td><a href="#HexEditMainWindow.__saveRecent">__saveRecent</a></td>
205 <td>Private method to save the list of recently opened files.</td>
206 </tr>
207 <tr>
208 <td><a href="#HexEditMainWindow.__saveSelectionReadable">__saveSelectionReadable</a></td>
209 <td>Private method to save the data of the current selection in readable format.</td>
210 </tr>
211 <tr>
212 <td><a href="#HexEditMainWindow.__search">__search</a></td>
213 <td>Private method to handle the search action.</td>
214 </tr>
215 <tr>
216 <td><a href="#HexEditMainWindow.__setCurrentFile">__setCurrentFile</a></td>
217 <td>Private method to register the file name of the current file.</td>
218 </tr>
219 <tr>
220 <td><a href="#HexEditMainWindow.__setReadOnlyActionTexts">__setReadOnlyActionTexts</a></td>
221 <td>Private method to switch the 'Open Read Only' action between 'read only' and 'read write'.</td>
222 </tr>
223 <tr>
224 <td><a href="#HexEditMainWindow.__showAddress">__showAddress</a></td>
225 <td>Private slot to show the address of the cursor position.</td>
226 </tr>
227 <tr>
228 <td><a href="#HexEditMainWindow.__showEditMode">__showEditMode</a></td>
229 <td>Private slot to show the edit mode.</td>
230 </tr>
231 <tr>
232 <td><a href="#HexEditMainWindow.__showFileMenu">__showFileMenu</a></td>
233 <td>Private slot to modify the file menu before being shown.</td>
234 </tr>
235 <tr>
236 <td><a href="#HexEditMainWindow.__showPreferences">__showPreferences</a></td>
237 <td>Private slot to set the preferences.</td>
238 </tr>
239 <tr>
240 <td><a href="#HexEditMainWindow.__showReadOnlyMode">__showReadOnlyMode</a></td>
241 <td>Private slot to show the read only mode.</td>
242 </tr>
243 <tr>
244 <td><a href="#HexEditMainWindow.__showRecentMenu">__showRecentMenu</a></td>
245 <td>Private slot to set up the recent files menu.</td>
246 </tr>
247 <tr>
248 <td><a href="#HexEditMainWindow.__showSelectionInfo">__showSelectionInfo</a></td>
249 <td>Private slot to show selection information.</td>
250 </tr>
251 <tr>
252 <td><a href="#HexEditMainWindow.__showSize">__showSize</a></td>
253 <td>Private slot to show the binary data size.</td>
254 </tr>
255 <tr>
256 <td><a href="#HexEditMainWindow.__strippedName">__strippedName</a></td>
257 <td>Private method to return the filename part of the given path.</td>
258 </tr>
259 <tr>
260 <td><a href="#HexEditMainWindow.__toggleEditMode">__toggleEditMode</a></td>
261 <td>Private slot to toggle the edit mode upon a click on the status bar label.</td>
262 </tr>
263 <tr>
264 <td><a href="#HexEditMainWindow.__toggleReadOnlyMode">__toggleReadOnlyMode</a></td>
265 <td>Private slot to toggle the read only mode upon a click on the status bar label.</td>
266 </tr>
267 <tr>
268 <td><a href="#HexEditMainWindow.__whatsThis">__whatsThis</a></td>
269 <td>Private slot called in to enter Whats This mode.</td>
270 </tr>
271 <tr>
272 <td><a href="#HexEditMainWindow.closeEvent">closeEvent</a></td>
273 <td>Protected event handler for the close event.</td>
274 </tr>
275 <tr>
276 <td><a href="#HexEditMainWindow.getSRHistory">getSRHistory</a></td>
277 <td>Public method to get the search or replace history list.</td>
278 </tr>
279 <tr>
280 <td><a href="#HexEditMainWindow.preferencesChanged">preferencesChanged</a></td>
281 <td>Public method to (re-)read the various settings.</td>
282 </tr>
283 <tr>
284 <td><a href="#HexEditMainWindow.setRecentPaths">setRecentPaths</a></td>
285 <td>Public method to set the last open and save paths.</td>
286 </tr>
287 </table>
288 <h3>Static Methods</h3>
289
290 <table>
291 <tr><td>None</td></tr>
292 </table>
293
294 <a NAME="HexEditMainWindow.__init__" ID="HexEditMainWindow.__init__"></a>
295 <h4>HexEditMainWindow (Constructor)</h4>
296 <b>HexEditMainWindow</b>(<i>fileName="", parent=None, fromEric=False, project=None</i>)
297
298 <p>
299 Constructor
300 </p>
301 <dl>
302
303 <dt><i>fileName</i></dt>
304 <dd>
305 name of a file to load on startup (string)
306 </dd>
307 <dt><i>parent</i></dt>
308 <dd>
309 parent widget of this window (QWidget)
310 </dd>
311 <dt><i>fromEric</i></dt>
312 <dd>
313 flag indicating whether it was called from within
314 eric (boolean)
315 </dd>
316 <dt><i>project</i></dt>
317 <dd>
318 reference to the project object (Project)
319 </dd>
320 </dl>
321 <a NAME="HexEditMainWindow.__about" ID="HexEditMainWindow.__about"></a>
322 <h4>HexEditMainWindow.__about</h4>
323 <b>__about</b>(<i></i>)
324
325 <p>
326 Private slot to show a little About message.
327 </p>
328 <a NAME="HexEditMainWindow.__aboutQt" ID="HexEditMainWindow.__aboutQt"></a>
329 <h4>HexEditMainWindow.__aboutQt</h4>
330 <b>__aboutQt</b>(<i></i>)
331
332 <p>
333 Private slot to handle the About Qt dialog.
334 </p>
335 <a NAME="HexEditMainWindow.__addToRecentList" ID="HexEditMainWindow.__addToRecentList"></a>
336 <h4>HexEditMainWindow.__addToRecentList</h4>
337 <b>__addToRecentList</b>(<i>fileName</i>)
338
339 <p>
340 Private method to add a file name to the list of recently opened files.
341 </p>
342 <dl>
343
344 <dt><i>fileName</i></dt>
345 <dd>
346 name of the file to be added
347 </dd>
348 </dl>
349 <a NAME="HexEditMainWindow.__checkActions" ID="HexEditMainWindow.__checkActions"></a>
350 <h4>HexEditMainWindow.__checkActions</h4>
351 <b>__checkActions</b>(<i></i>)
352
353 <p>
354 Private slot to check some actions for their enable/disable status.
355 </p>
356 <a NAME="HexEditMainWindow.__clearRecent" ID="HexEditMainWindow.__clearRecent"></a>
357 <h4>HexEditMainWindow.__clearRecent</h4>
358 <b>__clearRecent</b>(<i></i>)
359
360 <p>
361 Private method to clear the list of recently opened files.
362 </p>
363 <a NAME="HexEditMainWindow.__closeAll" ID="HexEditMainWindow.__closeAll"></a>
364 <h4>HexEditMainWindow.__closeAll</h4>
365 <b>__closeAll</b>(<i></i>)
366
367 <p>
368 Private slot to close all windows.
369 </p>
370 <a NAME="HexEditMainWindow.__closeOthers" ID="HexEditMainWindow.__closeOthers"></a>
371 <h4>HexEditMainWindow.__closeOthers</h4>
372 <b>__closeOthers</b>(<i></i>)
373
374 <p>
375 Private slot to close all other windows.
376 </p>
377 <a NAME="HexEditMainWindow.__createStatusBar" ID="HexEditMainWindow.__createStatusBar"></a>
378 <h4>HexEditMainWindow.__createStatusBar</h4>
379 <b>__createStatusBar</b>(<i></i>)
380
381 <p>
382 Private method to initialize the status bar.
383 </p>
384 <a NAME="HexEditMainWindow.__goto" ID="HexEditMainWindow.__goto"></a>
385 <h4>HexEditMainWindow.__goto</h4>
386 <b>__goto</b>(<i></i>)
387
388 <p>
389 Private method to handle the goto action.
390 </p>
391 <a NAME="HexEditMainWindow.__initActions" ID="HexEditMainWindow.__initActions"></a>
392 <h4>HexEditMainWindow.__initActions</h4>
393 <b>__initActions</b>(<i></i>)
394
395 <p>
396 Private method to define the user interface actions.
397 </p>
398 <a NAME="HexEditMainWindow.__initConfigActions" ID="HexEditMainWindow.__initConfigActions"></a>
399 <h4>HexEditMainWindow.__initConfigActions</h4>
400 <b>__initConfigActions</b>(<i></i>)
401
402 <p>
403 Private method to create the Settings actions.
404 </p>
405 <a NAME="HexEditMainWindow.__initEditActions" ID="HexEditMainWindow.__initEditActions"></a>
406 <h4>HexEditMainWindow.__initEditActions</h4>
407 <b>__initEditActions</b>(<i></i>)
408
409 <p>
410 Private method to create the Edit actions.
411 </p>
412 <a NAME="HexEditMainWindow.__initFileActions" ID="HexEditMainWindow.__initFileActions"></a>
413 <h4>HexEditMainWindow.__initFileActions</h4>
414 <b>__initFileActions</b>(<i></i>)
415
416 <p>
417 Private method to define the file related user interface actions.
418 </p>
419 <a NAME="HexEditMainWindow.__initHelpActions" ID="HexEditMainWindow.__initHelpActions"></a>
420 <h4>HexEditMainWindow.__initHelpActions</h4>
421 <b>__initHelpActions</b>(<i></i>)
422
423 <p>
424 Private method to create the Help actions.
425 </p>
426 <a NAME="HexEditMainWindow.__initMenus" ID="HexEditMainWindow.__initMenus"></a>
427 <h4>HexEditMainWindow.__initMenus</h4>
428 <b>__initMenus</b>(<i></i>)
429
430 <p>
431 Private method to create the menus.
432 </p>
433 <a NAME="HexEditMainWindow.__initToolbars" ID="HexEditMainWindow.__initToolbars"></a>
434 <h4>HexEditMainWindow.__initToolbars</h4>
435 <b>__initToolbars</b>(<i></i>)
436
437 <p>
438 Private method to create the toolbars.
439 </p>
440 <a NAME="HexEditMainWindow.__loadHexFile" ID="HexEditMainWindow.__loadHexFile"></a>
441 <h4>HexEditMainWindow.__loadHexFile</h4>
442 <b>__loadHexFile</b>(<i>fileName</i>)
443
444 <p>
445 Private method to load a binary file.
446 </p>
447 <dl>
448
449 <dt><i>fileName</i> (str)</dt>
450 <dd>
451 name of the binary file to load
452 </dd>
453 </dl>
454 <a NAME="HexEditMainWindow.__loadRecent" ID="HexEditMainWindow.__loadRecent"></a>
455 <h4>HexEditMainWindow.__loadRecent</h4>
456 <b>__loadRecent</b>(<i></i>)
457
458 <p>
459 Private method to load the list of recently opened files.
460 </p>
461 <a NAME="HexEditMainWindow.__maybeSave" ID="HexEditMainWindow.__maybeSave"></a>
462 <h4>HexEditMainWindow.__maybeSave</h4>
463 <b>__maybeSave</b>(<i></i>)
464
465 <p>
466 Private method to ask the user to save the file, if it was modified.
467 </p>
468 <dl>
469 <dt>Return:</dt>
470 <dd>
471 flag indicating, if it is ok to continue
472 </dd>
473 </dl>
474 <dl>
475 <dt>Return Type:</dt>
476 <dd>
477 bool
478 </dd>
479 </dl>
480 <a NAME="HexEditMainWindow.__modificationChanged" ID="HexEditMainWindow.__modificationChanged"></a>
481 <h4>HexEditMainWindow.__modificationChanged</h4>
482 <b>__modificationChanged</b>(<i>m</i>)
483
484 <p>
485 Private slot to handle the dataChanged signal.
486 </p>
487 <dl>
488
489 <dt><i>m</i> (bool)</dt>
490 <dd>
491 modification status
492 </dd>
493 </dl>
494 <a NAME="HexEditMainWindow.__openHexFile" ID="HexEditMainWindow.__openHexFile"></a>
495 <h4>HexEditMainWindow.__openHexFile</h4>
496 <b>__openHexFile</b>(<i></i>)
497
498 <p>
499 Private slot to open a binary file.
500 </p>
501 <a NAME="HexEditMainWindow.__openHexFileNewWindow" ID="HexEditMainWindow.__openHexFileNewWindow"></a>
502 <h4>HexEditMainWindow.__openHexFileNewWindow</h4>
503 <b>__openHexFileNewWindow</b>(<i></i>)
504
505 <p>
506 Private slot called to open a binary file in new hex editor window.
507 </p>
508 <a NAME="HexEditMainWindow.__openHexFileReadOnly" ID="HexEditMainWindow.__openHexFileReadOnly"></a>
509 <h4>HexEditMainWindow.__openHexFileReadOnly</h4>
510 <b>__openHexFileReadOnly</b>(<i></i>)
511
512 <p>
513 Private slot to open a binary file in read only mode.
514 </p>
515 <a NAME="HexEditMainWindow.__openRecentHexFile" ID="HexEditMainWindow.__openRecentHexFile"></a>
516 <h4>HexEditMainWindow.__openRecentHexFile</h4>
517 <b>__openRecentHexFile</b>(<i>act</i>)
518
519 <p>
520 Private method to open a file from the list of recently opened files.
521 </p>
522 <dl>
523
524 <dt><i>act</i></dt>
525 <dd>
526 reference to the action that triggered (QAction)
527 </dd>
528 </dl>
529 <a NAME="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog" ID="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog"></a>
530 <h4>HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog</h4>
531 <b>__preferencesChangedByLocalPreferencesDialog</b>(<i></i>)
532
533 <p>
534 Private slot to handle preferences changes by our local dialog.
535 </p>
536 <a NAME="HexEditMainWindow.__replace" ID="HexEditMainWindow.__replace"></a>
537 <h4>HexEditMainWindow.__replace</h4>
538 <b>__replace</b>(<i></i>)
539
540 <p>
541 Private method to handle the replace action.
542 </p>
543 <a NAME="HexEditMainWindow.__saveHexDataFile" ID="HexEditMainWindow.__saveHexDataFile"></a>
544 <h4>HexEditMainWindow.__saveHexDataFile</h4>
545 <b>__saveHexDataFile</b>(<i>fileName</i>)
546
547 <p>
548 Private method to save the binary data to a file.
549 </p>
550 <dl>
551
552 <dt><i>fileName</i> (str)</dt>
553 <dd>
554 name of the file to write to
555 </dd>
556 </dl>
557 <dl>
558 <dt>Return:</dt>
559 <dd>
560 flag indicating success
561 </dd>
562 </dl>
563 <dl>
564 <dt>Return Type:</dt>
565 <dd>
566 bool
567 </dd>
568 </dl>
569 <a NAME="HexEditMainWindow.__saveHexFile" ID="HexEditMainWindow.__saveHexFile"></a>
570 <h4>HexEditMainWindow.__saveHexFile</h4>
571 <b>__saveHexFile</b>(<i></i>)
572
573 <p>
574 Private method to save a binary file.
575 </p>
576 <dl>
577 <dt>Return:</dt>
578 <dd>
579 flag indicating success
580 </dd>
581 </dl>
582 <dl>
583 <dt>Return Type:</dt>
584 <dd>
585 bool
586 </dd>
587 </dl>
588 <a NAME="HexEditMainWindow.__saveHexFileAs" ID="HexEditMainWindow.__saveHexFileAs"></a>
589 <h4>HexEditMainWindow.__saveHexFileAs</h4>
590 <b>__saveHexFileAs</b>(<i></i>)
591
592 <p>
593 Private method to save the data to a new file.
594 </p>
595 <dl>
596 <dt>Return:</dt>
597 <dd>
598 flag indicating success
599 </dd>
600 </dl>
601 <dl>
602 <dt>Return Type:</dt>
603 <dd>
604 bool
605 </dd>
606 </dl>
607 <a NAME="HexEditMainWindow.__saveHexFileReadable" ID="HexEditMainWindow.__saveHexFileReadable"></a>
608 <h4>HexEditMainWindow.__saveHexFileReadable</h4>
609 <b>__saveHexFileReadable</b>(<i>selectionOnly=False</i>)
610
611 <p>
612 Private method to save the binary data in readable format.
613 </p>
614 <dl>
615
616 <dt><i>selectionOnly</i> (bool)</dt>
617 <dd>
618 flag indicating to save the selection only
619 </dd>
620 </dl>
621 <a NAME="HexEditMainWindow.__saveRecent" ID="HexEditMainWindow.__saveRecent"></a>
622 <h4>HexEditMainWindow.__saveRecent</h4>
623 <b>__saveRecent</b>(<i></i>)
624
625 <p>
626 Private method to save the list of recently opened files.
627 </p>
628 <a NAME="HexEditMainWindow.__saveSelectionReadable" ID="HexEditMainWindow.__saveSelectionReadable"></a>
629 <h4>HexEditMainWindow.__saveSelectionReadable</h4>
630 <b>__saveSelectionReadable</b>(<i></i>)
631
632 <p>
633 Private method to save the data of the current selection in readable
634 format.
635 </p>
636 <a NAME="HexEditMainWindow.__search" ID="HexEditMainWindow.__search"></a>
637 <h4>HexEditMainWindow.__search</h4>
638 <b>__search</b>(<i></i>)
639
640 <p>
641 Private method to handle the search action.
642 </p>
643 <a NAME="HexEditMainWindow.__setCurrentFile" ID="HexEditMainWindow.__setCurrentFile"></a>
644 <h4>HexEditMainWindow.__setCurrentFile</h4>
645 <b>__setCurrentFile</b>(<i>fileName</i>)
646
647 <p>
648 Private method to register the file name of the current file.
649 </p>
650 <dl>
651
652 <dt><i>fileName</i> (str)</dt>
653 <dd>
654 name of the file to register
655 </dd>
656 </dl>
657 <a NAME="HexEditMainWindow.__setReadOnlyActionTexts" ID="HexEditMainWindow.__setReadOnlyActionTexts"></a>
658 <h4>HexEditMainWindow.__setReadOnlyActionTexts</h4>
659 <b>__setReadOnlyActionTexts</b>(<i></i>)
660
661 <p>
662 Private method to switch the 'Open Read Only' action between
663 'read only' and 'read write'.
664 </p>
665 <a NAME="HexEditMainWindow.__showAddress" ID="HexEditMainWindow.__showAddress"></a>
666 <h4>HexEditMainWindow.__showAddress</h4>
667 <b>__showAddress</b>(<i>address</i>)
668
669 <p>
670 Private slot to show the address of the cursor position.
671 </p>
672 <dl>
673
674 <dt><i>address</i> (int)</dt>
675 <dd>
676 address of the cursor
677 </dd>
678 </dl>
679 <a NAME="HexEditMainWindow.__showEditMode" ID="HexEditMainWindow.__showEditMode"></a>
680 <h4>HexEditMainWindow.__showEditMode</h4>
681 <b>__showEditMode</b>(<i>overwrite</i>)
682
683 <p>
684 Private slot to show the edit mode.
685 </p>
686 <dl>
687
688 <dt><i>overwrite</i> (bool)</dt>
689 <dd>
690 flag indicating overwrite mode
691 </dd>
692 </dl>
693 <a NAME="HexEditMainWindow.__showFileMenu" ID="HexEditMainWindow.__showFileMenu"></a>
694 <h4>HexEditMainWindow.__showFileMenu</h4>
695 <b>__showFileMenu</b>(<i></i>)
696
697 <p>
698 Private slot to modify the file menu before being shown.
699 </p>
700 <a NAME="HexEditMainWindow.__showPreferences" ID="HexEditMainWindow.__showPreferences"></a>
701 <h4>HexEditMainWindow.__showPreferences</h4>
702 <b>__showPreferences</b>(<i></i>)
703
704 <p>
705 Private slot to set the preferences.
706 </p>
707 <a NAME="HexEditMainWindow.__showReadOnlyMode" ID="HexEditMainWindow.__showReadOnlyMode"></a>
708 <h4>HexEditMainWindow.__showReadOnlyMode</h4>
709 <b>__showReadOnlyMode</b>(<i>on</i>)
710
711 <p>
712 Private slot to show the read only mode.
713 </p>
714 <dl>
715
716 <dt><i>on</i> (bool)</dt>
717 <dd>
718 flag indicating the read only state
719 </dd>
720 </dl>
721 <a NAME="HexEditMainWindow.__showRecentMenu" ID="HexEditMainWindow.__showRecentMenu"></a>
722 <h4>HexEditMainWindow.__showRecentMenu</h4>
723 <b>__showRecentMenu</b>(<i></i>)
724
725 <p>
726 Private slot to set up the recent files menu.
727 </p>
728 <a NAME="HexEditMainWindow.__showSelectionInfo" ID="HexEditMainWindow.__showSelectionInfo"></a>
729 <h4>HexEditMainWindow.__showSelectionInfo</h4>
730 <b>__showSelectionInfo</b>(<i>avail</i>)
731
732 <p>
733 Private slot to show selection information.
734 </p>
735 <dl>
736
737 <dt><i>avail</i> (bool)</dt>
738 <dd>
739 flag indicating the availability of a selection.
740 </dd>
741 </dl>
742 <a NAME="HexEditMainWindow.__showSize" ID="HexEditMainWindow.__showSize"></a>
743 <h4>HexEditMainWindow.__showSize</h4>
744 <b>__showSize</b>(<i>size</i>)
745
746 <p>
747 Private slot to show the binary data size.
748 </p>
749 <dl>
750
751 <dt><i>size</i> (int)</dt>
752 <dd>
753 size of the binary data
754 </dd>
755 </dl>
756 <a NAME="HexEditMainWindow.__strippedName" ID="HexEditMainWindow.__strippedName"></a>
757 <h4>HexEditMainWindow.__strippedName</h4>
758 <b>__strippedName</b>(<i>fullFileName</i>)
759
760 <p>
761 Private method to return the filename part of the given path.
762 </p>
763 <dl>
764
765 <dt><i>fullFileName</i> (str)</dt>
766 <dd>
767 full pathname of the given file
768 </dd>
769 </dl>
770 <dl>
771 <dt>Return:</dt>
772 <dd>
773 filename part
774 </dd>
775 </dl>
776 <dl>
777 <dt>Return Type:</dt>
778 <dd>
779 str
780 </dd>
781 </dl>
782 <a NAME="HexEditMainWindow.__toggleEditMode" ID="HexEditMainWindow.__toggleEditMode"></a>
783 <h4>HexEditMainWindow.__toggleEditMode</h4>
784 <b>__toggleEditMode</b>(<i></i>)
785
786 <p>
787 Private slot to toggle the edit mode upon a click on the status bar
788 label.
789 </p>
790 <a NAME="HexEditMainWindow.__toggleReadOnlyMode" ID="HexEditMainWindow.__toggleReadOnlyMode"></a>
791 <h4>HexEditMainWindow.__toggleReadOnlyMode</h4>
792 <b>__toggleReadOnlyMode</b>(<i></i>)
793
794 <p>
795 Private slot to toggle the read only mode upon a click on the status
796 bar label.
797 </p>
798 <a NAME="HexEditMainWindow.__whatsThis" ID="HexEditMainWindow.__whatsThis"></a>
799 <h4>HexEditMainWindow.__whatsThis</h4>
800 <b>__whatsThis</b>(<i></i>)
801
802 <p>
803 Private slot called in to enter Whats This mode.
804 </p>
805 <a NAME="HexEditMainWindow.closeEvent" ID="HexEditMainWindow.closeEvent"></a>
806 <h4>HexEditMainWindow.closeEvent</h4>
807 <b>closeEvent</b>(<i>evt</i>)
808
809 <p>
810 Protected event handler for the close event.
811 </p>
812 <dl>
813
814 <dt><i>evt</i> (QCloseEvent)</dt>
815 <dd>
816 reference to the close event
817 <br />This event is simply accepted after the history has been
818 saved and all window references have been deleted.
819 </dd>
820 </dl>
821 <a NAME="HexEditMainWindow.getSRHistory" ID="HexEditMainWindow.getSRHistory"></a>
822 <h4>HexEditMainWindow.getSRHistory</h4>
823 <b>getSRHistory</b>(<i>key</i>)
824
825 <p>
826 Public method to get the search or replace history list.
827 </p>
828 <dl>
829
830 <dt><i>key</i> (str (must be 'search' or 'replace'))</dt>
831 <dd>
832 name of list to return
833 </dd>
834 </dl>
835 <dl>
836 <dt>Return:</dt>
837 <dd>
838 the requested history list
839 </dd>
840 </dl>
841 <dl>
842 <dt>Return Type:</dt>
843 <dd>
844 list of tuples of (int, str)
845 </dd>
846 </dl>
847 <a NAME="HexEditMainWindow.preferencesChanged" ID="HexEditMainWindow.preferencesChanged"></a>
848 <h4>HexEditMainWindow.preferencesChanged</h4>
849 <b>preferencesChanged</b>(<i></i>)
850
851 <p>
852 Public method to (re-)read the various settings.
853 </p>
854 <a NAME="HexEditMainWindow.setRecentPaths" ID="HexEditMainWindow.setRecentPaths"></a>
855 <h4>HexEditMainWindow.setRecentPaths</h4>
856 <b>setRecentPaths</b>(<i>openPath, savePath</i>)
857
858 <p>
859 Public method to set the last open and save paths.
860 </p>
861 <dl>
862
863 <dt><i>openPath</i> (str)</dt>
864 <dd>
865 least recently used open path
866 </dd>
867 <dt><i>savePath</i> (str)</dt>
868 <dd>
869 least recently used save path
870 </dd>
871 </dl>
872 <div align="right"><a href="#top">Up</a></div>
873 <hr />
874 </body></html>

eric ide

mercurial