234 </table> |
234 </table> |
235 <h3>Methods</h3> |
235 <h3>Methods</h3> |
236 <table> |
236 <table> |
237 <tr> |
237 <tr> |
238 <td><a href="#VariableItem.__init__">VariableItem</a></td> |
238 <td><a href="#VariableItem.__init__">VariableItem</a></td> |
239 <td>Constructor.</td> |
239 <td>Constructor.</td> |
240 </tr><tr> |
240 </tr><tr> |
241 <td><a href="#VariableItem.__lt__">__lt__</a></td> |
241 <td><a href="#VariableItem.__lt__">__lt__</a></td> |
242 <td>Public method to check, if the item is less than the other one.</td> |
242 <td>Public method to check, if the item is less than the other one.</td> |
243 </tr><tr> |
243 </tr><tr> |
244 <td><a href="#VariableItem.attachDummy">attachDummy</a></td> |
244 <td><a href="#VariableItem.attachDummy">attachDummy</a></td> |
245 <td>Public method to attach a dummy sub item to allow for lazy population.</td> |
245 <td>Public method to attach a dummy sub item to allow for lazy population.</td> |
246 </tr><tr> |
246 </tr><tr> |
247 <td><a href="#VariableItem.collapse">collapse</a></td> |
247 <td><a href="#VariableItem.collapse">collapse</a></td> |
248 <td>Public method to collapse the item.</td> |
248 <td>Public method to collapse the item.</td> |
249 </tr><tr> |
249 </tr><tr> |
250 <td><a href="#VariableItem.data">data</a></td> |
250 <td><a href="#VariableItem.data">data</a></td> |
251 <td>Public method to return the data for the requested role.</td> |
251 <td>Public method to return the data for the requested role.</td> |
252 </tr><tr> |
252 </tr><tr> |
253 <td><a href="#VariableItem.deleteChildren">deleteChildren</a></td> |
253 <td><a href="#VariableItem.deleteChildren">deleteChildren</a></td> |
254 <td>Public method to delete all children (cleaning the subtree).</td> |
254 <td>Public method to delete all children (cleaning the subtree).</td> |
255 </tr><tr> |
255 </tr><tr> |
256 <td><a href="#VariableItem.expand">expand</a></td> |
256 <td><a href="#VariableItem.expand">expand</a></td> |
257 <td>Public method to expand the item.</td> |
257 <td>Public method to expand the item.</td> |
258 </tr><tr> |
258 </tr><tr> |
259 <td><a href="#VariableItem.getValue">getValue</a></td> |
259 <td><a href="#VariableItem.getValue">getValue</a></td> |
260 <td>Public method to return the value of the item.</td> |
260 <td>Public method to return the value of the item.</td> |
261 </tr><tr> |
261 </tr><tr> |
262 <td><a href="#VariableItem.key">key</a></td> |
262 <td><a href="#VariableItem.key">key</a></td> |
263 <td>Public method generating the key for this item.</td> |
263 <td>Public method generating the key for this item.</td> |
264 </tr> |
264 </tr> |
265 </table> |
265 </table> |
266 <a NAME="VariableItem.__init__" ID="VariableItem.__init__"></a> |
266 <a NAME="VariableItem.__init__" ID="VariableItem.__init__"></a> |
267 <h4>VariableItem (Constructor)</h4> |
267 <h4>VariableItem (Constructor)</h4> |
268 <b>VariableItem</b>(<i>parent, dvar, dvalue, dtype</i>) |
268 <b>VariableItem</b>(<i>parent, dvar, dvalue, dtype</i>) |
269 <p> |
269 <p> |
270 Constructor. |
270 Constructor. |
271 </p><dl> |
271 </p><dl> |
272 <dt><i>parent</i></dt> |
272 <dt><i>parent</i></dt> |
273 <dd> |
273 <dd> |
274 reference to the parent item |
274 reference to the parent item |
275 </dd><dt><i>dvar</i></dt> |
275 </dd><dt><i>dvar</i></dt> |
276 <dd> |
276 <dd> |
277 variable name (string) |
277 variable name (string) |
278 </dd><dt><i>dvalue</i></dt> |
278 </dd><dt><i>dvalue</i></dt> |
279 <dd> |
279 <dd> |
280 value string (string) |
280 value string (string) |
281 </dd><dt><i>dtype</i></dt> |
281 </dd><dt><i>dtype</i></dt> |
282 <dd> |
282 <dd> |
283 type string (string) |
283 type string (string) |
284 </dd> |
284 </dd> |
285 </dl><a NAME="VariableItem.__lt__" ID="VariableItem.__lt__"></a> |
285 </dl><a NAME="VariableItem.__lt__" ID="VariableItem.__lt__"></a> |
286 <h4>VariableItem.__lt__</h4> |
286 <h4>VariableItem.__lt__</h4> |
287 <b>__lt__</b>(<i>other</i>) |
287 <b>__lt__</b>(<i>other</i>) |
288 <p> |
288 <p> |
289 Public method to check, if the item is less than the other one. |
289 Public method to check, if the item is less than the other one. |
290 </p><dl> |
290 </p><dl> |
291 <dt><i>other</i></dt> |
291 <dt><i>other</i></dt> |
292 <dd> |
292 <dd> |
293 reference to item to compare against (QTreeWidgetItem) |
293 reference to item to compare against (QTreeWidgetItem) |
294 </dd> |
294 </dd> |
295 </dl><dl> |
295 </dl><dl> |
296 <dt>Returns:</dt> |
296 <dt>Returns:</dt> |
297 <dd> |
297 <dd> |
298 true, if this item is less than other (boolean) |
298 true, if this item is less than other (boolean) |
299 </dd> |
299 </dd> |
300 </dl><a NAME="VariableItem.attachDummy" ID="VariableItem.attachDummy"></a> |
300 </dl><a NAME="VariableItem.attachDummy" ID="VariableItem.attachDummy"></a> |
301 <h4>VariableItem.attachDummy</h4> |
301 <h4>VariableItem.attachDummy</h4> |
302 <b>attachDummy</b>(<i></i>) |
302 <b>attachDummy</b>(<i></i>) |
303 <p> |
303 <p> |
304 Public method to attach a dummy sub item to allow for lazy population. |
304 Public method to attach a dummy sub item to allow for lazy population. |
305 </p><a NAME="VariableItem.collapse" ID="VariableItem.collapse"></a> |
305 </p><a NAME="VariableItem.collapse" ID="VariableItem.collapse"></a> |
306 <h4>VariableItem.collapse</h4> |
306 <h4>VariableItem.collapse</h4> |
307 <b>collapse</b>(<i></i>) |
307 <b>collapse</b>(<i></i>) |
308 <p> |
308 <p> |
309 Public method to collapse the item. |
309 Public method to collapse the item. |
310 </p><p> |
310 </p><p> |
311 Note: This is just a do nothing and should be overwritten. |
311 Note: This is just a do nothing and should be overwritten. |
312 </p><a NAME="VariableItem.data" ID="VariableItem.data"></a> |
312 </p><a NAME="VariableItem.data" ID="VariableItem.data"></a> |
313 <h4>VariableItem.data</h4> |
313 <h4>VariableItem.data</h4> |
314 <b>data</b>(<i>column, role</i>) |
314 <b>data</b>(<i>column, role</i>) |
315 <p> |
315 <p> |
316 Public method to return the data for the requested role. |
316 Public method to return the data for the requested role. |
317 </p><p> |
317 </p><p> |
318 This implementation changes the original behavior in a way, that the display |
318 This implementation changes the original behavior in a way, that the display |
319 data is returned as the tooltip for column 1. |
319 data is returned as the tooltip for column 1. |
320 </p><dl> |
320 </p><dl> |
321 <dt><i>column</i></dt> |
321 <dt><i>column</i></dt> |
322 <dd> |
322 <dd> |
323 column number (integer) |
323 column number (integer) |
324 </dd><dt><i>role</i></dt> |
324 </dd><dt><i>role</i></dt> |
325 <dd> |
325 <dd> |
326 data role (Qt.ItemDataRole) |
326 data role (Qt.ItemDataRole) |
327 </dd> |
327 </dd> |
328 </dl><dl> |
328 </dl><dl> |
329 <dt>Returns:</dt> |
329 <dt>Returns:</dt> |
330 <dd> |
330 <dd> |
331 requested data |
331 requested data |
332 </dd> |
332 </dd> |
333 </dl><a NAME="VariableItem.deleteChildren" ID="VariableItem.deleteChildren"></a> |
333 </dl><a NAME="VariableItem.deleteChildren" ID="VariableItem.deleteChildren"></a> |
334 <h4>VariableItem.deleteChildren</h4> |
334 <h4>VariableItem.deleteChildren</h4> |
335 <b>deleteChildren</b>(<i></i>) |
335 <b>deleteChildren</b>(<i></i>) |
336 <p> |
336 <p> |
337 Public method to delete all children (cleaning the subtree). |
337 Public method to delete all children (cleaning the subtree). |
338 </p><a NAME="VariableItem.expand" ID="VariableItem.expand"></a> |
338 </p><a NAME="VariableItem.expand" ID="VariableItem.expand"></a> |
339 <h4>VariableItem.expand</h4> |
339 <h4>VariableItem.expand</h4> |
340 <b>expand</b>(<i></i>) |
340 <b>expand</b>(<i></i>) |
341 <p> |
341 <p> |
342 Public method to expand the item. |
342 Public method to expand the item. |
343 </p><p> |
343 </p><p> |
344 Note: This is just a do nothing and should be overwritten. |
344 Note: This is just a do nothing and should be overwritten. |
345 </p><a NAME="VariableItem.getValue" ID="VariableItem.getValue"></a> |
345 </p><a NAME="VariableItem.getValue" ID="VariableItem.getValue"></a> |
346 <h4>VariableItem.getValue</h4> |
346 <h4>VariableItem.getValue</h4> |
347 <b>getValue</b>(<i></i>) |
347 <b>getValue</b>(<i></i>) |
348 <p> |
348 <p> |
349 Public method to return the value of the item. |
349 Public method to return the value of the item. |
350 </p><dl> |
350 </p><dl> |
351 <dt>Returns:</dt> |
351 <dt>Returns:</dt> |
352 <dd> |
352 <dd> |
353 value of the item (string) |
353 value of the item (string) |
354 </dd> |
354 </dd> |
355 </dl><a NAME="VariableItem.key" ID="VariableItem.key"></a> |
355 </dl><a NAME="VariableItem.key" ID="VariableItem.key"></a> |
356 <h4>VariableItem.key</h4> |
356 <h4>VariableItem.key</h4> |
357 <b>key</b>(<i>column</i>) |
357 <b>key</b>(<i>column</i>) |
358 <p> |
358 <p> |
359 Public method generating the key for this item. |
359 Public method generating the key for this item. |
360 </p><dl> |
360 </p><dl> |
361 <dt><i>column</i></dt> |
361 <dt><i>column</i></dt> |
362 <dd> |
362 <dd> |
363 the column to sort on (integer) |
363 the column to sort on (integer) |
364 </dd> |
364 </dd> |
365 </dl><dl> |
365 </dl><dl> |
366 <dt>Returns:</dt> |
366 <dt>Returns:</dt> |
367 <dd> |
367 <dd> |
368 text of the column (string) |
368 text of the column (string) |
369 </dd> |
369 </dd> |
370 </dl> |
370 </dl> |
371 <div align="right"><a href="#top">Up</a></div> |
371 <div align="right"><a href="#top">Up</a></div> |
372 <hr /><hr /> |
372 <hr /><hr /> |
373 <a NAME="VariablesViewer" ID="VariablesViewer"></a> |
373 <a NAME="VariablesViewer" ID="VariablesViewer"></a> |
374 <h2>VariablesViewer</h2> |
374 <h2>VariablesViewer</h2> |
375 <p> |
375 <p> |
376 Class implementing the variables viewer widget. |
376 Class implementing the variables viewer widget. |
377 </p><p> |
377 </p><p> |
378 This widget is used to display the variables of the program being |
378 This widget is used to display the variables of the program being |
379 debugged in a tree. Compound types will be shown with |
379 debugged in a tree. Compound types will be shown with |
380 their main entry first. Once the subtree has been expanded, the |
380 their main entry first. Once the subtree has been expanded, the |
381 individual entries will be shown. Double clicking an entry will |
381 individual entries will be shown. Double clicking an entry will |
382 popup a dialog showing the variables parameters in a more readable |
382 popup a dialog showing the variables parameters in a more readable |
383 form. This is especially useful for lengthy strings. |
383 form. This is especially useful for lengthy strings. |
384 </p><p> |
384 </p><p> |
385 This widget has two modes for displaying the global and the local |
385 This widget has two modes for displaying the global and the local |
386 variables. |
386 variables. |
387 </p> |
387 </p> |
388 <h3>Derived from</h3> |
388 <h3>Derived from</h3> |
389 QTreeWidget |
389 QTreeWidget |
390 <h3>Class Attributes</h3> |
390 <h3>Class Attributes</h3> |
391 <table> |
391 <table> |
393 </table> |
393 </table> |
394 <h3>Methods</h3> |
394 <h3>Methods</h3> |
395 <table> |
395 <table> |
396 <tr> |
396 <tr> |
397 <td><a href="#VariablesViewer.__init__">VariablesViewer</a></td> |
397 <td><a href="#VariablesViewer.__init__">VariablesViewer</a></td> |
398 <td>Constructor</td> |
398 <td>Constructor</td> |
399 </tr><tr> |
399 </tr><tr> |
400 <td><a href="#VariablesViewer.__addItem">__addItem</a></td> |
400 <td><a href="#VariablesViewer.__addItem">__addItem</a></td> |
401 <td>Private method used to add an item to the list.</td> |
401 <td>Private method used to add an item to the list.</td> |
402 </tr><tr> |
402 </tr><tr> |
403 <td><a href="#VariablesViewer.__buildTreePath">__buildTreePath</a></td> |
403 <td><a href="#VariablesViewer.__buildTreePath">__buildTreePath</a></td> |
404 <td>Private method to build up a path from the top to an item.</td> |
404 <td>Private method to build up a path from the top to an item.</td> |
405 </tr><tr> |
405 </tr><tr> |
406 <td><a href="#VariablesViewer.__configure">__configure</a></td> |
406 <td><a href="#VariablesViewer.__configure">__configure</a></td> |
407 <td>Private method to open the configuration dialog.</td> |
407 <td>Private method to open the configuration dialog.</td> |
408 </tr><tr> |
408 </tr><tr> |
409 <td><a href="#VariablesViewer.__createPopupMenus">__createPopupMenus</a></td> |
409 <td><a href="#VariablesViewer.__createPopupMenus">__createPopupMenus</a></td> |
410 <td>Private method to generate the popup menus.</td> |
410 <td>Private method to generate the popup menus.</td> |
411 </tr><tr> |
411 </tr><tr> |
412 <td><a href="#VariablesViewer.__expandItemSignal">__expandItemSignal</a></td> |
412 <td><a href="#VariablesViewer.__expandItemSignal">__expandItemSignal</a></td> |
413 <td>Private slot to handle the expanded signal.</td> |
413 <td>Private slot to handle the expanded signal.</td> |
414 </tr><tr> |
414 </tr><tr> |
415 <td><a href="#VariablesViewer.__findItem">__findItem</a></td> |
415 <td><a href="#VariablesViewer.__findItem">__findItem</a></td> |
416 <td>Private method to search for an item.</td> |
416 <td>Private method to search for an item.</td> |
417 </tr><tr> |
417 </tr><tr> |
418 <td><a href="#VariablesViewer.__generateItem">__generateItem</a></td> |
418 <td><a href="#VariablesViewer.__generateItem">__generateItem</a></td> |
419 <td>Private method used to generate a VariableItem.</td> |
419 <td>Private method used to generate a VariableItem.</td> |
420 </tr><tr> |
420 </tr><tr> |
421 <td><a href="#VariablesViewer.__getDispType">__getDispType</a></td> |
421 <td><a href="#VariablesViewer.__getDispType">__getDispType</a></td> |
422 <td>Private method used to get the display string for type vtype.</td> |
422 <td>Private method used to get the display string for type vtype.</td> |
423 </tr><tr> |
423 </tr><tr> |
424 <td><a href="#VariablesViewer.__resort">__resort</a></td> |
424 <td><a href="#VariablesViewer.__resort">__resort</a></td> |
425 <td>Private method to resort the tree.</td> |
425 <td>Private method to resort the tree.</td> |
426 </tr><tr> |
426 </tr><tr> |
427 <td><a href="#VariablesViewer.__showContextMenu">__showContextMenu</a></td> |
427 <td><a href="#VariablesViewer.__showContextMenu">__showContextMenu</a></td> |
428 <td>Private slot to show the context menu.</td> |
428 <td>Private slot to show the context menu.</td> |
429 </tr><tr> |
429 </tr><tr> |
430 <td><a href="#VariablesViewer.__showDetails">__showDetails</a></td> |
430 <td><a href="#VariablesViewer.__showDetails">__showDetails</a></td> |
431 <td>Private slot to show details about the selected variable.</td> |
431 <td>Private slot to show details about the selected variable.</td> |
432 </tr><tr> |
432 </tr><tr> |
433 <td><a href="#VariablesViewer.__showVariableDetails">__showVariableDetails</a></td> |
433 <td><a href="#VariablesViewer.__showVariableDetails">__showVariableDetails</a></td> |
434 <td>Private method to show details about a variable.</td> |
434 <td>Private method to show details about a variable.</td> |
435 </tr><tr> |
435 </tr><tr> |
436 <td><a href="#VariablesViewer.collapseItem">collapseItem</a></td> |
436 <td><a href="#VariablesViewer.collapseItem">collapseItem</a></td> |
437 <td>Public slot to handle the collapsed signal.</td> |
437 <td>Public slot to handle the collapsed signal.</td> |
438 </tr><tr> |
438 </tr><tr> |
439 <td><a href="#VariablesViewer.expandItem">expandItem</a></td> |
439 <td><a href="#VariablesViewer.expandItem">expandItem</a></td> |
440 <td>Public slot to handle the expanded signal.</td> |
440 <td>Public slot to handle the expanded signal.</td> |
441 </tr><tr> |
441 </tr><tr> |
442 <td><a href="#VariablesViewer.handleResetUI">handleResetUI</a></td> |
442 <td><a href="#VariablesViewer.handleResetUI">handleResetUI</a></td> |
443 <td>Public method to reset the VariablesViewer.</td> |
443 <td>Public method to reset the VariablesViewer.</td> |
444 </tr><tr> |
444 </tr><tr> |
445 <td><a href="#VariablesViewer.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td> |
445 <td><a href="#VariablesViewer.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td> |
446 <td>Protected method of QAbstractItemView.</td> |
446 <td>Protected method of QAbstractItemView.</td> |
447 </tr><tr> |
447 </tr><tr> |
448 <td><a href="#VariablesViewer.showVariable">showVariable</a></td> |
448 <td><a href="#VariablesViewer.showVariable">showVariable</a></td> |
449 <td>Public method to show variables in a list.</td> |
449 <td>Public method to show variables in a list.</td> |
450 </tr><tr> |
450 </tr><tr> |
451 <td><a href="#VariablesViewer.showVariables">showVariables</a></td> |
451 <td><a href="#VariablesViewer.showVariables">showVariables</a></td> |
452 <td>Public method to show variables in a list.</td> |
452 <td>Public method to show variables in a list.</td> |
453 </tr> |
453 </tr> |
454 </table> |
454 </table> |
455 <a NAME="VariablesViewer.__init__" ID="VariablesViewer.__init__"></a> |
455 <a NAME="VariablesViewer.__init__" ID="VariablesViewer.__init__"></a> |
456 <h4>VariablesViewer (Constructor)</h4> |
456 <h4>VariablesViewer (Constructor)</h4> |
457 <b>VariablesViewer</b>(<i>parent=None, scope=1</i>) |
457 <b>VariablesViewer</b>(<i>parent=None, scope=1</i>) |
458 <p> |
458 <p> |
459 Constructor |
459 Constructor |
460 </p><dl> |
460 </p><dl> |
461 <dt><i>parent</i></dt> |
461 <dt><i>parent</i></dt> |
462 <dd> |
462 <dd> |
463 the parent (QWidget) |
463 the parent (QWidget) |
464 </dd><dt><i>scope</i></dt> |
464 </dd><dt><i>scope</i></dt> |
465 <dd> |
465 <dd> |
466 flag indicating global (1) or local (0) variables |
466 flag indicating global (1) or local (0) variables |
467 </dd> |
467 </dd> |
468 </dl><a NAME="VariablesViewer.__addItem" ID="VariablesViewer.__addItem"></a> |
468 </dl><a NAME="VariablesViewer.__addItem" ID="VariablesViewer.__addItem"></a> |
469 <h4>VariablesViewer.__addItem</h4> |
469 <h4>VariablesViewer.__addItem</h4> |
470 <b>__addItem</b>(<i>parent, vtype, var, value</i>) |
470 <b>__addItem</b>(<i>parent, vtype, var, value</i>) |
471 <p> |
471 <p> |
472 Private method used to add an item to the list. |
472 Private method used to add an item to the list. |
473 </p><p> |
473 </p><p> |
474 If the item is of a type with subelements (i.e. list, dictionary, |
474 If the item is of a type with subelements (i.e. list, dictionary, |
475 tuple), these subelements are added by calling this method recursively. |
475 tuple), these subelements are added by calling this method recursively. |
476 </p><dl> |
476 </p><dl> |
477 <dt><i>parent</i></dt> |
477 <dt><i>parent</i></dt> |
478 <dd> |
478 <dd> |
479 the parent of the item to be added |
479 the parent of the item to be added |
480 (QTreeWidgetItem or None) |
480 (QTreeWidgetItem or None) |
481 </dd><dt><i>vtype</i></dt> |
481 </dd><dt><i>vtype</i></dt> |
482 <dd> |
482 <dd> |
483 the type of the item to be added |
483 the type of the item to be added |
484 (string) |
484 (string) |
485 </dd><dt><i>var</i></dt> |
485 </dd><dt><i>var</i></dt> |
486 <dd> |
486 <dd> |
487 the variable name (string) |
487 the variable name (string) |
488 </dd><dt><i>value</i></dt> |
488 </dd><dt><i>value</i></dt> |
489 <dd> |
489 <dd> |
490 the value string (string) |
490 the value string (string) |
491 </dd> |
491 </dd> |
492 </dl><dl> |
492 </dl><dl> |
493 <dt>Returns:</dt> |
493 <dt>Returns:</dt> |
494 <dd> |
494 <dd> |
495 The item that was added to the listview (QTreeWidgetItem). |
495 The item that was added to the listview (QTreeWidgetItem). |
496 </dd> |
496 </dd> |
497 </dl><a NAME="VariablesViewer.__buildTreePath" ID="VariablesViewer.__buildTreePath"></a> |
497 </dl><a NAME="VariablesViewer.__buildTreePath" ID="VariablesViewer.__buildTreePath"></a> |
498 <h4>VariablesViewer.__buildTreePath</h4> |
498 <h4>VariablesViewer.__buildTreePath</h4> |
499 <b>__buildTreePath</b>(<i>itm</i>) |
499 <b>__buildTreePath</b>(<i>itm</i>) |
500 <p> |
500 <p> |
501 Private method to build up a path from the top to an item. |
501 Private method to build up a path from the top to an item. |
502 </p><dl> |
502 </p><dl> |
503 <dt><i>itm</i></dt> |
503 <dt><i>itm</i></dt> |
504 <dd> |
504 <dd> |
505 item to build the path for (QTreeWidgetItem) |
505 item to build the path for (QTreeWidgetItem) |
506 </dd> |
506 </dd> |
507 </dl><dl> |
507 </dl><dl> |
508 <dt>Returns:</dt> |
508 <dt>Returns:</dt> |
509 <dd> |
509 <dd> |
510 list of names denoting the path from the top (list of strings) |
510 list of names denoting the path from the top (list of strings) |
511 </dd> |
511 </dd> |
512 </dl><a NAME="VariablesViewer.__configure" ID="VariablesViewer.__configure"></a> |
512 </dl><a NAME="VariablesViewer.__configure" ID="VariablesViewer.__configure"></a> |
513 <h4>VariablesViewer.__configure</h4> |
513 <h4>VariablesViewer.__configure</h4> |
514 <b>__configure</b>(<i></i>) |
514 <b>__configure</b>(<i></i>) |
515 <p> |
515 <p> |
516 Private method to open the configuration dialog. |
516 Private method to open the configuration dialog. |
517 </p><a NAME="VariablesViewer.__createPopupMenus" ID="VariablesViewer.__createPopupMenus"></a> |
517 </p><a NAME="VariablesViewer.__createPopupMenus" ID="VariablesViewer.__createPopupMenus"></a> |
518 <h4>VariablesViewer.__createPopupMenus</h4> |
518 <h4>VariablesViewer.__createPopupMenus</h4> |
519 <b>__createPopupMenus</b>(<i></i>) |
519 <b>__createPopupMenus</b>(<i></i>) |
520 <p> |
520 <p> |
521 Private method to generate the popup menus. |
521 Private method to generate the popup menus. |
522 </p><a NAME="VariablesViewer.__expandItemSignal" ID="VariablesViewer.__expandItemSignal"></a> |
522 </p><a NAME="VariablesViewer.__expandItemSignal" ID="VariablesViewer.__expandItemSignal"></a> |
523 <h4>VariablesViewer.__expandItemSignal</h4> |
523 <h4>VariablesViewer.__expandItemSignal</h4> |
524 <b>__expandItemSignal</b>(<i>parentItem</i>) |
524 <b>__expandItemSignal</b>(<i>parentItem</i>) |
525 <p> |
525 <p> |
526 Private slot to handle the expanded signal. |
526 Private slot to handle the expanded signal. |
527 </p><dl> |
527 </p><dl> |
528 <dt><i>parentItem</i></dt> |
528 <dt><i>parentItem</i></dt> |
529 <dd> |
529 <dd> |
530 reference to the item being expanded (QTreeWidgetItem) |
530 reference to the item being expanded (QTreeWidgetItem) |
531 </dd> |
531 </dd> |
532 </dl><a NAME="VariablesViewer.__findItem" ID="VariablesViewer.__findItem"></a> |
532 </dl><a NAME="VariablesViewer.__findItem" ID="VariablesViewer.__findItem"></a> |
533 <h4>VariablesViewer.__findItem</h4> |
533 <h4>VariablesViewer.__findItem</h4> |
534 <b>__findItem</b>(<i>slist, column, node=None</i>) |
534 <b>__findItem</b>(<i>slist, column, node=None</i>) |
535 <p> |
535 <p> |
536 Private method to search for an item. |
536 Private method to search for an item. |
537 </p><p> |
537 </p><p> |
538 It is used to find a specific item in column, |
538 It is used to find a specific item in column, |
539 that is a child of node. If node is None, a child of the |
539 that is a child of node. If node is None, a child of the |
540 QTreeWidget is searched. |
540 QTreeWidget is searched. |
541 </p><dl> |
541 </p><dl> |
542 <dt><i>slist</i></dt> |
542 <dt><i>slist</i></dt> |
543 <dd> |
543 <dd> |
544 searchlist (list of strings) |
544 searchlist (list of strings) |
545 </dd><dt><i>column</i></dt> |
545 </dd><dt><i>column</i></dt> |
546 <dd> |
546 <dd> |
547 index of column to search in (int) |
547 index of column to search in (int) |
548 </dd><dt><i>node</i></dt> |
548 </dd><dt><i>node</i></dt> |
549 <dd> |
549 <dd> |
550 start point of the search |
550 start point of the search |
551 </dd> |
551 </dd> |
552 </dl><dl> |
552 </dl><dl> |
553 <dt>Returns:</dt> |
553 <dt>Returns:</dt> |
554 <dd> |
554 <dd> |
555 the found item or None |
555 the found item or None |
556 </dd> |
556 </dd> |
557 </dl><a NAME="VariablesViewer.__generateItem" ID="VariablesViewer.__generateItem"></a> |
557 </dl><a NAME="VariablesViewer.__generateItem" ID="VariablesViewer.__generateItem"></a> |
558 <h4>VariablesViewer.__generateItem</h4> |
558 <h4>VariablesViewer.__generateItem</h4> |
559 <b>__generateItem</b>(<i>parent, dvar, dvalue, dtype, isSpecial = False</i>) |
559 <b>__generateItem</b>(<i>parent, dvar, dvalue, dtype, isSpecial = False</i>) |
560 <p> |
560 <p> |
561 Private method used to generate a VariableItem. |
561 Private method used to generate a VariableItem. |
562 </p><dl> |
562 </p><dl> |
563 <dt><i>parent</i></dt> |
563 <dt><i>parent</i></dt> |
564 <dd> |
564 <dd> |
565 parent of the item to be generated |
565 parent of the item to be generated |
566 </dd><dt><i>dvar</i></dt> |
566 </dd><dt><i>dvar</i></dt> |
567 <dd> |
567 <dd> |
568 variable name (string) |
568 variable name (string) |
569 </dd><dt><i>dvalue</i></dt> |
569 </dd><dt><i>dvalue</i></dt> |
570 <dd> |
570 <dd> |
571 value string (string) |
571 value string (string) |
572 </dd><dt><i>dtype</i></dt> |
572 </dd><dt><i>dtype</i></dt> |
573 <dd> |
573 <dd> |
574 type string (string) |
574 type string (string) |
575 </dd><dt><i>isSpecial</i></dt> |
575 </dd><dt><i>isSpecial</i></dt> |
576 <dd> |
576 <dd> |
577 flag indicating that a special node should be generated (boolean) |
577 flag indicating that a special node should be generated (boolean) |
578 </dd> |
578 </dd> |
579 </dl><dl> |
579 </dl><dl> |
580 <dt>Returns:</dt> |
580 <dt>Returns:</dt> |
581 <dd> |
581 <dd> |
582 The item that was generated (VariableItem). |
582 The item that was generated (VariableItem). |
583 </dd> |
583 </dd> |
584 </dl><a NAME="VariablesViewer.__getDispType" ID="VariablesViewer.__getDispType"></a> |
584 </dl><a NAME="VariablesViewer.__getDispType" ID="VariablesViewer.__getDispType"></a> |
585 <h4>VariablesViewer.__getDispType</h4> |
585 <h4>VariablesViewer.__getDispType</h4> |
586 <b>__getDispType</b>(<i>vtype</i>) |
586 <b>__getDispType</b>(<i>vtype</i>) |
587 <p> |
587 <p> |
588 Private method used to get the display string for type vtype. |
588 Private method used to get the display string for type vtype. |
589 </p><dl> |
589 </p><dl> |
590 <dt><i>vtype</i></dt> |
590 <dt><i>vtype</i></dt> |
591 <dd> |
591 <dd> |
592 the type, the display string should be looked up for |
592 the type, the display string should be looked up for |
593 (string) |
593 (string) |
594 </dd> |
594 </dd> |
595 </dl><dl> |
595 </dl><dl> |
596 <dt>Returns:</dt> |
596 <dt>Returns:</dt> |
597 <dd> |
597 <dd> |
598 displaystring (string) |
598 displaystring (string) |
599 </dd> |
599 </dd> |
600 </dl><a NAME="VariablesViewer.__resort" ID="VariablesViewer.__resort"></a> |
600 </dl><a NAME="VariablesViewer.__resort" ID="VariablesViewer.__resort"></a> |
601 <h4>VariablesViewer.__resort</h4> |
601 <h4>VariablesViewer.__resort</h4> |
602 <b>__resort</b>(<i></i>) |
602 <b>__resort</b>(<i></i>) |
603 <p> |
603 <p> |
604 Private method to resort the tree. |
604 Private method to resort the tree. |
605 </p><a NAME="VariablesViewer.__showContextMenu" ID="VariablesViewer.__showContextMenu"></a> |
605 </p><a NAME="VariablesViewer.__showContextMenu" ID="VariablesViewer.__showContextMenu"></a> |
606 <h4>VariablesViewer.__showContextMenu</h4> |
606 <h4>VariablesViewer.__showContextMenu</h4> |
607 <b>__showContextMenu</b>(<i>coord</i>) |
607 <b>__showContextMenu</b>(<i>coord</i>) |
608 <p> |
608 <p> |
609 Private slot to show the context menu. |
609 Private slot to show the context menu. |
610 </p><dl> |
610 </p><dl> |
611 <dt><i>coord</i></dt> |
611 <dt><i>coord</i></dt> |
612 <dd> |
612 <dd> |
613 the position of the mouse pointer (QPoint) |
613 the position of the mouse pointer (QPoint) |
614 </dd> |
614 </dd> |
615 </dl><a NAME="VariablesViewer.__showDetails" ID="VariablesViewer.__showDetails"></a> |
615 </dl><a NAME="VariablesViewer.__showDetails" ID="VariablesViewer.__showDetails"></a> |
616 <h4>VariablesViewer.__showDetails</h4> |
616 <h4>VariablesViewer.__showDetails</h4> |
617 <b>__showDetails</b>(<i></i>) |
617 <b>__showDetails</b>(<i></i>) |
618 <p> |
618 <p> |
619 Private slot to show details about the selected variable. |
619 Private slot to show details about the selected variable. |
620 </p><a NAME="VariablesViewer.__showVariableDetails" ID="VariablesViewer.__showVariableDetails"></a> |
620 </p><a NAME="VariablesViewer.__showVariableDetails" ID="VariablesViewer.__showVariableDetails"></a> |
621 <h4>VariablesViewer.__showVariableDetails</h4> |
621 <h4>VariablesViewer.__showVariableDetails</h4> |
622 <b>__showVariableDetails</b>(<i>itm</i>) |
622 <b>__showVariableDetails</b>(<i>itm</i>) |
623 <p> |
623 <p> |
624 Private method to show details about a variable. |
624 Private method to show details about a variable. |
625 </p><dl> |
625 </p><dl> |
626 <dt><i>itm</i></dt> |
626 <dt><i>itm</i></dt> |
627 <dd> |
627 <dd> |
628 reference to the variable item |
628 reference to the variable item |
629 </dd> |
629 </dd> |
630 </dl><a NAME="VariablesViewer.collapseItem" ID="VariablesViewer.collapseItem"></a> |
630 </dl><a NAME="VariablesViewer.collapseItem" ID="VariablesViewer.collapseItem"></a> |
631 <h4>VariablesViewer.collapseItem</h4> |
631 <h4>VariablesViewer.collapseItem</h4> |
632 <b>collapseItem</b>(<i>parentItem</i>) |
632 <b>collapseItem</b>(<i>parentItem</i>) |
633 <p> |
633 <p> |
634 Public slot to handle the collapsed signal. |
634 Public slot to handle the collapsed signal. |
635 </p><dl> |
635 </p><dl> |
636 <dt><i>parentItem</i></dt> |
636 <dt><i>parentItem</i></dt> |
637 <dd> |
637 <dd> |
638 reference to the item being collapsed (QTreeWidgetItem) |
638 reference to the item being collapsed (QTreeWidgetItem) |
639 </dd> |
639 </dd> |
640 </dl><a NAME="VariablesViewer.expandItem" ID="VariablesViewer.expandItem"></a> |
640 </dl><a NAME="VariablesViewer.expandItem" ID="VariablesViewer.expandItem"></a> |
641 <h4>VariablesViewer.expandItem</h4> |
641 <h4>VariablesViewer.expandItem</h4> |
642 <b>expandItem</b>(<i>parentItem</i>) |
642 <b>expandItem</b>(<i>parentItem</i>) |
643 <p> |
643 <p> |
644 Public slot to handle the expanded signal. |
644 Public slot to handle the expanded signal. |
645 </p><dl> |
645 </p><dl> |
646 <dt><i>parentItem</i></dt> |
646 <dt><i>parentItem</i></dt> |
647 <dd> |
647 <dd> |
648 reference to the item being expanded (QTreeWidgetItem) |
648 reference to the item being expanded (QTreeWidgetItem) |
649 </dd> |
649 </dd> |
650 </dl><a NAME="VariablesViewer.handleResetUI" ID="VariablesViewer.handleResetUI"></a> |
650 </dl><a NAME="VariablesViewer.handleResetUI" ID="VariablesViewer.handleResetUI"></a> |
651 <h4>VariablesViewer.handleResetUI</h4> |
651 <h4>VariablesViewer.handleResetUI</h4> |
652 <b>handleResetUI</b>(<i></i>) |
652 <b>handleResetUI</b>(<i></i>) |
653 <p> |
653 <p> |
654 Public method to reset the VariablesViewer. |
654 Public method to reset the VariablesViewer. |
655 </p><a NAME="VariablesViewer.mouseDoubleClickEvent" ID="VariablesViewer.mouseDoubleClickEvent"></a> |
655 </p><a NAME="VariablesViewer.mouseDoubleClickEvent" ID="VariablesViewer.mouseDoubleClickEvent"></a> |
656 <h4>VariablesViewer.mouseDoubleClickEvent</h4> |
656 <h4>VariablesViewer.mouseDoubleClickEvent</h4> |
657 <b>mouseDoubleClickEvent</b>(<i>mouseEvent</i>) |
657 <b>mouseDoubleClickEvent</b>(<i>mouseEvent</i>) |
658 <p> |
658 <p> |
659 Protected method of QAbstractItemView. |
659 Protected method of QAbstractItemView. |
660 </p><p> |
660 </p><p> |
661 Reimplemented to disable expanding/collapsing |
661 Reimplemented to disable expanding/collapsing |
662 of items when double-clicking. Instead the double-clicked entry is opened. |
662 of items when double-clicking. Instead the double-clicked entry is opened. |
663 </p><dl> |
663 </p><dl> |
664 <dt><i>mouseEvent</i></dt> |
664 <dt><i>mouseEvent</i></dt> |
665 <dd> |
665 <dd> |
666 the mouse event object (QMouseEvent) |
666 the mouse event object (QMouseEvent) |
667 </dd> |
667 </dd> |
668 </dl><a NAME="VariablesViewer.showVariable" ID="VariablesViewer.showVariable"></a> |
668 </dl><a NAME="VariablesViewer.showVariable" ID="VariablesViewer.showVariable"></a> |
669 <h4>VariablesViewer.showVariable</h4> |
669 <h4>VariablesViewer.showVariable</h4> |
670 <b>showVariable</b>(<i>vlist</i>) |
670 <b>showVariable</b>(<i>vlist</i>) |
671 <p> |
671 <p> |
672 Public method to show variables in a list. |
672 Public method to show variables in a list. |
673 </p><dl> |
673 </p><dl> |
674 <dt><i>vlist</i></dt> |
674 <dt><i>vlist</i></dt> |
675 <dd> |
675 <dd> |
676 the list of subitems to be displayed. |
676 the list of subitems to be displayed. |
677 The first element gives the path of the |
677 The first element gives the path of the |
678 parent variable. Each other listentry is |
678 parent variable. Each other listentry is |
679 a tuple of three values. |
679 a tuple of three values. |
680 <ul> |
680 <ul> |
681 <li>the variable name (string)</li> |
681 <li>the variable name (string)</li> |
682 <li>the variables type (string)</li> |
682 <li>the variables type (string)</li> |
683 <li>the variables value (string)</li> |
683 <li>the variables value (string)</li> |
684 </ul> |
684 </ul> |
685 </dd> |
685 </dd> |
686 </dl><a NAME="VariablesViewer.showVariables" ID="VariablesViewer.showVariables"></a> |
686 </dl><a NAME="VariablesViewer.showVariables" ID="VariablesViewer.showVariables"></a> |
687 <h4>VariablesViewer.showVariables</h4> |
687 <h4>VariablesViewer.showVariables</h4> |
688 <b>showVariables</b>(<i>vlist, frmnr</i>) |
688 <b>showVariables</b>(<i>vlist, frmnr</i>) |
689 <p> |
689 <p> |
690 Public method to show variables in a list. |
690 Public method to show variables in a list. |
691 </p><dl> |
691 </p><dl> |
692 <dt><i>vlist</i></dt> |
692 <dt><i>vlist</i></dt> |
693 <dd> |
693 <dd> |
694 the list of variables to be displayed. Each |
694 the list of variables to be displayed. Each |
695 listentry is a tuple of three values. |
695 listentry is a tuple of three values. |
696 <ul> |
696 <ul> |
697 <li>the variable name (string)</li> |
697 <li>the variable name (string)</li> |
698 <li>the variables type (string)</li> |
698 <li>the variables type (string)</li> |
699 <li>the variables value (string)</li> |
699 <li>the variables value (string)</li> |
700 </ul> |
700 </ul> |
701 </dd><dt><i>frmnr</i></dt> |
701 </dd><dt><i>frmnr</i></dt> |
702 <dd> |
702 <dd> |
703 frame number (0 is the current frame) (int) |
703 frame number (0 is the current frame) (int) |
704 </dd> |
704 </dd> |
705 </dl> |
705 </dl> |
706 <div align="right"><a href="#top">Up</a></div> |
706 <div align="right"><a href="#top">Up</a></div> |
707 <hr /> |
707 <hr /> |
708 </body></html> |
708 </body></html> |