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.PythonAstViewer</h1> |
9 <h1>eric7.UI.PythonAstViewer</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a widget to visualize the Python AST for some Python |
11 Module implementing a widget to visualize the Python AST for some Python |
13 sources. |
12 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="#PythonAstViewer">PythonAstViewer</a></td> |
23 <td><a href="#PythonAstViewer">PythonAstViewer</a></td> |
26 <td>Class implementing a widget to visualize the Python AST for some Python sources.</td> |
24 <td>Class implementing a widget to visualize the Python AST for some Python sources.</td> |
27 </tr> |
25 </tr> |
28 </table> |
26 </table> |
|
27 |
29 <h3>Functions</h3> |
28 <h3>Functions</h3> |
30 |
|
31 <table> |
29 <table> |
32 <tr><td>None</td></tr> |
30 <tr><td>None</td></tr> |
33 </table> |
31 </table> |
|
32 |
34 <hr /> |
33 <hr /> |
35 <hr /> |
34 <hr /> |
36 <a NAME="PythonAstViewer" ID="PythonAstViewer"></a> |
35 <a NAME="PythonAstViewer" ID="PythonAstViewer"></a> |
37 <h2>PythonAstViewer</h2> |
36 <h2>PythonAstViewer</h2> |
38 |
|
39 <p> |
37 <p> |
40 Class implementing a widget to visualize the Python AST for some Python |
38 Class implementing a widget to visualize the Python AST for some Python |
41 sources. |
39 sources. |
42 </p> |
40 </p> |
|
41 |
43 <h3>Derived from</h3> |
42 <h3>Derived from</h3> |
44 QWidget |
43 QWidget |
45 <h3>Class Attributes</h3> |
44 <h3>Class Attributes</h3> |
46 |
45 <table> |
47 <table> |
46 <tr><td>EndIndexRole</td></tr> |
48 <tr><td>EndIndexRole</td></tr><tr><td>EndLineRole</td></tr><tr><td>StartIndexRole</td></tr><tr><td>StartLineRole</td></tr> |
47 <tr><td>EndLineRole</td></tr> |
49 </table> |
48 <tr><td>StartIndexRole</td></tr> |
|
49 <tr><td>StartLineRole</td></tr> |
|
50 </table> |
|
51 |
50 <h3>Class Methods</h3> |
52 <h3>Class Methods</h3> |
51 |
|
52 <table> |
53 <table> |
53 <tr><td>None</td></tr> |
54 <tr><td>None</td></tr> |
54 </table> |
55 </table> |
|
56 |
55 <h3>Methods</h3> |
57 <h3>Methods</h3> |
56 |
58 <table> |
57 <table> |
|
58 |
|
59 <tr> |
59 <tr> |
60 <td><a href="#PythonAstViewer.__init__">PythonAstViewer</a></td> |
60 <td><a href="#PythonAstViewer.__init__">PythonAstViewer</a></td> |
61 <td>Constructor</td> |
61 <td>Constructor</td> |
62 </tr> |
62 </tr> |
63 <tr> |
63 <tr> |
155 <tr> |
155 <tr> |
156 <td><a href="#PythonAstViewer.shutdown">shutdown</a></td> |
156 <td><a href="#PythonAstViewer.shutdown">shutdown</a></td> |
157 <td>Public method to perform shutdown actions.</td> |
157 <td>Public method to perform shutdown actions.</td> |
158 </tr> |
158 </tr> |
159 </table> |
159 </table> |
|
160 |
160 <h3>Static Methods</h3> |
161 <h3>Static Methods</h3> |
161 |
|
162 <table> |
162 <table> |
163 <tr><td>None</td></tr> |
163 <tr><td>None</td></tr> |
164 </table> |
164 </table> |
|
165 |
165 |
166 |
166 <a NAME="PythonAstViewer.__init__" ID="PythonAstViewer.__init__"></a> |
167 <a NAME="PythonAstViewer.__init__" ID="PythonAstViewer.__init__"></a> |
167 <h4>PythonAstViewer (Constructor)</h4> |
168 <h4>PythonAstViewer (Constructor)</h4> |
168 <b>PythonAstViewer</b>(<i>viewmanager, parent=None</i>) |
169 <b>PythonAstViewer</b>(<i>viewmanager, parent=None</i>) |
169 |
|
170 <p> |
170 <p> |
171 Constructor |
171 Constructor |
172 </p> |
172 </p> |
|
173 |
173 <dl> |
174 <dl> |
174 |
175 |
175 <dt><i>viewmanager</i> (ViewManager)</dt> |
176 <dt><i>viewmanager</i> (ViewManager)</dt> |
176 <dd> |
177 <dd> |
177 reference to the viewmanager object |
178 reference to the viewmanager object |
182 </dd> |
183 </dd> |
183 </dl> |
184 </dl> |
184 <a NAME="PythonAstViewer.__astItemClicked" ID="PythonAstViewer.__astItemClicked"></a> |
185 <a NAME="PythonAstViewer.__astItemClicked" ID="PythonAstViewer.__astItemClicked"></a> |
185 <h4>PythonAstViewer.__astItemClicked</h4> |
186 <h4>PythonAstViewer.__astItemClicked</h4> |
186 <b>__astItemClicked</b>(<i>itm, column</i>) |
187 <b>__astItemClicked</b>(<i>itm, column</i>) |
187 |
|
188 <p> |
188 <p> |
189 Private slot handling a user click on an AST node item. |
189 Private slot handling a user click on an AST node item. |
190 </p> |
190 </p> |
|
191 |
191 <dl> |
192 <dl> |
192 |
193 |
193 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
194 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
194 <dd> |
195 <dd> |
195 reference to the clicked item |
196 reference to the clicked item |
200 </dd> |
201 </dd> |
201 </dl> |
202 </dl> |
202 <a NAME="PythonAstViewer.__astViewerStateChanged" ID="PythonAstViewer.__astViewerStateChanged"></a> |
203 <a NAME="PythonAstViewer.__astViewerStateChanged" ID="PythonAstViewer.__astViewerStateChanged"></a> |
203 <h4>PythonAstViewer.__astViewerStateChanged</h4> |
204 <h4>PythonAstViewer.__astViewerStateChanged</h4> |
204 <b>__astViewerStateChanged</b>(<i>on</i>) |
205 <b>__astViewerStateChanged</b>(<i>on</i>) |
205 |
|
206 <p> |
206 <p> |
207 Private slot to toggle the display of the AST viewer. |
207 Private slot to toggle the display of the AST viewer. |
208 </p> |
208 </p> |
|
209 |
209 <dl> |
210 <dl> |
210 |
211 |
211 <dt><i>on</i> (bool)</dt> |
212 <dt><i>on</i> (bool)</dt> |
212 <dd> |
213 <dd> |
213 flag indicating to show the AST |
214 flag indicating to show the AST |
214 </dd> |
215 </dd> |
215 </dl> |
216 </dl> |
216 <a NAME="PythonAstViewer.__clearSelection" ID="PythonAstViewer.__clearSelection"></a> |
217 <a NAME="PythonAstViewer.__clearSelection" ID="PythonAstViewer.__clearSelection"></a> |
217 <h4>PythonAstViewer.__clearSelection</h4> |
218 <h4>PythonAstViewer.__clearSelection</h4> |
218 <b>__clearSelection</b>(<i></i>) |
219 <b>__clearSelection</b>(<i></i>) |
219 |
|
220 <p> |
220 <p> |
221 Private method to clear all selected items. |
221 Private method to clear all selected items. |
222 </p> |
222 </p> |
|
223 |
223 <a NAME="PythonAstViewer.__createErrorItem" ID="PythonAstViewer.__createErrorItem"></a> |
224 <a NAME="PythonAstViewer.__createErrorItem" ID="PythonAstViewer.__createErrorItem"></a> |
224 <h4>PythonAstViewer.__createErrorItem</h4> |
225 <h4>PythonAstViewer.__createErrorItem</h4> |
225 <b>__createErrorItem</b>(<i>error</i>) |
226 <b>__createErrorItem</b>(<i>error</i>) |
226 |
|
227 <p> |
227 <p> |
228 Private method to create a top level error item. |
228 Private method to create a top level error item. |
229 </p> |
229 </p> |
|
230 |
230 <dl> |
231 <dl> |
231 |
232 |
232 <dt><i>error</i> (str)</dt> |
233 <dt><i>error</i> (str)</dt> |
233 <dd> |
234 <dd> |
234 error message |
235 error message |
247 </dd> |
248 </dd> |
248 </dl> |
249 </dl> |
249 <a NAME="PythonAstViewer.__editorChanged" ID="PythonAstViewer.__editorChanged"></a> |
250 <a NAME="PythonAstViewer.__editorChanged" ID="PythonAstViewer.__editorChanged"></a> |
250 <h4>PythonAstViewer.__editorChanged</h4> |
251 <h4>PythonAstViewer.__editorChanged</h4> |
251 <b>__editorChanged</b>(<i>editor</i>) |
252 <b>__editorChanged</b>(<i>editor</i>) |
252 |
|
253 <p> |
253 <p> |
254 Private slot to handle a change of the current editor. |
254 Private slot to handle a change of the current editor. |
255 </p> |
255 </p> |
|
256 |
256 <dl> |
257 <dl> |
257 |
258 |
258 <dt><i>editor</i> (Editor)</dt> |
259 <dt><i>editor</i> (Editor)</dt> |
259 <dd> |
260 <dd> |
260 reference to the current editor |
261 reference to the current editor |
261 </dd> |
262 </dd> |
262 </dl> |
263 </dl> |
263 <a NAME="PythonAstViewer.__editorDoubleClicked" ID="PythonAstViewer.__editorDoubleClicked"></a> |
264 <a NAME="PythonAstViewer.__editorDoubleClicked" ID="PythonAstViewer.__editorDoubleClicked"></a> |
264 <h4>PythonAstViewer.__editorDoubleClicked</h4> |
265 <h4>PythonAstViewer.__editorDoubleClicked</h4> |
265 <b>__editorDoubleClicked</b>(<i>editor, pos, buttons</i>) |
266 <b>__editorDoubleClicked</b>(<i>editor, pos, buttons</i>) |
266 |
|
267 <p> |
267 <p> |
268 Private slot to handle a mouse button double click in the editor. |
268 Private slot to handle a mouse button double click in the editor. |
269 </p> |
269 </p> |
|
270 |
270 <dl> |
271 <dl> |
271 |
272 |
272 <dt><i>editor</i> (Editor)</dt> |
273 <dt><i>editor</i> (Editor)</dt> |
273 <dd> |
274 <dd> |
274 reference to the editor, that emitted the signal |
275 reference to the editor, that emitted the signal |
283 </dd> |
284 </dd> |
284 </dl> |
285 </dl> |
285 <a NAME="PythonAstViewer.__editorLanguageChanged" ID="PythonAstViewer.__editorLanguageChanged"></a> |
286 <a NAME="PythonAstViewer.__editorLanguageChanged" ID="PythonAstViewer.__editorLanguageChanged"></a> |
286 <h4>PythonAstViewer.__editorLanguageChanged</h4> |
287 <h4>PythonAstViewer.__editorLanguageChanged</h4> |
287 <b>__editorLanguageChanged</b>(<i>editor</i>) |
288 <b>__editorLanguageChanged</b>(<i>editor</i>) |
288 |
|
289 <p> |
289 <p> |
290 Private slot to handle a change of the editor language. |
290 Private slot to handle a change of the editor language. |
291 </p> |
291 </p> |
|
292 |
292 <dl> |
293 <dl> |
293 |
294 |
294 <dt><i>editor</i> (Editor)</dt> |
295 <dt><i>editor</i> (Editor)</dt> |
295 <dd> |
296 <dd> |
296 reference to the editor which changed language |
297 reference to the editor which changed language |
297 </dd> |
298 </dd> |
298 </dl> |
299 </dl> |
299 <a NAME="PythonAstViewer.__editorSaved" ID="PythonAstViewer.__editorSaved"></a> |
300 <a NAME="PythonAstViewer.__editorSaved" ID="PythonAstViewer.__editorSaved"></a> |
300 <h4>PythonAstViewer.__editorSaved</h4> |
301 <h4>PythonAstViewer.__editorSaved</h4> |
301 <b>__editorSaved</b>(<i>editor</i>) |
302 <b>__editorSaved</b>(<i>editor</i>) |
302 |
|
303 <p> |
303 <p> |
304 Private slot to reload the AST after the connected editor was saved. |
304 Private slot to reload the AST after the connected editor was saved. |
305 </p> |
305 </p> |
|
306 |
306 <dl> |
307 <dl> |
307 |
308 |
308 <dt><i>editor</i> (Editor)</dt> |
309 <dt><i>editor</i> (Editor)</dt> |
309 <dd> |
310 <dd> |
310 reference to the editor that performed a save action |
311 reference to the editor that performed a save action |
311 </dd> |
312 </dd> |
312 </dl> |
313 </dl> |
313 <a NAME="PythonAstViewer.__findClosestContainingItem" ID="PythonAstViewer.__findClosestContainingItem"></a> |
314 <a NAME="PythonAstViewer.__findClosestContainingItem" ID="PythonAstViewer.__findClosestContainingItem"></a> |
314 <h4>PythonAstViewer.__findClosestContainingItem</h4> |
315 <h4>PythonAstViewer.__findClosestContainingItem</h4> |
315 <b>__findClosestContainingItem</b>(<i>itm, textRange</i>) |
316 <b>__findClosestContainingItem</b>(<i>itm, textRange</i>) |
316 |
|
317 <p> |
317 <p> |
318 Private method to search for the tree item that contains a range |
318 Private method to search for the tree item that contains a range |
319 closest. |
319 closest. |
320 </p> |
320 </p> |
|
321 |
321 <dl> |
322 <dl> |
322 |
323 |
323 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
324 <dt><i>itm</i> (QTreeWidgetItem)</dt> |
324 <dd> |
325 <dd> |
325 tree item to start searching at |
326 tree item to start searching at |
342 </dd> |
343 </dd> |
343 </dl> |
344 </dl> |
344 <a NAME="PythonAstViewer.__findClosestContainingNode" ID="PythonAstViewer.__findClosestContainingNode"></a> |
345 <a NAME="PythonAstViewer.__findClosestContainingNode" ID="PythonAstViewer.__findClosestContainingNode"></a> |
345 <h4>PythonAstViewer.__findClosestContainingNode</h4> |
346 <h4>PythonAstViewer.__findClosestContainingNode</h4> |
346 <b>__findClosestContainingNode</b>(<i>node, textRange</i>) |
347 <b>__findClosestContainingNode</b>(<i>node, textRange</i>) |
347 |
|
348 <p> |
348 <p> |
349 Private method to search for the AST node that contains a range |
349 Private method to search for the AST node that contains a range |
350 closest. |
350 closest. |
351 </p> |
351 </p> |
|
352 |
352 <dl> |
353 <dl> |
353 |
354 |
354 <dt><i>node</i> (ast.AST)</dt> |
355 <dt><i>node</i> (ast.AST)</dt> |
355 <dd> |
356 <dd> |
356 AST node to start searching at |
357 AST node to start searching at |
373 </dd> |
374 </dd> |
374 </dl> |
375 </dl> |
375 <a NAME="PythonAstViewer.__grabFocus" ID="PythonAstViewer.__grabFocus"></a> |
376 <a NAME="PythonAstViewer.__grabFocus" ID="PythonAstViewer.__grabFocus"></a> |
376 <h4>PythonAstViewer.__grabFocus</h4> |
377 <h4>PythonAstViewer.__grabFocus</h4> |
377 <b>__grabFocus</b>(<i></i>) |
378 <b>__grabFocus</b>(<i></i>) |
378 |
|
379 <p> |
379 <p> |
380 Private method to grab the input focus. |
380 Private method to grab the input focus. |
381 </p> |
381 </p> |
|
382 |
382 <a NAME="PythonAstViewer.__lastEditorClosed" ID="PythonAstViewer.__lastEditorClosed"></a> |
383 <a NAME="PythonAstViewer.__lastEditorClosed" ID="PythonAstViewer.__lastEditorClosed"></a> |
383 <h4>PythonAstViewer.__lastEditorClosed</h4> |
384 <h4>PythonAstViewer.__lastEditorClosed</h4> |
384 <b>__lastEditorClosed</b>(<i></i>) |
385 <b>__lastEditorClosed</b>(<i></i>) |
385 |
|
386 <p> |
386 <p> |
387 Private slot to handle the last editor closed signal of the view |
387 Private slot to handle the last editor closed signal of the view |
388 manager. |
388 manager. |
389 </p> |
389 </p> |
|
390 |
390 <a NAME="PythonAstViewer.__loadAST" ID="PythonAstViewer.__loadAST"></a> |
391 <a NAME="PythonAstViewer.__loadAST" ID="PythonAstViewer.__loadAST"></a> |
391 <h4>PythonAstViewer.__loadAST</h4> |
392 <h4>PythonAstViewer.__loadAST</h4> |
392 <b>__loadAST</b>(<i></i>) |
393 <b>__loadAST</b>(<i></i>) |
393 |
|
394 <p> |
394 <p> |
395 Private method to generate the AST from the source of the current |
395 Private method to generate the AST from the source of the current |
396 editor and visualize it. |
396 editor and visualize it. |
397 </p> |
397 </p> |
|
398 |
398 <a NAME="PythonAstViewer.__markTextRanges" ID="PythonAstViewer.__markTextRanges"></a> |
399 <a NAME="PythonAstViewer.__markTextRanges" ID="PythonAstViewer.__markTextRanges"></a> |
399 <h4>PythonAstViewer.__markTextRanges</h4> |
400 <h4>PythonAstViewer.__markTextRanges</h4> |
400 <b>__markTextRanges</b>(<i>tree, source</i>) |
401 <b>__markTextRanges</b>(<i>tree, source</i>) |
401 |
|
402 <p> |
402 <p> |
403 Private method to modify the AST nodes with end_lineno and |
403 Private method to modify the AST nodes with end_lineno and |
404 end_col_offset information. |
404 end_col_offset information. |
405 </p> |
405 </p> |
406 <p> |
406 <p> |
407 Note: The modifications are only done for nodes containing lineno and |
407 Note: The modifications are only done for nodes containing lineno and |
408 col_offset attributes. |
408 col_offset attributes. |
409 </p> |
409 </p> |
|
410 |
410 <dl> |
411 <dl> |
411 |
412 |
412 <dt><i>tree</i> (ast.AST)</dt> |
413 <dt><i>tree</i> (ast.AST)</dt> |
413 <dd> |
414 <dd> |
414 reference to the AST to be modified |
415 reference to the AST to be modified |
419 </dd> |
420 </dd> |
420 </dl> |
421 </dl> |
421 <a NAME="PythonAstViewer.__populateNode" ID="PythonAstViewer.__populateNode"></a> |
422 <a NAME="PythonAstViewer.__populateNode" ID="PythonAstViewer.__populateNode"></a> |
422 <h4>PythonAstViewer.__populateNode</h4> |
423 <h4>PythonAstViewer.__populateNode</h4> |
423 <b>__populateNode</b>(<i>name, nodeOrFields, parent</i>) |
424 <b>__populateNode</b>(<i>name, nodeOrFields, parent</i>) |
424 |
|
425 <p> |
425 <p> |
426 Private method to populate the tree view with a node. |
426 Private method to populate the tree view with a node. |
427 </p> |
427 </p> |
|
428 |
428 <dl> |
429 <dl> |
429 |
430 |
430 <dt><i>name</i> (str)</dt> |
431 <dt><i>name</i> (str)</dt> |
431 <dd> |
432 <dd> |
432 name of the node |
433 name of the node |
441 </dd> |
442 </dd> |
442 </dl> |
443 </dl> |
443 <a NAME="PythonAstViewer.__rangeContainsSmaller" ID="PythonAstViewer.__rangeContainsSmaller"></a> |
444 <a NAME="PythonAstViewer.__rangeContainsSmaller" ID="PythonAstViewer.__rangeContainsSmaller"></a> |
444 <h4>PythonAstViewer.__rangeContainsSmaller</h4> |
445 <h4>PythonAstViewer.__rangeContainsSmaller</h4> |
445 <b>__rangeContainsSmaller</b>(<i>first, second</i>) |
446 <b>__rangeContainsSmaller</b>(<i>first, second</i>) |
446 |
|
447 <p> |
447 <p> |
448 Private method to check, if second is contained in first. |
448 Private method to check, if second is contained in first. |
449 </p> |
449 </p> |
|
450 |
450 <dl> |
451 <dl> |
451 |
452 |
452 <dt><i>first</i> (tuple of (int, int, int, int))</dt> |
453 <dt><i>first</i> (tuple of (int, int, int, int))</dt> |
453 <dd> |
454 <dd> |
454 text range to check against |
455 text range to check against |
471 </dd> |
472 </dd> |
472 </dl> |
473 </dl> |
473 <a NAME="PythonAstViewer.__rangeContainsSmallerOrEqual" ID="PythonAstViewer.__rangeContainsSmallerOrEqual"></a> |
474 <a NAME="PythonAstViewer.__rangeContainsSmallerOrEqual" ID="PythonAstViewer.__rangeContainsSmallerOrEqual"></a> |
474 <h4>PythonAstViewer.__rangeContainsSmallerOrEqual</h4> |
475 <h4>PythonAstViewer.__rangeContainsSmallerOrEqual</h4> |
475 <b>__rangeContainsSmallerOrEqual</b>(<i>first, second</i>) |
476 <b>__rangeContainsSmallerOrEqual</b>(<i>first, second</i>) |
476 |
|
477 <p> |
477 <p> |
478 Private method to check, if second is contained in or equal to first. |
478 Private method to check, if second is contained in or equal to first. |
479 </p> |
479 </p> |
|
480 |
480 <dl> |
481 <dl> |
481 |
482 |
482 <dt><i>first</i> (tuple of (int, int, int, int))</dt> |
483 <dt><i>first</i> (tuple of (int, int, int, int))</dt> |
483 <dd> |
484 <dd> |
484 text range to check against |
485 text range to check against |
501 </dd> |
502 </dd> |
502 </dl> |
503 </dl> |
503 <a NAME="PythonAstViewer.__resizeColumns" ID="PythonAstViewer.__resizeColumns"></a> |
504 <a NAME="PythonAstViewer.__resizeColumns" ID="PythonAstViewer.__resizeColumns"></a> |
504 <h4>PythonAstViewer.__resizeColumns</h4> |
505 <h4>PythonAstViewer.__resizeColumns</h4> |
505 <b>__resizeColumns</b>(<i></i>) |
506 <b>__resizeColumns</b>(<i></i>) |
506 |
|
507 <p> |
507 <p> |
508 Private method to resize the columns to suitable values. |
508 Private method to resize the columns to suitable values. |
509 </p> |
509 </p> |
|
510 |
510 <a NAME="PythonAstViewer.__selectItemForEditorSelection" ID="PythonAstViewer.__selectItemForEditorSelection"></a> |
511 <a NAME="PythonAstViewer.__selectItemForEditorSelection" ID="PythonAstViewer.__selectItemForEditorSelection"></a> |
511 <h4>PythonAstViewer.__selectItemForEditorSelection</h4> |
512 <h4>PythonAstViewer.__selectItemForEditorSelection</h4> |
512 <b>__selectItemForEditorSelection</b>(<i></i>) |
513 <b>__selectItemForEditorSelection</b>(<i></i>) |
513 |
|
514 <p> |
514 <p> |
515 Private slot to select the item corresponding to an editor selection. |
515 Private slot to select the item corresponding to an editor selection. |
516 </p> |
516 </p> |
|
517 |
517 <a NAME="PythonAstViewer.hide" ID="PythonAstViewer.hide"></a> |
518 <a NAME="PythonAstViewer.hide" ID="PythonAstViewer.hide"></a> |
518 <h4>PythonAstViewer.hide</h4> |
519 <h4>PythonAstViewer.hide</h4> |
519 <b>hide</b>(<i></i>) |
520 <b>hide</b>(<i></i>) |
520 |
|
521 <p> |
521 <p> |
522 Public slot to hide the AST viewer. |
522 Public slot to hide the AST viewer. |
523 </p> |
523 </p> |
|
524 |
524 <a NAME="PythonAstViewer.preferencesChanged" ID="PythonAstViewer.preferencesChanged"></a> |
525 <a NAME="PythonAstViewer.preferencesChanged" ID="PythonAstViewer.preferencesChanged"></a> |
525 <h4>PythonAstViewer.preferencesChanged</h4> |
526 <h4>PythonAstViewer.preferencesChanged</h4> |
526 <b>preferencesChanged</b>(<i></i>) |
527 <b>preferencesChanged</b>(<i></i>) |
527 |
|
528 <p> |
528 <p> |
529 Public slot handling changes of the AST viewer settings. |
529 Public slot handling changes of the AST viewer settings. |
530 </p> |
530 </p> |
|
531 |
531 <a NAME="PythonAstViewer.resizeEvent" ID="PythonAstViewer.resizeEvent"></a> |
532 <a NAME="PythonAstViewer.resizeEvent" ID="PythonAstViewer.resizeEvent"></a> |
532 <h4>PythonAstViewer.resizeEvent</h4> |
533 <h4>PythonAstViewer.resizeEvent</h4> |
533 <b>resizeEvent</b>(<i>evt</i>) |
534 <b>resizeEvent</b>(<i>evt</i>) |
534 |
|
535 <p> |
535 <p> |
536 Protected method to handle resize events. |
536 Protected method to handle resize events. |
537 </p> |
537 </p> |
|
538 |
538 <dl> |
539 <dl> |
539 |
540 |
540 <dt><i>evt</i> (QResizeEvent)</dt> |
541 <dt><i>evt</i> (QResizeEvent)</dt> |
541 <dd> |
542 <dd> |
542 resize event |
543 resize event |
543 </dd> |
544 </dd> |
544 </dl> |
545 </dl> |
545 <a NAME="PythonAstViewer.show" ID="PythonAstViewer.show"></a> |
546 <a NAME="PythonAstViewer.show" ID="PythonAstViewer.show"></a> |
546 <h4>PythonAstViewer.show</h4> |
547 <h4>PythonAstViewer.show</h4> |
547 <b>show</b>(<i></i>) |
548 <b>show</b>(<i></i>) |
548 |
|
549 <p> |
549 <p> |
550 Public slot to show the AST viewer. |
550 Public slot to show the AST viewer. |
551 </p> |
551 </p> |
|
552 |
552 <a NAME="PythonAstViewer.shutdown" ID="PythonAstViewer.shutdown"></a> |
553 <a NAME="PythonAstViewer.shutdown" ID="PythonAstViewer.shutdown"></a> |
553 <h4>PythonAstViewer.shutdown</h4> |
554 <h4>PythonAstViewer.shutdown</h4> |
554 <b>shutdown</b>(<i></i>) |
555 <b>shutdown</b>(<i></i>) |
555 |
|
556 <p> |
556 <p> |
557 Public method to perform shutdown actions. |
557 Public method to perform shutdown actions. |
558 </p> |
558 </p> |
|
559 |
559 <div align="right"><a href="#top">Up</a></div> |
560 <div align="right"><a href="#top">Up</a></div> |
560 <hr /> |
561 <hr /> |
561 </body></html> |
562 </body></html> |