304 """ |
304 """ |
305 from .UMLSceneSizeDialog import UMLSceneSizeDialog |
305 from .UMLSceneSizeDialog import UMLSceneSizeDialog |
306 rect = self._getDiagramRect(10) |
306 rect = self._getDiagramRect(10) |
307 sceneRect = self.scene().sceneRect() |
307 sceneRect = self.scene().sceneRect() |
308 dlg = UMLSceneSizeDialog(sceneRect.width(), sceneRect.height(), |
308 dlg = UMLSceneSizeDialog(sceneRect.width(), sceneRect.height(), |
309 rect.width(), rect.height(), self) |
309 rect.width(), rect.height(), self) |
310 if dlg.exec_() == QDialog.Accepted: |
310 if dlg.exec_() == QDialog.Accepted: |
311 width, height = dlg.getData() |
311 width, height = dlg.getData() |
312 self.setSceneSize(width, height) |
312 self.setSceneSize(width, height) |
313 self.__checkSizeActions() |
313 self.__checkSizeActions() |
314 |
314 |
356 E5MessageBox.critical( |
356 E5MessageBox.critical( |
357 self, |
357 self, |
358 self.trUtf8("Save Diagram"), |
358 self.trUtf8("Save Diagram"), |
359 self.trUtf8( |
359 self.trUtf8( |
360 """<p>The file <b>{0}</b> could not be saved.</p>""") |
360 """<p>The file <b>{0}</b> could not be saved.</p>""") |
361 .format(fname)) |
361 .format(fname)) |
362 |
362 |
363 def __relayout(self): |
363 def __relayout(self): |
364 """ |
364 """ |
365 Private slot to handle the re-layout context menu entry. |
365 Private slot to handle the re-layout context menu entry. |
366 """ |
366 """ |