10 import os |
10 import os |
11 import glob |
11 import glob |
12 |
12 |
13 from PyQt6.QtWidgets import QApplication, QInputDialog |
13 from PyQt6.QtWidgets import QApplication, QInputDialog |
14 |
14 |
15 from E5Gui import E5MessageBox |
15 from E5Gui import EricMessageBox |
16 from E5Gui.E5ProgressDialog import E5ProgressDialog |
16 from E5Gui.EricProgressDialog import EricProgressDialog |
17 |
17 |
18 from .UMLDiagramBuilder import UMLDiagramBuilder |
18 from .UMLDiagramBuilder import UMLDiagramBuilder |
19 |
19 |
20 import Utilities |
20 import Utilities |
21 import Preferences |
21 import Preferences |
66 modules = [] |
66 modules = [] |
67 for module in mods: |
67 for module in mods: |
68 modules.append(Utilities.normabsjoinpath( |
68 modules.append(Utilities.normabsjoinpath( |
69 self.project.ppath, module)) |
69 self.project.ppath, module)) |
70 tot = len(modules) |
70 tot = len(modules) |
71 progress = E5ProgressDialog( |
71 progress = EricProgressDialog( |
72 self.tr("Parsing modules..."), |
72 self.tr("Parsing modules..."), |
73 None, 0, tot, self.tr("%v/%m Modules"), self.parent()) |
73 None, 0, tot, self.tr("%v/%m Modules"), self.parent()) |
74 progress.setWindowTitle(self.tr("Application Diagram")) |
74 progress.setWindowTitle(self.tr("Application Diagram")) |
75 try: |
75 try: |
76 progress.show() |
76 progress.show() |
407 ): |
407 ): |
408 return False |
408 return False |
409 |
409 |
410 projectFile = parts[0].split("=", 1)[1].strip() |
410 projectFile = parts[0].split("=", 1)[1].strip() |
411 if projectFile != self.project.getProjectFile(): |
411 if projectFile != self.project.getProjectFile(): |
412 res = E5MessageBox.yesNo( |
412 res = EricMessageBox.yesNo( |
413 None, |
413 None, |
414 self.tr("Load Diagram"), |
414 self.tr("Load Diagram"), |
415 self.tr( |
415 self.tr( |
416 """<p>The diagram belongs to the project <b>{0}</b>.""" |
416 """<p>The diagram belongs to the project <b>{0}</b>.""" |
417 """ Shall this project be opened?</p>""").format( |
417 """ Shall this project be opened?</p>""").format( |