655 self.tr("Delete forms"), |
655 self.tr("Delete forms"), |
656 self.tr( |
656 self.tr( |
657 "Do you really want to delete these forms from the project?"), |
657 "Do you really want to delete these forms from the project?"), |
658 files) |
658 files) |
659 |
659 |
660 if dlg.exec_() == QDialog.Accepted: |
660 if dlg.exec() == QDialog.Accepted: |
661 for fn2, fn in zip(fullNames, files): |
661 for fn2, fn in zip(fullNames, files): |
662 self.closeSourceWindow.emit(fn2) |
662 self.closeSourceWindow.emit(fn2) |
663 self.project.deleteFile(fn) |
663 self.project.deleteFile(fn) |
664 |
664 |
665 ########################################################################### |
665 ########################################################################### |
889 cwd = os.getcwd() |
889 cwd = os.getcwd() |
890 os.chdir(os.path.dirname(os.path.abspath(fn))) |
890 os.chdir(os.path.dirname(os.path.abspath(fn))) |
891 |
891 |
892 dlg = CreateDialogCodeDialog(fn, self.project, self) |
892 dlg = CreateDialogCodeDialog(fn, self.project, self) |
893 if not dlg.initError(): |
893 if not dlg.initError(): |
894 dlg.exec_() |
894 dlg.exec() |
895 |
895 |
896 # reset the environment |
896 # reset the environment |
897 os.chdir(cwd) |
897 os.chdir(cwd) |
898 del sys.path[0] |
898 del sys.path[0] |
899 |
899 |
1063 |
1063 |
1064 params = self.project.pdata["UICPARAMS"] |
1064 params = self.project.pdata["UICPARAMS"] |
1065 |
1065 |
1066 if self.project.getProjectType() in ["PyQt5", "E6Plugin"]: |
1066 if self.project.getProjectType() in ["PyQt5", "E6Plugin"]: |
1067 dlg = UicCompilerOptionsDialog(params, self.getUiCompiler()) |
1067 dlg = UicCompilerOptionsDialog(params, self.getUiCompiler()) |
1068 if dlg.exec_() == QDialog.Accepted: |
1068 if dlg.exec() == QDialog.Accepted: |
1069 package, suffix, root = dlg.getData() |
1069 package, suffix, root = dlg.getData() |
1070 if package != params["Package"]: |
1070 if package != params["Package"]: |
1071 params["Package"] = package |
1071 params["Package"] = package |
1072 self.project.setDirty(True) |
1072 self.project.setDirty(True) |
1073 if suffix != params["RcSuffix"]: |
1073 if suffix != params["RcSuffix"]: |