QScintilla/Editor.py

changeset 2031
c36c2eb62a75
parent 2025
8bb085c59cd2
child 2034
8de0fc1f7fef
equal deleted inserted replaced
2030:db11a2fe9bbc 2031:c36c2eb62a75
5790 5790
5791 def __showClassDiagram(self): 5791 def __showClassDiagram(self):
5792 """ 5792 """
5793 Private method to handle the Class Diagram context menu action. 5793 Private method to handle the Class Diagram context menu action.
5794 """ 5794 """
5795 from Graphics.UMLClassDiagram import UMLClassDiagram 5795 from Graphics.UMLDialog import UMLDialog
5796 if not self.checkDirty(): 5796 if not self.checkDirty():
5797 return 5797 return
5798 5798
5799 self.classDiagram = UMLClassDiagram(self.project, self.fileName, 5799 self.classDiagram = UMLDialog(UMLDialog.ClassDiagram, self.project, self.fileName,
5800 self, noAttrs=False) 5800 self, noAttrs=False)
5801 self.classDiagram.show() 5801 self.classDiagram.show()
5802 5802
5803 def __showPackageDiagram(self): 5803 def __showPackageDiagram(self):
5804 """ 5804 """
5805 Private method to handle the Package Diagram context menu action. 5805 Private method to handle the Package Diagram context menu action.
5806 """ 5806 """
5807 from Graphics.PackageDiagram import PackageDiagram 5807 from Graphics.UMLDialog import UMLDialog
5808 if not self.checkDirty(): 5808 if not self.checkDirty():
5809 return 5809 return
5810 5810
5811 package = os.path.isdir(self.fileName) and self.fileName \ 5811 package = os.path.isdir(self.fileName) and self.fileName \
5812 or os.path.dirname(self.fileName) 5812 or os.path.dirname(self.fileName)
5813 res = E5MessageBox.yesNo(self, 5813 res = E5MessageBox.yesNo(self,
5814 self.trUtf8("Package Diagram"), 5814 self.trUtf8("Package Diagram"),
5815 self.trUtf8("""Include class attributes?"""), 5815 self.trUtf8("""Include class attributes?"""),
5816 yesDefault=True) 5816 yesDefault=True)
5817 self.packageDiagram = PackageDiagram(self.project, package, self, noAttrs=not res) 5817 self.packageDiagram = UMLDialog(UMLDialog.PackageDiagram, self.project, package,
5818 self, noAttrs=not res)
5818 self.packageDiagram.show() 5819 self.packageDiagram.show()
5819 5820
5820 def __showImportsDiagram(self): 5821 def __showImportsDiagram(self):
5821 """ 5822 """
5822 Private method to handle the Imports Diagram context menu action. 5823 Private method to handle the Imports Diagram context menu action.
5823 """ 5824 """
5824 from Graphics.ImportsDiagram import ImportsDiagram 5825 from Graphics.UMLDialog import UMLDialog
5825 if not self.checkDirty(): 5826 if not self.checkDirty():
5826 return 5827 return
5827 5828
5828 package = os.path.isdir(self.fileName) and self.fileName \ 5829 package = os.path.isdir(self.fileName) and self.fileName \
5829 or os.path.dirname(self.fileName) 5830 or os.path.dirname(self.fileName)
5830 res = E5MessageBox.yesNo(self, 5831 res = E5MessageBox.yesNo(self,
5831 self.trUtf8("Imports Diagram"), 5832 self.trUtf8("Imports Diagram"),
5832 self.trUtf8("""Include imports from external modules?""")) 5833 self.trUtf8("""Include imports from external modules?"""))
5833 self.importsDiagram = ImportsDiagram(self.project, package, self, 5834 self.importsDiagram = UMLDialog(UMLDialog.ImportsDiagram, self.project, package,
5834 showExternalImports=res) 5835 self, showExternalImports=res)
5835 self.importsDiagram.show() 5836 self.importsDiagram.show()
5836 5837
5837 def __showApplicationDiagram(self): 5838 def __showApplicationDiagram(self):
5838 """ 5839 """
5839 Private method to handle the Imports Diagram context menu action. 5840 Private method to handle the Imports Diagram context menu action.
5840 """ 5841 """
5841 from Graphics.ApplicationDiagram import ApplicationDiagram 5842 from Graphics.UMLDialog import UMLDialog
5842 res = E5MessageBox.yesNo(self, 5843 res = E5MessageBox.yesNo(self,
5843 self.trUtf8("Application Diagram"), 5844 self.trUtf8("Application Diagram"),
5844 self.trUtf8("""Include module names?"""), 5845 self.trUtf8("""Include module names?"""),
5845 yesDefault=True) 5846 yesDefault=True)
5846 self.applicationDiagram = ApplicationDiagram(self.project, 5847 self.applicationDiagram = UMLDialog(UMLDialog.ApplicationDiagram, self.project,
5847 self, noModules=not res) 5848 self, noModules=not res)
5848 self.applicationDiagram.show() 5849 self.applicationDiagram.show()
5849 5850
5850 ####################################################################### 5851 #######################################################################
5851 ## Typing aids related methods below 5852 ## Typing aids related methods below
5852 ####################################################################### 5853 #######################################################################

eric ide

mercurial