34 filenameHistory=None, |
34 filenameHistory=None, |
35 ): |
35 ): |
36 """ |
36 """ |
37 Constructor |
37 Constructor |
38 |
38 |
39 @param breakPointId id of the breakpoint (tuple) |
39 @param breakPointId id of the breakpoint (tuple of (filename, line number) |
40 (filename, linenumber) |
40 @type tuple of (str, int) |
41 @param properties properties for the breakpoint (tuple) |
41 @param properties properties for the breakpoint (tuple of (condition, |
42 (condition, temporary flag, enabled flag, ignore count) |
42 temporary flag, enabled flag, ignore count) |
43 @param condHistory the list of conditionals history (list of strings) |
43 @type tuple of (str, bool, bool, int) |
44 @param parent the parent of this dialog (QWidget) |
44 @param condHistory the list of conditionals history |
45 @param name the widget name of this dialog (string) |
45 @type list of str |
46 @param modal flag indicating a modal dialog (boolean) |
46 @param parent the parent of this dialog |
47 @param addMode flag indicating the add mode (boolean) |
47 @type QWidget |
|
48 @param name the widget name of this dialog |
|
49 @type str |
|
50 @param modal flag indicating a modal dialog |
|
51 @type bool |
|
52 @param addMode flag indicating the add mode |
|
53 @type bool |
48 @param filenameHistory list of recently used file names |
54 @param filenameHistory list of recently used file names |
49 (list of strings) |
55 @type list of str |
50 """ |
56 """ |
51 super().__init__(parent) |
57 super().__init__(parent) |
52 self.setupUi(self) |
58 self.setupUi(self) |
53 if name: |
59 if name: |
54 self.setObjectName(name) |
60 self.setObjectName(name) |
130 |
136 |
131 def on_filenamePicker_editTextChanged(self, fn): |
137 def on_filenamePicker_editTextChanged(self, fn): |
132 """ |
138 """ |
133 Private slot to handle the change of the filename. |
139 Private slot to handle the change of the filename. |
134 |
140 |
135 @param fn text of the filename edit (string) |
141 @param fn text of the filename edit |
|
142 @type str |
136 """ |
143 """ |
137 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(fn)) |
144 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(fn)) |
138 |
145 |
139 def getData(self): |
146 def getData(self): |
140 """ |
147 """ |
141 Public method to retrieve the entered data. |
148 Public method to retrieve the entered data. |
142 |
149 |
143 @return a tuple containing the breakpoints new properties |
150 @return a tuple containing the breakpoints new properties |
144 (condition, temporary flag, enabled flag, ignore count) |
151 (condition, temporary flag, enabled flag, ignore count) |
|
152 @rtype tuple of (str, bool, bool, int) |
145 """ |
153 """ |
146 return ( |
154 return ( |
147 self.conditionCombo.currentText(), |
155 self.conditionCombo.currentText(), |
148 self.temporaryCheckBox.isChecked(), |
156 self.temporaryCheckBox.isChecked(), |
149 self.enabledCheckBox.isChecked(), |
157 self.enabledCheckBox.isChecked(), |
155 Public method to retrieve the entered data for an add. |
163 Public method to retrieve the entered data for an add. |
156 |
164 |
157 @return a tuple containing the new breakpoints properties |
165 @return a tuple containing the new breakpoints properties |
158 (filename, lineno, condition, temporary flag, enabled flag, |
166 (filename, lineno, condition, temporary flag, enabled flag, |
159 ignore count) |
167 ignore count) |
|
168 @rtype tuple of (str, int, str, bool, bool, int) |
160 """ |
169 """ |
161 fn = self.filenamePicker.currentText() |
170 fn = self.filenamePicker.currentText() |
162 fn = os.path.expanduser(os.path.expandvars(fn)) if fn else None |
171 fn = os.path.expanduser(os.path.expandvars(fn)) if fn else None |
163 |
172 |
164 return ( |
173 return ( |