Project/ProjectSourcesBrowser.py

changeset 2025
8bb085c59cd2
parent 1734
a29e0271ff3d
child 2031
c36c2eb62a75
equal deleted inserted replaced
2024:717b72b32420 2025:8bb085c59cd2
859 fn = itm.dirName() 859 fn = itm.dirName()
860 res = E5MessageBox.yesNo(self, 860 res = E5MessageBox.yesNo(self,
861 self.trUtf8("Class Diagram"), 861 self.trUtf8("Class Diagram"),
862 self.trUtf8("""Include class attributes?"""), 862 self.trUtf8("""Include class attributes?"""),
863 yesDefault=True) 863 yesDefault=True)
864 self.classDiagram = UMLClassDiagram(fn, self, noAttrs=not res) 864 self.classDiagram = UMLClassDiagram(self.project, fn, self, noAttrs=not res)
865 self.classDiagram.show() 865 self.classDiagram.show()
866 866
867 def __showImportsDiagram(self): 867 def __showImportsDiagram(self):
868 """ 868 """
869 Private method to handle the imports diagram context menu action. 869 Private method to handle the imports diagram context menu action.
875 fn = itm.dirName() 875 fn = itm.dirName()
876 package = os.path.isdir(fn) and fn or os.path.dirname(fn) 876 package = os.path.isdir(fn) and fn or os.path.dirname(fn)
877 res = E5MessageBox.yesNo(self, 877 res = E5MessageBox.yesNo(self,
878 self.trUtf8("Imports Diagram"), 878 self.trUtf8("Imports Diagram"),
879 self.trUtf8("""Include imports from external modules?""")) 879 self.trUtf8("""Include imports from external modules?"""))
880 self.importsDiagram = ImportsDiagram(package, self, 880 self.importsDiagram = ImportsDiagram(self.project, package, self,
881 showExternalImports=res) 881 showExternalImports=res)
882 self.importsDiagram.show() 882 self.importsDiagram.show()
883 883
884 def __showPackageDiagram(self): 884 def __showPackageDiagram(self):
885 """ 885 """
893 package = os.path.isdir(fn) and fn or os.path.dirname(fn) 893 package = os.path.isdir(fn) and fn or os.path.dirname(fn)
894 res = E5MessageBox.yesNo(self, 894 res = E5MessageBox.yesNo(self,
895 self.trUtf8("Package Diagram"), 895 self.trUtf8("Package Diagram"),
896 self.trUtf8("""Include class attributes?"""), 896 self.trUtf8("""Include class attributes?"""),
897 yesDefault=True) 897 yesDefault=True)
898 self.packageDiagram = PackageDiagram(package, self, noAttrs=not res) 898 self.packageDiagram = PackageDiagram(self.project, package, self, noAttrs=not res)
899 self.packageDiagram.show() 899 self.packageDiagram.show()
900 900
901 def __showApplicationDiagram(self): 901 def __showApplicationDiagram(self):
902 """ 902 """
903 Private method to handle the application diagram context menu action. 903 Private method to handle the application diagram context menu action.

eric ide

mercurial