5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.UI.PythonDisViewer</h1> |
9 <h1>eric7.UI.PythonDisViewer</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a widget to visualize the Python Disassembly for some |
11 Module implementing a widget to visualize the Python Disassembly for some |
13 Python sources. |
12 Python sources. |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
16 |
|
17 <table> |
16 <table> |
18 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
19 </table> |
18 </table> |
|
19 |
20 <h3>Classes</h3> |
20 <h3>Classes</h3> |
21 |
21 <table> |
22 <table> |
|
23 |
|
24 <tr> |
22 <tr> |
25 <td><a href="#PythonDisViewer">PythonDisViewer</a></td> |
23 <td><a href="#PythonDisViewer">PythonDisViewer</a></td> |
26 <td>Class implementing a widget to visualize the Python Disassembly for some Python sources.</td> |
24 <td>Class implementing a widget to visualize the Python Disassembly for some Python sources.</td> |
27 </tr> |
25 </tr> |
28 <tr> |
26 <tr> |
29 <td><a href="#PythonDisViewerModes">PythonDisViewerModes</a></td> |
27 <td><a href="#PythonDisViewerModes">PythonDisViewerModes</a></td> |
30 <td>Class implementing the disassembly viewer operation modes.</td> |
28 <td>Class implementing the disassembly viewer operation modes.</td> |
31 </tr> |
29 </tr> |
32 </table> |
30 </table> |
|
31 |
33 <h3>Functions</h3> |
32 <h3>Functions</h3> |
34 |
33 <table> |
35 <table> |
|
36 |
|
37 <tr> |
34 <tr> |
38 <td><a href="#linestarts">linestarts</a></td> |
35 <td><a href="#linestarts">linestarts</a></td> |
39 <td>Function to get the line starts for the given code object.</td> |
36 <td>Function to get the line starts for the given code object.</td> |
40 </tr> |
37 </tr> |
41 <tr> |
38 <tr> |
42 <td><a href="#tryCompile">tryCompile</a></td> |
39 <td><a href="#tryCompile">tryCompile</a></td> |
43 <td>Function to attempt to compile the given source, first as an expression and then as a statement if the first approach fails.</td> |
40 <td>Function to attempt to compile the given source, first as an expression and then as a statement if the first approach fails.</td> |
44 </tr> |
41 </tr> |
45 </table> |
42 </table> |
|
43 |
46 <hr /> |
44 <hr /> |
47 <hr /> |
45 <hr /> |
48 <a NAME="PythonDisViewer" ID="PythonDisViewer"></a> |
46 <a NAME="PythonDisViewer" ID="PythonDisViewer"></a> |
49 <h2>PythonDisViewer</h2> |
47 <h2>PythonDisViewer</h2> |
50 |
|
51 <p> |
48 <p> |
52 Class implementing a widget to visualize the Python Disassembly for some |
49 Class implementing a widget to visualize the Python Disassembly for some |
53 Python sources. |
50 Python sources. |
54 </p> |
51 </p> |
|
52 |
55 <h3>Derived from</h3> |
53 <h3>Derived from</h3> |
56 QWidget, Ui_PythonDisViewer |
54 QWidget, Ui_PythonDisViewer |
57 <h3>Class Attributes</h3> |
55 <h3>Class Attributes</h3> |
58 |
56 <table> |
59 <table> |
57 <tr><td>CodeInfoRole</td></tr> |
60 <tr><td>CodeInfoRole</td></tr><tr><td>EndLineRole</td></tr><tr><td>StartLineRole</td></tr> |
58 <tr><td>EndLineRole</td></tr> |
61 </table> |
59 <tr><td>StartLineRole</td></tr> |
|
60 </table> |
|
61 |
62 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
63 |
|
64 <table> |
63 <table> |
65 <tr><td>None</td></tr> |
64 <tr><td>None</td></tr> |
66 </table> |
65 </table> |
|
66 |
67 <h3>Methods</h3> |
67 <h3>Methods</h3> |
68 |
68 <table> |
69 <table> |
|
70 |
|
71 <tr> |
69 <tr> |
72 <td><a href="#PythonDisViewer.__init__">PythonDisViewer</a></td> |
70 <td><a href="#PythonDisViewer.__init__">PythonDisViewer</a></td> |
73 <td>Constructor</td> |
71 <td>Constructor</td> |
74 </tr> |
72 </tr> |
75 <tr> |
73 <tr> |
219 <tr> |
217 <tr> |
220 <td><a href="#PythonDisViewer.shutdown">shutdown</a></td> |
218 <td><a href="#PythonDisViewer.shutdown">shutdown</a></td> |
221 <td>Public method to perform shutdown actions.</td> |
219 <td>Public method to perform shutdown actions.</td> |
222 </tr> |
220 </tr> |
223 </table> |
221 </table> |
|
222 |
224 <h3>Static Methods</h3> |
223 <h3>Static Methods</h3> |
225 |
|
226 <table> |
224 <table> |
227 <tr><td>None</td></tr> |
225 <tr><td>None</td></tr> |
228 </table> |
226 </table> |
|
227 |
229 |
228 |
230 <a NAME="PythonDisViewer.__init__" ID="PythonDisViewer.__init__"></a> |
229 <a NAME="PythonDisViewer.__init__" ID="PythonDisViewer.__init__"></a> |
231 <h4>PythonDisViewer (Constructor)</h4> |
230 <h4>PythonDisViewer (Constructor)</h4> |
232 <b>PythonDisViewer</b>(<i>viewmanager, mode=PythonDisViewerModes.SOURCEDISASSEMBLY, parent=None</i>) |
231 <b>PythonDisViewer</b>(<i>viewmanager, mode=PythonDisViewerModes.SOURCEDISASSEMBLY, parent=None</i>) |
233 |
|
234 <p> |
232 <p> |
235 Constructor |
233 Constructor |
236 </p> |
234 </p> |
|
235 |
237 <dl> |
236 <dl> |
238 |
237 |
239 <dt><i>viewmanager</i> (ViewManager)</dt> |
238 <dt><i>viewmanager</i> (ViewManager)</dt> |
240 <dd> |
239 <dd> |
241 reference to the viewmanager object |
240 reference to the viewmanager object |
250 </dd> |
249 </dd> |
251 </dl> |
250 </dl> |
252 <a NAME="PythonDisViewer.__clearSelection" ID="PythonDisViewer.__clearSelection"></a> |
251 <a NAME="PythonDisViewer.__clearSelection" ID="PythonDisViewer.__clearSelection"></a> |
253 <h4>PythonDisViewer.__clearSelection</h4> |
252 <h4>PythonDisViewer.__clearSelection</h4> |
254 <b>__clearSelection</b>(<i></i>) |
253 <b>__clearSelection</b>(<i></i>) |
255 |
|
256 <p> |
254 <p> |
257 Private method to clear all selected items. |
255 Private method to clear all selected items. |
258 </p> |
256 </p> |
|
257 |
259 <a NAME="PythonDisViewer.__codeInfoContextMenuRequested" ID="PythonDisViewer.__codeInfoContextMenuRequested"></a> |
258 <a NAME="PythonDisViewer.__codeInfoContextMenuRequested" ID="PythonDisViewer.__codeInfoContextMenuRequested"></a> |
260 <h4>PythonDisViewer.__codeInfoContextMenuRequested</h4> |
259 <h4>PythonDisViewer.__codeInfoContextMenuRequested</h4> |
261 <b>__codeInfoContextMenuRequested</b>(<i>coord</i>) |
260 <b>__codeInfoContextMenuRequested</b>(<i>coord</i>) |
262 |
|
263 <p> |
261 <p> |
264 Private slot to show the context menu of the code info widget. |
262 Private slot to show the context menu of the code info widget. |
265 </p> |
263 </p> |
|
264 |
266 <dl> |
265 <dl> |
267 |
266 |
268 <dt><i>coord</i> (QPoint)</dt> |
267 <dt><i>coord</i> (QPoint)</dt> |
269 <dd> |
268 <dd> |
270 position of the mouse pointer |
269 position of the mouse pointer |
271 </dd> |
270 </dd> |
272 </dl> |
271 </dl> |
273 <a NAME="PythonDisViewer.__collapseAllCodeInfo" ID="PythonDisViewer.__collapseAllCodeInfo"></a> |
272 <a NAME="PythonDisViewer.__collapseAllCodeInfo" ID="PythonDisViewer.__collapseAllCodeInfo"></a> |
274 <h4>PythonDisViewer.__collapseAllCodeInfo</h4> |
273 <h4>PythonDisViewer.__collapseAllCodeInfo</h4> |
275 <b>__collapseAllCodeInfo</b>(<i></i>) |
274 <b>__collapseAllCodeInfo</b>(<i></i>) |
276 |
|
277 <p> |
275 <p> |
278 Private slot to collapse all items of the code info widget. |
276 Private slot to collapse all items of the code info widget. |
279 </p> |
277 </p> |
|
278 |
280 <a NAME="PythonDisViewer.__collapseAllDis" ID="PythonDisViewer.__collapseAllDis"></a> |
279 <a NAME="PythonDisViewer.__collapseAllDis" ID="PythonDisViewer.__collapseAllDis"></a> |
281 <h4>PythonDisViewer.__collapseAllDis</h4> |
280 <h4>PythonDisViewer.__collapseAllDis</h4> |
282 <b>__collapseAllDis</b>(<i></i>) |
281 <b>__collapseAllDis</b>(<i></i>) |
283 |
|
284 <p> |
282 <p> |
285 Private slot to collapse all items of the disassembly widget. |
283 Private slot to collapse all items of the disassembly widget. |
286 </p> |
284 </p> |
|
285 |
287 <a NAME="PythonDisViewer.__configure" ID="PythonDisViewer.__configure"></a> |
286 <a NAME="PythonDisViewer.__configure" ID="PythonDisViewer.__configure"></a> |
288 <h4>PythonDisViewer.__configure</h4> |
287 <h4>PythonDisViewer.__configure</h4> |
289 <b>__configure</b>(<i></i>) |
288 <b>__configure</b>(<i></i>) |
290 |
|
291 <p> |
289 <p> |
292 Private method to open the configuration dialog. |
290 Private method to open the configuration dialog. |
293 </p> |
291 </p> |
|
292 |
294 <a NAME="PythonDisViewer.__createCodeInfo" ID="PythonDisViewer.__createCodeInfo"></a> |
293 <a NAME="PythonDisViewer.__createCodeInfo" ID="PythonDisViewer.__createCodeInfo"></a> |
295 <h4>PythonDisViewer.__createCodeInfo</h4> |
294 <h4>PythonDisViewer.__createCodeInfo</h4> |
296 <b>__createCodeInfo</b>(<i>co</i>) |
295 <b>__createCodeInfo</b>(<i>co</i>) |
297 |
|
298 <p> |
296 <p> |
299 Private method to create a dictionary containing the code info data. |
297 Private method to create a dictionary containing the code info data. |
300 </p> |
298 </p> |
|
299 |
301 <dl> |
300 <dl> |
302 |
301 |
303 <dt><i>co</i> (code)</dt> |
302 <dt><i>co</i> (code)</dt> |
304 <dd> |
303 <dd> |
305 reference to the code object to generate the info for |
304 reference to the code object to generate the info for |
412 </dd> |
411 </dd> |
413 </dl> |
412 </dl> |
414 <a NAME="PythonDisViewer.__disContextMenuRequested" ID="PythonDisViewer.__disContextMenuRequested"></a> |
413 <a NAME="PythonDisViewer.__disContextMenuRequested" ID="PythonDisViewer.__disContextMenuRequested"></a> |
415 <h4>PythonDisViewer.__disContextMenuRequested</h4> |
414 <h4>PythonDisViewer.__disContextMenuRequested</h4> |
416 <b>__disContextMenuRequested</b>(<i>coord</i>) |
415 <b>__disContextMenuRequested</b>(<i>coord</i>) |
417 |
|
418 <p> |
416 <p> |
419 Private slot to show the context menu of the disassembly widget. |
417 Private slot to show the context menu of the disassembly widget. |
420 </p> |
418 </p> |
|
419 |
421 <dl> |
420 <dl> |
422 |
421 |
423 <dt><i>coord</i> (QPoint)</dt> |
422 <dt><i>coord</i> (QPoint)</dt> |
424 <dd> |
423 <dd> |
425 position of the mouse pointer |
424 position of the mouse pointer |
426 </dd> |
425 </dd> |
427 </dl> |
426 </dl> |
428 <a NAME="PythonDisViewer.__disItemClicked" ID="PythonDisViewer.__disItemClicked"></a> |
427 <a NAME="PythonDisViewer.__disItemClicked" ID="PythonDisViewer.__disItemClicked"></a> |
429 <h4>PythonDisViewer.__disItemClicked</h4> |
428 <h4>PythonDisViewer.__disItemClicked</h4> |
430 <b>__disItemClicked</b>(<i>itm, column</i>) |
429 <b>__disItemClicked</b>(<i>itm, column</i>) |
431 |
|
432 <p> |
430 <p> |
433 Private slot handling a user click on a Disassembly node item. |
431 Private slot handling a user click on a Disassembly node item. |
434 </p> |
432 </p> |
|
433 |
435 <dl> |
434 <dl> |
436 |
435 |
437 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
436 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
438 <dd> |
437 <dd> |
439 reference to the clicked item |
438 reference to the clicked item |
444 </dd> |
443 </dd> |
445 </dl> |
444 </dl> |
446 <a NAME="PythonDisViewer.__disViewerStateChanged" ID="PythonDisViewer.__disViewerStateChanged"></a> |
445 <a NAME="PythonDisViewer.__disViewerStateChanged" ID="PythonDisViewer.__disViewerStateChanged"></a> |
447 <h4>PythonDisViewer.__disViewerStateChanged</h4> |
446 <h4>PythonDisViewer.__disViewerStateChanged</h4> |
448 <b>__disViewerStateChanged</b>(<i>on</i>) |
447 <b>__disViewerStateChanged</b>(<i>on</i>) |
449 |
|
450 <p> |
448 <p> |
451 Private slot to toggle the display of the Disassembly viewer. |
449 Private slot to toggle the display of the Disassembly viewer. |
452 </p> |
450 </p> |
|
451 |
453 <dl> |
452 <dl> |
454 |
453 |
455 <dt><i>on</i> (bool)</dt> |
454 <dt><i>on</i> (bool)</dt> |
456 <dd> |
455 <dd> |
457 flag indicating to show the Disassembly |
456 flag indicating to show the Disassembly |
458 </dd> |
457 </dd> |
459 </dl> |
458 </dl> |
460 <a NAME="PythonDisViewer.__disassembleObject" ID="PythonDisViewer.__disassembleObject"></a> |
459 <a NAME="PythonDisViewer.__disassembleObject" ID="PythonDisViewer.__disassembleObject"></a> |
461 <h4>PythonDisViewer.__disassembleObject</h4> |
460 <h4>PythonDisViewer.__disassembleObject</h4> |
462 <b>__disassembleObject</b>(<i>co, parentItem, parentName="", lasti=-1</i>) |
461 <b>__disassembleObject</b>(<i>co, parentItem, parentName="", lasti=-1</i>) |
463 |
|
464 <p> |
462 <p> |
465 Private method to disassemble the given code object recursively. |
463 Private method to disassemble the given code object recursively. |
466 </p> |
464 </p> |
|
465 |
467 <dl> |
466 <dl> |
468 |
467 |
469 <dt><i>co</i> (code object)</dt> |
468 <dt><i>co</i> (code object)</dt> |
470 <dd> |
469 <dd> |
471 code object to be disassembled |
470 code object to be disassembled |
484 </dd> |
483 </dd> |
485 </dl> |
484 </dl> |
486 <a NAME="PythonDisViewer.__editorChanged" ID="PythonDisViewer.__editorChanged"></a> |
485 <a NAME="PythonDisViewer.__editorChanged" ID="PythonDisViewer.__editorChanged"></a> |
487 <h4>PythonDisViewer.__editorChanged</h4> |
486 <h4>PythonDisViewer.__editorChanged</h4> |
488 <b>__editorChanged</b>(<i>editor</i>) |
487 <b>__editorChanged</b>(<i>editor</i>) |
489 |
|
490 <p> |
488 <p> |
491 Private slot to handle a change of the current editor. |
489 Private slot to handle a change of the current editor. |
492 </p> |
490 </p> |
|
491 |
493 <dl> |
492 <dl> |
494 |
493 |
495 <dt><i>editor</i> (Editor)</dt> |
494 <dt><i>editor</i> (Editor)</dt> |
496 <dd> |
495 <dd> |
497 reference to the current editor |
496 reference to the current editor |
498 </dd> |
497 </dd> |
499 </dl> |
498 </dl> |
500 <a NAME="PythonDisViewer.__editorLanguageChanged" ID="PythonDisViewer.__editorLanguageChanged"></a> |
499 <a NAME="PythonDisViewer.__editorLanguageChanged" ID="PythonDisViewer.__editorLanguageChanged"></a> |
501 <h4>PythonDisViewer.__editorLanguageChanged</h4> |
500 <h4>PythonDisViewer.__editorLanguageChanged</h4> |
502 <b>__editorLanguageChanged</b>(<i>editor</i>) |
501 <b>__editorLanguageChanged</b>(<i>editor</i>) |
503 |
|
504 <p> |
502 <p> |
505 Private slot to handle a change of the editor language. |
503 Private slot to handle a change of the editor language. |
506 </p> |
504 </p> |
|
505 |
507 <dl> |
506 <dl> |
508 |
507 |
509 <dt><i>editor</i> (Editor)</dt> |
508 <dt><i>editor</i> (Editor)</dt> |
510 <dd> |
509 <dd> |
511 reference to the editor which changed language |
510 reference to the editor which changed language |
512 </dd> |
511 </dd> |
513 </dl> |
512 </dl> |
514 <a NAME="PythonDisViewer.__editorLineChanged" ID="PythonDisViewer.__editorLineChanged"></a> |
513 <a NAME="PythonDisViewer.__editorLineChanged" ID="PythonDisViewer.__editorLineChanged"></a> |
515 <h4>PythonDisViewer.__editorLineChanged</h4> |
514 <h4>PythonDisViewer.__editorLineChanged</h4> |
516 <b>__editorLineChanged</b>(<i>editor, lineno</i>) |
515 <b>__editorLineChanged</b>(<i>editor, lineno</i>) |
517 |
|
518 <p> |
516 <p> |
519 Private slot to handle a mouse button double click in the editor. |
517 Private slot to handle a mouse button double click in the editor. |
520 </p> |
518 </p> |
|
519 |
521 <dl> |
520 <dl> |
522 |
521 |
523 <dt><i>editor</i> (Editor)</dt> |
522 <dt><i>editor</i> (Editor)</dt> |
524 <dd> |
523 <dd> |
525 reference to the editor, that emitted the signal |
524 reference to the editor, that emitted the signal |
530 </dd> |
529 </dd> |
531 </dl> |
530 </dl> |
532 <a NAME="PythonDisViewer.__editorSaved" ID="PythonDisViewer.__editorSaved"></a> |
531 <a NAME="PythonDisViewer.__editorSaved" ID="PythonDisViewer.__editorSaved"></a> |
533 <h4>PythonDisViewer.__editorSaved</h4> |
532 <h4>PythonDisViewer.__editorSaved</h4> |
534 <b>__editorSaved</b>(<i>editor</i>) |
533 <b>__editorSaved</b>(<i>editor</i>) |
535 |
|
536 <p> |
534 <p> |
537 Private slot to reload the Disassembly after the connected editor was |
535 Private slot to reload the Disassembly after the connected editor was |
538 saved. |
536 saved. |
539 </p> |
537 </p> |
|
538 |
540 <dl> |
539 <dl> |
541 |
540 |
542 <dt><i>editor</i> (Editor)</dt> |
541 <dt><i>editor</i> (Editor)</dt> |
543 <dd> |
542 <dd> |
544 reference to the editor that performed a save action |
543 reference to the editor that performed a save action |
545 </dd> |
544 </dd> |
546 </dl> |
545 </dl> |
547 <a NAME="PythonDisViewer.__expandAllCodeInfo" ID="PythonDisViewer.__expandAllCodeInfo"></a> |
546 <a NAME="PythonDisViewer.__expandAllCodeInfo" ID="PythonDisViewer.__expandAllCodeInfo"></a> |
548 <h4>PythonDisViewer.__expandAllCodeInfo</h4> |
547 <h4>PythonDisViewer.__expandAllCodeInfo</h4> |
549 <b>__expandAllCodeInfo</b>(<i></i>) |
548 <b>__expandAllCodeInfo</b>(<i></i>) |
550 |
|
551 <p> |
549 <p> |
552 Private slot to expand all items of the code info widget. |
550 Private slot to expand all items of the code info widget. |
553 </p> |
551 </p> |
|
552 |
554 <a NAME="PythonDisViewer.__expandAllDis" ID="PythonDisViewer.__expandAllDis"></a> |
553 <a NAME="PythonDisViewer.__expandAllDis" ID="PythonDisViewer.__expandAllDis"></a> |
555 <h4>PythonDisViewer.__expandAllDis</h4> |
554 <h4>PythonDisViewer.__expandAllDis</h4> |
556 <b>__expandAllDis</b>(<i></i>) |
555 <b>__expandAllDis</b>(<i></i>) |
557 |
|
558 <p> |
556 <p> |
559 Private slot to expand all items of the disassembly widget. |
557 Private slot to expand all items of the disassembly widget. |
560 </p> |
558 </p> |
|
559 |
561 <a NAME="PythonDisViewer.__lastEditorClosed" ID="PythonDisViewer.__lastEditorClosed"></a> |
560 <a NAME="PythonDisViewer.__lastEditorClosed" ID="PythonDisViewer.__lastEditorClosed"></a> |
562 <h4>PythonDisViewer.__lastEditorClosed</h4> |
561 <h4>PythonDisViewer.__lastEditorClosed</h4> |
563 <b>__lastEditorClosed</b>(<i></i>) |
562 <b>__lastEditorClosed</b>(<i></i>) |
564 |
|
565 <p> |
563 <p> |
566 Private slot to handle the last editor closed signal of the view |
564 Private slot to handle the last editor closed signal of the view |
567 manager. |
565 manager. |
568 </p> |
566 </p> |
|
567 |
569 <a NAME="PythonDisViewer.__loadDIS" ID="PythonDisViewer.__loadDIS"></a> |
568 <a NAME="PythonDisViewer.__loadDIS" ID="PythonDisViewer.__loadDIS"></a> |
570 <h4>PythonDisViewer.__loadDIS</h4> |
569 <h4>PythonDisViewer.__loadDIS</h4> |
571 <b>__loadDIS</b>(<i></i>) |
570 <b>__loadDIS</b>(<i></i>) |
572 |
|
573 <p> |
571 <p> |
574 Private method to generate the Disassembly from the source of the |
572 Private method to generate the Disassembly from the source of the |
575 current editor and visualize it. |
573 current editor and visualize it. |
576 </p> |
574 </p> |
|
575 |
577 <a NAME="PythonDisViewer.__resizeCodeInfoColumns" ID="PythonDisViewer.__resizeCodeInfoColumns"></a> |
576 <a NAME="PythonDisViewer.__resizeCodeInfoColumns" ID="PythonDisViewer.__resizeCodeInfoColumns"></a> |
578 <h4>PythonDisViewer.__resizeCodeInfoColumns</h4> |
577 <h4>PythonDisViewer.__resizeCodeInfoColumns</h4> |
579 <b>__resizeCodeInfoColumns</b>(<i></i>) |
578 <b>__resizeCodeInfoColumns</b>(<i></i>) |
580 |
|
581 <p> |
579 <p> |
582 Private method to resize the columns of the code info widget to |
580 Private method to resize the columns of the code info widget to |
583 suitable values. |
581 suitable values. |
584 </p> |
582 </p> |
|
583 |
585 <a NAME="PythonDisViewer.__resizeDisColumns" ID="PythonDisViewer.__resizeDisColumns"></a> |
584 <a NAME="PythonDisViewer.__resizeDisColumns" ID="PythonDisViewer.__resizeDisColumns"></a> |
586 <h4>PythonDisViewer.__resizeDisColumns</h4> |
585 <h4>PythonDisViewer.__resizeDisColumns</h4> |
587 <b>__resizeDisColumns</b>(<i></i>) |
586 <b>__resizeDisColumns</b>(<i></i>) |
588 |
|
589 <p> |
587 <p> |
590 Private method to resize the columns of the disassembly widget to |
588 Private method to resize the columns of the disassembly widget to |
591 suitable values. |
589 suitable values. |
592 </p> |
590 </p> |
|
591 |
593 <a NAME="PythonDisViewer.__selectChildren" ID="PythonDisViewer.__selectChildren"></a> |
592 <a NAME="PythonDisViewer.__selectChildren" ID="PythonDisViewer.__selectChildren"></a> |
594 <h4>PythonDisViewer.__selectChildren</h4> |
593 <h4>PythonDisViewer.__selectChildren</h4> |
595 <b>__selectChildren</b>(<i>itm, lineno</i>) |
594 <b>__selectChildren</b>(<i>itm, lineno</i>) |
596 |
|
597 <p> |
595 <p> |
598 Private method to select children of the given item covering the given |
596 Private method to select children of the given item covering the given |
599 line number. |
597 line number. |
600 </p> |
598 </p> |
|
599 |
601 <dl> |
600 <dl> |
602 |
601 |
603 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
602 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
604 <dd> |
603 <dd> |
605 reference to the item |
604 reference to the item |
610 </dd> |
609 </dd> |
611 </dl> |
610 </dl> |
612 <a NAME="PythonDisViewer.__selectItemForEditorLine" ID="PythonDisViewer.__selectItemForEditorLine"></a> |
611 <a NAME="PythonDisViewer.__selectItemForEditorLine" ID="PythonDisViewer.__selectItemForEditorLine"></a> |
613 <h4>PythonDisViewer.__selectItemForEditorLine</h4> |
612 <h4>PythonDisViewer.__selectItemForEditorLine</h4> |
614 <b>__selectItemForEditorLine</b>(<i></i>) |
613 <b>__selectItemForEditorLine</b>(<i></i>) |
615 |
|
616 <p> |
614 <p> |
617 Private slot to select the items corresponding with the cursor line |
615 Private slot to select the items corresponding with the cursor line |
618 of the current editor. |
616 of the current editor. |
619 </p> |
617 </p> |
|
618 |
620 <a NAME="PythonDisViewer.__showCodeInfo" ID="PythonDisViewer.__showCodeInfo"></a> |
619 <a NAME="PythonDisViewer.__showCodeInfo" ID="PythonDisViewer.__showCodeInfo"></a> |
621 <h4>PythonDisViewer.__showCodeInfo</h4> |
620 <h4>PythonDisViewer.__showCodeInfo</h4> |
622 <b>__showCodeInfo</b>(<i></i>) |
621 <b>__showCodeInfo</b>(<i></i>) |
623 |
|
624 <p> |
622 <p> |
625 Private slot handling the context menu action to show code info. |
623 Private slot handling the context menu action to show code info. |
626 </p> |
624 </p> |
|
625 |
627 <a NAME="PythonDisViewer.__showCodeInfoData" ID="PythonDisViewer.__showCodeInfoData"></a> |
626 <a NAME="PythonDisViewer.__showCodeInfoData" ID="PythonDisViewer.__showCodeInfoData"></a> |
628 <h4>PythonDisViewer.__showCodeInfoData</h4> |
627 <h4>PythonDisViewer.__showCodeInfoData</h4> |
629 <b>__showCodeInfoData</b>(<i>codeInfo</i>) |
628 <b>__showCodeInfoData</b>(<i>codeInfo</i>) |
630 |
|
631 <p> |
629 <p> |
632 Private method to show the passed code info data. |
630 Private method to show the passed code info data. |
633 </p> |
631 </p> |
|
632 |
634 <dl> |
633 <dl> |
635 |
634 |
636 <dt><i>codeInfo</i> (dict)</dt> |
635 <dt><i>codeInfo</i> (dict)</dt> |
637 <dd> |
636 <dd> |
638 dictionary containing the code info data |
637 dictionary containing the code info data |
639 </dd> |
638 </dd> |
640 </dl> |
639 </dl> |
641 <a NAME="PythonDisViewer.__styleLabels" ID="PythonDisViewer.__styleLabels"></a> |
640 <a NAME="PythonDisViewer.__styleLabels" ID="PythonDisViewer.__styleLabels"></a> |
642 <h4>PythonDisViewer.__styleLabels</h4> |
641 <h4>PythonDisViewer.__styleLabels</h4> |
643 <b>__styleLabels</b>(<i></i>) |
642 <b>__styleLabels</b>(<i></i>) |
644 |
|
645 <p> |
643 <p> |
646 Private method to style the info labels iaw. selected colors. |
644 Private method to style the info labels iaw. selected colors. |
647 </p> |
645 </p> |
|
646 |
648 <a NAME="PythonDisViewer.__updateItemEndLine" ID="PythonDisViewer.__updateItemEndLine"></a> |
647 <a NAME="PythonDisViewer.__updateItemEndLine" ID="PythonDisViewer.__updateItemEndLine"></a> |
649 <h4>PythonDisViewer.__updateItemEndLine</h4> |
648 <h4>PythonDisViewer.__updateItemEndLine</h4> |
650 <b>__updateItemEndLine</b>(<i>itm</i>) |
649 <b>__updateItemEndLine</b>(<i>itm</i>) |
651 |
|
652 <p> |
650 <p> |
653 Private method to update an items end line based on its children. |
651 Private method to update an items end line based on its children. |
654 </p> |
652 </p> |
|
653 |
655 <dl> |
654 <dl> |
656 |
655 |
657 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
656 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
658 <dd> |
657 <dd> |
659 reference to the item to be updated |
658 reference to the item to be updated |
660 </dd> |
659 </dd> |
661 </dl> |
660 </dl> |
662 <a NAME="PythonDisViewer.clear" ID="PythonDisViewer.clear"></a> |
661 <a NAME="PythonDisViewer.clear" ID="PythonDisViewer.clear"></a> |
663 <h4>PythonDisViewer.clear</h4> |
662 <h4>PythonDisViewer.clear</h4> |
664 <b>clear</b>(<i></i>) |
663 <b>clear</b>(<i></i>) |
665 |
|
666 <p> |
664 <p> |
667 Public method to clear the display. |
665 Public method to clear the display. |
668 </p> |
666 </p> |
|
667 |
669 <a NAME="PythonDisViewer.createCodeInfoItems" ID="PythonDisViewer.createCodeInfoItems"></a> |
668 <a NAME="PythonDisViewer.createCodeInfoItems" ID="PythonDisViewer.createCodeInfoItems"></a> |
670 <h4>PythonDisViewer.createCodeInfoItems</h4> |
669 <h4>PythonDisViewer.createCodeInfoItems</h4> |
671 <b>createCodeInfoItems</b>(<i>infoList</i>) |
670 <b>createCodeInfoItems</b>(<i>infoList</i>) |
672 |
|
673 <p> |
671 <p> |
674 Function to create code info items for the given list. |
672 Function to create code info items for the given list. |
675 </p> |
673 </p> |
|
674 |
676 <dl> |
675 <dl> |
677 |
676 |
678 <dt><i>title</i> (str)</dt> |
677 <dt><i>title</i> (str)</dt> |
679 <dd> |
678 <dd> |
680 title string for the list |
679 title string for the list |
685 </dd> |
684 </dd> |
686 </dl> |
685 </dl> |
687 <a NAME="PythonDisViewer.hide" ID="PythonDisViewer.hide"></a> |
686 <a NAME="PythonDisViewer.hide" ID="PythonDisViewer.hide"></a> |
688 <h4>PythonDisViewer.hide</h4> |
687 <h4>PythonDisViewer.hide</h4> |
689 <b>hide</b>(<i></i>) |
688 <b>hide</b>(<i></i>) |
690 |
|
691 <p> |
689 <p> |
692 Public slot to hide the DIS viewer. |
690 Public slot to hide the DIS viewer. |
693 </p> |
691 </p> |
|
692 |
694 <a NAME="PythonDisViewer.preferencesChanged" ID="PythonDisViewer.preferencesChanged"></a> |
693 <a NAME="PythonDisViewer.preferencesChanged" ID="PythonDisViewer.preferencesChanged"></a> |
695 <h4>PythonDisViewer.preferencesChanged</h4> |
694 <h4>PythonDisViewer.preferencesChanged</h4> |
696 <b>preferencesChanged</b>(<i></i>) |
695 <b>preferencesChanged</b>(<i></i>) |
697 |
|
698 <p> |
696 <p> |
699 Public slot handling changes of the Disassembly viewer settings. |
697 Public slot handling changes of the Disassembly viewer settings. |
700 </p> |
698 </p> |
|
699 |
701 <a NAME="PythonDisViewer.resizeEvent" ID="PythonDisViewer.resizeEvent"></a> |
700 <a NAME="PythonDisViewer.resizeEvent" ID="PythonDisViewer.resizeEvent"></a> |
702 <h4>PythonDisViewer.resizeEvent</h4> |
701 <h4>PythonDisViewer.resizeEvent</h4> |
703 <b>resizeEvent</b>(<i>evt</i>) |
702 <b>resizeEvent</b>(<i>evt</i>) |
704 |
|
705 <p> |
703 <p> |
706 Protected method to handle resize events. |
704 Protected method to handle resize events. |
707 </p> |
705 </p> |
|
706 |
708 <dl> |
707 <dl> |
709 |
708 |
710 <dt><i>evt</i> (QResizeEvent)</dt> |
709 <dt><i>evt</i> (QResizeEvent)</dt> |
711 <dd> |
710 <dd> |
712 resize event |
711 resize event |
713 </dd> |
712 </dd> |
714 </dl> |
713 </dl> |
715 <a NAME="PythonDisViewer.show" ID="PythonDisViewer.show"></a> |
714 <a NAME="PythonDisViewer.show" ID="PythonDisViewer.show"></a> |
716 <h4>PythonDisViewer.show</h4> |
715 <h4>PythonDisViewer.show</h4> |
717 <b>show</b>(<i></i>) |
716 <b>show</b>(<i></i>) |
718 |
|
719 <p> |
717 <p> |
720 Public slot to show the DIS viewer. |
718 Public slot to show the DIS viewer. |
721 </p> |
719 </p> |
|
720 |
722 <a NAME="PythonDisViewer.showDisassembly" ID="PythonDisViewer.showDisassembly"></a> |
721 <a NAME="PythonDisViewer.showDisassembly" ID="PythonDisViewer.showDisassembly"></a> |
723 <h4>PythonDisViewer.showDisassembly</h4> |
722 <h4>PythonDisViewer.showDisassembly</h4> |
724 <b>showDisassembly</b>(<i>disassembly</i>) |
723 <b>showDisassembly</b>(<i>disassembly</i>) |
725 |
|
726 <p> |
724 <p> |
727 Public slot to receive a code disassembly from the debug client. |
725 Public slot to receive a code disassembly from the debug client. |
728 </p> |
726 </p> |
|
727 |
729 <dl> |
728 <dl> |
730 |
729 |
731 <dt><i>disassembly</i> (dict)</dt> |
730 <dt><i>disassembly</i> (dict)</dt> |
732 <dd> |
731 <dd> |
733 dictionary containing the disassembly information |
732 dictionary containing the disassembly information |
734 </dd> |
733 </dd> |
735 </dl> |
734 </dl> |
736 <a NAME="PythonDisViewer.shutdown" ID="PythonDisViewer.shutdown"></a> |
735 <a NAME="PythonDisViewer.shutdown" ID="PythonDisViewer.shutdown"></a> |
737 <h4>PythonDisViewer.shutdown</h4> |
736 <h4>PythonDisViewer.shutdown</h4> |
738 <b>shutdown</b>(<i></i>) |
737 <b>shutdown</b>(<i></i>) |
739 |
|
740 <p> |
738 <p> |
741 Public method to perform shutdown actions. |
739 Public method to perform shutdown actions. |
742 </p> |
740 </p> |
|
741 |
743 <div align="right"><a href="#top">Up</a></div> |
742 <div align="right"><a href="#top">Up</a></div> |
744 <hr /> |
743 <hr /> |
745 <hr /> |
744 <hr /> |
746 <a NAME="PythonDisViewerModes" ID="PythonDisViewerModes"></a> |
745 <a NAME="PythonDisViewerModes" ID="PythonDisViewerModes"></a> |
747 <h2>PythonDisViewerModes</h2> |
746 <h2>PythonDisViewerModes</h2> |
748 |
|
749 <p> |
747 <p> |
750 Class implementing the disassembly viewer operation modes. |
748 Class implementing the disassembly viewer operation modes. |
751 </p> |
749 </p> |
|
750 |
752 <h3>Derived from</h3> |
751 <h3>Derived from</h3> |
753 enum.Enum |
752 enum.Enum |
754 <h3>Class Attributes</h3> |
753 <h3>Class Attributes</h3> |
755 |
754 <table> |
756 <table> |
755 <tr><td>SOURCEDISASSEMBLY</td></tr> |
757 <tr><td>SOURCEDISASSEMBLY</td></tr><tr><td>TRACEBACK</td></tr> |
756 <tr><td>TRACEBACK</td></tr> |
758 </table> |
757 </table> |
|
758 |
759 <h3>Class Methods</h3> |
759 <h3>Class Methods</h3> |
760 |
|
761 <table> |
760 <table> |
762 <tr><td>None</td></tr> |
761 <tr><td>None</td></tr> |
763 </table> |
762 </table> |
|
763 |
764 <h3>Methods</h3> |
764 <h3>Methods</h3> |
765 |
|
766 <table> |
765 <table> |
767 <tr><td>None</td></tr> |
766 <tr><td>None</td></tr> |
768 </table> |
767 </table> |
|
768 |
769 <h3>Static Methods</h3> |
769 <h3>Static Methods</h3> |
770 |
|
771 <table> |
770 <table> |
772 <tr><td>None</td></tr> |
771 <tr><td>None</td></tr> |
773 </table> |
772 </table> |
|
773 |
774 |
774 |
775 <div align="right"><a href="#top">Up</a></div> |
775 <div align="right"><a href="#top">Up</a></div> |
776 <hr /> |
776 <hr /> |
777 <hr /> |
777 <hr /> |
778 <a NAME="linestarts" ID="linestarts"></a> |
778 <a NAME="linestarts" ID="linestarts"></a> |
779 <h2>linestarts</h2> |
779 <h2>linestarts</h2> |
780 <b>linestarts</b>(<i>co, filename="", getall=True</i>) |
780 <b>linestarts</b>(<i>co, filename="", getall=True</i>) |
781 |
|
782 <p> |
781 <p> |
783 Function to get the line starts for the given code object. |
782 Function to get the line starts for the given code object. |
784 </p> |
783 </p> |
|
784 |
785 <dl> |
785 <dl> |
786 |
786 |
787 <dt><i>co</i> (code object or str)</dt> |
787 <dt><i>co</i> (code object or str)</dt> |
788 <dd> |
788 <dd> |
789 reference to the compiled code object or the source code |
789 reference to the compiled code object or the source code |