Module implementing the variables viewer widget.
None |
ArrayElementVarItem | Class implementing a VariableItem that represents an array element. |
SpecialArrayElementVarItem | Class implementing a QTreeWidgetItem that represents a special array variable node. |
SpecialVarItem | Class implementing a VariableItem that represents a special variable node. |
VariableItem | Class implementing the data structure for variable items. |
VariablesViewer | Class implementing the variables viewer widget. |
None |
Class implementing a VariableItem that represents an array element.
None |
ArrayElementVarItem | Constructor |
key | Public method generating the key for this item. |
Constructor
Public method generating the key for this item.
Class implementing a QTreeWidgetItem that represents a special array variable node.
None |
SpecialArrayElementVarItem | Constructor |
key | Public method generating the key for this item. |
Constructor
Public method generating the key for this item.
Class implementing a VariableItem that represents a special variable node.
These special variable nodes are generated for classes, lists, tuples and dictionaries.
None |
SpecialVarItem | Constructor |
expand | Public method to expand the item. |
Constructor
Public method to expand the item.
Class implementing the data structure for variable items.
None |
VariableItem | Constructor. |
__lt__ | Public method to check, if the item is less than the other one. |
attachDummy | Public method to attach a dummy sub item to allow for lazy population. |
collapse | Public method to collapse the item. |
data | Public method to return the data for the requested role. |
deleteChildren | Public method to delete all children (cleaning the subtree). |
expand | Public method to expand the item. |
getValue | Public method to return the value of the item. |
key | Public method generating the key for this item. |
Constructor.
Public method to check, if the item is less than the other one.
Public method to attach a dummy sub item to allow for lazy population.
Public method to collapse the item.
Note: This is just a do nothing and should be overwritten.
Public method to return the data for the requested role.
This implementation changes the original behavior in a way, that the display data is returned as the tooltip for column 1.
Public method to delete all children (cleaning the subtree).
Public method to expand the item.
Note: This is just a do nothing and should be overwritten.
Public method to return the value of the item.
Public method generating the key for this item.
Class implementing the variables viewer widget.
This widget is used to display the variables of the program being debugged in a tree. Compound types will be shown with their main entry first. Once the subtree has been expanded, the individual entries will be shown. Double clicking an entry will popup a dialog showing the variables parameters in a more readable form. This is especially useful for lengthy strings.
This widget has two modes for displaying the global and the local variables.
None |
VariablesViewer | Constructor |
__addItem | Private method used to add an item to the list. |
__buildTreePath | Private method to build up a path from the top to an item. |
__configure | Private method to open the configuration dialog. |
__createPopupMenus | Private method to generate the popup menus. |
__expandItemSignal | Private slot to handle the expanded signal. |
__findItem | Private method to search for an item. |
__generateItem | Private method used to generate a VariableItem. |
__getDispType | Private method used to get the display string for type vtype. |
__resort | Private method to resort the tree. |
__showContextMenu | Private slot to show the context menu. |
__showDetails | Private slot to show details about the selected variable. |
__showVariableDetails | Private method to show details about a variable. |
__unicode | Private method to convert a string to unicode. |
collapseItem | Public slot to handle the collapsed signal. |
expandItem | Public slot to handle the expanded signal. |
handleResetUI | Public method to reset the VariablesViewer. |
mouseDoubleClickEvent | Protected method of QAbstractItemView. |
showVariable | Public method to show variables in a list. |
showVariables | Public method to show variables in a list. |
Constructor
Private method used to add an item to the list.
If the item is of a type with subelements (i.e. list, dictionary, tuple), these subelements are added by calling this method recursively.
Private method to build up a path from the top to an item.
Private method to open the configuration dialog.
Private method to generate the popup menus.
Private slot to handle the expanded signal.
Private method to search for an item.
It is used to find a specific item in column, that is a child of node. If node is None, a child of the QTreeWidget is searched.
Private method used to generate a VariableItem.
Private method used to get the display string for type vtype.
Private method to resort the tree.
Private slot to show the context menu.
Private slot to show details about the selected variable.
Private method to show details about a variable.
Private method to convert a string to unicode.
Public slot to handle the collapsed signal.
Public slot to handle the expanded signal.
Public method to reset the VariablesViewer.
Protected method of QAbstractItemView.
Reimplemented to disable expanding/collapsing of items when double-clicking. Instead the double-clicked entry is opened.
Public method to show variables in a list.
Public method to show variables in a list.