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