eric6/Documentation/Source/eric6.HexEdit.HexEditMainWindow.html

changeset 6942
2602857055c5
parent 4695
9dc08852de25
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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><a NAME="top" ID="top"></a>
22 <h1>eric6.HexEdit.HexEditMainWindow</h1>
23 <p>
24 Module implementing the hex editor main window.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#HexEditMainWindow">HexEditMainWindow</a></td>
34 <td>Class implementing the web browser main window.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="HexEditMainWindow" ID="HexEditMainWindow"></a>
43 <h2>HexEditMainWindow</h2>
44 <p>
45 Class implementing the web browser main window.
46 </p><h3>Signals</h3>
47 <dl>
48 <dt>editorClosed()</dt>
49 <dd>
50 emitted after the window was requested to close down
51 </dd>
52 </dl>
53 <h3>Derived from</h3>
54 E5MainWindow
55 <h3>Class Attributes</h3>
56 <table>
57 <tr><td>maxMenuFilePathLen</td></tr><tr><td>windows</td></tr>
58 </table>
59 <h3>Class Methods</h3>
60 <table>
61 <tr><td>None</td></tr>
62 </table>
63 <h3>Methods</h3>
64 <table>
65 <tr>
66 <td><a href="#HexEditMainWindow.__init__">HexEditMainWindow</a></td>
67 <td>Constructor</td>
68 </tr><tr>
69 <td><a href="#HexEditMainWindow.__about">__about</a></td>
70 <td>Private slot to show a little About message.</td>
71 </tr><tr>
72 <td><a href="#HexEditMainWindow.__aboutQt">__aboutQt</a></td>
73 <td>Private slot to handle the About Qt dialog.</td>
74 </tr><tr>
75 <td><a href="#HexEditMainWindow.__addToRecentList">__addToRecentList</a></td>
76 <td>Private method to add a file name to the list of recently opened files.</td>
77 </tr><tr>
78 <td><a href="#HexEditMainWindow.__checkActions">__checkActions</a></td>
79 <td>Private slot to check some actions for their enable/disable status.</td>
80 </tr><tr>
81 <td><a href="#HexEditMainWindow.__clearRecent">__clearRecent</a></td>
82 <td>Private method to clear the list of recently opened files.</td>
83 </tr><tr>
84 <td><a href="#HexEditMainWindow.__closeAll">__closeAll</a></td>
85 <td>Private slot to close all windows.</td>
86 </tr><tr>
87 <td><a href="#HexEditMainWindow.__closeOthers">__closeOthers</a></td>
88 <td>Private slot to close all other windows.</td>
89 </tr><tr>
90 <td><a href="#HexEditMainWindow.__createStatusBar">__createStatusBar</a></td>
91 <td>Private method to initialize the status bar.</td>
92 </tr><tr>
93 <td><a href="#HexEditMainWindow.__goto">__goto</a></td>
94 <td>Private method to handle the goto action.</td>
95 </tr><tr>
96 <td><a href="#HexEditMainWindow.__initActions">__initActions</a></td>
97 <td>Private method to define the user interface actions.</td>
98 </tr><tr>
99 <td><a href="#HexEditMainWindow.__initConfigActions">__initConfigActions</a></td>
100 <td>Private method to create the Settings actions.</td>
101 </tr><tr>
102 <td><a href="#HexEditMainWindow.__initEditActions">__initEditActions</a></td>
103 <td>Private method to create the Edit actions.</td>
104 </tr><tr>
105 <td><a href="#HexEditMainWindow.__initFileActions">__initFileActions</a></td>
106 <td>Private method to define the file related user interface actions.</td>
107 </tr><tr>
108 <td><a href="#HexEditMainWindow.__initHelpActions">__initHelpActions</a></td>
109 <td>Private method to create the Help actions.</td>
110 </tr><tr>
111 <td><a href="#HexEditMainWindow.__initMenus">__initMenus</a></td>
112 <td>Private method to create the menus.</td>
113 </tr><tr>
114 <td><a href="#HexEditMainWindow.__initToolbars">__initToolbars</a></td>
115 <td>Private method to create the toolbars.</td>
116 </tr><tr>
117 <td><a href="#HexEditMainWindow.__loadHexFile">__loadHexFile</a></td>
118 <td>Private method to load a binary file.</td>
119 </tr><tr>
120 <td><a href="#HexEditMainWindow.__loadRecent">__loadRecent</a></td>
121 <td>Private method to load the list of recently opened files.</td>
122 </tr><tr>
123 <td><a href="#HexEditMainWindow.__maybeSave">__maybeSave</a></td>
124 <td>Private method to ask the user to save the file, if it was modified.</td>
125 </tr><tr>
126 <td><a href="#HexEditMainWindow.__modificationChanged">__modificationChanged</a></td>
127 <td>Private slot to handle the dataChanged signal.</td>
128 </tr><tr>
129 <td><a href="#HexEditMainWindow.__openHexFile">__openHexFile</a></td>
130 <td>Private slot to open a binary file.</td>
131 </tr><tr>
132 <td><a href="#HexEditMainWindow.__openHexFileNewWindow">__openHexFileNewWindow</a></td>
133 <td>Private slot called to open a binary file in new hex editor window.</td>
134 </tr><tr>
135 <td><a href="#HexEditMainWindow.__openHexFileReadOnly">__openHexFileReadOnly</a></td>
136 <td>Private slot to open a binary file in read only mode.</td>
137 </tr><tr>
138 <td><a href="#HexEditMainWindow.__openRecentHexFile">__openRecentHexFile</a></td>
139 <td>Private method to open a file from the list of recently opened files.</td>
140 </tr><tr>
141 <td><a href="#HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog">__preferencesChangedByLocalPreferencesDialog</a></td>
142 <td>Private slot to handle preferences changes by our local dialog.</td>
143 </tr><tr>
144 <td><a href="#HexEditMainWindow.__replace">__replace</a></td>
145 <td>Private method to handle the replace action.</td>
146 </tr><tr>
147 <td><a href="#HexEditMainWindow.__saveHexDataFile">__saveHexDataFile</a></td>
148 <td>Private method to save the binary data to a file.</td>
149 </tr><tr>
150 <td><a href="#HexEditMainWindow.__saveHexFile">__saveHexFile</a></td>
151 <td>Private method to save a binary file.</td>
152 </tr><tr>
153 <td><a href="#HexEditMainWindow.__saveHexFileAs">__saveHexFileAs</a></td>
154 <td>Private method to save the data to a new file.</td>
155 </tr><tr>
156 <td><a href="#HexEditMainWindow.__saveHexFileReadable">__saveHexFileReadable</a></td>
157 <td>Private method to save the binary data in readable format.</td>
158 </tr><tr>
159 <td><a href="#HexEditMainWindow.__saveRecent">__saveRecent</a></td>
160 <td>Private method to save the list of recently opened files.</td>
161 </tr><tr>
162 <td><a href="#HexEditMainWindow.__saveSelectionReadable">__saveSelectionReadable</a></td>
163 <td>Private method to save the data of the current selection in readable format.</td>
164 </tr><tr>
165 <td><a href="#HexEditMainWindow.__search">__search</a></td>
166 <td>Private method to handle the search action.</td>
167 </tr><tr>
168 <td><a href="#HexEditMainWindow.__setCurrentFile">__setCurrentFile</a></td>
169 <td>Private method to register the file name of the current file.</td>
170 </tr><tr>
171 <td><a href="#HexEditMainWindow.__setReadOnlyActionTexts">__setReadOnlyActionTexts</a></td>
172 <td>Private method to switch the 'Open Read Only' action between 'read only' and 'read write'.</td>
173 </tr><tr>
174 <td><a href="#HexEditMainWindow.__showAddress">__showAddress</a></td>
175 <td>Private slot to show the address of the cursor position.</td>
176 </tr><tr>
177 <td><a href="#HexEditMainWindow.__showEditMode">__showEditMode</a></td>
178 <td>Private slot to show the edit mode.</td>
179 </tr><tr>
180 <td><a href="#HexEditMainWindow.__showFileMenu">__showFileMenu</a></td>
181 <td>Private slot to modify the file menu before being shown.</td>
182 </tr><tr>
183 <td><a href="#HexEditMainWindow.__showPreferences">__showPreferences</a></td>
184 <td>Private slot to set the preferences.</td>
185 </tr><tr>
186 <td><a href="#HexEditMainWindow.__showReadOnlyMode">__showReadOnlyMode</a></td>
187 <td>Private slot to show the read only mode.</td>
188 </tr><tr>
189 <td><a href="#HexEditMainWindow.__showRecentMenu">__showRecentMenu</a></td>
190 <td>Private slot to set up the recent files menu.</td>
191 </tr><tr>
192 <td><a href="#HexEditMainWindow.__showSelectionInfo">__showSelectionInfo</a></td>
193 <td>Private slot to show selection information.</td>
194 </tr><tr>
195 <td><a href="#HexEditMainWindow.__showSize">__showSize</a></td>
196 <td>Private slot to show the binary data size.</td>
197 </tr><tr>
198 <td><a href="#HexEditMainWindow.__strippedName">__strippedName</a></td>
199 <td>Private method to return the filename part of the given path.</td>
200 </tr><tr>
201 <td><a href="#HexEditMainWindow.__toggleEditMode">__toggleEditMode</a></td>
202 <td>Private slot to toggle the edit mode upon a click on the status bar label.</td>
203 </tr><tr>
204 <td><a href="#HexEditMainWindow.__toggleReadOnlyMode">__toggleReadOnlyMode</a></td>
205 <td>Private slot to toggle the read only mode upon a click on the status bar label.</td>
206 </tr><tr>
207 <td><a href="#HexEditMainWindow.__whatsThis">__whatsThis</a></td>
208 <td>Private slot called in to enter Whats This mode.</td>
209 </tr><tr>
210 <td><a href="#HexEditMainWindow.closeEvent">closeEvent</a></td>
211 <td>Protected event handler for the close event.</td>
212 </tr><tr>
213 <td><a href="#HexEditMainWindow.getSRHistory">getSRHistory</a></td>
214 <td>Public method to get the search or replace history list.</td>
215 </tr><tr>
216 <td><a href="#HexEditMainWindow.preferencesChanged">preferencesChanged</a></td>
217 <td>Public method to (re-)read the various settings.</td>
218 </tr><tr>
219 <td><a href="#HexEditMainWindow.setRecentPaths">setRecentPaths</a></td>
220 <td>Public method to set the last open and save paths.</td>
221 </tr>
222 </table>
223 <h3>Static Methods</h3>
224 <table>
225 <tr><td>None</td></tr>
226 </table>
227 <a NAME="HexEditMainWindow.__init__" ID="HexEditMainWindow.__init__"></a>
228 <h4>HexEditMainWindow (Constructor)</h4>
229 <b>HexEditMainWindow</b>(<i>fileName="", parent=None, fromEric=False, project=None</i>)
230 <p>
231 Constructor
232 </p><dl>
233 <dt><i>fileName</i></dt>
234 <dd>
235 name of a file to load on startup (string)
236 </dd><dt><i>parent</i></dt>
237 <dd>
238 parent widget of this window (QWidget)
239 </dd><dt><i>fromEric=</i></dt>
240 <dd>
241 flag indicating whether it was called from within
242 eric6 (boolean)
243 </dd><dt><i>project=</i></dt>
244 <dd>
245 reference to the project object (Project)
246 </dd>
247 </dl><a NAME="HexEditMainWindow.__about" ID="HexEditMainWindow.__about"></a>
248 <h4>HexEditMainWindow.__about</h4>
249 <b>__about</b>(<i></i>)
250 <p>
251 Private slot to show a little About message.
252 </p><a NAME="HexEditMainWindow.__aboutQt" ID="HexEditMainWindow.__aboutQt"></a>
253 <h4>HexEditMainWindow.__aboutQt</h4>
254 <b>__aboutQt</b>(<i></i>)
255 <p>
256 Private slot to handle the About Qt dialog.
257 </p><a NAME="HexEditMainWindow.__addToRecentList" ID="HexEditMainWindow.__addToRecentList"></a>
258 <h4>HexEditMainWindow.__addToRecentList</h4>
259 <b>__addToRecentList</b>(<i>fileName</i>)
260 <p>
261 Private method to add a file name to the list of recently opened files.
262 </p><dl>
263 <dt><i>fileName</i></dt>
264 <dd>
265 name of the file to be added
266 </dd>
267 </dl><a NAME="HexEditMainWindow.__checkActions" ID="HexEditMainWindow.__checkActions"></a>
268 <h4>HexEditMainWindow.__checkActions</h4>
269 <b>__checkActions</b>(<i></i>)
270 <p>
271 Private slot to check some actions for their enable/disable status.
272 </p><a NAME="HexEditMainWindow.__clearRecent" ID="HexEditMainWindow.__clearRecent"></a>
273 <h4>HexEditMainWindow.__clearRecent</h4>
274 <b>__clearRecent</b>(<i></i>)
275 <p>
276 Private method to clear the list of recently opened files.
277 </p><a NAME="HexEditMainWindow.__closeAll" ID="HexEditMainWindow.__closeAll"></a>
278 <h4>HexEditMainWindow.__closeAll</h4>
279 <b>__closeAll</b>(<i></i>)
280 <p>
281 Private slot to close all windows.
282 </p><a NAME="HexEditMainWindow.__closeOthers" ID="HexEditMainWindow.__closeOthers"></a>
283 <h4>HexEditMainWindow.__closeOthers</h4>
284 <b>__closeOthers</b>(<i></i>)
285 <p>
286 Private slot to close all other windows.
287 </p><a NAME="HexEditMainWindow.__createStatusBar" ID="HexEditMainWindow.__createStatusBar"></a>
288 <h4>HexEditMainWindow.__createStatusBar</h4>
289 <b>__createStatusBar</b>(<i></i>)
290 <p>
291 Private method to initialize the status bar.
292 </p><a NAME="HexEditMainWindow.__goto" ID="HexEditMainWindow.__goto"></a>
293 <h4>HexEditMainWindow.__goto</h4>
294 <b>__goto</b>(<i></i>)
295 <p>
296 Private method to handle the goto action.
297 </p><a NAME="HexEditMainWindow.__initActions" ID="HexEditMainWindow.__initActions"></a>
298 <h4>HexEditMainWindow.__initActions</h4>
299 <b>__initActions</b>(<i></i>)
300 <p>
301 Private method to define the user interface actions.
302 </p><a NAME="HexEditMainWindow.__initConfigActions" ID="HexEditMainWindow.__initConfigActions"></a>
303 <h4>HexEditMainWindow.__initConfigActions</h4>
304 <b>__initConfigActions</b>(<i></i>)
305 <p>
306 Private method to create the Settings actions.
307 </p><a NAME="HexEditMainWindow.__initEditActions" ID="HexEditMainWindow.__initEditActions"></a>
308 <h4>HexEditMainWindow.__initEditActions</h4>
309 <b>__initEditActions</b>(<i></i>)
310 <p>
311 Private method to create the Edit actions.
312 </p><a NAME="HexEditMainWindow.__initFileActions" ID="HexEditMainWindow.__initFileActions"></a>
313 <h4>HexEditMainWindow.__initFileActions</h4>
314 <b>__initFileActions</b>(<i></i>)
315 <p>
316 Private method to define the file related user interface actions.
317 </p><a NAME="HexEditMainWindow.__initHelpActions" ID="HexEditMainWindow.__initHelpActions"></a>
318 <h4>HexEditMainWindow.__initHelpActions</h4>
319 <b>__initHelpActions</b>(<i></i>)
320 <p>
321 Private method to create the Help actions.
322 </p><a NAME="HexEditMainWindow.__initMenus" ID="HexEditMainWindow.__initMenus"></a>
323 <h4>HexEditMainWindow.__initMenus</h4>
324 <b>__initMenus</b>(<i></i>)
325 <p>
326 Private method to create the menus.
327 </p><a NAME="HexEditMainWindow.__initToolbars" ID="HexEditMainWindow.__initToolbars"></a>
328 <h4>HexEditMainWindow.__initToolbars</h4>
329 <b>__initToolbars</b>(<i></i>)
330 <p>
331 Private method to create the toolbars.
332 </p><a NAME="HexEditMainWindow.__loadHexFile" ID="HexEditMainWindow.__loadHexFile"></a>
333 <h4>HexEditMainWindow.__loadHexFile</h4>
334 <b>__loadHexFile</b>(<i>fileName</i>)
335 <p>
336 Private method to load a binary file.
337 </p><dl>
338 <dt><i>fileName</i> (str)</dt>
339 <dd>
340 name of the binary file to load
341 </dd>
342 </dl><a NAME="HexEditMainWindow.__loadRecent" ID="HexEditMainWindow.__loadRecent"></a>
343 <h4>HexEditMainWindow.__loadRecent</h4>
344 <b>__loadRecent</b>(<i></i>)
345 <p>
346 Private method to load the list of recently opened files.
347 </p><a NAME="HexEditMainWindow.__maybeSave" ID="HexEditMainWindow.__maybeSave"></a>
348 <h4>HexEditMainWindow.__maybeSave</h4>
349 <b>__maybeSave</b>(<i></i>)
350 <p>
351 Private method to ask the user to save the file, if it was modified.
352 </p><dl>
353 <dt>Returns:</dt>
354 <dd>
355 flag indicating, if it is ok to continue
356 </dd>
357 </dl><dl>
358 <dt>Return Type:</dt>
359 <dd>
360 bool
361 </dd>
362 </dl><a NAME="HexEditMainWindow.__modificationChanged" ID="HexEditMainWindow.__modificationChanged"></a>
363 <h4>HexEditMainWindow.__modificationChanged</h4>
364 <b>__modificationChanged</b>(<i>m</i>)
365 <p>
366 Private slot to handle the dataChanged signal.
367 </p><dl>
368 <dt><i>m</i> (bool)</dt>
369 <dd>
370 modification status
371 </dd>
372 </dl><a NAME="HexEditMainWindow.__openHexFile" ID="HexEditMainWindow.__openHexFile"></a>
373 <h4>HexEditMainWindow.__openHexFile</h4>
374 <b>__openHexFile</b>(<i></i>)
375 <p>
376 Private slot to open a binary file.
377 </p><a NAME="HexEditMainWindow.__openHexFileNewWindow" ID="HexEditMainWindow.__openHexFileNewWindow"></a>
378 <h4>HexEditMainWindow.__openHexFileNewWindow</h4>
379 <b>__openHexFileNewWindow</b>(<i></i>)
380 <p>
381 Private slot called to open a binary file in new hex editor window.
382 </p><a NAME="HexEditMainWindow.__openHexFileReadOnly" ID="HexEditMainWindow.__openHexFileReadOnly"></a>
383 <h4>HexEditMainWindow.__openHexFileReadOnly</h4>
384 <b>__openHexFileReadOnly</b>(<i></i>)
385 <p>
386 Private slot to open a binary file in read only mode.
387 </p><a NAME="HexEditMainWindow.__openRecentHexFile" ID="HexEditMainWindow.__openRecentHexFile"></a>
388 <h4>HexEditMainWindow.__openRecentHexFile</h4>
389 <b>__openRecentHexFile</b>(<i>act</i>)
390 <p>
391 Private method to open a file from the list of recently opened files.
392 </p><dl>
393 <dt><i>act</i></dt>
394 <dd>
395 reference to the action that triggered (QAction)
396 </dd>
397 </dl><a NAME="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog" ID="HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog"></a>
398 <h4>HexEditMainWindow.__preferencesChangedByLocalPreferencesDialog</h4>
399 <b>__preferencesChangedByLocalPreferencesDialog</b>(<i></i>)
400 <p>
401 Private slot to handle preferences changes by our local dialog.
402 </p><a NAME="HexEditMainWindow.__replace" ID="HexEditMainWindow.__replace"></a>
403 <h4>HexEditMainWindow.__replace</h4>
404 <b>__replace</b>(<i></i>)
405 <p>
406 Private method to handle the replace action.
407 </p><a NAME="HexEditMainWindow.__saveHexDataFile" ID="HexEditMainWindow.__saveHexDataFile"></a>
408 <h4>HexEditMainWindow.__saveHexDataFile</h4>
409 <b>__saveHexDataFile</b>(<i>fileName</i>)
410 <p>
411 Private method to save the binary data to a file.
412 </p><dl>
413 <dt><i>fileName</i> (str)</dt>
414 <dd>
415 name of the file to write to
416 </dd>
417 </dl><dl>
418 <dt>Returns:</dt>
419 <dd>
420 flag indicating success
421 </dd>
422 </dl><dl>
423 <dt>Return Type:</dt>
424 <dd>
425 bool
426 </dd>
427 </dl><a NAME="HexEditMainWindow.__saveHexFile" ID="HexEditMainWindow.__saveHexFile"></a>
428 <h4>HexEditMainWindow.__saveHexFile</h4>
429 <b>__saveHexFile</b>(<i></i>)
430 <p>
431 Private method to save a binary file.
432 </p><dl>
433 <dt>Returns:</dt>
434 <dd>
435 flag indicating success
436 </dd>
437 </dl><dl>
438 <dt>Return Type:</dt>
439 <dd>
440 bool
441 </dd>
442 </dl><a NAME="HexEditMainWindow.__saveHexFileAs" ID="HexEditMainWindow.__saveHexFileAs"></a>
443 <h4>HexEditMainWindow.__saveHexFileAs</h4>
444 <b>__saveHexFileAs</b>(<i></i>)
445 <p>
446 Private method to save the data to a new file.
447 </p><dl>
448 <dt>Returns:</dt>
449 <dd>
450 flag indicating success
451 </dd>
452 </dl><dl>
453 <dt>Return Type:</dt>
454 <dd>
455 bool
456 </dd>
457 </dl><a NAME="HexEditMainWindow.__saveHexFileReadable" ID="HexEditMainWindow.__saveHexFileReadable"></a>
458 <h4>HexEditMainWindow.__saveHexFileReadable</h4>
459 <b>__saveHexFileReadable</b>(<i>selectionOnly=False</i>)
460 <p>
461 Private method to save the binary data in readable format.
462 </p><dl>
463 <dt><i>selectionOnly</i> (bool)</dt>
464 <dd>
465 flag indicating to save the selection only
466 </dd>
467 </dl><a NAME="HexEditMainWindow.__saveRecent" ID="HexEditMainWindow.__saveRecent"></a>
468 <h4>HexEditMainWindow.__saveRecent</h4>
469 <b>__saveRecent</b>(<i></i>)
470 <p>
471 Private method to save the list of recently opened files.
472 </p><a NAME="HexEditMainWindow.__saveSelectionReadable" ID="HexEditMainWindow.__saveSelectionReadable"></a>
473 <h4>HexEditMainWindow.__saveSelectionReadable</h4>
474 <b>__saveSelectionReadable</b>(<i></i>)
475 <p>
476 Private method to save the data of the current selection in readable
477 format.
478 </p><a NAME="HexEditMainWindow.__search" ID="HexEditMainWindow.__search"></a>
479 <h4>HexEditMainWindow.__search</h4>
480 <b>__search</b>(<i></i>)
481 <p>
482 Private method to handle the search action.
483 </p><a NAME="HexEditMainWindow.__setCurrentFile" ID="HexEditMainWindow.__setCurrentFile"></a>
484 <h4>HexEditMainWindow.__setCurrentFile</h4>
485 <b>__setCurrentFile</b>(<i>fileName</i>)
486 <p>
487 Private method to register the file name of the current file.
488 </p><dl>
489 <dt><i>fileName</i> (str)</dt>
490 <dd>
491 name of the file to register
492 </dd>
493 </dl><a NAME="HexEditMainWindow.__setReadOnlyActionTexts" ID="HexEditMainWindow.__setReadOnlyActionTexts"></a>
494 <h4>HexEditMainWindow.__setReadOnlyActionTexts</h4>
495 <b>__setReadOnlyActionTexts</b>(<i></i>)
496 <p>
497 Private method to switch the 'Open Read Only' action between
498 'read only' and 'read write'.
499 </p><a NAME="HexEditMainWindow.__showAddress" ID="HexEditMainWindow.__showAddress"></a>
500 <h4>HexEditMainWindow.__showAddress</h4>
501 <b>__showAddress</b>(<i>address</i>)
502 <p>
503 Private slot to show the address of the cursor position.
504 </p><dl>
505 <dt><i>address</i> (int)</dt>
506 <dd>
507 address of the cursor
508 </dd>
509 </dl><a NAME="HexEditMainWindow.__showEditMode" ID="HexEditMainWindow.__showEditMode"></a>
510 <h4>HexEditMainWindow.__showEditMode</h4>
511 <b>__showEditMode</b>(<i>overwrite</i>)
512 <p>
513 Private slot to show the edit mode.
514 </p><dl>
515 <dt><i>overwrite</i> (bool)</dt>
516 <dd>
517 flag indicating overwrite mode
518 </dd>
519 </dl><a NAME="HexEditMainWindow.__showFileMenu" ID="HexEditMainWindow.__showFileMenu"></a>
520 <h4>HexEditMainWindow.__showFileMenu</h4>
521 <b>__showFileMenu</b>(<i></i>)
522 <p>
523 Private slot to modify the file menu before being shown.
524 </p><a NAME="HexEditMainWindow.__showPreferences" ID="HexEditMainWindow.__showPreferences"></a>
525 <h4>HexEditMainWindow.__showPreferences</h4>
526 <b>__showPreferences</b>(<i></i>)
527 <p>
528 Private slot to set the preferences.
529 </p><a NAME="HexEditMainWindow.__showReadOnlyMode" ID="HexEditMainWindow.__showReadOnlyMode"></a>
530 <h4>HexEditMainWindow.__showReadOnlyMode</h4>
531 <b>__showReadOnlyMode</b>(<i>on</i>)
532 <p>
533 Private slot to show the read only mode.
534 </p><dl>
535 <dt><i>on</i> (bool)</dt>
536 <dd>
537 flag indicating the read only state
538 </dd>
539 </dl><a NAME="HexEditMainWindow.__showRecentMenu" ID="HexEditMainWindow.__showRecentMenu"></a>
540 <h4>HexEditMainWindow.__showRecentMenu</h4>
541 <b>__showRecentMenu</b>(<i></i>)
542 <p>
543 Private slot to set up the recent files menu.
544 </p><a NAME="HexEditMainWindow.__showSelectionInfo" ID="HexEditMainWindow.__showSelectionInfo"></a>
545 <h4>HexEditMainWindow.__showSelectionInfo</h4>
546 <b>__showSelectionInfo</b>(<i>avail</i>)
547 <p>
548 Private slot to show selection information.
549 </p><dl>
550 <dt><i>avail</i> (bool)</dt>
551 <dd>
552 flag indicating the availability of a selection.
553 </dd>
554 </dl><a NAME="HexEditMainWindow.__showSize" ID="HexEditMainWindow.__showSize"></a>
555 <h4>HexEditMainWindow.__showSize</h4>
556 <b>__showSize</b>(<i>size</i>)
557 <p>
558 Private slot to show the binary data size.
559 </p><dl>
560 <dt><i>size</i> (int)</dt>
561 <dd>
562 size of the binary data
563 </dd>
564 </dl><a NAME="HexEditMainWindow.__strippedName" ID="HexEditMainWindow.__strippedName"></a>
565 <h4>HexEditMainWindow.__strippedName</h4>
566 <b>__strippedName</b>(<i>fullFileName</i>)
567 <p>
568 Private method to return the filename part of the given path.
569 </p><dl>
570 <dt><i>fullFileName</i> (str)</dt>
571 <dd>
572 full pathname of the given file
573 </dd>
574 </dl><dl>
575 <dt>Returns:</dt>
576 <dd>
577 filename part
578 </dd>
579 </dl><dl>
580 <dt>Return Type:</dt>
581 <dd>
582 str
583 </dd>
584 </dl><a NAME="HexEditMainWindow.__toggleEditMode" ID="HexEditMainWindow.__toggleEditMode"></a>
585 <h4>HexEditMainWindow.__toggleEditMode</h4>
586 <b>__toggleEditMode</b>(<i></i>)
587 <p>
588 Private slot to toggle the edit mode upon a click on the status bar
589 label.
590 </p><a NAME="HexEditMainWindow.__toggleReadOnlyMode" ID="HexEditMainWindow.__toggleReadOnlyMode"></a>
591 <h4>HexEditMainWindow.__toggleReadOnlyMode</h4>
592 <b>__toggleReadOnlyMode</b>(<i></i>)
593 <p>
594 Private slot to toggle the read only mode upon a click on the status
595 bar label.
596 </p><a NAME="HexEditMainWindow.__whatsThis" ID="HexEditMainWindow.__whatsThis"></a>
597 <h4>HexEditMainWindow.__whatsThis</h4>
598 <b>__whatsThis</b>(<i></i>)
599 <p>
600 Private slot called in to enter Whats This mode.
601 </p><a NAME="HexEditMainWindow.closeEvent" ID="HexEditMainWindow.closeEvent"></a>
602 <h4>HexEditMainWindow.closeEvent</h4>
603 <b>closeEvent</b>(<i>evt</i>)
604 <p>
605 Protected event handler for the close event.
606 </p><dl>
607 <dt><i>evt</i> (QCloseEvent)</dt>
608 <dd>
609 reference to the close event
610 <br />This event is simply accepted after the history has been
611 saved and all window references have been deleted.
612 </dd>
613 </dl><a NAME="HexEditMainWindow.getSRHistory" ID="HexEditMainWindow.getSRHistory"></a>
614 <h4>HexEditMainWindow.getSRHistory</h4>
615 <b>getSRHistory</b>(<i>key</i>)
616 <p>
617 Public method to get the search or replace history list.
618 </p><dl>
619 <dt><i>key</i> (str (must be 'search' or 'replace'))</dt>
620 <dd>
621 name of list to return
622 </dd>
623 </dl><dl>
624 <dt>Returns:</dt>
625 <dd>
626 the requested history list
627 </dd>
628 </dl><dl>
629 <dt>Return Type:</dt>
630 <dd>
631 list of tuples of (int, str)
632 </dd>
633 </dl><a NAME="HexEditMainWindow.preferencesChanged" ID="HexEditMainWindow.preferencesChanged"></a>
634 <h4>HexEditMainWindow.preferencesChanged</h4>
635 <b>preferencesChanged</b>(<i></i>)
636 <p>
637 Public method to (re-)read the various settings.
638 </p><a NAME="HexEditMainWindow.setRecentPaths" ID="HexEditMainWindow.setRecentPaths"></a>
639 <h4>HexEditMainWindow.setRecentPaths</h4>
640 <b>setRecentPaths</b>(<i>openPath, savePath</i>)
641 <p>
642 Public method to set the last open and save paths.
643 </p><dl>
644 <dt><i>openPath</i> (str)</dt>
645 <dd>
646 least recently used open path
647 </dd><dt><i>savePath</i> (str)</dt>
648 <dd>
649 least recently used save path
650 </dd>
651 </dl>
652 <div align="right"><a href="#top">Up</a></div>
653 <hr />
654 </body></html>

eric ide

mercurial