5171 if not self.checkDirty(): |
5171 if not self.checkDirty(): |
5172 return |
5172 return |
5173 |
5173 |
5174 package = os.path.isdir(self.fileName) and self.fileName \ |
5174 package = os.path.isdir(self.fileName) and self.fileName \ |
5175 or os.path.dirname(self.fileName) |
5175 or os.path.dirname(self.fileName) |
5176 res = QMessageBox.question(None, |
5176 res = E5MessageBox.question(self, |
5177 self.trUtf8("Package Diagram"), |
5177 self.trUtf8("Package Diagram"), |
5178 self.trUtf8("""Include class attributes?"""), |
5178 self.trUtf8("""Include class attributes?"""), |
5179 QMessageBox.StandardButtons(\ |
5179 QMessageBox.StandardButtons(\ |
5180 QMessageBox.No | \ |
5180 QMessageBox.No | \ |
5181 QMessageBox.Yes), |
5181 QMessageBox.Yes), |
5192 if not self.checkDirty(): |
5192 if not self.checkDirty(): |
5193 return |
5193 return |
5194 |
5194 |
5195 package = os.path.isdir(self.fileName) and self.fileName \ |
5195 package = os.path.isdir(self.fileName) and self.fileName \ |
5196 or os.path.dirname(self.fileName) |
5196 or os.path.dirname(self.fileName) |
5197 res = QMessageBox.question(None, |
5197 res = E5MessageBox.question(self, |
5198 self.trUtf8("Imports Diagram"), |
5198 self.trUtf8("Imports Diagram"), |
5199 self.trUtf8("""Include imports from external modules?"""), |
5199 self.trUtf8("""Include imports from external modules?"""), |
5200 QMessageBox.StandardButtons(\ |
5200 QMessageBox.StandardButtons(\ |
5201 QMessageBox.No | \ |
5201 QMessageBox.No | \ |
5202 QMessageBox.Yes), |
5202 QMessageBox.Yes), |
5208 def __showApplicationDiagram(self): |
5208 def __showApplicationDiagram(self): |
5209 """ |
5209 """ |
5210 Private method to handle the Imports Diagram context menu action. |
5210 Private method to handle the Imports Diagram context menu action. |
5211 """ |
5211 """ |
5212 from Graphics.ApplicationDiagram import ApplicationDiagram |
5212 from Graphics.ApplicationDiagram import ApplicationDiagram |
5213 res = QMessageBox.question(None, |
5213 res = E5MessageBox.question(self, |
5214 self.trUtf8("Application Diagram"), |
5214 self.trUtf8("Application Diagram"), |
5215 self.trUtf8("""Include module names?"""), |
5215 self.trUtf8("""Include module names?"""), |
5216 QMessageBox.StandardButtons(\ |
5216 QMessageBox.StandardButtons(\ |
5217 QMessageBox.No | \ |
5217 QMessageBox.No | \ |
5218 QMessageBox.Yes), |
5218 QMessageBox.Yes), |