20 |
20 |
21 class EditBreakpointDialog(QDialog, Ui_EditBreakpointDialog): |
21 class EditBreakpointDialog(QDialog, Ui_EditBreakpointDialog): |
22 """ |
22 """ |
23 Class implementing a dialog to edit breakpoint properties. |
23 Class implementing a dialog to edit breakpoint properties. |
24 """ |
24 """ |
25 def __init__(self, id, properties, condHistory, parent=None, name=None, |
25 def __init__(self, breakPointId, properties, condHistory, parent=None, |
26 modal=False, addMode=False, filenameHistory=None): |
26 name=None, modal=False, addMode=False, filenameHistory=None): |
27 """ |
27 """ |
28 Constructor |
28 Constructor |
29 |
29 |
30 @param id id of the breakpoint (tuple) |
30 @param breakPointId id of the breakpoint (tuple) |
31 (filename, linenumber) |
31 (filename, linenumber) |
32 @param properties properties for the breakpoint (tuple) |
32 @param properties properties for the breakpoint (tuple) |
33 (condition, temporary flag, enabled flag, ignore count) |
33 (condition, temporary flag, enabled flag, ignore count) |
34 @param condHistory the list of conditionals history (list of strings) |
34 @param condHistory the list of conditionals history (list of strings) |
35 @param parent the parent of this dialog (QWidget) |
35 @param parent the parent of this dialog (QWidget) |
47 |
47 |
48 self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode) |
48 self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode) |
49 |
49 |
50 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
50 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
51 |
51 |
52 fn, lineno = id |
52 fn, lineno = breakPointId |
53 |
53 |
54 if not addMode: |
54 if not addMode: |
55 cond, temp, enabled, count = properties |
55 cond, temp, enabled, count = properties |
56 |
56 |
57 # set the filename |
57 # set the filename |