349 """ |
349 """ |
350 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
350 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
351 |
351 |
352 if self.spellPropertiesDlg is None: |
352 if self.spellPropertiesDlg is None: |
353 self.spellPropertiesDlg = SpellingPropertiesDialog( |
353 self.spellPropertiesDlg = SpellingPropertiesDialog( |
354 self.project, self.newProject, self |
354 self.project, self.newProject, parent=self |
355 ) |
355 ) |
356 res = self.spellPropertiesDlg.exec() |
356 res = self.spellPropertiesDlg.exec() |
357 if res == QDialog.DialogCode.Rejected: |
357 if res == QDialog.DialogCode.Rejected: |
358 self.spellPropertiesDlg.initDialog() # reset the dialogs contents |
358 self.spellPropertiesDlg.initDialog() # reset the dialogs contents |
359 |
359 |
364 """ |
364 """ |
365 from .TranslationPropertiesDialog import TranslationPropertiesDialog |
365 from .TranslationPropertiesDialog import TranslationPropertiesDialog |
366 |
366 |
367 if self.transPropertiesDlg is None: |
367 if self.transPropertiesDlg is None: |
368 self.transPropertiesDlg = TranslationPropertiesDialog( |
368 self.transPropertiesDlg = TranslationPropertiesDialog( |
369 self.project, self.newProject, self, isRemote=self.__remoteProject |
369 self.project, |
|
370 self.newProject, |
|
371 parent=self, |
|
372 isRemote=self.__remoteProject, |
370 ) |
373 ) |
371 else: |
374 else: |
372 self.transPropertiesDlg.initFilters() |
375 self.transPropertiesDlg.initFilters() |
373 res = self.transPropertiesDlg.exec() |
376 res = self.transPropertiesDlg.exec() |
374 if res == QDialog.DialogCode.Rejected: |
377 if res == QDialog.DialogCode.Rejected: |
381 """ |
384 """ |
382 from .MakePropertiesDialog import MakePropertiesDialog |
385 from .MakePropertiesDialog import MakePropertiesDialog |
383 |
386 |
384 if self.makePropertiesDlg is None: |
387 if self.makePropertiesDlg is None: |
385 self.makePropertiesDlg = MakePropertiesDialog( |
388 self.makePropertiesDlg = MakePropertiesDialog( |
386 self.project, self.newProject, self |
389 self.project, self.newProject, parent=self |
387 ) |
390 ) |
388 res = self.makePropertiesDlg.exec() |
391 res = self.makePropertiesDlg.exec() |
389 if res == QDialog.DialogCode.Rejected: |
392 if res == QDialog.DialogCode.Rejected: |
390 self.makePropertiesDlg.initDialog() |
393 self.makePropertiesDlg.initDialog() |
391 |
394 |
433 |
436 |
434 if self.project.vcs is None: |
437 if self.project.vcs is None: |
435 return |
438 return |
436 |
439 |
437 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath) |
440 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath) |
438 dlg = VcsRepositoryInfoDialog(self, info) |
441 dlg = VcsRepositoryInfoDialog(parent=self, info=info) |
439 dlg.exec() |
442 dlg.exec() |
440 |
443 |
441 def getProjectType(self): |
444 def getProjectType(self): |
442 """ |
445 """ |
443 Public method to get the selected project type. |
446 Public method to get the selected project type. |
508 self.languageComboBox.currentText(), |
511 self.languageComboBox.currentText(), |
509 self.mixedLanguageCheckBox.isChecked(), |
512 self.mixedLanguageCheckBox.isChecked(), |
510 self.getProjectType(), |
513 self.getProjectType(), |
511 ) |
514 ) |
512 |
515 |
513 dlg = FiletypeAssociationDialog(self.project, self.__fileTypesDict) |
516 dlg = FiletypeAssociationDialog(self.project, self.__fileTypesDict, parent=self) |
514 if dlg.exec() == QDialog.DialogCode.Accepted: |
517 if dlg.exec() == QDialog.DialogCode.Accepted: |
515 self.__fileTypesDict = dlg.getData() |
518 self.__fileTypesDict = dlg.getData() |
516 |
519 |
517 self.__setMainScriptPickerFilters() |
520 self.__setMainScriptPickerFilters() |
518 |
521 |