eric4.Debugger.WatchPointModel

Module implementing the Watchpoint model.

Classes

WatchPointModel Class implementing a custom model for watchpoints.

Functions

None


WatchPointModel

Class implementing a custom model for watchpoints.

Derived from

QAbstractItemModel

Methods

WatchPointModel Constructor
addWatchPoint Public method to add a new watchpoint to the list.
columnCount Public method to get the current column count.
data Public method to get the requested data.
deleteAll Public method to delete all watchpoints.
deleteWatchPointByIndex Public method to set the values of a watchpoint given by index.
deleteWatchPoints Public method to delete a list of watchpoints given by their indexes.
flags Public method to get item flags.
getWatchPointByIndex Public method to get the values of a watchpoint given by index.
getWatchPointIndex Public method to get the index of a watchpoint given by condition.
hasChildren Public method to check for the presence of child items.
headerData Public method to get header data.
index Public method to create an index.
parent Public method to get the parent index.
rowCount Public method to get the current row count.
setWatchPointByIndex Public method to set the values of a watchpoint given by index.
setWatchPointEnabledByIndex Public method to set the enabled state of a watchpoint given by index.

WatchPointModel (Constructor)

WatchPointModel(parent = None)

Constructor

reference
to the parent widget (QObject)

WatchPointModel.addWatchPoint

addWatchPoint(cond, special, properties)

Public method to add a new watchpoint to the list.

cond
condition of the watchpoint (string or QString)
special
special condition of the watchpoint (string or QString)
properties
properties of the watchpoint (tuple of temporary flag (bool), enabled flag (bool), ignore count (integer))

WatchPointModel.columnCount

columnCount(parent = QModelIndex())

Public method to get the current column count.

Returns:
column count (integer)

WatchPointModel.data

data(index, role)

Public method to get the requested data.

index
index of the requested data (QModelIndex)
role
role of the requested data (Qt.ItemDataRole)
Returns:
the requested data (QVariant)

WatchPointModel.deleteAll

deleteAll()

Public method to delete all watchpoints.

WatchPointModel.deleteWatchPointByIndex

deleteWatchPointByIndex(index)

Public method to set the values of a watchpoint given by index.

index
index of the watchpoint (QModelIndex)

WatchPointModel.deleteWatchPoints

deleteWatchPoints(idxList)

Public method to delete a list of watchpoints given by their indexes.

idxList
list of watchpoint indexes (list of QModelIndex)

WatchPointModel.flags

flags(index)

Public method to get item flags.

index
index of the requested flags (QModelIndex)
Returns:
item flags for the given index (Qt.ItemFlags)

WatchPointModel.getWatchPointByIndex

getWatchPointByIndex(index)

Public method to get the values of a watchpoint given by index.

index
index of the watchpoint (QModelIndex)
Returns:
watchpoint (list of six values (condition, special condition, temporary flag, enabled flag, ignore count, index))

WatchPointModel.getWatchPointIndex

getWatchPointIndex(cond, special = "")

Public method to get the index of a watchpoint given by condition.

cond
condition of the watchpoint (string or QString)
special
special condition of the watchpoint (string or QString)
Returns:
index (QModelIndex)

WatchPointModel.hasChildren

hasChildren(parent = QModelIndex())

Public method to check for the presence of child items.

parent
index of parent item (QModelIndex)
Returns:
flag indicating the presence of child items (boolean)

WatchPointModel.headerData

headerData(section, orientation, role = Qt.DisplayRole)

Public method to get header data.

section
section number of the requested header data (integer)
orientation
orientation of the header (Qt.Orientation)
role
role of the requested data (Qt.ItemDataRole)
Returns:
header data (QVariant)

WatchPointModel.index

index(row, column, parent = QModelIndex())

Public method to create an index.

row
row number for the index (integer)
column
column number for the index (integer)
parent
index of the parent item (QModelIndex)
Returns:
requested index (QModelIndex)

WatchPointModel.parent

parent(index)

Public method to get the parent index.

index
index of item to get parent (QModelIndex)
Returns:
index of parent (QModelIndex)

WatchPointModel.rowCount

rowCount(parent = QModelIndex())

Public method to get the current row count.

Returns:
row count (integer)

WatchPointModel.setWatchPointByIndex

setWatchPointByIndex(index, cond, special, properties)

Public method to set the values of a watchpoint given by index.

index
index of the watchpoint (QModelIndex)
cond
condition of the watchpoint (string or QString)
special
special condition of the watchpoint (string or QString)
properties
properties of the watchpoint (tuple of temporary flag (bool), enabled flag (bool), ignore count (integer))

WatchPointModel.setWatchPointEnabledByIndex

setWatchPointEnabledByIndex(index, enabled)

Public method to set the enabled state of a watchpoint given by index.

index
index of the watchpoint (QModelIndex)
enabled
flag giving the enabled state (boolean)
Up