Documentation/Source/eric5.Debugger.VariablesViewer.html

changeset 945
8cd4d08fa9f6
parent 440
69ace3e2dcf6
child 1228
7afaf2fca55b
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
167 <a NAME="SpecialVarItem" ID="SpecialVarItem"></a> 167 <a NAME="SpecialVarItem" ID="SpecialVarItem"></a>
168 <h2>SpecialVarItem</h2> 168 <h2>SpecialVarItem</h2>
169 <p> 169 <p>
170 Class implementing a VariableItem that represents a special variable node. 170 Class implementing a VariableItem that represents a special variable node.
171 </p><p> 171 </p><p>
172 These special variable nodes are generated for classes, lists, 172 These special variable nodes are generated for classes, lists,
173 tuples and dictionaries. 173 tuples and dictionaries.
174 </p> 174 </p>
175 <h3>Derived from</h3> 175 <h3>Derived from</h3>
176 VariableItem 176 VariableItem
177 <h3>Class Attributes</h3> 177 <h3>Class Attributes</h3>
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
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
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>
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>
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>

eric ide

mercurial