Module implementing the variables viewer widget.
| ClassNode | Class implementing a QListViewItem that represents a class. |
| VariablesViewer | Class implementing the variables viewer widget. |
| None |
Class implementing a QListViewItem that represents a class.
| ClassNode | 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 |
| 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. |
| getType | Private method used to get the type of the value passed in. |
| showVariable | Public method to show variables in a listview. |
| showVariables | Public method to show variables in a listview. |
Constructor
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 method used to get the type of the value passed in.
Public method to show variables in a listview.
Public method to show variables in a listview.