eric6/Documentation/Source/eric6.HexEdit.HexEditWidget.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
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.HexEditWidget</h1> 23 <h1>eric6.HexEdit.HexEditWidget</h1>
24
23 <p> 25 <p>
24 Module implementing an editor for binary data. 26 Module implementing an editor for binary data.
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="#HexEditWidget">HexEditWidget</a></td> 38 <td><a href="#HexEditWidget">HexEditWidget</a></td>
34 <td>Class implementing an editor for binary data.</td> 39 <td>Class implementing an editor for binary data.</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="HexEditWidget" ID="HexEditWidget"></a> 49 <a NAME="HexEditWidget" ID="HexEditWidget"></a>
43 <h2>HexEditWidget</h2> 50 <h2>HexEditWidget</h2>
51
44 <p> 52 <p>
45 Class implementing an editor for binary data. 53 Class implementing an editor for binary data.
46 </p><h3>Signals</h3> 54 </p>
47 <dl> 55 <h3>Signals</h3>
56 <dl>
57
48 <dt>canRedoChanged(bool)</dt> 58 <dt>canRedoChanged(bool)</dt>
49 <dd> 59 <dd>
50 emitted after the redo status has changed 60 emitted after the redo status has changed
51 </dd><dt>canUndoChanged(bool)</dt> 61 </dd>
62 <dt>canUndoChanged(bool)</dt>
52 <dd> 63 <dd>
53 emitted after the undo status has changed 64 emitted after the undo status has changed
54 </dd><dt>currentAddressChanged(address)</dt> 65 </dd>
66 <dt>currentAddressChanged(address)</dt>
55 <dd> 67 <dd>
56 emitted to indicate the new 68 emitted to indicate the new
57 cursor position 69 cursor position
58 </dd><dt>currentSizeChanged(size)</dt> 70 </dd>
71 <dt>currentSizeChanged(size)</dt>
59 <dd> 72 <dd>
60 emitted to indicate the new size of 73 emitted to indicate the new size of
61 the data 74 the data
62 </dd><dt>dataChanged(modified)</dt> 75 </dd>
76 <dt>dataChanged(modified)</dt>
63 <dd> 77 <dd>
64 emitted to indicate a change of the data 78 emitted to indicate a change of the data
65 </dd><dt>overwriteModeChanged(state)</dt> 79 </dd>
80 <dt>overwriteModeChanged(state)</dt>
66 <dd> 81 <dd>
67 emitted to indicate a change of 82 emitted to indicate a change of
68 the overwrite mode 83 the overwrite mode
69 </dd><dt>readOnlyChanged(state)</dt> 84 </dd>
85 <dt>readOnlyChanged(state)</dt>
70 <dd> 86 <dd>
71 emitted to indicate a change of the 87 emitted to indicate a change of the
72 read only state 88 read only state
73 </dd><dt>selectionAvailable(bool)</dt> 89 </dd>
90 <dt>selectionAvailable(bool)</dt>
74 <dd> 91 <dd>
75 emitted to signal a change of the 92 emitted to signal a change of the
76 selection 93 selection
77 </dd> 94 </dd>
78 </dl> 95 </dl>
79 <h3>Derived from</h3> 96 <h3>Derived from</h3>
80 QAbstractScrollArea 97 QAbstractScrollArea
81 <h3>Class Attributes</h3> 98 <h3>Class Attributes</h3>
99
82 <table> 100 <table>
83 <tr><td>BYTES_PER_LINE</td></tr><tr><td>HEXCHARS_PER_LINE</td></tr> 101 <tr><td>BYTES_PER_LINE</td></tr><tr><td>HEXCHARS_PER_LINE</td></tr>
84 </table> 102 </table>
85 <h3>Class Methods</h3> 103 <h3>Class Methods</h3>
104
86 <table> 105 <table>
87 <tr><td>None</td></tr> 106 <tr><td>None</td></tr>
88 </table> 107 </table>
89 <h3>Methods</h3> 108 <h3>Methods</h3>
109
90 <table> 110 <table>
111
91 <tr> 112 <tr>
92 <td><a href="#HexEditWidget.__init__">HexEditWidget</a></td> 113 <td><a href="#HexEditWidget.__init__">HexEditWidget</a></td>
93 <td>Constructor</td> 114 <td>Constructor</td>
94 </tr><tr> 115 </tr>
116 <tr>
95 <td><a href="#HexEditWidget.__adjust">__adjust</a></td> 117 <td><a href="#HexEditWidget.__adjust">__adjust</a></td>
96 <td>Private slot to recalculate pixel positions.</td> 118 <td>Private slot to recalculate pixel positions.</td>
97 </tr><tr> 119 </tr>
120 <tr>
98 <td><a href="#HexEditWidget.__canRedoChanged">__canRedoChanged</a></td> 121 <td><a href="#HexEditWidget.__canRedoChanged">__canRedoChanged</a></td>
99 <td>Private slot handling changes of the Redo state.</td> 122 <td>Private slot handling changes of the Redo state.</td>
100 </tr><tr> 123 </tr>
124 <tr>
101 <td><a href="#HexEditWidget.__canUndoChanged">__canUndoChanged</a></td> 125 <td><a href="#HexEditWidget.__canUndoChanged">__canUndoChanged</a></td>
102 <td>Private slot handling changes of the Undo state.</td> 126 <td>Private slot handling changes of the Undo state.</td>
103 </tr><tr> 127 </tr>
128 <tr>
104 <td><a href="#HexEditWidget.__dataChangedPrivate">__dataChangedPrivate</a></td> 129 <td><a href="#HexEditWidget.__dataChangedPrivate">__dataChangedPrivate</a></td>
105 <td>Private slot to handle data changes.</td> 130 <td>Private slot to handle data changes.</td>
106 </tr><tr> 131 </tr>
132 <tr>
107 <td><a href="#HexEditWidget.__fromHex">__fromHex</a></td> 133 <td><a href="#HexEditWidget.__fromHex">__fromHex</a></td>
108 <td>Private method to convert data of a Python bytearray from hex.</td> 134 <td>Private method to convert data of a Python bytearray from hex.</td>
109 </tr><tr> 135 </tr>
136 <tr>
110 <td><a href="#HexEditWidget.__initialize">__initialize</a></td> 137 <td><a href="#HexEditWidget.__initialize">__initialize</a></td>
111 <td>Private method to do some initialization.</td> 138 <td>Private method to do some initialization.</td>
112 </tr><tr> 139 </tr>
140 <tr>
113 <td><a href="#HexEditWidget.__readBuffers">__readBuffers</a></td> 141 <td><a href="#HexEditWidget.__readBuffers">__readBuffers</a></td>
114 <td>Private method to read the buffers.</td> 142 <td>Private method to read the buffers.</td>
115 </tr><tr> 143 </tr>
144 <tr>
116 <td><a href="#HexEditWidget.__refresh">__refresh</a></td> 145 <td><a href="#HexEditWidget.__refresh">__refresh</a></td>
117 <td>Private slot to refresh the display.</td> 146 <td>Private slot to refresh the display.</td>
118 </tr><tr> 147 </tr>
148 <tr>
119 <td><a href="#HexEditWidget.__resetSelection">__resetSelection</a></td> 149 <td><a href="#HexEditWidget.__resetSelection">__resetSelection</a></td>
120 <td>Private method to reset the selection.</td> 150 <td>Private method to reset the selection.</td>
121 </tr><tr> 151 </tr>
152 <tr>
122 <td><a href="#HexEditWidget.__setData">__setData</a></td> 153 <td><a href="#HexEditWidget.__setData">__setData</a></td>
123 <td>Private method to set the data to show.</td> 154 <td>Private method to set the data to show.</td>
124 </tr><tr> 155 </tr>
156 <tr>
125 <td><a href="#HexEditWidget.__setHexCursorRect">__setHexCursorRect</a></td> 157 <td><a href="#HexEditWidget.__setHexCursorRect">__setHexCursorRect</a></td>
126 <td>Private method to set the cursor.</td> 158 <td>Private method to set the cursor.</td>
127 </tr><tr> 159 </tr>
160 <tr>
128 <td><a href="#HexEditWidget.__setSelection">__setSelection</a></td> 161 <td><a href="#HexEditWidget.__setSelection">__setSelection</a></td>
129 <td>Private method to set the selection.</td> 162 <td>Private method to set the selection.</td>
130 </tr><tr> 163 </tr>
164 <tr>
131 <td><a href="#HexEditWidget.__toHex">__toHex</a></td> 165 <td><a href="#HexEditWidget.__toHex">__toHex</a></td>
132 <td>Private method to convert the data of a Python bytearray to hex.</td> 166 <td>Private method to convert the data of a Python bytearray to hex.</td>
133 </tr><tr> 167 </tr>
168 <tr>
134 <td><a href="#HexEditWidget.__toReadable">__toReadable</a></td> 169 <td><a href="#HexEditWidget.__toReadable">__toReadable</a></td>
135 <td>Private method to convert some data into a readable format.</td> 170 <td>Private method to convert some data into a readable format.</td>
136 </tr><tr> 171 </tr>
172 <tr>
137 <td><a href="#HexEditWidget.__updateCursor">__updateCursor</a></td> 173 <td><a href="#HexEditWidget.__updateCursor">__updateCursor</a></td>
138 <td>Private slot to update the blinking cursor.</td> 174 <td>Private slot to update the blinking cursor.</td>
139 </tr><tr> 175 </tr>
176 <tr>
140 <td><a href="#HexEditWidget.addressArea">addressArea</a></td> 177 <td><a href="#HexEditWidget.addressArea">addressArea</a></td>
141 <td>Public method to get the address area visibility.</td> 178 <td>Public method to get the address area visibility.</td>
142 </tr><tr> 179 </tr>
180 <tr>
143 <td><a href="#HexEditWidget.addressAreaColors">addressAreaColors</a></td> 181 <td><a href="#HexEditWidget.addressAreaColors">addressAreaColors</a></td>
144 <td>Public method to get the address area colors.</td> 182 <td>Public method to get the address area colors.</td>
145 </tr><tr> 183 </tr>
184 <tr>
146 <td><a href="#HexEditWidget.addressOffset">addressOffset</a></td> 185 <td><a href="#HexEditWidget.addressOffset">addressOffset</a></td>
147 <td>Public method to get the address offset.</td> 186 <td>Public method to get the address offset.</td>
148 </tr><tr> 187 </tr>
188 <tr>
149 <td><a href="#HexEditWidget.addressWidth">addressWidth</a></td> 189 <td><a href="#HexEditWidget.addressWidth">addressWidth</a></td>
150 <td>Public method to get the width of the address area in characters.</td> 190 <td>Public method to get the width of the address area in characters.</td>
151 </tr><tr> 191 </tr>
192 <tr>
152 <td><a href="#HexEditWidget.asciiArea">asciiArea</a></td> 193 <td><a href="#HexEditWidget.asciiArea">asciiArea</a></td>
153 <td>Public method to get the visibility of the ASCII area.</td> 194 <td>Public method to get the visibility of the ASCII area.</td>
154 </tr><tr> 195 </tr>
196 <tr>
155 <td><a href="#HexEditWidget.copy">copy</a></td> 197 <td><a href="#HexEditWidget.copy">copy</a></td>
156 <td>Public method to copy the selected bytes to the clipboard.</td> 198 <td>Public method to copy the selected bytes to the clipboard.</td>
157 </tr><tr> 199 </tr>
200 <tr>
158 <td><a href="#HexEditWidget.cursorBytePosition">cursorBytePosition</a></td> 201 <td><a href="#HexEditWidget.cursorBytePosition">cursorBytePosition</a></td>
159 <td>Public method to get the cursor position in bytes.</td> 202 <td>Public method to get the cursor position in bytes.</td>
160 </tr><tr> 203 </tr>
204 <tr>
161 <td><a href="#HexEditWidget.cursorPosition">cursorPosition</a></td> 205 <td><a href="#HexEditWidget.cursorPosition">cursorPosition</a></td>
162 <td>Public method to get the cursor position.</td> 206 <td>Public method to get the cursor position.</td>
163 </tr><tr> 207 </tr>
208 <tr>
164 <td><a href="#HexEditWidget.cursorPositionFromPoint">cursorPositionFromPoint</a></td> 209 <td><a href="#HexEditWidget.cursorPositionFromPoint">cursorPositionFromPoint</a></td>
165 <td>Public method to calculate a cursor position from a graphics position.</td> 210 <td>Public method to calculate a cursor position from a graphics position.</td>
166 </tr><tr> 211 </tr>
212 <tr>
167 <td><a href="#HexEditWidget.cut">cut</a></td> 213 <td><a href="#HexEditWidget.cut">cut</a></td>
168 <td>Public method to cut the selected bytes and move them to the clipboard.</td> 214 <td>Public method to cut the selected bytes and move them to the clipboard.</td>
169 </tr><tr> 215 </tr>
216 <tr>
170 <td><a href="#HexEditWidget.data">data</a></td> 217 <td><a href="#HexEditWidget.data">data</a></td>
171 <td>Public method to get the binary data.</td> 218 <td>Public method to get the binary data.</td>
172 </tr><tr> 219 </tr>
220 <tr>
173 <td><a href="#HexEditWidget.dataAt">dataAt</a></td> 221 <td><a href="#HexEditWidget.dataAt">dataAt</a></td>
174 <td>Public method to get data from a given position.</td> 222 <td>Public method to get data from a given position.</td>
175 </tr><tr> 223 </tr>
224 <tr>
176 <td><a href="#HexEditWidget.deleteByte">deleteByte</a></td> 225 <td><a href="#HexEditWidget.deleteByte">deleteByte</a></td>
177 <td>Public method to delete the current byte.</td> 226 <td>Public method to delete the current byte.</td>
178 </tr><tr> 227 </tr>
228 <tr>
179 <td><a href="#HexEditWidget.deleteByteBack">deleteByteBack</a></td> 229 <td><a href="#HexEditWidget.deleteByteBack">deleteByteBack</a></td>
180 <td>Public method to delete the previous byte.</td> 230 <td>Public method to delete the previous byte.</td>
181 </tr><tr> 231 </tr>
232 <tr>
182 <td><a href="#HexEditWidget.deselectAll">deselectAll</a></td> 233 <td><a href="#HexEditWidget.deselectAll">deselectAll</a></td>
183 <td>Public method to deselect all data.</td> 234 <td>Public method to deselect all data.</td>
184 </tr><tr> 235 </tr>
236 <tr>
185 <td><a href="#HexEditWidget.ensureVisible">ensureVisible</a></td> 237 <td><a href="#HexEditWidget.ensureVisible">ensureVisible</a></td>
186 <td>Public method to ensure, that the cursor is visible.</td> 238 <td>Public method to ensure, that the cursor is visible.</td>
187 </tr><tr> 239 </tr>
240 <tr>
188 <td><a href="#HexEditWidget.font">font</a></td> 241 <td><a href="#HexEditWidget.font">font</a></td>
189 <td>Public method to get the font used to show the data.</td> 242 <td>Public method to get the font used to show the data.</td>
190 </tr><tr> 243 </tr>
244 <tr>
191 <td><a href="#HexEditWidget.getSelectionBegin">getSelectionBegin</a></td> 245 <td><a href="#HexEditWidget.getSelectionBegin">getSelectionBegin</a></td>
192 <td>Public method to get the start of the selection.</td> 246 <td>Public method to get the start of the selection.</td>
193 </tr><tr> 247 </tr>
248 <tr>
194 <td><a href="#HexEditWidget.getSelectionEnd">getSelectionEnd</a></td> 249 <td><a href="#HexEditWidget.getSelectionEnd">getSelectionEnd</a></td>
195 <td>Public method to get the end of the selection.</td> 250 <td>Public method to get the end of the selection.</td>
196 </tr><tr> 251 </tr>
252 <tr>
197 <td><a href="#HexEditWidget.getSelectionLength">getSelectionLength</a></td> 253 <td><a href="#HexEditWidget.getSelectionLength">getSelectionLength</a></td>
198 <td>Public method to get the length of the selection.</td> 254 <td>Public method to get the length of the selection.</td>
199 </tr><tr> 255 </tr>
256 <tr>
200 <td><a href="#HexEditWidget.goto">goto</a></td> 257 <td><a href="#HexEditWidget.goto">goto</a></td>
201 <td>Public method to move the cursor.</td> 258 <td>Public method to move the cursor.</td>
202 </tr><tr> 259 </tr>
260 <tr>
203 <td><a href="#HexEditWidget.hasSelection">hasSelection</a></td> 261 <td><a href="#HexEditWidget.hasSelection">hasSelection</a></td>
204 <td>Public method to test for a selection.</td> 262 <td>Public method to test for a selection.</td>
205 </tr><tr> 263 </tr>
264 <tr>
206 <td><a href="#HexEditWidget.highlightColors">highlightColors</a></td> 265 <td><a href="#HexEditWidget.highlightColors">highlightColors</a></td>
207 <td>Public method to get the highlight colors.</td> 266 <td>Public method to get the highlight colors.</td>
208 </tr><tr> 267 </tr>
268 <tr>
209 <td><a href="#HexEditWidget.highlighting">highlighting</a></td> 269 <td><a href="#HexEditWidget.highlighting">highlighting</a></td>
210 <td>Public method to get the highlighting state.</td> 270 <td>Public method to get the highlighting state.</td>
211 </tr><tr> 271 </tr>
272 <tr>
212 <td><a href="#HexEditWidget.indexOf">indexOf</a></td> 273 <td><a href="#HexEditWidget.indexOf">indexOf</a></td>
213 <td>Public method to find the first occurrence of a byte array in our data.</td> 274 <td>Public method to find the first occurrence of a byte array in our data.</td>
214 </tr><tr> 275 </tr>
276 <tr>
215 <td><a href="#HexEditWidget.insert">insert</a></td> 277 <td><a href="#HexEditWidget.insert">insert</a></td>
216 <td>Public method to insert a byte.</td> 278 <td>Public method to insert a byte.</td>
217 </tr><tr> 279 </tr>
280 <tr>
218 <td><a href="#HexEditWidget.insertByteArray">insertByteArray</a></td> 281 <td><a href="#HexEditWidget.insertByteArray">insertByteArray</a></td>
219 <td>Public method to insert bytes.</td> 282 <td>Public method to insert bytes.</td>
220 </tr><tr> 283 </tr>
284 <tr>
221 <td><a href="#HexEditWidget.isModified">isModified</a></td> 285 <td><a href="#HexEditWidget.isModified">isModified</a></td>
222 <td>Public method to check for any modification.</td> 286 <td>Public method to check for any modification.</td>
223 </tr><tr> 287 </tr>
288 <tr>
224 <td><a href="#HexEditWidget.isReadOnly">isReadOnly</a></td> 289 <td><a href="#HexEditWidget.isReadOnly">isReadOnly</a></td>
225 <td>Public method to test the read only state.</td> 290 <td>Public method to test the read only state.</td>
226 </tr><tr> 291 </tr>
292 <tr>
227 <td><a href="#HexEditWidget.keyPressEvent">keyPressEvent</a></td> 293 <td><a href="#HexEditWidget.keyPressEvent">keyPressEvent</a></td>
228 <td>Protected method to handle key press events.</td> 294 <td>Protected method to handle key press events.</td>
229 </tr><tr> 295 </tr>
296 <tr>
230 <td><a href="#HexEditWidget.lastIndexOf">lastIndexOf</a></td> 297 <td><a href="#HexEditWidget.lastIndexOf">lastIndexOf</a></td>
231 <td>Public method to find the last occurrence of a byte array in our data.</td> 298 <td>Public method to find the last occurrence of a byte array in our data.</td>
232 </tr><tr> 299 </tr>
300 <tr>
233 <td><a href="#HexEditWidget.mouseMoveEvent">mouseMoveEvent</a></td> 301 <td><a href="#HexEditWidget.mouseMoveEvent">mouseMoveEvent</a></td>
234 <td>Protected method to handle mouse moves.</td> 302 <td>Protected method to handle mouse moves.</td>
235 </tr><tr> 303 </tr>
304 <tr>
236 <td><a href="#HexEditWidget.mousePressEvent">mousePressEvent</a></td> 305 <td><a href="#HexEditWidget.mousePressEvent">mousePressEvent</a></td>
237 <td>Protected method to handle mouse button presses.</td> 306 <td>Protected method to handle mouse button presses.</td>
238 </tr><tr> 307 </tr>
308 <tr>
239 <td><a href="#HexEditWidget.moveCursorToEndOfDocument">moveCursorToEndOfDocument</a></td> 309 <td><a href="#HexEditWidget.moveCursorToEndOfDocument">moveCursorToEndOfDocument</a></td>
240 <td>Public method to move the cursor to the end of the data.</td> 310 <td>Public method to move the cursor to the end of the data.</td>
241 </tr><tr> 311 </tr>
312 <tr>
242 <td><a href="#HexEditWidget.moveCursorToEndOfLine">moveCursorToEndOfLine</a></td> 313 <td><a href="#HexEditWidget.moveCursorToEndOfLine">moveCursorToEndOfLine</a></td>
243 <td>Public method to move the cursor to the end of the current line.</td> 314 <td>Public method to move the cursor to the end of the current line.</td>
244 </tr><tr> 315 </tr>
316 <tr>
245 <td><a href="#HexEditWidget.moveCursorToNextChar">moveCursorToNextChar</a></td> 317 <td><a href="#HexEditWidget.moveCursorToNextChar">moveCursorToNextChar</a></td>
246 <td>Public method to move the cursor to the next byte.</td> 318 <td>Public method to move the cursor to the next byte.</td>
247 </tr><tr> 319 </tr>
320 <tr>
248 <td><a href="#HexEditWidget.moveCursorToNextLine">moveCursorToNextLine</a></td> 321 <td><a href="#HexEditWidget.moveCursorToNextLine">moveCursorToNextLine</a></td>
249 <td>Public method to move the cursor to the next line.</td> 322 <td>Public method to move the cursor to the next line.</td>
250 </tr><tr> 323 </tr>
324 <tr>
251 <td><a href="#HexEditWidget.moveCursorToNextPage">moveCursorToNextPage</a></td> 325 <td><a href="#HexEditWidget.moveCursorToNextPage">moveCursorToNextPage</a></td>
252 <td>Public method to move the cursor to the next page.</td> 326 <td>Public method to move the cursor to the next page.</td>
253 </tr><tr> 327 </tr>
328 <tr>
254 <td><a href="#HexEditWidget.moveCursorToPreviousChar">moveCursorToPreviousChar</a></td> 329 <td><a href="#HexEditWidget.moveCursorToPreviousChar">moveCursorToPreviousChar</a></td>
255 <td>Public method to move the cursor to the previous byte.</td> 330 <td>Public method to move the cursor to the previous byte.</td>
256 </tr><tr> 331 </tr>
332 <tr>
257 <td><a href="#HexEditWidget.moveCursorToPreviousLine">moveCursorToPreviousLine</a></td> 333 <td><a href="#HexEditWidget.moveCursorToPreviousLine">moveCursorToPreviousLine</a></td>
258 <td>Public method to move the cursor to the previous line.</td> 334 <td>Public method to move the cursor to the previous line.</td>
259 </tr><tr> 335 </tr>
336 <tr>
260 <td><a href="#HexEditWidget.moveCursorToPreviousPage">moveCursorToPreviousPage</a></td> 337 <td><a href="#HexEditWidget.moveCursorToPreviousPage">moveCursorToPreviousPage</a></td>
261 <td>Public method to move the cursor to the previous page.</td> 338 <td>Public method to move the cursor to the previous page.</td>
262 </tr><tr> 339 </tr>
340 <tr>
263 <td><a href="#HexEditWidget.moveCursorToStartOfDocument">moveCursorToStartOfDocument</a></td> 341 <td><a href="#HexEditWidget.moveCursorToStartOfDocument">moveCursorToStartOfDocument</a></td>
264 <td>Public method to move the cursor to the start of the data.</td> 342 <td>Public method to move the cursor to the start of the data.</td>
265 </tr><tr> 343 </tr>
344 <tr>
266 <td><a href="#HexEditWidget.moveCursorToStartOfLine">moveCursorToStartOfLine</a></td> 345 <td><a href="#HexEditWidget.moveCursorToStartOfLine">moveCursorToStartOfLine</a></td>
267 <td>Public method to move the cursor to the beginning of the current line.</td> 346 <td>Public method to move the cursor to the beginning of the current line.</td>
268 </tr><tr> 347 </tr>
348 <tr>
269 <td><a href="#HexEditWidget.overwriteMode">overwriteMode</a></td> 349 <td><a href="#HexEditWidget.overwriteMode">overwriteMode</a></td>
270 <td>Public method to get the overwrite mode.</td> 350 <td>Public method to get the overwrite mode.</td>
271 </tr><tr> 351 </tr>
352 <tr>
272 <td><a href="#HexEditWidget.paintEvent">paintEvent</a></td> 353 <td><a href="#HexEditWidget.paintEvent">paintEvent</a></td>
273 <td>Protected method to handle paint events.</td> 354 <td>Protected method to handle paint events.</td>
274 </tr><tr> 355 </tr>
356 <tr>
275 <td><a href="#HexEditWidget.paste">paste</a></td> 357 <td><a href="#HexEditWidget.paste">paste</a></td>
276 <td>Public method to paste bytes from the clipboard.</td> 358 <td>Public method to paste bytes from the clipboard.</td>
277 </tr><tr> 359 </tr>
360 <tr>
278 <td><a href="#HexEditWidget.redo">redo</a></td> 361 <td><a href="#HexEditWidget.redo">redo</a></td>
279 <td>Public slot to redo the last operation.</td> 362 <td>Public slot to redo the last operation.</td>
280 </tr><tr> 363 </tr>
364 <tr>
281 <td><a href="#HexEditWidget.remove">remove</a></td> 365 <td><a href="#HexEditWidget.remove">remove</a></td>
282 <td>Public method to remove bytes.</td> 366 <td>Public method to remove bytes.</td>
283 </tr><tr> 367 </tr>
368 <tr>
284 <td><a href="#HexEditWidget.replace">replace</a></td> 369 <td><a href="#HexEditWidget.replace">replace</a></td>
285 <td>Public method to replace a byte.</td> 370 <td>Public method to replace a byte.</td>
286 </tr><tr> 371 </tr>
372 <tr>
287 <td><a href="#HexEditWidget.replaceByteArray">replaceByteArray</a></td> 373 <td><a href="#HexEditWidget.replaceByteArray">replaceByteArray</a></td>
288 <td>Public method to replace bytes.</td> 374 <td>Public method to replace bytes.</td>
289 </tr><tr> 375 </tr>
376 <tr>
290 <td><a href="#HexEditWidget.resizeEvent">resizeEvent</a></td> 377 <td><a href="#HexEditWidget.resizeEvent">resizeEvent</a></td>
291 <td>Protected method to handle resize events.</td> 378 <td>Protected method to handle resize events.</td>
292 </tr><tr> 379 </tr>
380 <tr>
293 <td><a href="#HexEditWidget.revertToUnmodified">revertToUnmodified</a></td> 381 <td><a href="#HexEditWidget.revertToUnmodified">revertToUnmodified</a></td>
294 <td>Public slot to revert all changes.</td> 382 <td>Public slot to revert all changes.</td>
295 </tr><tr> 383 </tr>
384 <tr>
296 <td><a href="#HexEditWidget.selectAll">selectAll</a></td> 385 <td><a href="#HexEditWidget.selectAll">selectAll</a></td>
297 <td>Public method to select all data.</td> 386 <td>Public method to select all data.</td>
298 </tr><tr> 387 </tr>
388 <tr>
299 <td><a href="#HexEditWidget.selectEndOfDocument">selectEndOfDocument</a></td> 389 <td><a href="#HexEditWidget.selectEndOfDocument">selectEndOfDocument</a></td>
300 <td>Public method to extend the selection to the end of the data.</td> 390 <td>Public method to extend the selection to the end of the data.</td>
301 </tr><tr> 391 </tr>
392 <tr>
302 <td><a href="#HexEditWidget.selectNextChar">selectNextChar</a></td> 393 <td><a href="#HexEditWidget.selectNextChar">selectNextChar</a></td>
303 <td>Public method to extend the selection by one byte right.</td> 394 <td>Public method to extend the selection by one byte right.</td>
304 </tr><tr> 395 </tr>
396 <tr>
305 <td><a href="#HexEditWidget.selectNextLine">selectNextLine</a></td> 397 <td><a href="#HexEditWidget.selectNextLine">selectNextLine</a></td>
306 <td>Public method to extend the selection one line down.</td> 398 <td>Public method to extend the selection one line down.</td>
307 </tr><tr> 399 </tr>
400 <tr>
308 <td><a href="#HexEditWidget.selectNextPage">selectNextPage</a></td> 401 <td><a href="#HexEditWidget.selectNextPage">selectNextPage</a></td>
309 <td>Public method to extend the selection one page down.</td> 402 <td>Public method to extend the selection one page down.</td>
310 </tr><tr> 403 </tr>
404 <tr>
311 <td><a href="#HexEditWidget.selectPreviousChar">selectPreviousChar</a></td> 405 <td><a href="#HexEditWidget.selectPreviousChar">selectPreviousChar</a></td>
312 <td>Public method to extend the selection by one byte left.</td> 406 <td>Public method to extend the selection by one byte left.</td>
313 </tr><tr> 407 </tr>
408 <tr>
314 <td><a href="#HexEditWidget.selectPreviousLine">selectPreviousLine</a></td> 409 <td><a href="#HexEditWidget.selectPreviousLine">selectPreviousLine</a></td>
315 <td>Public method to extend the selection one line up.</td> 410 <td>Public method to extend the selection one line up.</td>
316 </tr><tr> 411 </tr>
412 <tr>
317 <td><a href="#HexEditWidget.selectPreviousPage">selectPreviousPage</a></td> 413 <td><a href="#HexEditWidget.selectPreviousPage">selectPreviousPage</a></td>
318 <td>Public method to extend the selection one page up.</td> 414 <td>Public method to extend the selection one page up.</td>
319 </tr><tr> 415 </tr>
416 <tr>
320 <td><a href="#HexEditWidget.selectStartOfDocument">selectStartOfDocument</a></td> 417 <td><a href="#HexEditWidget.selectStartOfDocument">selectStartOfDocument</a></td>
321 <td>Public method to extend the selection to the start of the data.</td> 418 <td>Public method to extend the selection to the start of the data.</td>
322 </tr><tr> 419 </tr>
420 <tr>
323 <td><a href="#HexEditWidget.selectToEndOfLine">selectToEndOfLine</a></td> 421 <td><a href="#HexEditWidget.selectToEndOfLine">selectToEndOfLine</a></td>
324 <td>Public method to extend the selection to the end of line.</td> 422 <td>Public method to extend the selection to the end of line.</td>
325 </tr><tr> 423 </tr>
424 <tr>
326 <td><a href="#HexEditWidget.selectToStartOfLine">selectToStartOfLine</a></td> 425 <td><a href="#HexEditWidget.selectToStartOfLine">selectToStartOfLine</a></td>
327 <td>Public method to extend the selection to the start of line.</td> 426 <td>Public method to extend the selection to the start of line.</td>
328 </tr><tr> 427 </tr>
428 <tr>
329 <td><a href="#HexEditWidget.selectionColors">selectionColors</a></td> 429 <td><a href="#HexEditWidget.selectionColors">selectionColors</a></td>
330 <td>Public method to get the selection colors.</td> 430 <td>Public method to get the selection colors.</td>
331 </tr><tr> 431 </tr>
432 <tr>
332 <td><a href="#HexEditWidget.selectionToHexString">selectionToHexString</a></td> 433 <td><a href="#HexEditWidget.selectionToHexString">selectionToHexString</a></td>
333 <td>Public method to get a hexadecimal representation of the selection.</td> 434 <td>Public method to get a hexadecimal representation of the selection.</td>
334 </tr><tr> 435 </tr>
436 <tr>
335 <td><a href="#HexEditWidget.selectionToReadableString">selectionToReadableString</a></td> 437 <td><a href="#HexEditWidget.selectionToReadableString">selectionToReadableString</a></td>
336 <td>Public method to get a formatted representation of the selection.</td> 438 <td>Public method to get a formatted representation of the selection.</td>
337 </tr><tr> 439 </tr>
440 <tr>
338 <td><a href="#HexEditWidget.setAddressArea">setAddressArea</a></td> 441 <td><a href="#HexEditWidget.setAddressArea">setAddressArea</a></td>
339 <td>Public method to set the address area visibility.</td> 442 <td>Public method to set the address area visibility.</td>
340 </tr><tr> 443 </tr>
444 <tr>
341 <td><a href="#HexEditWidget.setAddressAreaColors">setAddressAreaColors</a></td> 445 <td><a href="#HexEditWidget.setAddressAreaColors">setAddressAreaColors</a></td>
342 <td>Public method to set the address area colors.</td> 446 <td>Public method to set the address area colors.</td>
343 </tr><tr> 447 </tr>
448 <tr>
344 <td><a href="#HexEditWidget.setAddressOffset">setAddressOffset</a></td> 449 <td><a href="#HexEditWidget.setAddressOffset">setAddressOffset</a></td>
345 <td>Public method to set the address offset.</td> 450 <td>Public method to set the address offset.</td>
346 </tr><tr> 451 </tr>
452 <tr>
347 <td><a href="#HexEditWidget.setAddressWidth">setAddressWidth</a></td> 453 <td><a href="#HexEditWidget.setAddressWidth">setAddressWidth</a></td>
348 <td>Public method to set the width of the address area.</td> 454 <td>Public method to set the width of the address area.</td>
349 </tr><tr> 455 </tr>
456 <tr>
350 <td><a href="#HexEditWidget.setAsciiArea">setAsciiArea</a></td> 457 <td><a href="#HexEditWidget.setAsciiArea">setAsciiArea</a></td>
351 <td>Public method to set the visibility of the ASCII area.</td> 458 <td>Public method to set the visibility of the ASCII area.</td>
352 </tr><tr> 459 </tr>
460 <tr>
353 <td><a href="#HexEditWidget.setCursorBytePosition">setCursorBytePosition</a></td> 461 <td><a href="#HexEditWidget.setCursorBytePosition">setCursorBytePosition</a></td>
354 <td>Public method to set the cursor position in bytes.</td> 462 <td>Public method to set the cursor position in bytes.</td>
355 </tr><tr> 463 </tr>
464 <tr>
356 <td><a href="#HexEditWidget.setCursorPosition">setCursorPosition</a></td> 465 <td><a href="#HexEditWidget.setCursorPosition">setCursorPosition</a></td>
357 <td>Public method to set the cursor position.</td> 466 <td>Public method to set the cursor position.</td>
358 </tr><tr> 467 </tr>
468 <tr>
359 <td><a href="#HexEditWidget.setData">setData</a></td> 469 <td><a href="#HexEditWidget.setData">setData</a></td>
360 <td>Public method to set the data to show.</td> 470 <td>Public method to set the data to show.</td>
361 </tr><tr> 471 </tr>
472 <tr>
362 <td><a href="#HexEditWidget.setFont">setFont</a></td> 473 <td><a href="#HexEditWidget.setFont">setFont</a></td>
363 <td>Public method to set the font used to show the data.</td> 474 <td>Public method to set the font used to show the data.</td>
364 </tr><tr> 475 </tr>
476 <tr>
365 <td><a href="#HexEditWidget.setHighlightColors">setHighlightColors</a></td> 477 <td><a href="#HexEditWidget.setHighlightColors">setHighlightColors</a></td>
366 <td>Public method to set the highlight colors.</td> 478 <td>Public method to set the highlight colors.</td>
367 </tr><tr> 479 </tr>
480 <tr>
368 <td><a href="#HexEditWidget.setHighlighting">setHighlighting</a></td> 481 <td><a href="#HexEditWidget.setHighlighting">setHighlighting</a></td>
369 <td>Public method to set the highlighting state.</td> 482 <td>Public method to set the highlighting state.</td>
370 </tr><tr> 483 </tr>
484 <tr>
371 <td><a href="#HexEditWidget.setModified">setModified</a></td> 485 <td><a href="#HexEditWidget.setModified">setModified</a></td>
372 <td>Public slot to set the modified flag.</td> 486 <td>Public slot to set the modified flag.</td>
373 </tr><tr> 487 </tr>
488 <tr>
374 <td><a href="#HexEditWidget.setOverwriteMode">setOverwriteMode</a></td> 489 <td><a href="#HexEditWidget.setOverwriteMode">setOverwriteMode</a></td>
375 <td>Public method to set the overwrite mode.</td> 490 <td>Public method to set the overwrite mode.</td>
376 </tr><tr> 491 </tr>
492 <tr>
377 <td><a href="#HexEditWidget.setReadOnly">setReadOnly</a></td> 493 <td><a href="#HexEditWidget.setReadOnly">setReadOnly</a></td>
378 <td>Public method to set the read only state.</td> 494 <td>Public method to set the read only state.</td>
379 </tr><tr> 495 </tr>
496 <tr>
380 <td><a href="#HexEditWidget.setSelectionColors">setSelectionColors</a></td> 497 <td><a href="#HexEditWidget.setSelectionColors">setSelectionColors</a></td>
381 <td>Public method to set the selection colors.</td> 498 <td>Public method to set the selection colors.</td>
382 </tr><tr> 499 </tr>
500 <tr>
383 <td><a href="#HexEditWidget.toReadableString">toReadableString</a></td> 501 <td><a href="#HexEditWidget.toReadableString">toReadableString</a></td>
384 <td>Public method to get a formatted representation of our data.</td> 502 <td>Public method to get a formatted representation of our data.</td>
385 </tr><tr> 503 </tr>
504 <tr>
386 <td><a href="#HexEditWidget.undo">undo</a></td> 505 <td><a href="#HexEditWidget.undo">undo</a></td>
387 <td>Public slot to undo the last operation.</td> 506 <td>Public slot to undo the last operation.</td>
388 </tr><tr> 507 </tr>
508 <tr>
389 <td><a href="#HexEditWidget.undoStack">undoStack</a></td> 509 <td><a href="#HexEditWidget.undoStack">undoStack</a></td>
390 <td>Public method to get a reference to the undo stack.</td> 510 <td>Public method to get a reference to the undo stack.</td>
391 </tr><tr> 511 </tr>
512 <tr>
392 <td><a href="#HexEditWidget.write">write</a></td> 513 <td><a href="#HexEditWidget.write">write</a></td>
393 <td>Public method to write data from a given position to a device.</td> 514 <td>Public method to write data from a given position to a device.</td>
394 </tr> 515 </tr>
395 </table> 516 </table>
396 <h3>Static Methods</h3> 517 <h3>Static Methods</h3>
518
397 <table> 519 <table>
398 <tr><td>None</td></tr> 520 <tr><td>None</td></tr>
399 </table> 521 </table>
522
400 <a NAME="HexEditWidget.__init__" ID="HexEditWidget.__init__"></a> 523 <a NAME="HexEditWidget.__init__" ID="HexEditWidget.__init__"></a>
401 <h4>HexEditWidget (Constructor)</h4> 524 <h4>HexEditWidget (Constructor)</h4>
402 <b>HexEditWidget</b>(<i>parent=None</i>) 525 <b>HexEditWidget</b>(<i>parent=None</i>)
526
403 <p> 527 <p>
404 Constructor 528 Constructor
405 </p><dl> 529 </p>
530 <dl>
531
406 <dt><i>parent</i> (QWidget)</dt> 532 <dt><i>parent</i> (QWidget)</dt>
407 <dd> 533 <dd>
408 refernce to the parent widget 534 refernce to the parent widget
409 </dd> 535 </dd>
410 </dl><a NAME="HexEditWidget.__adjust" ID="HexEditWidget.__adjust"></a> 536 </dl>
537 <a NAME="HexEditWidget.__adjust" ID="HexEditWidget.__adjust"></a>
411 <h4>HexEditWidget.__adjust</h4> 538 <h4>HexEditWidget.__adjust</h4>
412 <b>__adjust</b>(<i></i>) 539 <b>__adjust</b>(<i></i>)
540
413 <p> 541 <p>
414 Private slot to recalculate pixel positions. 542 Private slot to recalculate pixel positions.
415 </p><a NAME="HexEditWidget.__canRedoChanged" ID="HexEditWidget.__canRedoChanged"></a> 543 </p>
544 <a NAME="HexEditWidget.__canRedoChanged" ID="HexEditWidget.__canRedoChanged"></a>
416 <h4>HexEditWidget.__canRedoChanged</h4> 545 <h4>HexEditWidget.__canRedoChanged</h4>
417 <b>__canRedoChanged</b>(<i></i>) 546 <b>__canRedoChanged</b>(<i></i>)
547
418 <p> 548 <p>
419 Private slot handling changes of the Redo state. 549 Private slot handling changes of the Redo state.
420 </p><a NAME="HexEditWidget.__canUndoChanged" ID="HexEditWidget.__canUndoChanged"></a> 550 </p>
551 <a NAME="HexEditWidget.__canUndoChanged" ID="HexEditWidget.__canUndoChanged"></a>
421 <h4>HexEditWidget.__canUndoChanged</h4> 552 <h4>HexEditWidget.__canUndoChanged</h4>
422 <b>__canUndoChanged</b>(<i></i>) 553 <b>__canUndoChanged</b>(<i></i>)
554
423 <p> 555 <p>
424 Private slot handling changes of the Undo state. 556 Private slot handling changes of the Undo state.
425 </p><a NAME="HexEditWidget.__dataChangedPrivate" ID="HexEditWidget.__dataChangedPrivate"></a> 557 </p>
558 <a NAME="HexEditWidget.__dataChangedPrivate" ID="HexEditWidget.__dataChangedPrivate"></a>
426 <h4>HexEditWidget.__dataChangedPrivate</h4> 559 <h4>HexEditWidget.__dataChangedPrivate</h4>
427 <b>__dataChangedPrivate</b>(<i>idx=0</i>) 560 <b>__dataChangedPrivate</b>(<i>idx=0</i>)
561
428 <p> 562 <p>
429 Private slot to handle data changes. 563 Private slot to handle data changes.
430 </p><dl> 564 </p>
565 <dl>
566
431 <dt><i>idx</i> (int)</dt> 567 <dt><i>idx</i> (int)</dt>
432 <dd> 568 <dd>
433 index 569 index
434 </dd> 570 </dd>
435 </dl><a NAME="HexEditWidget.__fromHex" ID="HexEditWidget.__fromHex"></a> 571 </dl>
572 <a NAME="HexEditWidget.__fromHex" ID="HexEditWidget.__fromHex"></a>
436 <h4>HexEditWidget.__fromHex</h4> 573 <h4>HexEditWidget.__fromHex</h4>
437 <b>__fromHex</b>(<i>byteArray</i>) 574 <b>__fromHex</b>(<i>byteArray</i>)
575
438 <p> 576 <p>
439 Private method to convert data of a Python bytearray from hex. 577 Private method to convert data of a Python bytearray from hex.
440 </p><dl> 578 </p>
579 <dl>
580
441 <dt><i>byteArray</i> (bytearray)</dt> 581 <dt><i>byteArray</i> (bytearray)</dt>
442 <dd> 582 <dd>
443 byte array to be converted 583 byte array to be converted
444 </dd> 584 </dd>
445 </dl><dl> 585 </dl>
586 <dl>
446 <dt>Returns:</dt> 587 <dt>Returns:</dt>
447 <dd> 588 <dd>
448 converted data 589 converted data
449 </dd> 590 </dd>
450 </dl><dl> 591 </dl>
592 <dl>
451 <dt>Return Type:</dt> 593 <dt>Return Type:</dt>
452 <dd> 594 <dd>
453 bytearray 595 bytearray
454 </dd> 596 </dd>
455 </dl><a NAME="HexEditWidget.__initialize" ID="HexEditWidget.__initialize"></a> 597 </dl>
598 <a NAME="HexEditWidget.__initialize" ID="HexEditWidget.__initialize"></a>
456 <h4>HexEditWidget.__initialize</h4> 599 <h4>HexEditWidget.__initialize</h4>
457 <b>__initialize</b>(<i></i>) 600 <b>__initialize</b>(<i></i>)
601
458 <p> 602 <p>
459 Private method to do some initialization. 603 Private method to do some initialization.
460 </p><a NAME="HexEditWidget.__readBuffers" ID="HexEditWidget.__readBuffers"></a> 604 </p>
605 <a NAME="HexEditWidget.__readBuffers" ID="HexEditWidget.__readBuffers"></a>
461 <h4>HexEditWidget.__readBuffers</h4> 606 <h4>HexEditWidget.__readBuffers</h4>
462 <b>__readBuffers</b>(<i></i>) 607 <b>__readBuffers</b>(<i></i>)
608
463 <p> 609 <p>
464 Private method to read the buffers. 610 Private method to read the buffers.
465 </p><a NAME="HexEditWidget.__refresh" ID="HexEditWidget.__refresh"></a> 611 </p>
612 <a NAME="HexEditWidget.__refresh" ID="HexEditWidget.__refresh"></a>
466 <h4>HexEditWidget.__refresh</h4> 613 <h4>HexEditWidget.__refresh</h4>
467 <b>__refresh</b>(<i></i>) 614 <b>__refresh</b>(<i></i>)
615
468 <p> 616 <p>
469 Private slot to refresh the display. 617 Private slot to refresh the display.
470 </p><a NAME="HexEditWidget.__resetSelection" ID="HexEditWidget.__resetSelection"></a> 618 </p>
619 <a NAME="HexEditWidget.__resetSelection" ID="HexEditWidget.__resetSelection"></a>
471 <h4>HexEditWidget.__resetSelection</h4> 620 <h4>HexEditWidget.__resetSelection</h4>
472 <b>__resetSelection</b>(<i>pos=None</i>) 621 <b>__resetSelection</b>(<i>pos=None</i>)
622
473 <p> 623 <p>
474 Private method to reset the selection. 624 Private method to reset the selection.
475 </p><dl> 625 </p>
626 <dl>
627
476 <dt><i>pos</i> (int or None)</dt> 628 <dt><i>pos</i> (int or None)</dt>
477 <dd> 629 <dd>
478 position to set selection start and end to 630 position to set selection start and end to
479 (if this is None, selection end is set to selection start) 631 (if this is None, selection end is set to selection start)
480 </dd> 632 </dd>
481 </dl><a NAME="HexEditWidget.__setData" ID="HexEditWidget.__setData"></a> 633 </dl>
634 <a NAME="HexEditWidget.__setData" ID="HexEditWidget.__setData"></a>
482 <h4>HexEditWidget.__setData</h4> 635 <h4>HexEditWidget.__setData</h4>
483 <b>__setData</b>(<i>ioDevice</i>) 636 <b>__setData</b>(<i>ioDevice</i>)
637
484 <p> 638 <p>
485 Private method to set the data to show. 639 Private method to set the data to show.
486 </p><dl> 640 </p>
641 <dl>
642
487 <dt><i>ioDevice</i> (QIODevice)</dt> 643 <dt><i>ioDevice</i> (QIODevice)</dt>
488 <dd> 644 <dd>
489 device containing the data 645 device containing the data
490 </dd> 646 </dd>
491 </dl><dl> 647 </dl>
648 <dl>
492 <dt>Returns:</dt> 649 <dt>Returns:</dt>
493 <dd> 650 <dd>
494 flag indicating success 651 flag indicating success
495 </dd> 652 </dd>
496 </dl><dl> 653 </dl>
654 <dl>
497 <dt>Return Type:</dt> 655 <dt>Return Type:</dt>
498 <dd> 656 <dd>
499 bool 657 bool
500 </dd> 658 </dd>
501 </dl><a NAME="HexEditWidget.__setHexCursorRect" ID="HexEditWidget.__setHexCursorRect"></a> 659 </dl>
660 <a NAME="HexEditWidget.__setHexCursorRect" ID="HexEditWidget.__setHexCursorRect"></a>
502 <h4>HexEditWidget.__setHexCursorRect</h4> 661 <h4>HexEditWidget.__setHexCursorRect</h4>
503 <b>__setHexCursorRect</b>(<i></i>) 662 <b>__setHexCursorRect</b>(<i></i>)
663
504 <p> 664 <p>
505 Private method to set the cursor. 665 Private method to set the cursor.
506 </p><a NAME="HexEditWidget.__setSelection" ID="HexEditWidget.__setSelection"></a> 666 </p>
667 <a NAME="HexEditWidget.__setSelection" ID="HexEditWidget.__setSelection"></a>
507 <h4>HexEditWidget.__setSelection</h4> 668 <h4>HexEditWidget.__setSelection</h4>
508 <b>__setSelection</b>(<i>pos</i>) 669 <b>__setSelection</b>(<i>pos</i>)
670
509 <p> 671 <p>
510 Private method to set the selection. 672 Private method to set the selection.
511 </p><dl> 673 </p>
674 <dl>
675
512 <dt><i>pos</i> (int)</dt> 676 <dt><i>pos</i> (int)</dt>
513 <dd> 677 <dd>
514 position 678 position
515 </dd> 679 </dd>
516 </dl><a NAME="HexEditWidget.__toHex" ID="HexEditWidget.__toHex"></a> 680 </dl>
681 <a NAME="HexEditWidget.__toHex" ID="HexEditWidget.__toHex"></a>
517 <h4>HexEditWidget.__toHex</h4> 682 <h4>HexEditWidget.__toHex</h4>
518 <b>__toHex</b>(<i>byteArray</i>) 683 <b>__toHex</b>(<i>byteArray</i>)
684
519 <p> 685 <p>
520 Private method to convert the data of a Python bytearray to hex. 686 Private method to convert the data of a Python bytearray to hex.
521 </p><dl> 687 </p>
688 <dl>
689
522 <dt><i>byteArray</i> (bytearray)</dt> 690 <dt><i>byteArray</i> (bytearray)</dt>
523 <dd> 691 <dd>
524 byte array to be converted 692 byte array to be converted
525 </dd> 693 </dd>
526 </dl><dl> 694 </dl>
695 <dl>
527 <dt>Returns:</dt> 696 <dt>Returns:</dt>
528 <dd> 697 <dd>
529 converted data 698 converted data
530 </dd> 699 </dd>
531 </dl><dl> 700 </dl>
701 <dl>
532 <dt>Return Type:</dt> 702 <dt>Return Type:</dt>
533 <dd> 703 <dd>
534 bytearray 704 bytearray
535 </dd> 705 </dd>
536 </dl><a NAME="HexEditWidget.__toReadable" ID="HexEditWidget.__toReadable"></a> 706 </dl>
707 <a NAME="HexEditWidget.__toReadable" ID="HexEditWidget.__toReadable"></a>
537 <h4>HexEditWidget.__toReadable</h4> 708 <h4>HexEditWidget.__toReadable</h4>
538 <b>__toReadable</b>(<i>byteArray</i>) 709 <b>__toReadable</b>(<i>byteArray</i>)
710
539 <p> 711 <p>
540 Private method to convert some data into a readable format. 712 Private method to convert some data into a readable format.
541 </p><dl> 713 </p>
714 <dl>
715
542 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> 716 <dt><i>byteArray</i> (bytearray or QByteArray)</dt>
543 <dd> 717 <dd>
544 data to be converted 718 data to be converted
545 </dd> 719 </dd>
546 </dl><dl> 720 </dl>
721 <dl>
547 <dt>Returns:</dt> 722 <dt>Returns:</dt>
548 <dd> 723 <dd>
549 readable data 724 readable data
550 </dd> 725 </dd>
551 </dl><dl> 726 </dl>
727 <dl>
552 <dt>Return Type:</dt> 728 <dt>Return Type:</dt>
553 <dd> 729 <dd>
554 str 730 str
555 </dd> 731 </dd>
556 </dl><a NAME="HexEditWidget.__updateCursor" ID="HexEditWidget.__updateCursor"></a> 732 </dl>
733 <a NAME="HexEditWidget.__updateCursor" ID="HexEditWidget.__updateCursor"></a>
557 <h4>HexEditWidget.__updateCursor</h4> 734 <h4>HexEditWidget.__updateCursor</h4>
558 <b>__updateCursor</b>(<i></i>) 735 <b>__updateCursor</b>(<i></i>)
736
559 <p> 737 <p>
560 Private slot to update the blinking cursor. 738 Private slot to update the blinking cursor.
561 </p><a NAME="HexEditWidget.addressArea" ID="HexEditWidget.addressArea"></a> 739 </p>
740 <a NAME="HexEditWidget.addressArea" ID="HexEditWidget.addressArea"></a>
562 <h4>HexEditWidget.addressArea</h4> 741 <h4>HexEditWidget.addressArea</h4>
563 <b>addressArea</b>(<i></i>) 742 <b>addressArea</b>(<i></i>)
743
564 <p> 744 <p>
565 Public method to get the address area visibility. 745 Public method to get the address area visibility.
566 </p><dl> 746 </p>
747 <dl>
567 <dt>Returns:</dt> 748 <dt>Returns:</dt>
568 <dd> 749 <dd>
569 flag indicating the address area visibility 750 flag indicating the address area visibility
570 </dd> 751 </dd>
571 </dl><dl> 752 </dl>
753 <dl>
572 <dt>Return Type:</dt> 754 <dt>Return Type:</dt>
573 <dd> 755 <dd>
574 bool 756 bool
575 </dd> 757 </dd>
576 </dl><a NAME="HexEditWidget.addressAreaColors" ID="HexEditWidget.addressAreaColors"></a> 758 </dl>
759 <a NAME="HexEditWidget.addressAreaColors" ID="HexEditWidget.addressAreaColors"></a>
577 <h4>HexEditWidget.addressAreaColors</h4> 760 <h4>HexEditWidget.addressAreaColors</h4>
578 <b>addressAreaColors</b>(<i></i>) 761 <b>addressAreaColors</b>(<i></i>)
762
579 <p> 763 <p>
580 Public method to get the address area colors. 764 Public method to get the address area colors.
581 </p><dl> 765 </p>
766 <dl>
582 <dt>Returns:</dt> 767 <dt>Returns:</dt>
583 <dd> 768 <dd>
584 address area foreground and background colors 769 address area foreground and background colors
585 </dd> 770 </dd>
586 </dl><dl> 771 </dl>
772 <dl>
587 <dt>Return Type:</dt> 773 <dt>Return Type:</dt>
588 <dd> 774 <dd>
589 tuple of 2 QColor 775 tuple of 2 QColor
590 </dd> 776 </dd>
591 </dl><a NAME="HexEditWidget.addressOffset" ID="HexEditWidget.addressOffset"></a> 777 </dl>
778 <a NAME="HexEditWidget.addressOffset" ID="HexEditWidget.addressOffset"></a>
592 <h4>HexEditWidget.addressOffset</h4> 779 <h4>HexEditWidget.addressOffset</h4>
593 <b>addressOffset</b>(<i></i>) 780 <b>addressOffset</b>(<i></i>)
781
594 <p> 782 <p>
595 Public method to get the address offset. 783 Public method to get the address offset.
596 </p><dl> 784 </p>
785 <dl>
597 <dt>Returns:</dt> 786 <dt>Returns:</dt>
598 <dd> 787 <dd>
599 address offset 788 address offset
600 </dd> 789 </dd>
601 </dl><dl> 790 </dl>
791 <dl>
602 <dt>Return Type:</dt> 792 <dt>Return Type:</dt>
603 <dd> 793 <dd>
604 int 794 int
605 </dd> 795 </dd>
606 </dl><a NAME="HexEditWidget.addressWidth" ID="HexEditWidget.addressWidth"></a> 796 </dl>
797 <a NAME="HexEditWidget.addressWidth" ID="HexEditWidget.addressWidth"></a>
607 <h4>HexEditWidget.addressWidth</h4> 798 <h4>HexEditWidget.addressWidth</h4>
608 <b>addressWidth</b>(<i></i>) 799 <b>addressWidth</b>(<i></i>)
800
609 <p> 801 <p>
610 Public method to get the width of the address area in 802 Public method to get the width of the address area in
611 characters. 803 characters.
612 </p><p> 804 </p>
805 <p>
613 Note: The address area width is always a multiple of four. 806 Note: The address area width is always a multiple of four.
614 </p><dl> 807 </p>
808 <dl>
615 <dt>Returns:</dt> 809 <dt>Returns:</dt>
616 <dd> 810 <dd>
617 minimum width of the address area 811 minimum width of the address area
618 </dd> 812 </dd>
619 </dl><dl> 813 </dl>
814 <dl>
620 <dt>Return Type:</dt> 815 <dt>Return Type:</dt>
621 <dd> 816 <dd>
622 int 817 int
623 </dd> 818 </dd>
624 </dl><a NAME="HexEditWidget.asciiArea" ID="HexEditWidget.asciiArea"></a> 819 </dl>
820 <a NAME="HexEditWidget.asciiArea" ID="HexEditWidget.asciiArea"></a>
625 <h4>HexEditWidget.asciiArea</h4> 821 <h4>HexEditWidget.asciiArea</h4>
626 <b>asciiArea</b>(<i></i>) 822 <b>asciiArea</b>(<i></i>)
823
627 <p> 824 <p>
628 Public method to get the visibility of the ASCII area. 825 Public method to get the visibility of the ASCII area.
629 </p><dl> 826 </p>
827 <dl>
630 <dt>Returns:</dt> 828 <dt>Returns:</dt>
631 <dd> 829 <dd>
632 visibility of the ASCII area 830 visibility of the ASCII area
633 </dd> 831 </dd>
634 </dl><dl> 832 </dl>
833 <dl>
635 <dt>Return Type:</dt> 834 <dt>Return Type:</dt>
636 <dd> 835 <dd>
637 bool 836 bool
638 </dd> 837 </dd>
639 </dl><a NAME="HexEditWidget.copy" ID="HexEditWidget.copy"></a> 838 </dl>
839 <a NAME="HexEditWidget.copy" ID="HexEditWidget.copy"></a>
640 <h4>HexEditWidget.copy</h4> 840 <h4>HexEditWidget.copy</h4>
641 <b>copy</b>(<i></i>) 841 <b>copy</b>(<i></i>)
842
642 <p> 843 <p>
643 Public method to copy the selected bytes to the clipboard. 844 Public method to copy the selected bytes to the clipboard.
644 </p><a NAME="HexEditWidget.cursorBytePosition" ID="HexEditWidget.cursorBytePosition"></a> 845 </p>
846 <a NAME="HexEditWidget.cursorBytePosition" ID="HexEditWidget.cursorBytePosition"></a>
645 <h4>HexEditWidget.cursorBytePosition</h4> 847 <h4>HexEditWidget.cursorBytePosition</h4>
646 <b>cursorBytePosition</b>(<i></i>) 848 <b>cursorBytePosition</b>(<i></i>)
849
647 <p> 850 <p>
648 Public method to get the cursor position in bytes. 851 Public method to get the cursor position in bytes.
649 </p><dl> 852 </p>
853 <dl>
650 <dt>Returns:</dt> 854 <dt>Returns:</dt>
651 <dd> 855 <dd>
652 cursor position in bytes 856 cursor position in bytes
653 </dd> 857 </dd>
654 </dl><dl> 858 </dl>
859 <dl>
655 <dt>Return Type:</dt> 860 <dt>Return Type:</dt>
656 <dd> 861 <dd>
657 int 862 int
658 </dd> 863 </dd>
659 </dl><a NAME="HexEditWidget.cursorPosition" ID="HexEditWidget.cursorPosition"></a> 864 </dl>
865 <a NAME="HexEditWidget.cursorPosition" ID="HexEditWidget.cursorPosition"></a>
660 <h4>HexEditWidget.cursorPosition</h4> 866 <h4>HexEditWidget.cursorPosition</h4>
661 <b>cursorPosition</b>(<i></i>) 867 <b>cursorPosition</b>(<i></i>)
868
662 <p> 869 <p>
663 Public method to get the cursor position. 870 Public method to get the cursor position.
664 </p><dl> 871 </p>
872 <dl>
665 <dt>Returns:</dt> 873 <dt>Returns:</dt>
666 <dd> 874 <dd>
667 cursor position 875 cursor position
668 </dd> 876 </dd>
669 </dl><dl> 877 </dl>
878 <dl>
670 <dt>Return Type:</dt> 879 <dt>Return Type:</dt>
671 <dd> 880 <dd>
672 int 881 int
673 </dd> 882 </dd>
674 </dl><a NAME="HexEditWidget.cursorPositionFromPoint" ID="HexEditWidget.cursorPositionFromPoint"></a> 883 </dl>
884 <a NAME="HexEditWidget.cursorPositionFromPoint" ID="HexEditWidget.cursorPositionFromPoint"></a>
675 <h4>HexEditWidget.cursorPositionFromPoint</h4> 885 <h4>HexEditWidget.cursorPositionFromPoint</h4>
676 <b>cursorPositionFromPoint</b>(<i>point</i>) 886 <b>cursorPositionFromPoint</b>(<i>point</i>)
887
677 <p> 888 <p>
678 Public method to calculate a cursor position from a graphics position. 889 Public method to calculate a cursor position from a graphics position.
679 </p><dl> 890 </p>
891 <dl>
892
680 <dt><i>point</i> (QPoint)</dt> 893 <dt><i>point</i> (QPoint)</dt>
681 <dd> 894 <dd>
682 graphics position 895 graphics position
683 </dd> 896 </dd>
684 </dl><dl> 897 </dl>
898 <dl>
685 <dt>Returns:</dt> 899 <dt>Returns:</dt>
686 <dd> 900 <dd>
687 cursor position 901 cursor position
688 </dd> 902 </dd>
689 </dl><dl> 903 </dl>
904 <dl>
690 <dt>Return Type:</dt> 905 <dt>Return Type:</dt>
691 <dd> 906 <dd>
692 int 907 int
693 </dd> 908 </dd>
694 </dl><a NAME="HexEditWidget.cut" ID="HexEditWidget.cut"></a> 909 </dl>
910 <a NAME="HexEditWidget.cut" ID="HexEditWidget.cut"></a>
695 <h4>HexEditWidget.cut</h4> 911 <h4>HexEditWidget.cut</h4>
696 <b>cut</b>(<i></i>) 912 <b>cut</b>(<i></i>)
913
697 <p> 914 <p>
698 Public method to cut the selected bytes and move them to the clipboard. 915 Public method to cut the selected bytes and move them to the clipboard.
699 </p><a NAME="HexEditWidget.data" ID="HexEditWidget.data"></a> 916 </p>
917 <a NAME="HexEditWidget.data" ID="HexEditWidget.data"></a>
700 <h4>HexEditWidget.data</h4> 918 <h4>HexEditWidget.data</h4>
701 <b>data</b>(<i></i>) 919 <b>data</b>(<i></i>)
920
702 <p> 921 <p>
703 Public method to get the binary data. 922 Public method to get the binary data.
704 </p><dl> 923 </p>
924 <dl>
705 <dt>Returns:</dt> 925 <dt>Returns:</dt>
706 <dd> 926 <dd>
707 binary data 927 binary data
708 </dd> 928 </dd>
709 </dl><dl> 929 </dl>
930 <dl>
710 <dt>Return Type:</dt> 931 <dt>Return Type:</dt>
711 <dd> 932 <dd>
712 bytearray 933 bytearray
713 </dd> 934 </dd>
714 </dl><a NAME="HexEditWidget.dataAt" ID="HexEditWidget.dataAt"></a> 935 </dl>
936 <a NAME="HexEditWidget.dataAt" ID="HexEditWidget.dataAt"></a>
715 <h4>HexEditWidget.dataAt</h4> 937 <h4>HexEditWidget.dataAt</h4>
716 <b>dataAt</b>(<i>pos, count=-1</i>) 938 <b>dataAt</b>(<i>pos, count=-1</i>)
939
717 <p> 940 <p>
718 Public method to get data from a given position. 941 Public method to get data from a given position.
719 </p><dl> 942 </p>
943 <dl>
944
720 <dt><i>pos</i> (int)</dt> 945 <dt><i>pos</i> (int)</dt>
721 <dd> 946 <dd>
722 position to get data from 947 position to get data from
723 </dd><dt><i>count</i> (int)</dt> 948 </dd>
949 <dt><i>count</i> (int)</dt>
724 <dd> 950 <dd>
725 amount of bytes to get 951 amount of bytes to get
726 </dd> 952 </dd>
727 </dl><dl> 953 </dl>
954 <dl>
728 <dt>Returns:</dt> 955 <dt>Returns:</dt>
729 <dd> 956 <dd>
730 requested data 957 requested data
731 </dd> 958 </dd>
732 </dl><dl> 959 </dl>
960 <dl>
733 <dt>Return Type:</dt> 961 <dt>Return Type:</dt>
734 <dd> 962 <dd>
735 bytearray 963 bytearray
736 </dd> 964 </dd>
737 </dl><a NAME="HexEditWidget.deleteByte" ID="HexEditWidget.deleteByte"></a> 965 </dl>
966 <a NAME="HexEditWidget.deleteByte" ID="HexEditWidget.deleteByte"></a>
738 <h4>HexEditWidget.deleteByte</h4> 967 <h4>HexEditWidget.deleteByte</h4>
739 <b>deleteByte</b>(<i></i>) 968 <b>deleteByte</b>(<i></i>)
969
740 <p> 970 <p>
741 Public method to delete the current byte. 971 Public method to delete the current byte.
742 </p><a NAME="HexEditWidget.deleteByteBack" ID="HexEditWidget.deleteByteBack"></a> 972 </p>
973 <a NAME="HexEditWidget.deleteByteBack" ID="HexEditWidget.deleteByteBack"></a>
743 <h4>HexEditWidget.deleteByteBack</h4> 974 <h4>HexEditWidget.deleteByteBack</h4>
744 <b>deleteByteBack</b>(<i></i>) 975 <b>deleteByteBack</b>(<i></i>)
976
745 <p> 977 <p>
746 Public method to delete the previous byte. 978 Public method to delete the previous byte.
747 </p><a NAME="HexEditWidget.deselectAll" ID="HexEditWidget.deselectAll"></a> 979 </p>
980 <a NAME="HexEditWidget.deselectAll" ID="HexEditWidget.deselectAll"></a>
748 <h4>HexEditWidget.deselectAll</h4> 981 <h4>HexEditWidget.deselectAll</h4>
749 <b>deselectAll</b>(<i></i>) 982 <b>deselectAll</b>(<i></i>)
983
750 <p> 984 <p>
751 Public method to deselect all data. 985 Public method to deselect all data.
752 </p><a NAME="HexEditWidget.ensureVisible" ID="HexEditWidget.ensureVisible"></a> 986 </p>
987 <a NAME="HexEditWidget.ensureVisible" ID="HexEditWidget.ensureVisible"></a>
753 <h4>HexEditWidget.ensureVisible</h4> 988 <h4>HexEditWidget.ensureVisible</h4>
754 <b>ensureVisible</b>(<i></i>) 989 <b>ensureVisible</b>(<i></i>)
990
755 <p> 991 <p>
756 Public method to ensure, that the cursor is visible. 992 Public method to ensure, that the cursor is visible.
757 </p><a NAME="HexEditWidget.font" ID="HexEditWidget.font"></a> 993 </p>
994 <a NAME="HexEditWidget.font" ID="HexEditWidget.font"></a>
758 <h4>HexEditWidget.font</h4> 995 <h4>HexEditWidget.font</h4>
759 <b>font</b>(<i></i>) 996 <b>font</b>(<i></i>)
997
760 <p> 998 <p>
761 Public method to get the font used to show the data. 999 Public method to get the font used to show the data.
762 </p><dl> 1000 </p>
1001 <dl>
763 <dt>Returns:</dt> 1002 <dt>Returns:</dt>
764 <dd> 1003 <dd>
765 font used to show the data 1004 font used to show the data
766 </dd> 1005 </dd>
767 </dl><dl> 1006 </dl>
1007 <dl>
768 <dt>Return Type:</dt> 1008 <dt>Return Type:</dt>
769 <dd> 1009 <dd>
770 QFont 1010 QFont
771 </dd> 1011 </dd>
772 </dl><a NAME="HexEditWidget.getSelectionBegin" ID="HexEditWidget.getSelectionBegin"></a> 1012 </dl>
1013 <a NAME="HexEditWidget.getSelectionBegin" ID="HexEditWidget.getSelectionBegin"></a>
773 <h4>HexEditWidget.getSelectionBegin</h4> 1014 <h4>HexEditWidget.getSelectionBegin</h4>
774 <b>getSelectionBegin</b>(<i></i>) 1015 <b>getSelectionBegin</b>(<i></i>)
1016
775 <p> 1017 <p>
776 Public method to get the start of the selection. 1018 Public method to get the start of the selection.
777 </p><dl> 1019 </p>
1020 <dl>
778 <dt>Returns:</dt> 1021 <dt>Returns:</dt>
779 <dd> 1022 <dd>
780 selection start 1023 selection start
781 </dd> 1024 </dd>
782 </dl><dl> 1025 </dl>
1026 <dl>
783 <dt>Return Type:</dt> 1027 <dt>Return Type:</dt>
784 <dd> 1028 <dd>
785 int 1029 int
786 </dd> 1030 </dd>
787 </dl><a NAME="HexEditWidget.getSelectionEnd" ID="HexEditWidget.getSelectionEnd"></a> 1031 </dl>
1032 <a NAME="HexEditWidget.getSelectionEnd" ID="HexEditWidget.getSelectionEnd"></a>
788 <h4>HexEditWidget.getSelectionEnd</h4> 1033 <h4>HexEditWidget.getSelectionEnd</h4>
789 <b>getSelectionEnd</b>(<i></i>) 1034 <b>getSelectionEnd</b>(<i></i>)
1035
790 <p> 1036 <p>
791 Public method to get the end of the selection. 1037 Public method to get the end of the selection.
792 </p><dl> 1038 </p>
1039 <dl>
793 <dt>Returns:</dt> 1040 <dt>Returns:</dt>
794 <dd> 1041 <dd>
795 selection end 1042 selection end
796 </dd> 1043 </dd>
797 </dl><dl> 1044 </dl>
1045 <dl>
798 <dt>Return Type:</dt> 1046 <dt>Return Type:</dt>
799 <dd> 1047 <dd>
800 int 1048 int
801 </dd> 1049 </dd>
802 </dl><a NAME="HexEditWidget.getSelectionLength" ID="HexEditWidget.getSelectionLength"></a> 1050 </dl>
1051 <a NAME="HexEditWidget.getSelectionLength" ID="HexEditWidget.getSelectionLength"></a>
803 <h4>HexEditWidget.getSelectionLength</h4> 1052 <h4>HexEditWidget.getSelectionLength</h4>
804 <b>getSelectionLength</b>(<i></i>) 1053 <b>getSelectionLength</b>(<i></i>)
1054
805 <p> 1055 <p>
806 Public method to get the length of the selection. 1056 Public method to get the length of the selection.
807 </p><dl> 1057 </p>
1058 <dl>
808 <dt>Returns:</dt> 1059 <dt>Returns:</dt>
809 <dd> 1060 <dd>
810 selection length 1061 selection length
811 </dd> 1062 </dd>
812 </dl><dl> 1063 </dl>
1064 <dl>
813 <dt>Return Type:</dt> 1065 <dt>Return Type:</dt>
814 <dd> 1066 <dd>
815 int 1067 int
816 </dd> 1068 </dd>
817 </dl><a NAME="HexEditWidget.goto" ID="HexEditWidget.goto"></a> 1069 </dl>
1070 <a NAME="HexEditWidget.goto" ID="HexEditWidget.goto"></a>
818 <h4>HexEditWidget.goto</h4> 1071 <h4>HexEditWidget.goto</h4>
819 <b>goto</b>(<i>offset, fromCursor=False, backwards=False, extendSelection=False</i>) 1072 <b>goto</b>(<i>offset, fromCursor=False, backwards=False, extendSelection=False</i>)
1073
820 <p> 1074 <p>
821 Public method to move the cursor. 1075 Public method to move the cursor.
822 </p><dl> 1076 </p>
1077 <dl>
1078
823 <dt><i>offset</i> (int)</dt> 1079 <dt><i>offset</i> (int)</dt>
824 <dd> 1080 <dd>
825 offset to move to 1081 offset to move to
826 </dd><dt><i>fromCursor</i> (bool)</dt> 1082 </dd>
1083 <dt><i>fromCursor</i> (bool)</dt>
827 <dd> 1084 <dd>
828 flag indicating a move relative to the current cursor 1085 flag indicating a move relative to the current cursor
829 </dd><dt><i>backwards</i> (bool)</dt> 1086 </dd>
1087 <dt><i>backwards</i> (bool)</dt>
830 <dd> 1088 <dd>
831 flag indicating a backwards move 1089 flag indicating a backwards move
832 </dd><dt><i>extendSelection</i> (bool)</dt> 1090 </dd>
1091 <dt><i>extendSelection</i> (bool)</dt>
833 <dd> 1092 <dd>
834 flag indicating to extend the selection 1093 flag indicating to extend the selection
835 </dd> 1094 </dd>
836 </dl><a NAME="HexEditWidget.hasSelection" ID="HexEditWidget.hasSelection"></a> 1095 </dl>
1096 <a NAME="HexEditWidget.hasSelection" ID="HexEditWidget.hasSelection"></a>
837 <h4>HexEditWidget.hasSelection</h4> 1097 <h4>HexEditWidget.hasSelection</h4>
838 <b>hasSelection</b>(<i></i>) 1098 <b>hasSelection</b>(<i></i>)
1099
839 <p> 1100 <p>
840 Public method to test for a selection. 1101 Public method to test for a selection.
841 </p><dl> 1102 </p>
1103 <dl>
842 <dt>Returns:</dt> 1104 <dt>Returns:</dt>
843 <dd> 1105 <dd>
844 flag indicating the presence of a selection 1106 flag indicating the presence of a selection
845 </dd> 1107 </dd>
846 </dl><dl> 1108 </dl>
1109 <dl>
847 <dt>Return Type:</dt> 1110 <dt>Return Type:</dt>
848 <dd> 1111 <dd>
849 bool 1112 bool
850 </dd> 1113 </dd>
851 </dl><a NAME="HexEditWidget.highlightColors" ID="HexEditWidget.highlightColors"></a> 1114 </dl>
1115 <a NAME="HexEditWidget.highlightColors" ID="HexEditWidget.highlightColors"></a>
852 <h4>HexEditWidget.highlightColors</h4> 1116 <h4>HexEditWidget.highlightColors</h4>
853 <b>highlightColors</b>(<i></i>) 1117 <b>highlightColors</b>(<i></i>)
1118
854 <p> 1119 <p>
855 Public method to get the highlight colors. 1120 Public method to get the highlight colors.
856 </p><dl> 1121 </p>
1122 <dl>
857 <dt>Returns:</dt> 1123 <dt>Returns:</dt>
858 <dd> 1124 <dd>
859 highlight foreground and background colors 1125 highlight foreground and background colors
860 </dd> 1126 </dd>
861 </dl><dl> 1127 </dl>
1128 <dl>
862 <dt>Return Type:</dt> 1129 <dt>Return Type:</dt>
863 <dd> 1130 <dd>
864 tuple of 2 QColor 1131 tuple of 2 QColor
865 </dd> 1132 </dd>
866 </dl><a NAME="HexEditWidget.highlighting" ID="HexEditWidget.highlighting"></a> 1133 </dl>
1134 <a NAME="HexEditWidget.highlighting" ID="HexEditWidget.highlighting"></a>
867 <h4>HexEditWidget.highlighting</h4> 1135 <h4>HexEditWidget.highlighting</h4>
868 <b>highlighting</b>(<i></i>) 1136 <b>highlighting</b>(<i></i>)
1137
869 <p> 1138 <p>
870 Public method to get the highlighting state. 1139 Public method to get the highlighting state.
871 </p><dl> 1140 </p>
1141 <dl>
872 <dt>Returns:</dt> 1142 <dt>Returns:</dt>
873 <dd> 1143 <dd>
874 highlighting state 1144 highlighting state
875 </dd> 1145 </dd>
876 </dl><dl> 1146 </dl>
1147 <dl>
877 <dt>Return Type:</dt> 1148 <dt>Return Type:</dt>
878 <dd> 1149 <dd>
879 bool 1150 bool
880 </dd> 1151 </dd>
881 </dl><a NAME="HexEditWidget.indexOf" ID="HexEditWidget.indexOf"></a> 1152 </dl>
1153 <a NAME="HexEditWidget.indexOf" ID="HexEditWidget.indexOf"></a>
882 <h4>HexEditWidget.indexOf</h4> 1154 <h4>HexEditWidget.indexOf</h4>
883 <b>indexOf</b>(<i>byteArray, start</i>) 1155 <b>indexOf</b>(<i>byteArray, start</i>)
1156
884 <p> 1157 <p>
885 Public method to find the first occurrence of a byte array in our data. 1158 Public method to find the first occurrence of a byte array in our data.
886 </p><dl> 1159 </p>
1160 <dl>
1161
887 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> 1162 <dt><i>byteArray</i> (bytearray or QByteArray)</dt>
888 <dd> 1163 <dd>
889 data to search for 1164 data to search for
890 </dd><dt><i>start</i> (int)</dt> 1165 </dd>
1166 <dt><i>start</i> (int)</dt>
891 <dd> 1167 <dd>
892 start position of the search 1168 start position of the search
893 </dd> 1169 </dd>
894 </dl><dl> 1170 </dl>
1171 <dl>
895 <dt>Returns:</dt> 1172 <dt>Returns:</dt>
896 <dd> 1173 <dd>
897 position of match (or -1 if not found) 1174 position of match (or -1 if not found)
898 </dd> 1175 </dd>
899 </dl><dl> 1176 </dl>
1177 <dl>
900 <dt>Return Type:</dt> 1178 <dt>Return Type:</dt>
901 <dd> 1179 <dd>
902 int 1180 int
903 </dd> 1181 </dd>
904 </dl><a NAME="HexEditWidget.insert" ID="HexEditWidget.insert"></a> 1182 </dl>
1183 <a NAME="HexEditWidget.insert" ID="HexEditWidget.insert"></a>
905 <h4>HexEditWidget.insert</h4> 1184 <h4>HexEditWidget.insert</h4>
906 <b>insert</b>(<i>pos, ch</i>) 1185 <b>insert</b>(<i>pos, ch</i>)
1186
907 <p> 1187 <p>
908 Public method to insert a byte. 1188 Public method to insert a byte.
909 </p><dl> 1189 </p>
1190 <dl>
1191
910 <dt><i>pos</i> (int)</dt> 1192 <dt><i>pos</i> (int)</dt>
911 <dd> 1193 <dd>
912 position to insert the byte at 1194 position to insert the byte at
913 </dd><dt><i>ch</i> (int in the range 0x00 to 0xff)</dt> 1195 </dd>
1196 <dt><i>ch</i> (int in the range 0x00 to 0xff)</dt>
914 <dd> 1197 <dd>
915 byte to insert 1198 byte to insert
916 </dd> 1199 </dd>
917 </dl><a NAME="HexEditWidget.insertByteArray" ID="HexEditWidget.insertByteArray"></a> 1200 </dl>
1201 <a NAME="HexEditWidget.insertByteArray" ID="HexEditWidget.insertByteArray"></a>
918 <h4>HexEditWidget.insertByteArray</h4> 1202 <h4>HexEditWidget.insertByteArray</h4>
919 <b>insertByteArray</b>(<i>pos, byteArray</i>) 1203 <b>insertByteArray</b>(<i>pos, byteArray</i>)
1204
920 <p> 1205 <p>
921 Public method to insert bytes. 1206 Public method to insert bytes.
922 </p><dl> 1207 </p>
1208 <dl>
1209
923 <dt><i>pos</i> (int)</dt> 1210 <dt><i>pos</i> (int)</dt>
924 <dd> 1211 <dd>
925 position to insert the bytes at 1212 position to insert the bytes at
926 </dd><dt><i>byteArray</i> (bytearray or QByteArray)</dt> 1213 </dd>
1214 <dt><i>byteArray</i> (bytearray or QByteArray)</dt>
927 <dd> 1215 <dd>
928 bytes to be insert 1216 bytes to be insert
929 </dd> 1217 </dd>
930 </dl><a NAME="HexEditWidget.isModified" ID="HexEditWidget.isModified"></a> 1218 </dl>
1219 <a NAME="HexEditWidget.isModified" ID="HexEditWidget.isModified"></a>
931 <h4>HexEditWidget.isModified</h4> 1220 <h4>HexEditWidget.isModified</h4>
932 <b>isModified</b>(<i></i>) 1221 <b>isModified</b>(<i></i>)
1222
933 <p> 1223 <p>
934 Public method to check for any modification. 1224 Public method to check for any modification.
935 </p><dl> 1225 </p>
1226 <dl>
936 <dt>Returns:</dt> 1227 <dt>Returns:</dt>
937 <dd> 1228 <dd>
938 flag indicating a modified state 1229 flag indicating a modified state
939 </dd> 1230 </dd>
940 </dl><dl> 1231 </dl>
1232 <dl>
941 <dt>Return Type:</dt> 1233 <dt>Return Type:</dt>
942 <dd> 1234 <dd>
943 bool 1235 bool
944 </dd> 1236 </dd>
945 </dl><a NAME="HexEditWidget.isReadOnly" ID="HexEditWidget.isReadOnly"></a> 1237 </dl>
1238 <a NAME="HexEditWidget.isReadOnly" ID="HexEditWidget.isReadOnly"></a>
946 <h4>HexEditWidget.isReadOnly</h4> 1239 <h4>HexEditWidget.isReadOnly</h4>
947 <b>isReadOnly</b>(<i></i>) 1240 <b>isReadOnly</b>(<i></i>)
1241
948 <p> 1242 <p>
949 Public method to test the read only state. 1243 Public method to test the read only state.
950 </p><dl> 1244 </p>
1245 <dl>
951 <dt>Returns:</dt> 1246 <dt>Returns:</dt>
952 <dd> 1247 <dd>
953 flag indicating the read only state 1248 flag indicating the read only state
954 </dd> 1249 </dd>
955 </dl><dl> 1250 </dl>
1251 <dl>
956 <dt>Return Type:</dt> 1252 <dt>Return Type:</dt>
957 <dd> 1253 <dd>
958 bool 1254 bool
959 </dd> 1255 </dd>
960 </dl><a NAME="HexEditWidget.keyPressEvent" ID="HexEditWidget.keyPressEvent"></a> 1256 </dl>
1257 <a NAME="HexEditWidget.keyPressEvent" ID="HexEditWidget.keyPressEvent"></a>
961 <h4>HexEditWidget.keyPressEvent</h4> 1258 <h4>HexEditWidget.keyPressEvent</h4>
962 <b>keyPressEvent</b>(<i>evt</i>) 1259 <b>keyPressEvent</b>(<i>evt</i>)
1260
963 <p> 1261 <p>
964 Protected method to handle key press events. 1262 Protected method to handle key press events.
965 </p><dl> 1263 </p>
1264 <dl>
1265
966 <dt><i>evt</i> (QKeyEvent)</dt> 1266 <dt><i>evt</i> (QKeyEvent)</dt>
967 <dd> 1267 <dd>
968 reference to the key event 1268 reference to the key event
969 </dd> 1269 </dd>
970 </dl><a NAME="HexEditWidget.lastIndexOf" ID="HexEditWidget.lastIndexOf"></a> 1270 </dl>
1271 <a NAME="HexEditWidget.lastIndexOf" ID="HexEditWidget.lastIndexOf"></a>
971 <h4>HexEditWidget.lastIndexOf</h4> 1272 <h4>HexEditWidget.lastIndexOf</h4>
972 <b>lastIndexOf</b>(<i>byteArray, start</i>) 1273 <b>lastIndexOf</b>(<i>byteArray, start</i>)
1274
973 <p> 1275 <p>
974 Public method to find the last occurrence of a byte array in our data. 1276 Public method to find the last occurrence of a byte array in our data.
975 </p><dl> 1277 </p>
1278 <dl>
1279
976 <dt><i>byteArray</i> (bytearray or QByteArray)</dt> 1280 <dt><i>byteArray</i> (bytearray or QByteArray)</dt>
977 <dd> 1281 <dd>
978 data to search for 1282 data to search for
979 </dd><dt><i>start</i> (int)</dt> 1283 </dd>
1284 <dt><i>start</i> (int)</dt>
980 <dd> 1285 <dd>
981 start position of the search 1286 start position of the search
982 </dd> 1287 </dd>
983 </dl><dl> 1288 </dl>
1289 <dl>
984 <dt>Returns:</dt> 1290 <dt>Returns:</dt>
985 <dd> 1291 <dd>
986 position of match (or -1 if not found) 1292 position of match (or -1 if not found)
987 </dd> 1293 </dd>
988 </dl><dl> 1294 </dl>
1295 <dl>
989 <dt>Return Type:</dt> 1296 <dt>Return Type:</dt>
990 <dd> 1297 <dd>
991 int 1298 int
992 </dd> 1299 </dd>
993 </dl><a NAME="HexEditWidget.mouseMoveEvent" ID="HexEditWidget.mouseMoveEvent"></a> 1300 </dl>
1301 <a NAME="HexEditWidget.mouseMoveEvent" ID="HexEditWidget.mouseMoveEvent"></a>
994 <h4>HexEditWidget.mouseMoveEvent</h4> 1302 <h4>HexEditWidget.mouseMoveEvent</h4>
995 <b>mouseMoveEvent</b>(<i>evt</i>) 1303 <b>mouseMoveEvent</b>(<i>evt</i>)
1304
996 <p> 1305 <p>
997 Protected method to handle mouse moves. 1306 Protected method to handle mouse moves.
998 </p><dl> 1307 </p>
1308 <dl>
1309
999 <dt><i>evt</i> (QMouseEvent)</dt> 1310 <dt><i>evt</i> (QMouseEvent)</dt>
1000 <dd> 1311 <dd>
1001 reference to the mouse event 1312 reference to the mouse event
1002 </dd> 1313 </dd>
1003 </dl><a NAME="HexEditWidget.mousePressEvent" ID="HexEditWidget.mousePressEvent"></a> 1314 </dl>
1315 <a NAME="HexEditWidget.mousePressEvent" ID="HexEditWidget.mousePressEvent"></a>
1004 <h4>HexEditWidget.mousePressEvent</h4> 1316 <h4>HexEditWidget.mousePressEvent</h4>
1005 <b>mousePressEvent</b>(<i>evt</i>) 1317 <b>mousePressEvent</b>(<i>evt</i>)
1318
1006 <p> 1319 <p>
1007 Protected method to handle mouse button presses. 1320 Protected method to handle mouse button presses.
1008 </p><dl> 1321 </p>
1322 <dl>
1323
1009 <dt><i>evt</i> (QMouseEvent)</dt> 1324 <dt><i>evt</i> (QMouseEvent)</dt>
1010 <dd> 1325 <dd>
1011 reference to the mouse event 1326 reference to the mouse event
1012 </dd> 1327 </dd>
1013 </dl><a NAME="HexEditWidget.moveCursorToEndOfDocument" ID="HexEditWidget.moveCursorToEndOfDocument"></a> 1328 </dl>
1329 <a NAME="HexEditWidget.moveCursorToEndOfDocument" ID="HexEditWidget.moveCursorToEndOfDocument"></a>
1014 <h4>HexEditWidget.moveCursorToEndOfDocument</h4> 1330 <h4>HexEditWidget.moveCursorToEndOfDocument</h4>
1015 <b>moveCursorToEndOfDocument</b>(<i></i>) 1331 <b>moveCursorToEndOfDocument</b>(<i></i>)
1332
1016 <p> 1333 <p>
1017 Public method to move the cursor to the end of the data. 1334 Public method to move the cursor to the end of the data.
1018 </p><a NAME="HexEditWidget.moveCursorToEndOfLine" ID="HexEditWidget.moveCursorToEndOfLine"></a> 1335 </p>
1336 <a NAME="HexEditWidget.moveCursorToEndOfLine" ID="HexEditWidget.moveCursorToEndOfLine"></a>
1019 <h4>HexEditWidget.moveCursorToEndOfLine</h4> 1337 <h4>HexEditWidget.moveCursorToEndOfLine</h4>
1020 <b>moveCursorToEndOfLine</b>(<i></i>) 1338 <b>moveCursorToEndOfLine</b>(<i></i>)
1339
1021 <p> 1340 <p>
1022 Public method to move the cursor to the end of the current line. 1341 Public method to move the cursor to the end of the current line.
1023 </p><a NAME="HexEditWidget.moveCursorToNextChar" ID="HexEditWidget.moveCursorToNextChar"></a> 1342 </p>
1343 <a NAME="HexEditWidget.moveCursorToNextChar" ID="HexEditWidget.moveCursorToNextChar"></a>
1024 <h4>HexEditWidget.moveCursorToNextChar</h4> 1344 <h4>HexEditWidget.moveCursorToNextChar</h4>
1025 <b>moveCursorToNextChar</b>(<i></i>) 1345 <b>moveCursorToNextChar</b>(<i></i>)
1346
1026 <p> 1347 <p>
1027 Public method to move the cursor to the next byte. 1348 Public method to move the cursor to the next byte.
1028 </p><a NAME="HexEditWidget.moveCursorToNextLine" ID="HexEditWidget.moveCursorToNextLine"></a> 1349 </p>
1350 <a NAME="HexEditWidget.moveCursorToNextLine" ID="HexEditWidget.moveCursorToNextLine"></a>
1029 <h4>HexEditWidget.moveCursorToNextLine</h4> 1351 <h4>HexEditWidget.moveCursorToNextLine</h4>
1030 <b>moveCursorToNextLine</b>(<i></i>) 1352 <b>moveCursorToNextLine</b>(<i></i>)
1353
1031 <p> 1354 <p>
1032 Public method to move the cursor to the next line. 1355 Public method to move the cursor to the next line.
1033 </p><a NAME="HexEditWidget.moveCursorToNextPage" ID="HexEditWidget.moveCursorToNextPage"></a> 1356 </p>
1357 <a NAME="HexEditWidget.moveCursorToNextPage" ID="HexEditWidget.moveCursorToNextPage"></a>
1034 <h4>HexEditWidget.moveCursorToNextPage</h4> 1358 <h4>HexEditWidget.moveCursorToNextPage</h4>
1035 <b>moveCursorToNextPage</b>(<i></i>) 1359 <b>moveCursorToNextPage</b>(<i></i>)
1360
1036 <p> 1361 <p>
1037 Public method to move the cursor to the next page. 1362 Public method to move the cursor to the next page.
1038 </p><a NAME="HexEditWidget.moveCursorToPreviousChar" ID="HexEditWidget.moveCursorToPreviousChar"></a> 1363 </p>
1364 <a NAME="HexEditWidget.moveCursorToPreviousChar" ID="HexEditWidget.moveCursorToPreviousChar"></a>
1039 <h4>HexEditWidget.moveCursorToPreviousChar</h4> 1365 <h4>HexEditWidget.moveCursorToPreviousChar</h4>
1040 <b>moveCursorToPreviousChar</b>(<i></i>) 1366 <b>moveCursorToPreviousChar</b>(<i></i>)
1367
1041 <p> 1368 <p>
1042 Public method to move the cursor to the previous byte. 1369 Public method to move the cursor to the previous byte.
1043 </p><a NAME="HexEditWidget.moveCursorToPreviousLine" ID="HexEditWidget.moveCursorToPreviousLine"></a> 1370 </p>
1371 <a NAME="HexEditWidget.moveCursorToPreviousLine" ID="HexEditWidget.moveCursorToPreviousLine"></a>
1044 <h4>HexEditWidget.moveCursorToPreviousLine</h4> 1372 <h4>HexEditWidget.moveCursorToPreviousLine</h4>
1045 <b>moveCursorToPreviousLine</b>(<i></i>) 1373 <b>moveCursorToPreviousLine</b>(<i></i>)
1374
1046 <p> 1375 <p>
1047 Public method to move the cursor to the previous line. 1376 Public method to move the cursor to the previous line.
1048 </p><a NAME="HexEditWidget.moveCursorToPreviousPage" ID="HexEditWidget.moveCursorToPreviousPage"></a> 1377 </p>
1378 <a NAME="HexEditWidget.moveCursorToPreviousPage" ID="HexEditWidget.moveCursorToPreviousPage"></a>
1049 <h4>HexEditWidget.moveCursorToPreviousPage</h4> 1379 <h4>HexEditWidget.moveCursorToPreviousPage</h4>
1050 <b>moveCursorToPreviousPage</b>(<i></i>) 1380 <b>moveCursorToPreviousPage</b>(<i></i>)
1381
1051 <p> 1382 <p>
1052 Public method to move the cursor to the previous page. 1383 Public method to move the cursor to the previous page.
1053 </p><a NAME="HexEditWidget.moveCursorToStartOfDocument" ID="HexEditWidget.moveCursorToStartOfDocument"></a> 1384 </p>
1385 <a NAME="HexEditWidget.moveCursorToStartOfDocument" ID="HexEditWidget.moveCursorToStartOfDocument"></a>
1054 <h4>HexEditWidget.moveCursorToStartOfDocument</h4> 1386 <h4>HexEditWidget.moveCursorToStartOfDocument</h4>
1055 <b>moveCursorToStartOfDocument</b>(<i></i>) 1387 <b>moveCursorToStartOfDocument</b>(<i></i>)
1388
1056 <p> 1389 <p>
1057 Public method to move the cursor to the start of the data. 1390 Public method to move the cursor to the start of the data.
1058 </p><a NAME="HexEditWidget.moveCursorToStartOfLine" ID="HexEditWidget.moveCursorToStartOfLine"></a> 1391 </p>
1392 <a NAME="HexEditWidget.moveCursorToStartOfLine" ID="HexEditWidget.moveCursorToStartOfLine"></a>
1059 <h4>HexEditWidget.moveCursorToStartOfLine</h4> 1393 <h4>HexEditWidget.moveCursorToStartOfLine</h4>
1060 <b>moveCursorToStartOfLine</b>(<i></i>) 1394 <b>moveCursorToStartOfLine</b>(<i></i>)
1395
1061 <p> 1396 <p>
1062 Public method to move the cursor to the beginning of the current line. 1397 Public method to move the cursor to the beginning of the current line.
1063 </p><a NAME="HexEditWidget.overwriteMode" ID="HexEditWidget.overwriteMode"></a> 1398 </p>
1399 <a NAME="HexEditWidget.overwriteMode" ID="HexEditWidget.overwriteMode"></a>
1064 <h4>HexEditWidget.overwriteMode</h4> 1400 <h4>HexEditWidget.overwriteMode</h4>
1065 <b>overwriteMode</b>(<i></i>) 1401 <b>overwriteMode</b>(<i></i>)
1402
1066 <p> 1403 <p>
1067 Public method to get the overwrite mode. 1404 Public method to get the overwrite mode.
1068 </p><dl> 1405 </p>
1406 <dl>
1069 <dt>Returns:</dt> 1407 <dt>Returns:</dt>
1070 <dd> 1408 <dd>
1071 overwrite mode 1409 overwrite mode
1072 </dd> 1410 </dd>
1073 </dl><dl> 1411 </dl>
1412 <dl>
1074 <dt>Return Type:</dt> 1413 <dt>Return Type:</dt>
1075 <dd> 1414 <dd>
1076 bool 1415 bool
1077 </dd> 1416 </dd>
1078 </dl><a NAME="HexEditWidget.paintEvent" ID="HexEditWidget.paintEvent"></a> 1417 </dl>
1418 <a NAME="HexEditWidget.paintEvent" ID="HexEditWidget.paintEvent"></a>
1079 <h4>HexEditWidget.paintEvent</h4> 1419 <h4>HexEditWidget.paintEvent</h4>
1080 <b>paintEvent</b>(<i>evt</i>) 1420 <b>paintEvent</b>(<i>evt</i>)
1421
1081 <p> 1422 <p>
1082 Protected method to handle paint events. 1423 Protected method to handle paint events.
1083 </p><dl> 1424 </p>
1425 <dl>
1426
1084 <dt><i>evt</i> (QPaintEvent)</dt> 1427 <dt><i>evt</i> (QPaintEvent)</dt>
1085 <dd> 1428 <dd>
1086 reference to the paint event 1429 reference to the paint event
1087 </dd> 1430 </dd>
1088 </dl><a NAME="HexEditWidget.paste" ID="HexEditWidget.paste"></a> 1431 </dl>
1432 <a NAME="HexEditWidget.paste" ID="HexEditWidget.paste"></a>
1089 <h4>HexEditWidget.paste</h4> 1433 <h4>HexEditWidget.paste</h4>
1090 <b>paste</b>(<i></i>) 1434 <b>paste</b>(<i></i>)
1435
1091 <p> 1436 <p>
1092 Public method to paste bytes from the clipboard. 1437 Public method to paste bytes from the clipboard.
1093 </p><a NAME="HexEditWidget.redo" ID="HexEditWidget.redo"></a> 1438 </p>
1439 <a NAME="HexEditWidget.redo" ID="HexEditWidget.redo"></a>
1094 <h4>HexEditWidget.redo</h4> 1440 <h4>HexEditWidget.redo</h4>
1095 <b>redo</b>(<i></i>) 1441 <b>redo</b>(<i></i>)
1442
1096 <p> 1443 <p>
1097 Public slot to redo the last operation. 1444 Public slot to redo the last operation.
1098 </p><a NAME="HexEditWidget.remove" ID="HexEditWidget.remove"></a> 1445 </p>
1446 <a NAME="HexEditWidget.remove" ID="HexEditWidget.remove"></a>
1099 <h4>HexEditWidget.remove</h4> 1447 <h4>HexEditWidget.remove</h4>
1100 <b>remove</b>(<i>pos, length=1</i>) 1448 <b>remove</b>(<i>pos, length=1</i>)
1449
1101 <p> 1450 <p>
1102 Public method to remove bytes. 1451 Public method to remove bytes.
1103 </p><dl> 1452 </p>
1453 <dl>
1454
1104 <dt><i>pos</i> (int)</dt> 1455 <dt><i>pos</i> (int)</dt>
1105 <dd> 1456 <dd>
1106 position to remove bytes from 1457 position to remove bytes from
1107 </dd><dt><i>length</i> (int)</dt> 1458 </dd>
1459 <dt><i>length</i> (int)</dt>
1108 <dd> 1460 <dd>
1109 amount of bytes to remove 1461 amount of bytes to remove
1110 </dd> 1462 </dd>
1111 </dl><a NAME="HexEditWidget.replace" ID="HexEditWidget.replace"></a> 1463 </dl>
1464 <a NAME="HexEditWidget.replace" ID="HexEditWidget.replace"></a>
1112 <h4>HexEditWidget.replace</h4> 1465 <h4>HexEditWidget.replace</h4>
1113 <b>replace</b>(<i>pos, ch</i>) 1466 <b>replace</b>(<i>pos, ch</i>)
1467
1114 <p> 1468 <p>
1115 Public method to replace a byte. 1469 Public method to replace a byte.
1116 </p><dl> 1470 </p>
1471 <dl>
1472
1117 <dt><i>pos</i> (int)</dt> 1473 <dt><i>pos</i> (int)</dt>
1118 <dd> 1474 <dd>
1119 position to replace the byte at 1475 position to replace the byte at
1120 </dd><dt><i>ch</i> (int in the range 0x00 to 0xff)</dt> 1476 </dd>
1477 <dt><i>ch</i> (int in the range 0x00 to 0xff)</dt>
1121 <dd> 1478 <dd>
1122 byte to replace with 1479 byte to replace with
1123 </dd> 1480 </dd>
1124 </dl><a NAME="HexEditWidget.replaceByteArray" ID="HexEditWidget.replaceByteArray"></a> 1481 </dl>
1482 <a NAME="HexEditWidget.replaceByteArray" ID="HexEditWidget.replaceByteArray"></a>
1125 <h4>HexEditWidget.replaceByteArray</h4> 1483 <h4>HexEditWidget.replaceByteArray</h4>
1126 <b>replaceByteArray</b>(<i>pos, length, byteArray</i>) 1484 <b>replaceByteArray</b>(<i>pos, length, byteArray</i>)
1485
1127 <p> 1486 <p>
1128 Public method to replace bytes. 1487 Public method to replace bytes.
1129 </p><dl> 1488 </p>
1489 <dl>
1490
1130 <dt><i>pos</i> (int)</dt> 1491 <dt><i>pos</i> (int)</dt>
1131 <dd> 1492 <dd>
1132 position to replace the bytes at 1493 position to replace the bytes at
1133 </dd><dt><i>length</i> (int)</dt> 1494 </dd>
1495 <dt><i>length</i> (int)</dt>
1134 <dd> 1496 <dd>
1135 amount of bytes to replace 1497 amount of bytes to replace
1136 </dd><dt><i>byteArray</i> (bytearray or QByteArray)</dt> 1498 </dd>
1499 <dt><i>byteArray</i> (bytearray or QByteArray)</dt>
1137 <dd> 1500 <dd>
1138 bytes to replace with 1501 bytes to replace with
1139 </dd> 1502 </dd>
1140 </dl><a NAME="HexEditWidget.resizeEvent" ID="HexEditWidget.resizeEvent"></a> 1503 </dl>
1504 <a NAME="HexEditWidget.resizeEvent" ID="HexEditWidget.resizeEvent"></a>
1141 <h4>HexEditWidget.resizeEvent</h4> 1505 <h4>HexEditWidget.resizeEvent</h4>
1142 <b>resizeEvent</b>(<i>evt</i>) 1506 <b>resizeEvent</b>(<i>evt</i>)
1507
1143 <p> 1508 <p>
1144 Protected method to handle resize events. 1509 Protected method to handle resize events.
1145 </p><dl> 1510 </p>
1511 <dl>
1512
1146 <dt><i>evt</i> (QResizeEvent)</dt> 1513 <dt><i>evt</i> (QResizeEvent)</dt>
1147 <dd> 1514 <dd>
1148 reference to the resize event 1515 reference to the resize event
1149 </dd> 1516 </dd>
1150 </dl><a NAME="HexEditWidget.revertToUnmodified" ID="HexEditWidget.revertToUnmodified"></a> 1517 </dl>
1518 <a NAME="HexEditWidget.revertToUnmodified" ID="HexEditWidget.revertToUnmodified"></a>
1151 <h4>HexEditWidget.revertToUnmodified</h4> 1519 <h4>HexEditWidget.revertToUnmodified</h4>
1152 <b>revertToUnmodified</b>(<i></i>) 1520 <b>revertToUnmodified</b>(<i></i>)
1521
1153 <p> 1522 <p>
1154 Public slot to revert all changes. 1523 Public slot to revert all changes.
1155 </p><a NAME="HexEditWidget.selectAll" ID="HexEditWidget.selectAll"></a> 1524 </p>
1525 <a NAME="HexEditWidget.selectAll" ID="HexEditWidget.selectAll"></a>
1156 <h4>HexEditWidget.selectAll</h4> 1526 <h4>HexEditWidget.selectAll</h4>
1157 <b>selectAll</b>(<i></i>) 1527 <b>selectAll</b>(<i></i>)
1528
1158 <p> 1529 <p>
1159 Public method to select all data. 1530 Public method to select all data.
1160 </p><a NAME="HexEditWidget.selectEndOfDocument" ID="HexEditWidget.selectEndOfDocument"></a> 1531 </p>
1532 <a NAME="HexEditWidget.selectEndOfDocument" ID="HexEditWidget.selectEndOfDocument"></a>
1161 <h4>HexEditWidget.selectEndOfDocument</h4> 1533 <h4>HexEditWidget.selectEndOfDocument</h4>
1162 <b>selectEndOfDocument</b>(<i></i>) 1534 <b>selectEndOfDocument</b>(<i></i>)
1535
1163 <p> 1536 <p>
1164 Public method to extend the selection to the end of the data. 1537 Public method to extend the selection to the end of the data.
1165 </p><a NAME="HexEditWidget.selectNextChar" ID="HexEditWidget.selectNextChar"></a> 1538 </p>
1539 <a NAME="HexEditWidget.selectNextChar" ID="HexEditWidget.selectNextChar"></a>
1166 <h4>HexEditWidget.selectNextChar</h4> 1540 <h4>HexEditWidget.selectNextChar</h4>
1167 <b>selectNextChar</b>(<i></i>) 1541 <b>selectNextChar</b>(<i></i>)
1542
1168 <p> 1543 <p>
1169 Public method to extend the selection by one byte right. 1544 Public method to extend the selection by one byte right.
1170 </p><a NAME="HexEditWidget.selectNextLine" ID="HexEditWidget.selectNextLine"></a> 1545 </p>
1546 <a NAME="HexEditWidget.selectNextLine" ID="HexEditWidget.selectNextLine"></a>
1171 <h4>HexEditWidget.selectNextLine</h4> 1547 <h4>HexEditWidget.selectNextLine</h4>
1172 <b>selectNextLine</b>(<i></i>) 1548 <b>selectNextLine</b>(<i></i>)
1549
1173 <p> 1550 <p>
1174 Public method to extend the selection one line down. 1551 Public method to extend the selection one line down.
1175 </p><a NAME="HexEditWidget.selectNextPage" ID="HexEditWidget.selectNextPage"></a> 1552 </p>
1553 <a NAME="HexEditWidget.selectNextPage" ID="HexEditWidget.selectNextPage"></a>
1176 <h4>HexEditWidget.selectNextPage</h4> 1554 <h4>HexEditWidget.selectNextPage</h4>
1177 <b>selectNextPage</b>(<i></i>) 1555 <b>selectNextPage</b>(<i></i>)
1556
1178 <p> 1557 <p>
1179 Public method to extend the selection one page down. 1558 Public method to extend the selection one page down.
1180 </p><a NAME="HexEditWidget.selectPreviousChar" ID="HexEditWidget.selectPreviousChar"></a> 1559 </p>
1560 <a NAME="HexEditWidget.selectPreviousChar" ID="HexEditWidget.selectPreviousChar"></a>
1181 <h4>HexEditWidget.selectPreviousChar</h4> 1561 <h4>HexEditWidget.selectPreviousChar</h4>
1182 <b>selectPreviousChar</b>(<i></i>) 1562 <b>selectPreviousChar</b>(<i></i>)
1563
1183 <p> 1564 <p>
1184 Public method to extend the selection by one byte left. 1565 Public method to extend the selection by one byte left.
1185 </p><a NAME="HexEditWidget.selectPreviousLine" ID="HexEditWidget.selectPreviousLine"></a> 1566 </p>
1567 <a NAME="HexEditWidget.selectPreviousLine" ID="HexEditWidget.selectPreviousLine"></a>
1186 <h4>HexEditWidget.selectPreviousLine</h4> 1568 <h4>HexEditWidget.selectPreviousLine</h4>
1187 <b>selectPreviousLine</b>(<i></i>) 1569 <b>selectPreviousLine</b>(<i></i>)
1570
1188 <p> 1571 <p>
1189 Public method to extend the selection one line up. 1572 Public method to extend the selection one line up.
1190 </p><a NAME="HexEditWidget.selectPreviousPage" ID="HexEditWidget.selectPreviousPage"></a> 1573 </p>
1574 <a NAME="HexEditWidget.selectPreviousPage" ID="HexEditWidget.selectPreviousPage"></a>
1191 <h4>HexEditWidget.selectPreviousPage</h4> 1575 <h4>HexEditWidget.selectPreviousPage</h4>
1192 <b>selectPreviousPage</b>(<i></i>) 1576 <b>selectPreviousPage</b>(<i></i>)
1577
1193 <p> 1578 <p>
1194 Public method to extend the selection one page up. 1579 Public method to extend the selection one page up.
1195 </p><a NAME="HexEditWidget.selectStartOfDocument" ID="HexEditWidget.selectStartOfDocument"></a> 1580 </p>
1581 <a NAME="HexEditWidget.selectStartOfDocument" ID="HexEditWidget.selectStartOfDocument"></a>
1196 <h4>HexEditWidget.selectStartOfDocument</h4> 1582 <h4>HexEditWidget.selectStartOfDocument</h4>
1197 <b>selectStartOfDocument</b>(<i></i>) 1583 <b>selectStartOfDocument</b>(<i></i>)
1584
1198 <p> 1585 <p>
1199 Public method to extend the selection to the start of the data. 1586 Public method to extend the selection to the start of the data.
1200 </p><a NAME="HexEditWidget.selectToEndOfLine" ID="HexEditWidget.selectToEndOfLine"></a> 1587 </p>
1588 <a NAME="HexEditWidget.selectToEndOfLine" ID="HexEditWidget.selectToEndOfLine"></a>
1201 <h4>HexEditWidget.selectToEndOfLine</h4> 1589 <h4>HexEditWidget.selectToEndOfLine</h4>
1202 <b>selectToEndOfLine</b>(<i></i>) 1590 <b>selectToEndOfLine</b>(<i></i>)
1591
1203 <p> 1592 <p>
1204 Public method to extend the selection to the end of line. 1593 Public method to extend the selection to the end of line.
1205 </p><a NAME="HexEditWidget.selectToStartOfLine" ID="HexEditWidget.selectToStartOfLine"></a> 1594 </p>
1595 <a NAME="HexEditWidget.selectToStartOfLine" ID="HexEditWidget.selectToStartOfLine"></a>
1206 <h4>HexEditWidget.selectToStartOfLine</h4> 1596 <h4>HexEditWidget.selectToStartOfLine</h4>
1207 <b>selectToStartOfLine</b>(<i></i>) 1597 <b>selectToStartOfLine</b>(<i></i>)
1598
1208 <p> 1599 <p>
1209 Public method to extend the selection to the start of line. 1600 Public method to extend the selection to the start of line.
1210 </p><a NAME="HexEditWidget.selectionColors" ID="HexEditWidget.selectionColors"></a> 1601 </p>
1602 <a NAME="HexEditWidget.selectionColors" ID="HexEditWidget.selectionColors"></a>
1211 <h4>HexEditWidget.selectionColors</h4> 1603 <h4>HexEditWidget.selectionColors</h4>
1212 <b>selectionColors</b>(<i></i>) 1604 <b>selectionColors</b>(<i></i>)
1605
1213 <p> 1606 <p>
1214 Public method to get the selection colors. 1607 Public method to get the selection colors.
1215 </p><dl> 1608 </p>
1609 <dl>
1216 <dt>Returns:</dt> 1610 <dt>Returns:</dt>
1217 <dd> 1611 <dd>
1218 selection foreground and background colors 1612 selection foreground and background colors
1219 </dd> 1613 </dd>
1220 </dl><dl> 1614 </dl>
1615 <dl>
1221 <dt>Return Type:</dt> 1616 <dt>Return Type:</dt>
1222 <dd> 1617 <dd>
1223 tuple of 2 QColor 1618 tuple of 2 QColor
1224 </dd> 1619 </dd>
1225 </dl><a NAME="HexEditWidget.selectionToHexString" ID="HexEditWidget.selectionToHexString"></a> 1620 </dl>
1621 <a NAME="HexEditWidget.selectionToHexString" ID="HexEditWidget.selectionToHexString"></a>
1226 <h4>HexEditWidget.selectionToHexString</h4> 1622 <h4>HexEditWidget.selectionToHexString</h4>
1227 <b>selectionToHexString</b>(<i></i>) 1623 <b>selectionToHexString</b>(<i></i>)
1624
1228 <p> 1625 <p>
1229 Public method to get a hexadecimal representation of the selection. 1626 Public method to get a hexadecimal representation of the selection.
1230 </p><dl> 1627 </p>
1628 <dl>
1231 <dt>Returns:</dt> 1629 <dt>Returns:</dt>
1232 <dd> 1630 <dd>
1233 hexadecimal representation of the selection 1631 hexadecimal representation of the selection
1234 </dd> 1632 </dd>
1235 </dl><dl> 1633 </dl>
1634 <dl>
1236 <dt>Return Type:</dt> 1635 <dt>Return Type:</dt>
1237 <dd> 1636 <dd>
1238 str 1637 str
1239 </dd> 1638 </dd>
1240 </dl><a NAME="HexEditWidget.selectionToReadableString" ID="HexEditWidget.selectionToReadableString"></a> 1639 </dl>
1640 <a NAME="HexEditWidget.selectionToReadableString" ID="HexEditWidget.selectionToReadableString"></a>
1241 <h4>HexEditWidget.selectionToReadableString</h4> 1641 <h4>HexEditWidget.selectionToReadableString</h4>
1242 <b>selectionToReadableString</b>(<i></i>) 1642 <b>selectionToReadableString</b>(<i></i>)
1643
1243 <p> 1644 <p>
1244 Public method to get a formatted representation of the selection. 1645 Public method to get a formatted representation of the selection.
1245 </p><dl> 1646 </p>
1647 <dl>
1246 <dt>Returns:</dt> 1648 <dt>Returns:</dt>
1247 <dd> 1649 <dd>
1248 formatted representation of the selection 1650 formatted representation of the selection
1249 </dd> 1651 </dd>
1250 </dl><dl> 1652 </dl>
1653 <dl>
1251 <dt>Return Type:</dt> 1654 <dt>Return Type:</dt>
1252 <dd> 1655 <dd>
1253 str 1656 str
1254 </dd> 1657 </dd>
1255 </dl><a NAME="HexEditWidget.setAddressArea" ID="HexEditWidget.setAddressArea"></a> 1658 </dl>
1659 <a NAME="HexEditWidget.setAddressArea" ID="HexEditWidget.setAddressArea"></a>
1256 <h4>HexEditWidget.setAddressArea</h4> 1660 <h4>HexEditWidget.setAddressArea</h4>
1257 <b>setAddressArea</b>(<i>on</i>) 1661 <b>setAddressArea</b>(<i>on</i>)
1662
1258 <p> 1663 <p>
1259 Public method to set the address area visibility. 1664 Public method to set the address area visibility.
1260 </p><dl> 1665 </p>
1666 <dl>
1667
1261 <dt><i>on</i> (bool)</dt> 1668 <dt><i>on</i> (bool)</dt>
1262 <dd> 1669 <dd>
1263 flag indicating the address area visibility 1670 flag indicating the address area visibility
1264 </dd> 1671 </dd>
1265 </dl><a NAME="HexEditWidget.setAddressAreaColors" ID="HexEditWidget.setAddressAreaColors"></a> 1672 </dl>
1673 <a NAME="HexEditWidget.setAddressAreaColors" ID="HexEditWidget.setAddressAreaColors"></a>
1266 <h4>HexEditWidget.setAddressAreaColors</h4> 1674 <h4>HexEditWidget.setAddressAreaColors</h4>
1267 <b>setAddressAreaColors</b>(<i>foreground, background</i>) 1675 <b>setAddressAreaColors</b>(<i>foreground, background</i>)
1676
1268 <p> 1677 <p>
1269 Public method to set the address area colors. 1678 Public method to set the address area colors.
1270 </p><dl> 1679 </p>
1680 <dl>
1681
1271 <dt><i>foreground</i> (QColor)</dt> 1682 <dt><i>foreground</i> (QColor)</dt>
1272 <dd> 1683 <dd>
1273 address area foreground color 1684 address area foreground color
1274 </dd><dt><i>background</i> (QColor)</dt> 1685 </dd>
1686 <dt><i>background</i> (QColor)</dt>
1275 <dd> 1687 <dd>
1276 address area background color 1688 address area background color
1277 </dd> 1689 </dd>
1278 </dl><a NAME="HexEditWidget.setAddressOffset" ID="HexEditWidget.setAddressOffset"></a> 1690 </dl>
1691 <a NAME="HexEditWidget.setAddressOffset" ID="HexEditWidget.setAddressOffset"></a>
1279 <h4>HexEditWidget.setAddressOffset</h4> 1692 <h4>HexEditWidget.setAddressOffset</h4>
1280 <b>setAddressOffset</b>(<i>offset</i>) 1693 <b>setAddressOffset</b>(<i>offset</i>)
1694
1281 <p> 1695 <p>
1282 Public method to set the address offset. 1696 Public method to set the address offset.
1283 </p><dl> 1697 </p>
1698 <dl>
1699
1284 <dt><i>offset</i> (int)</dt> 1700 <dt><i>offset</i> (int)</dt>
1285 <dd> 1701 <dd>
1286 address offset 1702 address offset
1287 </dd> 1703 </dd>
1288 </dl><a NAME="HexEditWidget.setAddressWidth" ID="HexEditWidget.setAddressWidth"></a> 1704 </dl>
1705 <a NAME="HexEditWidget.setAddressWidth" ID="HexEditWidget.setAddressWidth"></a>
1289 <h4>HexEditWidget.setAddressWidth</h4> 1706 <h4>HexEditWidget.setAddressWidth</h4>
1290 <b>setAddressWidth</b>(<i>width</i>) 1707 <b>setAddressWidth</b>(<i>width</i>)
1708
1291 <p> 1709 <p>
1292 Public method to set the width of the address area. 1710 Public method to set the width of the address area.
1293 </p><p> 1711 </p>
1712 <p>
1294 Note: The address area width is always a multiple of four. 1713 Note: The address area width is always a multiple of four.
1295 The given value will be adjusted as required. 1714 The given value will be adjusted as required.
1296 </p><dl> 1715 </p>
1716 <dl>
1717
1297 <dt><i>width</i> (int)</dt> 1718 <dt><i>width</i> (int)</dt>
1298 <dd> 1719 <dd>
1299 width of the address area in characters 1720 width of the address area in characters
1300 </dd> 1721 </dd>
1301 </dl><a NAME="HexEditWidget.setAsciiArea" ID="HexEditWidget.setAsciiArea"></a> 1722 </dl>
1723 <a NAME="HexEditWidget.setAsciiArea" ID="HexEditWidget.setAsciiArea"></a>
1302 <h4>HexEditWidget.setAsciiArea</h4> 1724 <h4>HexEditWidget.setAsciiArea</h4>
1303 <b>setAsciiArea</b>(<i>on</i>) 1725 <b>setAsciiArea</b>(<i>on</i>)
1726
1304 <p> 1727 <p>
1305 Public method to set the visibility of the ASCII area. 1728 Public method to set the visibility of the ASCII area.
1306 </p><dl> 1729 </p>
1730 <dl>
1731
1307 <dt><i>on</i> (bool)</dt> 1732 <dt><i>on</i> (bool)</dt>
1308 <dd> 1733 <dd>
1309 flag indicating the visibility of the ASCII area 1734 flag indicating the visibility of the ASCII area
1310 </dd> 1735 </dd>
1311 </dl><a NAME="HexEditWidget.setCursorBytePosition" ID="HexEditWidget.setCursorBytePosition"></a> 1736 </dl>
1737 <a NAME="HexEditWidget.setCursorBytePosition" ID="HexEditWidget.setCursorBytePosition"></a>
1312 <h4>HexEditWidget.setCursorBytePosition</h4> 1738 <h4>HexEditWidget.setCursorBytePosition</h4>
1313 <b>setCursorBytePosition</b>(<i>pos</i>) 1739 <b>setCursorBytePosition</b>(<i>pos</i>)
1740
1314 <p> 1741 <p>
1315 Public method to set the cursor position in bytes. 1742 Public method to set the cursor position in bytes.
1316 </p><dl> 1743 </p>
1744 <dl>
1745
1317 <dt><i>pos</i> (int)</dt> 1746 <dt><i>pos</i> (int)</dt>
1318 <dd> 1747 <dd>
1319 cursor position in bytes 1748 cursor position in bytes
1320 </dd> 1749 </dd>
1321 </dl><a NAME="HexEditWidget.setCursorPosition" ID="HexEditWidget.setCursorPosition"></a> 1750 </dl>
1751 <a NAME="HexEditWidget.setCursorPosition" ID="HexEditWidget.setCursorPosition"></a>
1322 <h4>HexEditWidget.setCursorPosition</h4> 1752 <h4>HexEditWidget.setCursorPosition</h4>
1323 <b>setCursorPosition</b>(<i>pos</i>) 1753 <b>setCursorPosition</b>(<i>pos</i>)
1754
1324 <p> 1755 <p>
1325 Public method to set the cursor position. 1756 Public method to set the cursor position.
1326 </p><dl> 1757 </p>
1758 <dl>
1759
1327 <dt><i>pos</i> (int)</dt> 1760 <dt><i>pos</i> (int)</dt>
1328 <dd> 1761 <dd>
1329 cursor position 1762 cursor position
1330 </dd> 1763 </dd>
1331 </dl><a NAME="HexEditWidget.setData" ID="HexEditWidget.setData"></a> 1764 </dl>
1765 <a NAME="HexEditWidget.setData" ID="HexEditWidget.setData"></a>
1332 <h4>HexEditWidget.setData</h4> 1766 <h4>HexEditWidget.setData</h4>
1333 <b>setData</b>(<i>dataOrDevice</i>) 1767 <b>setData</b>(<i>dataOrDevice</i>)
1768
1334 <p> 1769 <p>
1335 Public method to set the data to show. 1770 Public method to set the data to show.
1336 </p><dl> 1771 </p>
1772 <dl>
1773
1337 <dt><i>dataOrDevice</i> (bytearray, QByteArray or QIODevice)</dt> 1774 <dt><i>dataOrDevice</i> (bytearray, QByteArray or QIODevice)</dt>
1338 <dd> 1775 <dd>
1339 byte array or device containing the data 1776 byte array or device containing the data
1340 </dd> 1777 </dd>
1341 </dl><dl> 1778 </dl>
1779 <dl>
1342 <dt>Returns:</dt> 1780 <dt>Returns:</dt>
1343 <dd> 1781 <dd>
1344 flag indicating success 1782 flag indicating success
1345 </dd> 1783 </dd>
1346 </dl><dl> 1784 </dl>
1785 <dl>
1347 <dt>Return Type:</dt> 1786 <dt>Return Type:</dt>
1348 <dd> 1787 <dd>
1349 bool 1788 bool
1350 </dd> 1789 </dd>
1351 </dl><dl> 1790 </dl>
1791 <dl>
1792
1352 <dt>Raises <b>TypeError</b>:</dt> 1793 <dt>Raises <b>TypeError</b>:</dt>
1353 <dd> 1794 <dd>
1354 raised to indicate a wrong parameter type 1795 raised to indicate a wrong parameter type
1355 </dd> 1796 </dd>
1356 </dl><a NAME="HexEditWidget.setFont" ID="HexEditWidget.setFont"></a> 1797 </dl>
1798 <a NAME="HexEditWidget.setFont" ID="HexEditWidget.setFont"></a>
1357 <h4>HexEditWidget.setFont</h4> 1799 <h4>HexEditWidget.setFont</h4>
1358 <b>setFont</b>(<i>font</i>) 1800 <b>setFont</b>(<i>font</i>)
1801
1359 <p> 1802 <p>
1360 Public method to set the font used to show the data. 1803 Public method to set the font used to show the data.
1361 </p><dl> 1804 </p>
1805 <dl>
1806
1362 <dt><i>font</i> (QFont)</dt> 1807 <dt><i>font</i> (QFont)</dt>
1363 <dd> 1808 <dd>
1364 font used to show the data 1809 font used to show the data
1365 </dd> 1810 </dd>
1366 </dl><a NAME="HexEditWidget.setHighlightColors" ID="HexEditWidget.setHighlightColors"></a> 1811 </dl>
1812 <a NAME="HexEditWidget.setHighlightColors" ID="HexEditWidget.setHighlightColors"></a>
1367 <h4>HexEditWidget.setHighlightColors</h4> 1813 <h4>HexEditWidget.setHighlightColors</h4>
1368 <b>setHighlightColors</b>(<i>foreground, background</i>) 1814 <b>setHighlightColors</b>(<i>foreground, background</i>)
1815
1369 <p> 1816 <p>
1370 Public method to set the highlight colors. 1817 Public method to set the highlight colors.
1371 </p><dl> 1818 </p>
1819 <dl>
1820
1372 <dt><i>foreground</i> (QColor)</dt> 1821 <dt><i>foreground</i> (QColor)</dt>
1373 <dd> 1822 <dd>
1374 highlight foreground color 1823 highlight foreground color
1375 </dd><dt><i>background</i> (QColor)</dt> 1824 </dd>
1825 <dt><i>background</i> (QColor)</dt>
1376 <dd> 1826 <dd>
1377 highlight background color 1827 highlight background color
1378 </dd> 1828 </dd>
1379 </dl><a NAME="HexEditWidget.setHighlighting" ID="HexEditWidget.setHighlighting"></a> 1829 </dl>
1830 <a NAME="HexEditWidget.setHighlighting" ID="HexEditWidget.setHighlighting"></a>
1380 <h4>HexEditWidget.setHighlighting</h4> 1831 <h4>HexEditWidget.setHighlighting</h4>
1381 <b>setHighlighting</b>(<i>on</i>) 1832 <b>setHighlighting</b>(<i>on</i>)
1833
1382 <p> 1834 <p>
1383 Public method to set the highlighting state. 1835 Public method to set the highlighting state.
1384 </p><dl> 1836 </p>
1837 <dl>
1838
1385 <dt><i>on</i> (bool)</dt> 1839 <dt><i>on</i> (bool)</dt>
1386 <dd> 1840 <dd>
1387 new highlighting state 1841 new highlighting state
1388 </dd> 1842 </dd>
1389 </dl><a NAME="HexEditWidget.setModified" ID="HexEditWidget.setModified"></a> 1843 </dl>
1844 <a NAME="HexEditWidget.setModified" ID="HexEditWidget.setModified"></a>
1390 <h4>HexEditWidget.setModified</h4> 1845 <h4>HexEditWidget.setModified</h4>
1391 <b>setModified</b>(<i>modified, setCleanState=False</i>) 1846 <b>setModified</b>(<i>modified, setCleanState=False</i>)
1847
1392 <p> 1848 <p>
1393 Public slot to set the modified flag. 1849 Public slot to set the modified flag.
1394 </p><dl> 1850 </p>
1851 <dl>
1852
1395 <dt><i>modified</i> (bool)</dt> 1853 <dt><i>modified</i> (bool)</dt>
1396 <dd> 1854 <dd>
1397 flag indicating the new modification status 1855 flag indicating the new modification status
1398 </dd><dt><i>setCleanState</i> (bool)</dt> 1856 </dd>
1857 <dt><i>setCleanState</i> (bool)</dt>
1399 <dd> 1858 <dd>
1400 flag indicating to set the undo stack to clean 1859 flag indicating to set the undo stack to clean
1401 </dd> 1860 </dd>
1402 </dl><a NAME="HexEditWidget.setOverwriteMode" ID="HexEditWidget.setOverwriteMode"></a> 1861 </dl>
1862 <a NAME="HexEditWidget.setOverwriteMode" ID="HexEditWidget.setOverwriteMode"></a>
1403 <h4>HexEditWidget.setOverwriteMode</h4> 1863 <h4>HexEditWidget.setOverwriteMode</h4>
1404 <b>setOverwriteMode</b>(<i>on</i>) 1864 <b>setOverwriteMode</b>(<i>on</i>)
1865
1405 <p> 1866 <p>
1406 Public method to set the overwrite mode. 1867 Public method to set the overwrite mode.
1407 </p><dl> 1868 </p>
1869 <dl>
1870
1408 <dt><i>on</i> (bool)</dt> 1871 <dt><i>on</i> (bool)</dt>
1409 <dd> 1872 <dd>
1410 flag indicating the new overwrite mode 1873 flag indicating the new overwrite mode
1411 </dd> 1874 </dd>
1412 </dl><a NAME="HexEditWidget.setReadOnly" ID="HexEditWidget.setReadOnly"></a> 1875 </dl>
1876 <a NAME="HexEditWidget.setReadOnly" ID="HexEditWidget.setReadOnly"></a>
1413 <h4>HexEditWidget.setReadOnly</h4> 1877 <h4>HexEditWidget.setReadOnly</h4>
1414 <b>setReadOnly</b>(<i>on</i>) 1878 <b>setReadOnly</b>(<i>on</i>)
1879
1415 <p> 1880 <p>
1416 Public method to set the read only state. 1881 Public method to set the read only state.
1417 </p><dl> 1882 </p>
1883 <dl>
1884
1418 <dt><i>on</i> (bool)</dt> 1885 <dt><i>on</i> (bool)</dt>
1419 <dd> 1886 <dd>
1420 new read only state 1887 new read only state
1421 </dd> 1888 </dd>
1422 </dl><a NAME="HexEditWidget.setSelectionColors" ID="HexEditWidget.setSelectionColors"></a> 1889 </dl>
1890 <a NAME="HexEditWidget.setSelectionColors" ID="HexEditWidget.setSelectionColors"></a>
1423 <h4>HexEditWidget.setSelectionColors</h4> 1891 <h4>HexEditWidget.setSelectionColors</h4>
1424 <b>setSelectionColors</b>(<i>foreground, background</i>) 1892 <b>setSelectionColors</b>(<i>foreground, background</i>)
1893
1425 <p> 1894 <p>
1426 Public method to set the selection colors. 1895 Public method to set the selection colors.
1427 </p><dl> 1896 </p>
1897 <dl>
1898
1428 <dt><i>foreground</i> (QColor)</dt> 1899 <dt><i>foreground</i> (QColor)</dt>
1429 <dd> 1900 <dd>
1430 selection foreground color 1901 selection foreground color
1431 </dd><dt><i>background</i> (QColor)</dt> 1902 </dd>
1903 <dt><i>background</i> (QColor)</dt>
1432 <dd> 1904 <dd>
1433 selection background color 1905 selection background color
1434 </dd> 1906 </dd>
1435 </dl><a NAME="HexEditWidget.toReadableString" ID="HexEditWidget.toReadableString"></a> 1907 </dl>
1908 <a NAME="HexEditWidget.toReadableString" ID="HexEditWidget.toReadableString"></a>
1436 <h4>HexEditWidget.toReadableString</h4> 1909 <h4>HexEditWidget.toReadableString</h4>
1437 <b>toReadableString</b>(<i></i>) 1910 <b>toReadableString</b>(<i></i>)
1911
1438 <p> 1912 <p>
1439 Public method to get a formatted representation of our data. 1913 Public method to get a formatted representation of our data.
1440 </p><dl> 1914 </p>
1915 <dl>
1441 <dt>Returns:</dt> 1916 <dt>Returns:</dt>
1442 <dd> 1917 <dd>
1443 formatted representation of our data 1918 formatted representation of our data
1444 </dd> 1919 </dd>
1445 </dl><dl> 1920 </dl>
1921 <dl>
1446 <dt>Return Type:</dt> 1922 <dt>Return Type:</dt>
1447 <dd> 1923 <dd>
1448 str 1924 str
1449 </dd> 1925 </dd>
1450 </dl><a NAME="HexEditWidget.undo" ID="HexEditWidget.undo"></a> 1926 </dl>
1927 <a NAME="HexEditWidget.undo" ID="HexEditWidget.undo"></a>
1451 <h4>HexEditWidget.undo</h4> 1928 <h4>HexEditWidget.undo</h4>
1452 <b>undo</b>(<i></i>) 1929 <b>undo</b>(<i></i>)
1930
1453 <p> 1931 <p>
1454 Public slot to undo the last operation. 1932 Public slot to undo the last operation.
1455 </p><a NAME="HexEditWidget.undoStack" ID="HexEditWidget.undoStack"></a> 1933 </p>
1934 <a NAME="HexEditWidget.undoStack" ID="HexEditWidget.undoStack"></a>
1456 <h4>HexEditWidget.undoStack</h4> 1935 <h4>HexEditWidget.undoStack</h4>
1457 <b>undoStack</b>(<i></i>) 1936 <b>undoStack</b>(<i></i>)
1937
1458 <p> 1938 <p>
1459 Public method to get a reference to the undo stack. 1939 Public method to get a reference to the undo stack.
1460 </p><dl> 1940 </p>
1941 <dl>
1461 <dt>Returns:</dt> 1942 <dt>Returns:</dt>
1462 <dd> 1943 <dd>
1463 reference to the undo stack 1944 reference to the undo stack
1464 </dd> 1945 </dd>
1465 </dl><dl> 1946 </dl>
1947 <dl>
1466 <dt>Return Type:</dt> 1948 <dt>Return Type:</dt>
1467 <dd> 1949 <dd>
1468 HexEditUndoStack 1950 HexEditUndoStack
1469 </dd> 1951 </dd>
1470 </dl><a NAME="HexEditWidget.write" ID="HexEditWidget.write"></a> 1952 </dl>
1953 <a NAME="HexEditWidget.write" ID="HexEditWidget.write"></a>
1471 <h4>HexEditWidget.write</h4> 1954 <h4>HexEditWidget.write</h4>
1472 <b>write</b>(<i>device, pos=0, count=-1</i>) 1955 <b>write</b>(<i>device, pos=0, count=-1</i>)
1956
1473 <p> 1957 <p>
1474 Public method to write data from a given position to a device. 1958 Public method to write data from a given position to a device.
1475 </p><dl> 1959 </p>
1960 <dl>
1961
1476 <dt><i>device</i> (QIODevice)</dt> 1962 <dt><i>device</i> (QIODevice)</dt>
1477 <dd> 1963 <dd>
1478 device to write to 1964 device to write to
1479 </dd><dt><i>pos</i> (int)</dt> 1965 </dd>
1966 <dt><i>pos</i> (int)</dt>
1480 <dd> 1967 <dd>
1481 position to start the write at 1968 position to start the write at
1482 </dd><dt><i>count</i> (int)</dt> 1969 </dd>
1970 <dt><i>count</i> (int)</dt>
1483 <dd> 1971 <dd>
1484 amount of bytes to write 1972 amount of bytes to write
1485 </dd> 1973 </dd>
1486 </dl><dl> 1974 </dl>
1975 <dl>
1487 <dt>Returns:</dt> 1976 <dt>Returns:</dt>
1488 <dd> 1977 <dd>
1489 flag indicating success 1978 flag indicating success
1490 </dd> 1979 </dd>
1491 </dl><dl> 1980 </dl>
1981 <dl>
1492 <dt>Return Type:</dt> 1982 <dt>Return Type:</dt>
1493 <dd> 1983 <dd>
1494 bool 1984 bool
1495 </dd> 1985 </dd>
1496 </dl> 1986 </dl>

eric ide

mercurial