10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
13 from .Ui_SvnPropSetDialog import Ui_SvnPropSetDialog |
13 from .Ui_SvnPropSetDialog import Ui_SvnPropSetDialog |
14 |
14 |
|
15 |
15 class SvnPropSetDialog(QDialog, Ui_SvnPropSetDialog): |
16 class SvnPropSetDialog(QDialog, Ui_SvnPropSetDialog): |
16 """ |
17 """ |
17 Class implementing a dialog to enter the data for a new property. |
18 Class implementing a dialog to enter the data for a new property. |
18 """ |
19 """ |
19 def __init__(self, recursive, parent = None): |
20 def __init__(self, recursive, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param recursive flag indicating a recursive set is requested |
24 @param recursive flag indicating a recursive set is requested |
24 @param parent parent widget (QWidget) |
25 @param parent parent widget (QWidget) |
30 |
31 |
31 def getData(self): |
32 def getData(self): |
32 """ |
33 """ |
33 Public slot used to retrieve the data entered into the dialog. |
34 Public slot used to retrieve the data entered into the dialog. |
34 |
35 |
35 @return tuple of three values giving the property name, the text |
36 @return tuple of three values giving the property name, the text |
36 of the property and a flag indicating, that this property |
37 of the property and a flag indicating, that this property |
37 should be applied recursively. (string, string, boolean) |
38 should be applied recursively. (string, string, boolean) |
38 """ |
39 """ |
39 return (self.propNameEdit.text(), |
40 return (self.propNameEdit.text(), |
40 self.propTextEdit.toPlainText(), |
41 self.propTextEdit.toPlainText(), |
41 self.recurseCheckBox.isChecked()) |
42 self.recurseCheckBox.isChecked()) |