10 from PyQt4.QtCore import pyqtSignal, Qt, qVersion |
10 from PyQt4.QtCore import pyqtSignal, Qt, qVersion |
11 from PyQt4.QtGui import QTreeView, QAbstractItemView, QSortFilterProxyModel, \ |
11 from PyQt4.QtGui import QTreeView, QAbstractItemView, QSortFilterProxyModel, \ |
12 QHeaderView, QItemSelectionModel, QMenu, QDialog |
12 QHeaderView, QItemSelectionModel, QMenu, QDialog |
13 |
13 |
14 from E5Gui.E5Application import e5App |
14 from E5Gui.E5Application import e5App |
15 |
|
16 from .EditBreakpointDialog import EditBreakpointDialog |
|
17 |
15 |
18 |
16 |
19 class BreakPointViewer(QTreeView): |
17 class BreakPointViewer(QTreeView): |
20 """ |
18 """ |
21 Class implementing the Breakpoint viewer widget. |
19 Class implementing the Breakpoint viewer widget. |
216 |
214 |
217 def __addBreak(self): |
215 def __addBreak(self): |
218 """ |
216 """ |
219 Private slot to handle the add breakpoint context menu entry. |
217 Private slot to handle the add breakpoint context menu entry. |
220 """ |
218 """ |
|
219 from .EditBreakpointDialog import EditBreakpointDialog |
|
220 |
221 dlg = EditBreakpointDialog((self.fnHistory[0], None), None, |
221 dlg = EditBreakpointDialog((self.fnHistory[0], None), None, |
222 self.condHistory, self, modal=1, addMode=1, |
222 self.condHistory, self, modal=1, addMode=1, |
223 filenameHistory=self.fnHistory) |
223 filenameHistory=self.fnHistory) |
224 if dlg.exec_() == QDialog.Accepted: |
224 if dlg.exec_() == QDialog.Accepted: |
225 fn, line, cond, temp, enabled, count = dlg.getAddData() |
225 fn, line, cond, temp, enabled, count = dlg.getAddData() |
266 if not bp: |
266 if not bp: |
267 return |
267 return |
268 |
268 |
269 fn, line, cond, temp, enabled, count = bp[:6] |
269 fn, line, cond, temp, enabled, count = bp[:6] |
270 |
270 |
|
271 from .EditBreakpointDialog import EditBreakpointDialog |
271 dlg = EditBreakpointDialog((fn, line), (cond, temp, enabled, count), |
272 dlg = EditBreakpointDialog((fn, line), (cond, temp, enabled, count), |
272 self.condHistory, self, modal=True) |
273 self.condHistory, self, modal=True) |
273 if dlg.exec_() == QDialog.Accepted: |
274 if dlg.exec_() == QDialog.Accepted: |
274 cond, temp, enabled, count = dlg.getData() |
275 cond, temp, enabled, count = dlg.getData() |
275 if cond: |
276 if cond: |