14 |
14 |
15 class PropertiesDialog(QDialog, Ui_PropertiesDialog): |
15 class PropertiesDialog(QDialog, Ui_PropertiesDialog): |
16 """ |
16 """ |
17 Class implementing the multi project properties dialog. |
17 Class implementing the multi project properties dialog. |
18 """ |
18 """ |
|
19 |
19 def __init__(self, multiProject, new=True, parent=None): |
20 def __init__(self, multiProject, new=True, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param multiProject reference to the multi project object |
24 @param multiProject reference to the multi project object |
24 @param new flag indicating the generation of a new multi project |
25 @param new flag indicating the generation of a new multi project |
25 @param parent parent widget of this dialog (QWidget) |
26 @param parent parent widget of this dialog (QWidget) |
26 """ |
27 """ |
27 super().__init__(parent) |
28 super().__init__(parent) |
28 self.setupUi(self) |
29 self.setupUi(self) |
29 |
30 |
30 self.multiProject = multiProject |
31 self.multiProject = multiProject |
31 self.newMultiProject = new |
32 self.newMultiProject = new |
32 |
33 |
33 if not new: |
34 if not new: |
34 self.descriptionEdit.setPlainText(self.multiProject.description) |
35 self.descriptionEdit.setPlainText(self.multiProject.description) |
35 |
36 |
36 def storeData(self): |
37 def storeData(self): |
37 """ |
38 """ |
38 Public method to store the entered/modified data. |
39 Public method to store the entered/modified data. |
39 """ |
40 """ |
40 self.multiProject.description = self.descriptionEdit.toPlainText() |
41 self.multiProject.description = self.descriptionEdit.toPlainText() |