eric6/Project/PropertiesDialog.py

changeset 7759
51aa6c6b66f7
parent 7533
88261c96484b
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
179 """ 179 """
180 if self.spellPropertiesDlg is None: 180 if self.spellPropertiesDlg is None:
181 from .SpellingPropertiesDialog import SpellingPropertiesDialog 181 from .SpellingPropertiesDialog import SpellingPropertiesDialog
182 self.spellPropertiesDlg = SpellingPropertiesDialog( 182 self.spellPropertiesDlg = SpellingPropertiesDialog(
183 self.project, self.newProject, self) 183 self.project, self.newProject, self)
184 res = self.spellPropertiesDlg.exec_() 184 res = self.spellPropertiesDlg.exec()
185 if res == QDialog.Rejected: 185 if res == QDialog.Rejected:
186 self.spellPropertiesDlg.initDialog() # reset the dialogs contents 186 self.spellPropertiesDlg.initDialog() # reset the dialogs contents
187 187
188 @pyqtSlot() 188 @pyqtSlot()
189 def on_transPropertiesButton_clicked(self): 189 def on_transPropertiesButton_clicked(self):
196 ) 196 )
197 self.transPropertiesDlg = TranslationPropertiesDialog( 197 self.transPropertiesDlg = TranslationPropertiesDialog(
198 self.project, self.newProject, self) 198 self.project, self.newProject, self)
199 else: 199 else:
200 self.transPropertiesDlg.initFilters() 200 self.transPropertiesDlg.initFilters()
201 res = self.transPropertiesDlg.exec_() 201 res = self.transPropertiesDlg.exec()
202 if res == QDialog.Rejected: 202 if res == QDialog.Rejected:
203 self.transPropertiesDlg.initDialog() # reset the dialogs contents 203 self.transPropertiesDlg.initDialog() # reset the dialogs contents
204 204
205 @pyqtSlot() 205 @pyqtSlot()
206 def on_makeButton_clicked(self): 206 def on_makeButton_clicked(self):
209 """ 209 """
210 if self.makePropertiesDlg is None: 210 if self.makePropertiesDlg is None:
211 from .MakePropertiesDialog import MakePropertiesDialog 211 from .MakePropertiesDialog import MakePropertiesDialog
212 self.makePropertiesDlg = MakePropertiesDialog( 212 self.makePropertiesDlg = MakePropertiesDialog(
213 self.project, self.newProject, self) 213 self.project, self.newProject, self)
214 res = self.makePropertiesDlg.exec_() 214 res = self.makePropertiesDlg.exec()
215 if res == QDialog.Rejected: 215 if res == QDialog.Rejected:
216 self.makePropertiesDlg.initDialog() 216 self.makePropertiesDlg.initDialog()
217 217
218 @pyqtSlot(str) 218 @pyqtSlot(str)
219 def on_mainscriptPicker_pathSelected(self, script): 219 def on_mainscriptPicker_pathSelected(self, script):
250 return 250 return
251 251
252 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog 252 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog
253 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath) 253 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath)
254 dlg = VcsRepositoryInfoDialog(self, info) 254 dlg = VcsRepositoryInfoDialog(self, info)
255 dlg.exec_() 255 dlg.exec()
256 256
257 def getProjectType(self): 257 def getProjectType(self):
258 """ 258 """
259 Public method to get the selected project type. 259 Public method to get the selected project type.
260 260

eric ide

mercurial