Module implementing the variables viewer widget.
SpecialVarNode | Class implementing a QListViewItem that represents a special variable node. |
VariablesViewer | Class implementing the variables viewer widget. |
None |
Class implementing a QListViewItem that represents a special variable node. These special variable nodes are generated for classes, lists, tuples and dictionaries.
SpecialVarNode | Constructor |
setOpen | Public slot to set/reset the open state. |
Constructor
Public slot to set/reset the open state.
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.
VariablesViewer | Constructor |
__buildTreePath | Private method to build up a path from the top to an item. |
__unicode | Private method to convert a string to unicode. |
addItem | Private method used to add an item to the listview. |
contentsMouseDoubleClickEvent | Protected method of QListView. |
findItem | Reimplemented method |
generateItem | Private method used to generate a QListViewItem representing a variable. |
getDispType | Private method used to get the display string for type vtype. |
handleCollapsed | Private slot to handle the collapsed signal. |
handleExpanded | Private slot to handle the expanded signal. |
handleResetUI | Public method to reset the VariablesViewer. |
showVariable | Public method to show variables in a listview. |
showVariables | Public method to show variables in a listview. |
Constructor
Private method to build up a path from the top to an item.
Private method to convert a string to unicode.
Private method used to add an item to the listview. If the item is of a type with subelements (i.e. list, dictionary, tuple), these subelements are added by calling this method recursively.
Protected method of QListView. Reimplemented to disable expanding/collapsing of items when double-clicking. Instead the double-clicked entry is opened.
Reimplemented method It is used to find a specific item in column, that is a child of node. If node is None, a child of the QListView is searched.
Private method used to generate a QListViewItem representing a variable.
Private method used to get the display string for type vtype.
Private slot to handle the collapsed signal.
Private slot to handle the expanded signal.
Public method to reset the VariablesViewer.
Public method to show variables in a listview.
Public method to show variables in a listview.