114 else: |
114 else: |
115 self.vcsLabel.setText( |
115 self.vcsLabel.setText( |
116 self.tr("The project is not version controlled.")) |
116 self.tr("The project is not version controlled.")) |
117 self.vcsInfoButton.hide() |
117 self.vcsInfoButton.hide() |
118 self.vcsCheckBox.hide() |
118 self.vcsCheckBox.hide() |
|
119 self.makeCheckBox.setChecked( |
|
120 self.project.pdata["MAKEPARAMS"]["MakeEnabled"]) |
119 else: |
121 else: |
120 self.languageComboBox.setCurrentIndex( |
122 self.languageComboBox.setCurrentIndex( |
121 self.languageComboBox.findText("Python3")) |
123 self.languageComboBox.findText("Python3")) |
122 self.projectTypeComboBox.setCurrentIndex( |
124 self.projectTypeComboBox.setCurrentIndex( |
123 self.projectTypeComboBox.findData("PyQt5")) |
125 self.projectTypeComboBox.findData("PyQt5")) |
197 def on_makeButton_clicked(self): |
199 def on_makeButton_clicked(self): |
198 """ |
200 """ |
199 Private slot to display the make properties dialog. |
201 Private slot to display the make properties dialog. |
200 """ |
202 """ |
201 if self.makePropertiesDlg is None: |
203 if self.makePropertiesDlg is None: |
202 # TODO: add 'make' support - implement MakePropertiesDialog |
|
203 from .MakePropertiesDialog import MakePropertiesDialog |
204 from .MakePropertiesDialog import MakePropertiesDialog |
204 self.makePropertiesDlg = \ |
205 self.makePropertiesDlg = \ |
205 MakePropertiesDialog(self.project, self.newProject, self) |
206 MakePropertiesDialog(self.project, self.newProject, self) |
206 res = self.makePropertiesDlg.exec_() |
207 res = self.makePropertiesDlg.exec_() |
207 if res == QDialog.Rejected: |
208 if res == QDialog.Rejected: |
302 self.spellPropertiesDlg.storeData() |
303 self.spellPropertiesDlg.storeData() |
303 |
304 |
304 if self.transPropertiesDlg is not None: |
305 if self.transPropertiesDlg is not None: |
305 self.transPropertiesDlg.storeData() |
306 self.transPropertiesDlg.storeData() |
306 |
307 |
|
308 self.project.pdata["MAKEPARAMS"]["MakeEnabled"] = \ |
|
309 self.makeCheckBox.isChecked() |
307 if self.makePropertiesDlg is not None: |
310 if self.makePropertiesDlg is not None: |
308 self.makePropertiesDlg.storeData() |
311 self.makePropertiesDlg.storeData() |