# eric4.Debugger.BreakPointViewer

Module implementing the Breakpoint viewer widget.

### Global Attributes

None

### Classes

BreakPointViewer | Class implementing the Breakpoint viewer widget.

### Functions

None

## BreakPointViewer

Class implementing the Breakpoint viewer widget.

Breakpoints will be shown with all their details. They can be modified through the context menu of this widget.

### Signals

sourceFile(string, int)
  emitted to show the source of a breakpoint

### Derived from

QTreeView

### Class Attributes

None

### Class Methods

None

### Methods

BreakPointViewer | Constructor
__addBreak | Private slot to handle the add breakpoint context menu entry.
__clearSelection | Private slot to clear the selection.
__configure | Private method to open the configuration dialog.
__createPopupMenus | Private method to generate the popup menus.
__deleteAllBreaks | Private slot to handle the delete all breakpoints context menu entry.
__deleteBreak | Private slot to handle the delete breakpoint context menu entry.
__deleteSelectedBreaks | Private slot to handle the delete selected breakpoints context menu entry.
__disableAllBreaks | Private slot to handle the disable all breakpoints context menu entry.
__disableBreak | Private slot to handle the disable breakpoint context menu entry.
__disableSelectedBreaks | Private slot to handle the disable selected breakpoints context menu entry.
__doubleClicked | Private slot to handle the double clicked signal.
__editBreak | Private slot to handle the edit breakpoint context menu entry.
__editBreakpoint | Private slot to edit a breakpoint.
__enableAllBreaks | Private slot to handle the enable all breakpoints context menu entry.
__enableBreak | Private slot to handle the enable breakpoint context menu entry.
__enableSelectedBreaks | Private slot to handle the enable selected breakpoints context menu entry.
__fromSourceIndex | Private slot to convert a source index to an index.
__getSelectedItemsCount | Private method to get the count of items selected.
__layoutDisplay | Private slot to perform a layout operation.
__resizeColumns | Private slot to resize the view when items get added, edited or deleted.
__resort | Private slot to resort the tree.
__setBpEnabled | Private method to set the enabled status of a breakpoint.
__setRowSelected | Private slot to select a complete row.
__showBackMenu | Private slot to handle the aboutToShow signal of the background menu.
__showContextMenu | Private slot to show the context menu.
__showSource | Private slot to handle the goto context menu entry.
__toSourceIndex | Private slot to convert an index to a source index.
handleResetUI | Public slot to reset the breakpoint viewer.
highlightBreakpoint | Public slot to handle the clientLine signal.
setModel | Public slot to set the breakpoint model.

### Static Methods

None

#### BreakPointViewer (Constructor)

BreakPointViewer(parent = None)

Constructor

parent
  the parent (QWidget)

#### BreakPointViewer.__addBreak

__addBreak()

Private slot to handle the add breakpoint context menu entry.

#### BreakPointViewer.__clearSelection

__clearSelection()

Private slot to clear the selection.

#### BreakPointViewer.__configure

__configure()

Private method to open the configuration dialog.

#### BreakPointViewer.__createPopupMenus

__createPopupMenus()

Private method to generate the popup menus.

#### BreakPointViewer.__deleteAllBreaks

__deleteAllBreaks()

Private slot to handle the delete all breakpoints context menu entry.

#### BreakPointViewer.__deleteBreak

__deleteBreak()

Private slot to handle the delete breakpoint context menu entry.

#### BreakPointViewer.__deleteSelectedBreaks

__deleteSelectedBreaks()

Private slot to handle the delete selected breakpoints context menu entry.

#### BreakPointViewer.__disableAllBreaks

__disableAllBreaks()

Private slot to handle the disable all breakpoints context menu entry.

#### BreakPointViewer.__disableBreak

__disableBreak()

Private slot to handle the disable breakpoint context menu entry.

#### BreakPointViewer.__disableSelectedBreaks

__disableSelectedBreaks()

Private slot to handle the disable selected breakpoints context menu entry.

#### BreakPointViewer.__doubleClicked

__doubleClicked(index)

Private slot to handle the double clicked signal.

index
  index of the entry that was double clicked (QModelIndex)

#### BreakPointViewer.__editBreak

__editBreak()

Private slot to handle the edit breakpoint context menu entry.

#### BreakPointViewer.__editBreakpoint

__editBreakpoint(index)

Private slot to edit a breakpoint.

index
  index of breakpoint to be edited (QModelIndex)

#### BreakPointViewer.__enableAllBreaks

__enableAllBreaks()

Private slot to handle the enable all breakpoints context menu entry.

#### BreakPointViewer.__enableBreak

__enableBreak()

Private slot to handle the enable breakpoint context menu entry.

#### BreakPointViewer.__enableSelectedBreaks

__enableSelectedBreaks()

Private slot to handle the enable selected breakpoints context menu entry.

#### BreakPointViewer.__fromSourceIndex

__fromSourceIndex(sindex)

Private slot to convert a source index to an index.

sindex
  source index to be converted (QModelIndex)

#### BreakPointViewer.__getSelectedItemsCount

__getSelectedItemsCount()

Private method to get the count of items selected.

Returns:
  count of items selected (integer)

#### BreakPointViewer.__layoutDisplay

__layoutDisplay()

Private slot to perform a layout operation.

#### BreakPointViewer.__resizeColumns

__resizeColumns()

Private slot to resize the view when items get added, edited or deleted.

#### BreakPointViewer.__resort

__resort()

Private slot to resort the tree.

#### BreakPointViewer.__setBpEnabled

__setBpEnabled(index, enabled)

Private method to set the enabled status of a breakpoint.

index
  index of breakpoint to be enabled/disabled (QModelIndex)
enabled
  flag indicating the enabled status to be set (boolean)

#### BreakPointViewer.__setRowSelected

__setRowSelected(index, selected = True)

Private slot to select a complete row.

index
  index determining the row to be selected (QModelIndex)
selected
  flag indicating the action (bool)

#### BreakPointViewer.__showBackMenu

__showBackMenu()

Private slot to handle the aboutToShow signal of the background menu.

#### BreakPointViewer.__showContextMenu

__showContextMenu(coord)

Private slot to show the context menu.

coord
  the position of the mouse pointer (QPoint)

#### BreakPointViewer.__showSource

__showSource()

Private slot to handle the goto context menu entry.

#### BreakPointViewer.__toSourceIndex

__toSourceIndex(index)

Private slot to convert an index to a source index.

index
  index to be converted (QModelIndex)

#### BreakPointViewer.handleResetUI

handleResetUI()

Public slot to reset the breakpoint viewer.

#### BreakPointViewer.highlightBreakpoint

highlightBreakpoint(fn, lineno)

Public slot to handle the clientLine signal.

fn
  filename of the breakpoint (QString)
lineno
  line number of the breakpoint (integer)

#### BreakPointViewer.setModel

setModel(model)

Public slot to set the breakpoint model.

reference
  to the breakpoint model (BreakPointModel)

Up