Graphics/ApplicationDiagramBuilder.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
62 modules.append(Utilities.normabsjoinpath( 62 modules.append(Utilities.normabsjoinpath(
63 self.project.ppath, module)) 63 self.project.ppath, module))
64 tot = len(modules) 64 tot = len(modules)
65 try: 65 try:
66 prog = 0 66 prog = 0
67 progress = QProgressDialog(self.trUtf8("Parsing modules..."), 67 progress = QProgressDialog(
68 self.trUtf8("Parsing modules..."),
68 None, 0, tot, self.parent()) 69 None, 0, tot, self.parent())
69 progress.show() 70 progress.show()
70 QApplication.processEvents() 71 QApplication.processEvents()
71 72
72 for module in modules: 73 for module in modules:
274 not parts[1].startswith("no_modules="): 275 not parts[1].startswith("no_modules="):
275 return False 276 return False
276 277
277 projectFile = parts[0].split("=", 1)[1].strip() 278 projectFile = parts[0].split("=", 1)[1].strip()
278 if projectFile != self.project.getProjectFile(): 279 if projectFile != self.project.getProjectFile():
279 res = E5MessageBox.yesNo(None, 280 res = E5MessageBox.yesNo(
281 None,
280 self.trUtf8("Load Diagram"), 282 self.trUtf8("Load Diagram"),
281 self.trUtf8( 283 self.trUtf8(
282 """<p>The diagram belongs to the project <b>{0}</b>.""" 284 """<p>The diagram belongs to the project <b>{0}</b>."""
283 """ Shall this project be opened?</p>""").format( 285 """ Shall this project be opened?</p>""").format(
284 projectFile)) 286 projectFile))

eric ide

mercurial