# eric3.Debugger.BreakPointViewer

Module implementing the Breakpoint viewer widget.

### 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.

### Derived from

QListView

### Methods

BreakPointViewer | Constructor
addBreak | Private slot to handle the add breakpoint context menu entry.
clearBreakpoint | Public slot to handle the clientClearBreak signal.
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.
deleteBreakpoint | Private method to delete a breakpoint.
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.
editBreak | Private slot to handle the edit breakpoint context menu entry.
editBreakpoint | Private slot to edit a breakpoint.
editorClosed | Public slot to handle the editorClosed signal.
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.
findBreakpoint | Private method to find a specific breakpoint in the list.
findItems | Private method to find all items matching the given filename.
getRefreshedItem | Private method to get an item with refreshed values.
getRefreshedSelectedItems | Public method to get the selected items after a refresh of the display.
getSelectedItemsCount | Public method to get the count of items selcted.
handleContextMenu | Private slot to show the context menu of the listview.
handleDoubleClicked | Private slot to handle the double clicked signal.
handleResetUI | Public slot to reset the breakpoint viewer.
handleShowBackMenu | Private slot to handle the aboutToShow signal of the background menu.
highlightBreakpoint | Public slot to handle the clientLine signal.
refresh | Public slot to refresh the breakpoints display.
setDebugger | Public method to set a reference to the Debug UI.
setEnabledStatus | Private method to set the enabled status of a breakpoint.
showEvent | Protected slot called when this widget is being shown.
showSource | Private slot to handle the goto context menu entry.

### BreakPointViewer (Constructor)

BreakPointViewer(parent = None)

Constructor

parent
  the parent (QWidget)

### BreakPointViewer.addBreak

addBreak()

Private slot to handle the add breakpoint context menu entry.

### BreakPointViewer.clearBreakpoint

clearBreakpoint(fn, lineno)

Public slot to handle the clientClearBreak signal.

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

### 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.deleteBreakpoint

deleteBreakpoint(itm)

Private method to delete a breakpoint.

itm
  reference to the breakpoint item (QListViewItem)

### 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.editBreak

editBreak()

Private slot to handle the edit breakpoint context menu entry.

### BreakPointViewer.editBreakpoint

editBreakpoint(itm)

Private slot to edit a breakpoint.

itm
  breakpoint to be edited (QListViewItem)

### BreakPointViewer.editorClosed

editorClosed(fn)

Public slot to handle the editorClosed signal.

fn
  filename of the editor to be closed (string or QString)

### 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.findBreakpoint

findBreakpoint(fn, lineno)

Private method to find a specific breakpoint in the list.

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

### BreakPointViewer.findItems

findItems(filename)

Private method to find all items matching the given filename.

filename
  name of the file to be matched (string or QString)

Returns:
  list of items found (list of QListViewItem)

### BreakPointViewer.getRefreshedItem

getRefreshedItem(itm)

Private method to get an item with refreshed values.

itm
  item to be refreshed (QListViewItem)

Returns:
  refreshed item (QListViewItem)

### BreakPointViewer.getRefreshedSelectedItems

getRefreshedSelectedItems()

Public method to get the selected items after a refresh of the display.

Returns:
  list of refreshed selected items (list of QListViewItem)

### BreakPointViewer.getSelectedItemsCount

getSelectedItemsCount()

Public method to get the count of items selcted.

Returns:
  count of items selected (integer)

### BreakPointViewer.handleContextMenu

handleContextMenu(itm, coord, col)

Private slot to show the context menu of the listview.

itm
  the selected listview item (QListViewItem)
coord
  the position of the mouse pointer (QPoint)
col
  the column of the mouse pointer (int)

### BreakPointViewer.handleDoubleClicked

handleDoubleClicked(itm, coord, col)

Private slot to handle the double clicked signal.

itm
  the selected listview item (QListViewItem)
coord
  the position of the mouse pointer (QPoint)
col
  the column of the mouse pointer (int)

### BreakPointViewer.handleResetUI

handleResetUI()

Public slot to reset the breakpoint viewer.

### BreakPointViewer.handleShowBackMenu

handleShowBackMenu()

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

### 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.refresh

refresh()

Public slot to refresh the breakpoints display.

### BreakPointViewer.setDebugger

setDebugger(dbg)

Public method to set a reference to the Debug UI.

dbg
  reference to the DebugUI objectTrees

### BreakPointViewer.setEnabledStatus

setEnabledStatus(itm, enabled)

Private method to set the enabled status of a breakpoint.

itm
  reference to the breakpoint item (QListViewItem)
enabled
  flag indicating the enabled status to be set (boolean)

### BreakPointViewer.showEvent

showEvent(evt)

Protected slot called when this widget is being shown.

evt
  the event (QShowEvent)

### BreakPointViewer.showSource

showSource()

Private slot to handle the goto context menu entry.

Up