Debugger/EditBreakpointDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2988
f53c03574697
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
34 @param id id of the breakpoint (tuple) 34 @param id id of the breakpoint (tuple)
35 (filename, linenumber) 35 (filename, linenumber)
36 @param properties properties for the breakpoint (tuple) 36 @param properties properties for the breakpoint (tuple)
37 (condition, temporary flag, enabled flag, ignore count) 37 (condition, temporary flag, enabled flag, ignore count)
38 @param condHistory the list of conditionals history (list of strings) 38 @param condHistory the list of conditionals history (list of strings)
39 @param parent the parent of this dialog 39 @param parent the parent of this dialog (QWidget)
40 @param name the widget name of this dialog 40 @param name the widget name of this dialog (string)
41 @param modal flag indicating a modal dialog 41 @param modal flag indicating a modal dialog (boolean)
42 @param addMode flag indicating the add mode (boolean)
43 @param filenameHistory list of recently used file names
44 (list of strings)
42 """ 45 """
43 super(EditBreakpointDialog, self).__init__(parent) 46 super(EditBreakpointDialog, self).__init__(parent)
44 self.setupUi(self) 47 self.setupUi(self)
45 if name: 48 if name:
46 self.setObjectName(name) 49 self.setObjectName(name)
148 def getAddData(self): 151 def getAddData(self):
149 """ 152 """
150 Public method to retrieve the entered data for an add. 153 Public method to retrieve the entered data for an add.
151 154
152 @return a tuple containing the new breakpoints properties 155 @return a tuple containing the new breakpoints properties
153 (filename, lineno, condition, temporary flag, enabled flag, ignore count) 156 (filename, lineno, condition, temporary flag, enabled flag,
157 ignore count)
154 """ 158 """
155 fn = self.filenameCombo.currentText() 159 fn = self.filenameCombo.currentText()
156 if not fn: 160 if not fn:
157 fn = None 161 fn = None
158 else: 162 else:
159 fn = os.path.expanduser(os.path.expandvars(fn)) 163 fn = os.path.expanduser(os.path.expandvars(fn))
160 164
161 return (fn, self.linenoSpinBox.value(), 165 return (fn, self.linenoSpinBox.value(),
162 self.conditionCombo.currentText(), 166 self.conditionCombo.currentText(),
163 self.temporaryCheckBox.isChecked(), self.enabledCheckBox.isChecked(), 167 self.temporaryCheckBox.isChecked(),
168 self.enabledCheckBox.isChecked(),
164 self.ignoreSpinBox.value()) 169 self.ignoreSpinBox.value())

eric ide

mercurial