Module implementing the variables viewer view based on QTreeView.
SORT_ROLE |
VariableItem | Class implementing the data structure for all variable items. |
VariablesModel | Class implementing the data model for QTreeView. |
VariablesProxyModel | Class for handling the sort operations. |
VariablesViewer | Class implementing the variables viewer view. |
None |
Class implementing the data structure for all variable items.
Type2Indicators |
arrayTypes |
noOfItemsStr |
nonExpandableTypes |
rx_nonprintable |
unsized |
None |
VariableItem | Constructor |
__getName | Private method to extract the variable name. |
__getType | Private method to process the type of the variable. |
__getValue | Private method to process the variables value. |
absolutCount | Public property to get the total number of children. |
populated | Public property returning a flag indicating if item is fully populated. |
None |
Constructor
Private method to extract the variable name.
Private method to process the type of the variable.
If type is known to have children, the corresponding flag is set.
Private method to process the variables value.
Define and limit value, set tooltip text. If type is known to have children, the corresponding flag is set.
Public property to get the total number of children.
Public property returning a flag indicating if item is fully populated.
Class implementing the data model for QTreeView.
None |
None |
VariablesModel | Constructor |
__buildTreePath | Private method to build up a path from the root to parent. |
__cleanupParentList | Private method to remove items which are left over at the end of the child list. |
__findPendingItem | Private method to find the next item to request data from debugger. |
__findVariable | Private method to get to the given variable. |
clear | Public method to clear the complete data model. |
columnCount | Public method to get the column count. |
data | Public method get the role data of item. |
flags | Public method to get the item flags. |
getMore | Public method to fetch the next variable from debugger. |
handlePreferencesChanged | Public slot to handle the preferencesChanged signal. |
hasChildren | Public method to get a flag if parent has children. |
headerData | Public method get the header names. |
index | Public method to get the index of item at row:column of parent. |
parent | Public method to get the parent of the given child. |
resetModifiedMarker | Public method to remove the modified marker from changed items. |
rowCount | Public method to get the row count. |
setExpanded | Public method to set the expanded state of item. |
showVariables | Public method to update the data model of variable in pathlist. |
None |
Constructor
Private method to build up a path from the root to parent.
Private method to remove items which are left over at the end of the child list.
Private method to find the next item to request data from debugger.
Private method to get to the given variable.
Public method to clear the complete data model.
Public method to get the column count.
Public method get the role data of item.
Public method to get the item flags.
Public method to fetch the next variable from debugger.
Public slot to handle the preferencesChanged signal.
Public method to get a flag if parent has children.
Public method get the header names.
Public method to get the index of item at row:column of parent.
Public method to get the parent of the given child.
Public method to remove the modified marker from changed items.
Public method to get the row count.
Public method to set the expanded state of item.
Public method to update the data model of variable in pathlist.
Class for handling the sort operations.
None |
None |
VariablesProxyModel | Constructor |
hasChildren | Public method to get a flag if parent has children. |
setExpanded | Public slot to get a flag if parent has children. |
None |
Constructor
Public method to get a flag if parent has children.
The given model index has to be transformed to the underlying source model to get the correct result.
Public slot to get a flag if parent has children.
The given model index has to be transformed to the underlying source model to get the correct result.
Class implementing the variables viewer view.
This view 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 expand or collapse the item, if it has children and the double click was performed on the first column of the tree, otherwise it'll popup a dialog showing the variables parameters in a more readable form. This is especially useful for lengthy strings.
This view has two modes for displaying the global and the local variables.
None |
None |
VariablesViewer | Constructor |
__collapseChildren | Private slot to collapse all child items of current parent. |
__configure | Private method to open the configuration dialog. |
__configureFilter | Private method to open the variables filter dialog. |
__createPopupMenus | Private method to generate the popup menus. |
__expandChildren | Private slot to expand all child items of current parent. |
__itemDoubleClicked | Private method called if an item was double clicked. |
__mdlRequestExpand | Private method to inform the view about items to be expand. |
__refreshView | Private slot to refresh the view. |
__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. |
handleResetUI | Public method to reset the VariablesViewer. |
resizeEvent | Protected slot informing about the widget size change. |
showVariable | Public method to show variables in a list. |
showVariables | Public method to show variables in a list. |
verticalScrollbarValueChanged | Public slot informing about the scrollbar change. |
None |
Constructor
Private slot to collapse all child items of current parent.
Private method to open the configuration dialog.
Private method to open the variables filter dialog.
Private method to generate the popup menus.
Private slot to expand all child items of current parent.
Private method called if an item was double clicked.
Private method to inform the view about items to be expand.
Private slot to refresh the view.
Private slot to show the context menu.
Private slot to show details about the selected variable.
Private method to show details about a variable.
Public method to reset the VariablesViewer.
Protected slot informing about the widget size change.
Public method to show variables in a list.
Public method to show variables in a list.
Public slot informing about the scrollbar change.