68 self.setWindowTitle(self.tr("Project Properties")) |
68 self.setWindowTitle(self.tr("Project Properties")) |
69 |
69 |
70 self.nameEdit.setText(project.name) |
70 self.nameEdit.setText(project.name) |
71 self.filenamePicker.setText(project.file) |
71 self.filenamePicker.setText(project.file) |
72 self.descriptionEdit.setPlainText(project.description) |
72 self.descriptionEdit.setPlainText(project.description) |
73 self.mainCheckBox.setChecked(project.master) |
73 self.mainCheckBox.setChecked(project.main) |
74 index = self.categoryComboBox.findText(project.category) |
74 index = self.categoryComboBox.findText(project.category) |
75 if index == -1: |
75 if index == -1: |
76 index = 0 |
76 index = 0 |
77 self.categoryComboBox.setCurrentIndex(index) |
77 self.categoryComboBox.setCurrentIndex(index) |
78 self.uid = project.uid |
78 self.uid = project.uid |
90 |
90 |
91 return MultiProjectProjectMeta( |
91 return MultiProjectProjectMeta( |
92 name=self.nameEdit.text(), |
92 name=self.nameEdit.text(), |
93 file=self.__getFileName(), |
93 file=self.__getFileName(), |
94 uid=self.uid, |
94 uid=self.uid, |
95 master=self.mainCheckBox.isChecked(), |
95 main=self.mainCheckBox.isChecked(), |
96 description=self.descriptionEdit.toPlainText(), |
96 description=self.descriptionEdit.toPlainText(), |
97 category=self.categoryComboBox.currentText(), |
97 category=self.categoryComboBox.currentText(), |
98 ) |
98 ) |
99 |
99 |
100 def __getFileName(self): |
100 def __getFileName(self): |