--- a/eric7/Graphics/UMLGraphicsView.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/Graphics/UMLGraphicsView.py Sat May 22 18:51:46 2021 +0200 @@ -16,8 +16,8 @@ from EricGraphics.EricGraphicsView import EricGraphicsView -from E5Gui import E5MessageBox, E5FileDialog -from E5Gui.E5ZoomWidget import E5ZoomWidget +from E5Gui import EricMessageBox, EricFileDialog +from E5Gui.EricZoomWidget import EricZoomWidget from .UMLItem import UMLItem @@ -56,7 +56,7 @@ self.border = 10 self.deltaSize = 100.0 - self.__zoomWidget = E5ZoomWidget( + self.__zoomWidget = EricZoomWidget( UI.PixmapCache.getPixmap("zoomOut"), UI.PixmapCache.getPixmap("zoomIn"), UI.PixmapCache.getPixmap("zoomReset"), self) @@ -358,14 +358,14 @@ """ Public method to handle the save context menu entry. """ - fname, selectedFilter = E5FileDialog.getSaveFileNameAndFilter( + fname, selectedFilter = EricFileDialog.getSaveFileNameAndFilter( self, self.tr("Save Diagram"), "", self.tr("Portable Network Graphics (*.png);;" "Scalable Vector Graphics (*.svg)"), "", - E5FileDialog.DontConfirmOverwrite) + EricFileDialog.DontConfirmOverwrite) if fname: ext = QFileInfo(fname).suffix() if not ext: @@ -373,19 +373,19 @@ if ex: fname += ex if QFileInfo(fname).exists(): - res = E5MessageBox.yesNo( + res = EricMessageBox.yesNo( self, self.tr("Save Diagram"), self.tr("<p>The file <b>{0}</b> already exists." " Overwrite it?</p>").format(fname), - icon=E5MessageBox.Warning) + icon=EricMessageBox.Warning) if not res: return success = super().saveImage( fname, QFileInfo(fname).suffix().upper()) if not success: - E5MessageBox.critical( + EricMessageBox.critical( self, self.tr("Save Diagram"), self.tr(