20 def __init__(self, recursive, parent=None): |
20 def __init__(self, recursive, parent=None): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param recursive flag indicating a recursive set is requested |
24 @param recursive flag indicating a recursive set is requested |
25 @param parent parent widget (QWidget) |
25 @type bool |
|
26 @param parent parent widget |
|
27 @type QWidget |
26 """ |
28 """ |
27 super().__init__(parent) |
29 super().__init__(parent) |
28 self.setupUi(self) |
30 self.setupUi(self) |
29 |
31 |
30 self.recurseCheckBox.setChecked(recursive) |
32 self.recurseCheckBox.setChecked(recursive) |
31 |
33 |
32 def getData(self): |
34 def getData(self): |
33 """ |
35 """ |
34 Public slot used to retrieve the data entered into the dialog. |
36 Public slot used to retrieve the data entered into the dialog. |
35 |
37 |
36 @return tuple of three values giving the property name, the text |
38 @return tuple containing the property name, the text of the property and |
37 of the property and a flag indicating, that this property |
39 a flag indicating, that this property should be applied recursively. |
38 should be applied recursively. (string, string, boolean) |
40 @rtype tuple of (str, str, bool) |
39 """ |
41 """ |
40 return ( |
42 return ( |
41 self.propNameEdit.text(), |
43 self.propNameEdit.text(), |
42 self.propTextEdit.toPlainText(), |
44 self.propTextEdit.toPlainText(), |
43 self.recurseCheckBox.isChecked(), |
45 self.recurseCheckBox.isChecked(), |