19 def __init__(self, properties, parent=None, name=None, modal=False): |
19 def __init__(self, properties, parent=None, name=None, modal=False): |
20 """ |
20 """ |
21 Constructor |
21 Constructor |
22 |
22 |
23 @param properties properties for the watch expression (tuple) |
23 @param properties properties for the watch expression (tuple) |
24 (expression, temporary flag, enabled flag, ignore count, special condition) |
24 (expression, temporary flag, enabled flag, ignore count, |
|
25 special condition) |
25 @param parent the parent of this dialog |
26 @param parent the parent of this dialog |
26 @param name the widget name of this dialog |
27 @param name the widget name of this dialog |
27 @param modal flag indicating a modal dialog |
28 @param modal flag indicating a modal dialog |
28 """ |
29 """ |
29 super().__init__(parent) |
30 super().__init__(parent) |
64 else: |
65 else: |
65 self.specialEdit.setFocus() |
66 self.specialEdit.setFocus() |
66 |
67 |
67 def __textChanged(self, txt): |
68 def __textChanged(self, txt): |
68 """ |
69 """ |
69 Private slot to handle the text changed signal of the condition line edit. |
70 Private slot to handle the text changed signal of the condition line |
|
71 edit. |
70 |
72 |
71 @param txt text of the line edit (string) |
73 @param txt text of the line edit (string) |
72 """ |
74 """ |
73 if self.conditionButton.isChecked(): |
75 if self.conditionButton.isChecked(): |
74 self.buttonBox.button(QDialogButtonBox.Ok)\ |
76 self.buttonBox.button(QDialogButtonBox.Ok)\ |
83 def getData(self): |
85 def getData(self): |
84 """ |
86 """ |
85 Public method to retrieve the entered data. |
87 Public method to retrieve the entered data. |
86 |
88 |
87 @return a tuple containing the watch expressions new properties |
89 @return a tuple containing the watch expressions new properties |
88 (expression, temporary flag, enabled flag, ignore count, special condition) |
90 (expression, temporary flag, enabled flag, ignore count, |
|
91 special condition) |
89 """ |
92 """ |
90 if self.conditionButton.isChecked(): |
93 if self.conditionButton.isChecked(): |
91 return (self.conditionEdit.text(), |
94 return (self.conditionEdit.text(), |
92 self.temporaryCheckBox.isChecked(), |
95 self.temporaryCheckBox.isChecked(), |
93 self.enabledCheckBox.isChecked(), |
96 self.enabledCheckBox.isChecked(), |