801 itm = self.model().item(self.currentIndex()) |
801 itm = self.model().item(self.currentIndex()) |
802 try: |
802 try: |
803 fn = itm.fileName() |
803 fn = itm.fileName() |
804 except AttributeError: |
804 except AttributeError: |
805 fn = itm.dirName() |
805 fn = itm.dirName() |
806 res = QMessageBox.question(None, |
806 res = E5MessageBox.question(self, |
807 self.trUtf8("Class Diagram"), |
807 self.trUtf8("Class Diagram"), |
808 self.trUtf8("""Include class attributes?"""), |
808 self.trUtf8("""Include class attributes?"""), |
809 QMessageBox.StandardButtons(\ |
809 QMessageBox.StandardButtons(\ |
810 QMessageBox.No | \ |
810 QMessageBox.No | \ |
811 QMessageBox.Yes), |
811 QMessageBox.Yes), |
822 try: |
822 try: |
823 fn = itm.fileName() |
823 fn = itm.fileName() |
824 except AttributeError: |
824 except AttributeError: |
825 fn = itm.dirName() |
825 fn = itm.dirName() |
826 package = os.path.isdir(fn) and fn or os.path.dirname(fn) |
826 package = os.path.isdir(fn) and fn or os.path.dirname(fn) |
827 res = QMessageBox.question(None, |
827 res = E5MessageBox.question(self, |
828 self.trUtf8("Imports Diagram"), |
828 self.trUtf8("Imports Diagram"), |
829 self.trUtf8("""Include imports from external modules?"""), |
829 self.trUtf8("""Include imports from external modules?"""), |
830 QMessageBox.StandardButtons(\ |
830 QMessageBox.StandardButtons(\ |
831 QMessageBox.No | \ |
831 QMessageBox.No | \ |
832 QMessageBox.Yes), |
832 QMessageBox.Yes), |
843 try: |
843 try: |
844 fn = itm.fileName() |
844 fn = itm.fileName() |
845 except AttributeError: |
845 except AttributeError: |
846 fn = itm.dirName() |
846 fn = itm.dirName() |
847 package = os.path.isdir(fn) and fn or os.path.dirname(fn) |
847 package = os.path.isdir(fn) and fn or os.path.dirname(fn) |
848 res = QMessageBox.question(None, |
848 res = E5MessageBox.question(self, |
849 self.trUtf8("Package Diagram"), |
849 self.trUtf8("Package Diagram"), |
850 self.trUtf8("""Include class attributes?"""), |
850 self.trUtf8("""Include class attributes?"""), |
851 QMessageBox.StandardButtons(\ |
851 QMessageBox.StandardButtons(\ |
852 QMessageBox.No | \ |
852 QMessageBox.No | \ |
853 QMessageBox.Yes), |
853 QMessageBox.Yes), |
858 |
858 |
859 def __showApplicationDiagram(self): |
859 def __showApplicationDiagram(self): |
860 """ |
860 """ |
861 Private method to handle the application diagram context menu action. |
861 Private method to handle the application diagram context menu action. |
862 """ |
862 """ |
863 res = QMessageBox.question(None, |
863 res = E5MessageBox.question(self, |
864 self.trUtf8("Application Diagram"), |
864 self.trUtf8("Application Diagram"), |
865 self.trUtf8("""Include module names?"""), |
865 self.trUtf8("""Include module names?"""), |
866 QMessageBox.StandardButtons(\ |
866 QMessageBox.StandardButtons(\ |
867 QMessageBox.No | \ |
867 QMessageBox.No | \ |
868 QMessageBox.Yes), |
868 QMessageBox.Yes), |