Project/PropertiesDialog.py

changeset 608
d8fea1e76975
parent 564
b3d966393ba9
child 791
9ec2ac20e54e
equal deleted inserted replaced
607:d95d60ba16aa 608:d8fea1e76975
20 from .TranslationPropertiesDialog import TranslationPropertiesDialog 20 from .TranslationPropertiesDialog import TranslationPropertiesDialog
21 from .SpellingPropertiesDialog import SpellingPropertiesDialog 21 from .SpellingPropertiesDialog import SpellingPropertiesDialog
22 22
23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog 23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog
24 24
25 import Preferences
26 import Utilities 25 import Utilities
27 26
28 class PropertiesDialog(QDialog, Ui_PropertiesDialog): 27 class PropertiesDialog(QDialog, Ui_PropertiesDialog):
29 """ 28 """
30 Class implementing the project properties dialog. 29 Class implementing the project properties dialog.
228 """ 227 """
229 self.project.ppath = os.path.abspath(self.dirEdit.text()) 228 self.project.ppath = os.path.abspath(self.dirEdit.text())
230 fn = self.nameEdit.text() 229 fn = self.nameEdit.text()
231 if fn: 230 if fn:
232 self.project.name = fn 231 self.project.name = fn
233 if Preferences.getProject("CompressedProjectFiles"): 232 fn = "{0}.e4p".format(fn)
234 fn = "{0}.e4pz".format(fn)
235 else:
236 fn = "{0}.e4p".format(fn)
237 self.project.pfile = os.path.join(self.project.ppath, fn) 233 self.project.pfile = os.path.join(self.project.ppath, fn)
238 else: 234 else:
239 self.project.pfile = "" 235 self.project.pfile = ""
240 self.project.pdata["VERSION"] = [self.versionEdit.text()] 236 self.project.pdata["VERSION"] = [self.versionEdit.text()]
241 fn = self.mainscriptEdit.text() 237 fn = self.mainscriptEdit.text()

eric ide

mercurial