Renamed the 'E5MessageBox' wizard to reflect the renaming of the E5 widgets. eric7

Sun, 23 May 2021 12:47:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 23 May 2021 12:47:04 +0200
branch
eric7
changeset 8364
2d72d4d11771
parent 8363
e0890180e16a
child 8365
cde9bde830ea

Renamed the 'E5MessageBox' wizard to reflect the renaming of the E5 widgets.

eric7.epj file | annotate | diff | comparison | revisions
eric7/Plugins/PluginWizardE5MessageBox.py file | annotate | diff | comparison | revisions
eric7/Plugins/PluginWizardEricMessageBox.py file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.ui file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/E5MessageBoxWizard/__init__.py file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.py file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.ui file | annotate | diff | comparison | revisions
eric7/Plugins/WizardPlugins/EricMessageBoxWizard/__init__.py file | annotate | diff | comparison | revisions
--- a/eric7.epj	Fri May 21 18:04:01 2021 +0200
+++ b/eric7.epj	Sun May 23 12:47:04 2021 +0200
@@ -2,7 +2,7 @@
   "header": {
     "comment": "eric project file for project eric7",
     "copyright": "Copyright (C) 2021 Detlev Offenbach, detlev@die-offenbachs.de",
-    "saved": "2021-05-22, 19:54:46"
+    "saved": "2021-05-23, 12:09:31"
   },
   "project": {
     "AUTHOR": "Detlev Offenbach",
@@ -490,7 +490,6 @@
       "eric7/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.ui",
       "eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopListSelectionDialog.ui",
       "eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.ui",
-      "eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.ui",
       "eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.ui",
       "eric7/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.ui",
       "eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.ui",
@@ -709,7 +708,8 @@
       "eric7/EricWidgets/EricSimpleHelpDialog.ui",
       "eric7/EricWidgets/EricStringListEditWidget.ui",
       "eric7/EricWidgets/EricToolBarDialog.ui",
-      "eric7/EricWidgets/EricZoomWidget.ui"
+      "eric7/EricWidgets/EricZoomWidget.ui",
+      "eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.ui"
     ],
     "HASH": "df7daa8781250f7664e6ecaeaf1361fa2efd39ee",
     "IDLPARAMS": {
@@ -1254,7 +1254,6 @@
       "eric7/Plugins/PluginVmListspace.py",
       "eric7/Plugins/PluginVmTabview.py",
       "eric7/Plugins/PluginWizardDotDesktop.py",
-      "eric7/Plugins/PluginWizardE5MessageBox.py",
       "eric7/Plugins/PluginWizardEricPlugin.py",
       "eric7/Plugins/PluginWizardPyRegExp.py",
       "eric7/Plugins/PluginWizardQColorDialog.py",
@@ -1525,8 +1524,6 @@
       "eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopListSelectionDialog.py",
       "eric7/Plugins/WizardPlugins/DotDesktopWizard/DotDesktopWizardDialog.py",
       "eric7/Plugins/WizardPlugins/DotDesktopWizard/__init__.py",
-      "eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py",
-      "eric7/Plugins/WizardPlugins/E5MessageBoxWizard/__init__.py",
       "eric7/Plugins/WizardPlugins/EricPluginWizard/PluginWizardDialog.py",
       "eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py",
       "eric7/Plugins/WizardPlugins/EricPluginWizard/__init__.py",
@@ -2266,7 +2263,10 @@
       "eric7/EricWidgets/EricToolButton.py",
       "eric7/EricWidgets/EricTreeView.py",
       "eric7/EricWidgets/EricTreeWidget.py",
-      "eric7/EricWidgets/EricZoomWidget.py"
+      "eric7/EricWidgets/EricZoomWidget.py",
+      "eric7/Plugins/WizardPlugins/EricMessageBoxWizard/__init__.py",
+      "eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.py",
+      "eric7/Plugins/PluginWizardEricMessageBox.py"
     ],
     "SPELLEXCLUDES": "Dictionaries/excludes.dic",
     "SPELLLANGUAGE": "en_US",
--- a/eric7/Plugins/PluginWizardE5MessageBox.py	Fri May 21 18:04:01 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,135 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing the EricMessageBox wizard plugin.
-"""
-
-from PyQt6.QtCore import QObject
-from PyQt6.QtWidgets import QDialog
-
-from EricWidgets.EricApplication import ericApp
-from EricGui.EricAction import EricAction
-from EricWidgets import EricMessageBox
-
-import UI.Info
-
-# Start-Of-Header
-name = "EricMessageBox Wizard Plugin"
-author = "Detlev Offenbach <detlev@die-offenbachs.de>"
-autoactivate = True
-deactivateable = True
-version = UI.Info.VersionOnly
-className = "E5MessageBoxWizard"
-packageName = "__core__"
-shortDescription = "Show the EricMessageBox wizard."
-longDescription = """This plugin shows the EricMessageBox wizard."""
-pyqtApi = 2
-# End-Of-Header
-
-error = ""
-
-
-class E5MessageBoxWizard(QObject):
-    """
-    Class implementing the EricMessageBox wizard plugin.
-    """
-    def __init__(self, ui):
-        """
-        Constructor
-        
-        @param ui reference to the user interface object (UI.UserInterface)
-        """
-        super().__init__(ui)
-        self.__ui = ui
-
-    def activate(self):
-        """
-        Public method to activate this plugin.
-        
-        @return tuple of None and activation status (boolean)
-        """
-        self.__initAction()
-        self.__initMenu()
-        
-        return None, True
-
-    def deactivate(self):
-        """
-        Public method to deactivate this plugin.
-        """
-        menu = self.__ui.getMenu("wizards")
-        if menu:
-            menu.removeAction(self.action)
-        self.__ui.removeEricActions([self.action], 'wizards')
-    
-    def __initAction(self):
-        """
-        Private method to initialize the action.
-        """
-        self.action = EricAction(
-            self.tr('EricMessageBox Wizard'),
-            self.tr('&EricMessageBox Wizard...'), 0, 0, self,
-            'wizards_e5messagebox')
-        self.action.setStatusTip(self.tr('EricMessageBox Wizard'))
-        self.action.setWhatsThis(self.tr(
-            """<b>EricMessageBox Wizard</b>"""
-            """<p>This wizard opens a dialog for entering all the parameters"""
-            """ needed to create an EricMessageBox. The generated code is"""
-            """ inserted at the current cursor position.</p>"""
-        ))
-        self.action.triggered.connect(self.__handle)
-        
-        self.__ui.addEricActions([self.action], 'wizards')
-
-    def __initMenu(self):
-        """
-        Private method to add the actions to the right menu.
-        """
-        menu = self.__ui.getMenu("wizards")
-        if menu:
-            menu.addAction(self.action)
-    
-    def __callForm(self, editor):
-        """
-        Private method to display a dialog and get the code.
-        
-        @param editor reference to the current editor
-        @return the generated code (string)
-        """
-        from WizardPlugins.E5MessageBoxWizard.E5MessageBoxWizardDialog import (
-            E5MessageBoxWizardDialog
-        )
-        dlg = E5MessageBoxWizardDialog(None)
-        if dlg.exec() == QDialog.DialogCode.Accepted:
-            line, index = editor.getCursorPosition()
-            indLevel = editor.indentation(line) // editor.indentationWidth()
-            if editor.indentationsUseTabs():
-                indString = '\t'
-            else:
-                indString = editor.indentationWidth() * ' '
-            return (dlg.getCode(indLevel, indString), True)
-        else:
-            return (None, False)
-        
-    def __handle(self):
-        """
-        Private method to handle the wizards action.
-        """
-        editor = ericApp().getObject("ViewManager").activeWindow()
-        
-        if editor is None:
-            EricMessageBox.critical(
-                self.__ui,
-                self.tr('No current editor'),
-                self.tr('Please open or create a file first.'))
-        else:
-            code, ok = self.__callForm(editor)
-            if ok:
-                line, index = editor.getCursorPosition()
-                # It should be done on this way to allow undo
-                editor.beginUndoAction()
-                editor.insertAt(code, line, index)
-                editor.endUndoAction()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Plugins/PluginWizardEricMessageBox.py	Sun May 23 12:47:04 2021 +0200
@@ -0,0 +1,135 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing the EricMessageBox wizard plugin.
+"""
+
+from PyQt6.QtCore import QObject
+from PyQt6.QtWidgets import QDialog
+
+from EricWidgets.EricApplication import ericApp
+from EricGui.EricAction import EricAction
+from EricWidgets import EricMessageBox
+
+import UI.Info
+
+# Start-Of-Header
+name = "EricMessageBox Wizard Plugin"
+author = "Detlev Offenbach <detlev@die-offenbachs.de>"
+autoactivate = True
+deactivateable = True
+version = UI.Info.VersionOnly
+className = "EricMessageBoxWizard"
+packageName = "__core__"
+shortDescription = "Show the EricMessageBox wizard."
+longDescription = """This plugin shows the EricMessageBox wizard."""
+pyqtApi = 2
+# End-Of-Header
+
+error = ""
+
+
+class EricMessageBoxWizard(QObject):
+    """
+    Class implementing the EricMessageBox wizard plugin.
+    """
+    def __init__(self, ui):
+        """
+        Constructor
+        
+        @param ui reference to the user interface object (UI.UserInterface)
+        """
+        super().__init__(ui)
+        self.__ui = ui
+
+    def activate(self):
+        """
+        Public method to activate this plugin.
+        
+        @return tuple of None and activation status (boolean)
+        """
+        self.__initAction()
+        self.__initMenu()
+        
+        return None, True
+
+    def deactivate(self):
+        """
+        Public method to deactivate this plugin.
+        """
+        menu = self.__ui.getMenu("wizards")
+        if menu:
+            menu.removeAction(self.action)
+        self.__ui.removeEricActions([self.action], 'wizards')
+    
+    def __initAction(self):
+        """
+        Private method to initialize the action.
+        """
+        self.action = EricAction(
+            self.tr('EricMessageBox Wizard'),
+            self.tr('&EricMessageBox Wizard...'), 0, 0, self,
+            'wizards_e5messagebox')
+        self.action.setStatusTip(self.tr('EricMessageBox Wizard'))
+        self.action.setWhatsThis(self.tr(
+            """<b>EricMessageBox Wizard</b>"""
+            """<p>This wizard opens a dialog for entering all the parameters"""
+            """ needed to create an EricMessageBox. The generated code is"""
+            """ inserted at the current cursor position.</p>"""
+        ))
+        self.action.triggered.connect(self.__handle)
+        
+        self.__ui.addEricActions([self.action], 'wizards')
+
+    def __initMenu(self):
+        """
+        Private method to add the actions to the right menu.
+        """
+        menu = self.__ui.getMenu("wizards")
+        if menu:
+            menu.addAction(self.action)
+    
+    def __callForm(self, editor):
+        """
+        Private method to display a dialog and get the code.
+        
+        @param editor reference to the current editor
+        @return the generated code (string)
+        """
+        from WizardPlugins.EricMessageBoxWizard.EricMessageBoxWizardDialog import (
+            EricMessageBoxWizardDialog
+        )
+        dlg = EricMessageBoxWizardDialog(None)
+        if dlg.exec() == QDialog.DialogCode.Accepted:
+            line, index = editor.getCursorPosition()
+            indLevel = editor.indentation(line) // editor.indentationWidth()
+            if editor.indentationsUseTabs():
+                indString = '\t'
+            else:
+                indString = editor.indentationWidth() * ' '
+            return (dlg.getCode(indLevel, indString), True)
+        else:
+            return (None, False)
+        
+    def __handle(self):
+        """
+        Private method to handle the wizards action.
+        """
+        editor = ericApp().getObject("ViewManager").activeWindow()
+        
+        if editor is None:
+            EricMessageBox.critical(
+                self.__ui,
+                self.tr('No current editor'),
+                self.tr('Please open or create a file first.'))
+        else:
+            code, ok = self.__callForm(editor)
+            if ok:
+                line, index = editor.getCursorPosition()
+                # It should be done on this way to allow undo
+                editor.beginUndoAction()
+                editor.insertAt(code, line, index)
+                editor.endUndoAction()
--- a/eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Fri May 21 18:04:01 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,575 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing the eric message box wizard dialog.
-"""
-
-import os
-
-from PyQt6.QtCore import pyqtSlot
-from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton
-
-from EricWidgets import EricMessageBox
-
-from .Ui_E5MessageBoxWizardDialog import Ui_E5MessageBoxWizardDialog
-
-
-class E5MessageBoxWizardDialog(QDialog, Ui_E5MessageBoxWizardDialog):
-    """
-    Class implementing the eric message box wizard dialog.
-    
-    It displays a dialog for entering the parameters
-    for the EricMessageBox code generator.
-    """
-    def __init__(self, parent=None):
-        """
-        Constructor
-        
-        @param parent reference to the parent widget (QWidget)
-        """
-        super().__init__(parent)
-        self.setupUi(self)
-        
-        # keep the following three lists in sync
-        self.buttonsList = [
-            self.tr("No button"),
-            self.tr("Abort"),
-            self.tr("Apply"),
-            self.tr("Cancel"),
-            self.tr("Close"),
-            self.tr("Discard"),
-            self.tr("Help"),
-            self.tr("Ignore"),
-            self.tr("No"),
-            self.tr("No to all"),
-            self.tr("Ok"),
-            self.tr("Open"),
-            self.tr("Reset"),
-            self.tr("Restore defaults"),
-            self.tr("Retry"),
-            self.tr("Save"),
-            self.tr("Save all"),
-            self.tr("Yes"),
-            self.tr("Yes to all"),
-        ]
-        self.buttonsCodeListBinary = [
-            EricMessageBox.NoButton,
-            EricMessageBox.Abort,
-            EricMessageBox.Apply,
-            EricMessageBox.Cancel,
-            EricMessageBox.Close,
-            EricMessageBox.Discard,
-            EricMessageBox.Help,
-            EricMessageBox.Ignore,
-            EricMessageBox.No,
-            EricMessageBox.NoToAll,
-            EricMessageBox.Ok,
-            EricMessageBox.Open,
-            EricMessageBox.Reset,
-            EricMessageBox.RestoreDefaults,
-            EricMessageBox.Retry,
-            EricMessageBox.Save,
-            EricMessageBox.SaveAll,
-            EricMessageBox.Yes,
-            EricMessageBox.YesToAll,
-        ]
-        self.buttonsCodeListText = [
-            "EricMessageBox.NoButton",
-            "EricMessageBox.Abort",
-            "EricMessageBox.Apply",
-            "EricMessageBox.Cancel",
-            "EricMessageBox.Close",
-            "EricMessageBox.Discard",
-            "EricMessageBox.Help",
-            "EricMessageBox.Ignore",
-            "EricMessageBox.No",
-            "EricMessageBox.NoToAll",
-            "EricMessageBox.Ok",
-            "EricMessageBox.Open",
-            "EricMessageBox.Reset",
-            "EricMessageBox.RestoreDefaults",
-            "EricMessageBox.Retry",
-            "EricMessageBox.Save",
-            "EricMessageBox.SaveAll",
-            "EricMessageBox.Yes",
-            "EricMessageBox.YesToAll",
-        ]
-        
-        self.defaultCombo.addItems(self.buttonsList)
-        
-        self.bTest = self.buttonBox.addButton(
-            self.tr("Test"), QDialogButtonBox.ButtonRole.ActionRole)
-        
-        self.__enabledGroups()
-
-    def __enabledGroups(self):
-        """
-        Private method to enable/disable some group boxes.
-        """
-        self.standardButtons.setEnabled(
-            self.rInformation.isChecked() or
-            self.rQuestion.isChecked() or
-            self.rWarning.isChecked() or
-            self.rCritical.isChecked() or
-            self.rStandard.isChecked()
-        )
-        
-        self.defaultButton.setEnabled(
-            self.rInformation.isChecked() or
-            self.rQuestion.isChecked() or
-            self.rWarning.isChecked() or
-            self.rCritical.isChecked()
-        )
-        
-        self.iconBox.setEnabled(
-            self.rYesNo.isChecked() or
-            self.rRetryAbort.isChecked() or
-            self.rStandard.isChecked()
-        )
-        
-        self.bTest.setEnabled(not self.rStandard.isChecked())
-        
-        self.eMessage.setEnabled(not self.rAboutQt.isChecked())
-    
-    @pyqtSlot(bool)
-    def on_rInformation_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rInformation
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rQuestion_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rQuestion
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rWarning_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rWarning
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rCritical_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rCritical
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rYesNo_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rYesNo
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rRetryAbort_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rRetryAbort
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rOkToClearData_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rOkToClearData
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rAbout_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rAbout
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rAboutQt_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rAboutQt
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(bool)
-    def on_rStandard_toggled(self, on):
-        """
-        Private slot to handle the toggled signal of the rStandard
-        radio button.
-        
-        @param on toggle state (boolean) (ignored)
-        """
-        self.__enabledGroups()
-    
-    @pyqtSlot(QAbstractButton)
-    def on_buttonBox_clicked(self, button):
-        """
-        Private slot called by a button of the button box clicked.
-        
-        @param button button that was clicked (QAbstractButton)
-        """
-        if button == self.bTest:
-            self.on_bTest_clicked()
-    
-    @pyqtSlot()
-    def on_bTest_clicked(self):
-        """
-        Private method to test the selected options.
-        """
-        if self.rAbout.isChecked():
-            EricMessageBox.about(
-                None,
-                self.eCaption.text(),
-                self.eMessage.toPlainText()
-            )
-        elif self.rAboutQt.isChecked():
-            EricMessageBox.aboutQt(
-                None, self.eCaption.text()
-            )
-        elif (
-            self.rInformation.isChecked() or
-            self.rQuestion.isChecked() or
-            self.rWarning.isChecked() or
-            self.rCritical.isChecked()
-        ):
-            buttons = EricMessageBox.NoButton
-            if self.abortCheck.isChecked():
-                buttons |= EricMessageBox.Abort
-            if self.applyCheck.isChecked():
-                buttons |= EricMessageBox.Apply
-            if self.cancelCheck.isChecked():
-                buttons |= EricMessageBox.Cancel
-            if self.closeCheck.isChecked():
-                buttons |= EricMessageBox.Close
-            if self.discardCheck.isChecked():
-                buttons |= EricMessageBox.Discard
-            if self.helpCheck.isChecked():
-                buttons |= EricMessageBox.Help
-            if self.ignoreCheck.isChecked():
-                buttons |= EricMessageBox.Ignore
-            if self.noCheck.isChecked():
-                buttons |= EricMessageBox.No
-            if self.notoallCheck.isChecked():
-                buttons |= EricMessageBox.NoToAll
-            if self.okCheck.isChecked():
-                buttons |= EricMessageBox.Ok
-            if self.openCheck.isChecked():
-                buttons |= EricMessageBox.Open
-            if self.resetCheck.isChecked():
-                buttons |= EricMessageBox.Reset
-            if self.restoreCheck.isChecked():
-                buttons |= EricMessageBox.RestoreDefaults
-            if self.retryCheck.isChecked():
-                buttons |= EricMessageBox.Retry
-            if self.saveCheck.isChecked():
-                buttons |= EricMessageBox.Save
-            if self.saveallCheck.isChecked():
-                buttons |= EricMessageBox.SaveAll
-            if self.yesCheck.isChecked():
-                buttons |= EricMessageBox.Yes
-            if self.yestoallCheck.isChecked():
-                buttons |= EricMessageBox.YesToAll
-            if buttons == EricMessageBox.NoButton:
-                buttons = EricMessageBox.Ok
-            
-            defaultButton = self.buttonsCodeListBinary[
-                self.defaultCombo.currentIndex()]
-            
-            if self.rInformation.isChecked():
-                EricMessageBox.information(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    buttons,
-                    defaultButton
-                )
-            elif self.rQuestion.isChecked():
-                EricMessageBox.question(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    buttons,
-                    defaultButton
-                )
-            elif self.rWarning.isChecked():
-                EricMessageBox.warning(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    buttons,
-                    defaultButton
-                )
-            elif self.rCritical.isChecked():
-                EricMessageBox.critical(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    buttons,
-                    defaultButton
-                )
-        elif (
-            self.rYesNo.isChecked() or
-            self.rRetryAbort.isChecked()
-        ):
-            if self.iconInformation.isChecked():
-                icon = EricMessageBox.Information
-            elif self.iconQuestion.isChecked():
-                icon = EricMessageBox.Question
-            elif self.iconWarning.isChecked():
-                icon = EricMessageBox.Warning
-            elif self.iconCritical.isChecked():
-                icon = EricMessageBox.Critical
-            
-            if self.rYesNo.isChecked():
-                EricMessageBox.yesNo(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    icon=icon,
-                    yesDefault=self.yesDefaultCheck.isChecked()
-                )
-            elif self.rRetryAbort.isChecked():
-                EricMessageBox.retryAbort(
-                    self,
-                    self.eCaption.text(),
-                    self.eMessage.toPlainText(),
-                    icon=icon
-                )
-        elif self.rOkToClearData.isChecked():
-            EricMessageBox.okToClearData(
-                self,
-                self.eCaption.text(),
-                self.eMessage.toPlainText(),
-                lambda: True
-            )
-    
-    def __getStandardButtonCode(self, istring, indString, withIntro=True):
-        """
-        Private method to generate the button code for the standard buttons.
-        
-        @param istring indentation string (string)
-        @param indString string used for indentation (space or tab) (string)
-        @param withIntro flag indicating to generate a first line
-            with introductory text (boolean)
-        @return the button code (string)
-        """
-        buttons = []
-        if self.abortCheck.isChecked():
-            buttons.append("EricMessageBox.Abort")
-        if self.applyCheck.isChecked():
-            buttons.append("EricMessageBox.Apply")
-        if self.cancelCheck.isChecked():
-            buttons.append("EricMessageBox.Cancel")
-        if self.closeCheck.isChecked():
-            buttons.append("EricMessageBox.Close")
-        if self.discardCheck.isChecked():
-            buttons.append("EricMessageBox.Discard")
-        if self.helpCheck.isChecked():
-            buttons.append("EricMessageBox.Help")
-        if self.ignoreCheck.isChecked():
-            buttons.append("EricMessageBox.Ignore")
-        if self.noCheck.isChecked():
-            buttons.append("EricMessageBox.No")
-        if self.notoallCheck.isChecked():
-            buttons.append("EricMessageBox.NoToAll")
-        if self.okCheck.isChecked():
-            buttons.append("EricMessageBox.Ok")
-        if self.openCheck.isChecked():
-            buttons.append("EricMessageBox.Open")
-        if self.resetCheck.isChecked():
-            buttons.append("EricMessageBox.Reset")
-        if self.restoreCheck.isChecked():
-            buttons.append("EricMessageBox.RestoreDefaults")
-        if self.retryCheck.isChecked():
-            buttons.append("EricMessageBox.Retry")
-        if self.saveCheck.isChecked():
-            buttons.append("EricMessageBox.Save")
-        if self.saveallCheck.isChecked():
-            buttons.append("EricMessageBox.SaveAll")
-        if self.yesCheck.isChecked():
-            buttons.append("EricMessageBox.Yes")
-        if self.yestoallCheck.isChecked():
-            buttons.append("EricMessageBox.YesToAll")
-        if len(buttons) == 0:
-            return ""
-        
-        istring2 = istring + indString
-        joinstring = ' |{0}{1}'.format(os.linesep, istring2)
-        btnCode = (
-            ',{0}{1}'.format(os.linesep, istring)
-            if withIntro else
-            ''
-        )
-        btnCode += '{0}{1}{2}'.format(
-            os.linesep, istring2, joinstring.join(buttons))
-        
-        return btnCode
-    
-    def __getDefaultButtonCode(self, istring):
-        """
-        Private method to generate the button code for the default button.
-        
-        @param istring indentation string (string)
-        @return the button code (string)
-        """
-        btnCode = ""
-        defaultIndex = self.defaultCombo.currentIndex()
-        if defaultIndex:
-            btnCode = ',{0}{1}{2}'.format(
-                os.linesep, istring,
-                self.buttonsCodeListText[defaultIndex])
-        return btnCode
-    
-    def getCode(self, indLevel, indString):
-        """
-        Public method to get the source code.
-        
-        @param indLevel indentation level (int)
-        @param indString string used for indentation (space or tab) (string)
-        @return generated code (string)
-        """
-        # calculate our indentation level and the indentation string
-        il = indLevel + 1
-        istring = il * indString
-        estring = os.linesep + indLevel * indString
-        
-        # now generate the code
-        if self.parentSelf.isChecked():
-            parent = "self"
-        elif self.parentNone.isChecked():
-            parent = "None"
-        elif self.parentOther.isChecked():
-            parent = self.parentEdit.text()
-            if parent == "":
-                parent = "None"
-        
-        if self.iconInformation.isChecked():
-            icon = "EricMessageBox.Information"
-        elif self.iconQuestion.isChecked():
-            icon = "EricMessageBox.Question"
-        elif self.iconWarning.isChecked():
-            icon = "EricMessageBox.Warning"
-        elif self.iconCritical.isChecked():
-            icon = "EricMessageBox.Critical"
-        
-        if not self.rStandard.isChecked():
-            resvar = self.eResultVar.text()
-            if not resvar:
-                resvar = "res"
-            
-            if self.rAbout.isChecked():
-                msgdlg = "EricMessageBox.about({0}".format(os.linesep)
-            elif self.rAboutQt.isChecked():
-                msgdlg = "EricMessageBox.aboutQt({0}".format(os.linesep)
-            elif self.rInformation.isChecked():
-                msgdlg = "{0} = EricMessageBox.information({1}".format(
-                    resvar, os.linesep)
-            elif self.rQuestion.isChecked():
-                msgdlg = "{0} = EricMessageBox.question({1}".format(
-                    resvar, os.linesep)
-            elif self.rWarning.isChecked():
-                msgdlg = "{0} = EricMessageBox.warning({1}".format(
-                    resvar, os.linesep)
-            elif self.rCritical.isChecked():
-                msgdlg = "{0} = EricMessageBox.critical({1}".format(
-                    resvar, os.linesep)
-            elif self.rYesNo.isChecked():
-                msgdlg = "{0} = EricMessageBox.yesNo({1}".format(
-                    resvar, os.linesep)
-            elif self.rRetryAbort.isChecked():
-                msgdlg = "{0} = EricMessageBox.retryAbort({1}".format(
-                    resvar, os.linesep)
-            elif self.rOkToClearData.isChecked():
-                msgdlg = "{0} = EricMessageBox.okToClearData({1}".format(
-                    resvar, os.linesep)
-            
-            msgdlg += '{0}{1},{2}'.format(istring, parent, os.linesep)
-            msgdlg += '{0}self.tr("{1}")'.format(
-                istring, self.eCaption.text())
-            
-            if not self.rAboutQt.isChecked():
-                msgdlg += ',{0}{1}self.tr("""{2}""")'.format(
-                    os.linesep, istring, self.eMessage.toPlainText())
-            
-            if (
-                self.rInformation.isChecked() or
-                self.rQuestion.isChecked() or
-                self.rWarning.isChecked() or
-                self.rCritical.isChecked()
-            ):
-                msgdlg += self.__getStandardButtonCode(istring, indString)
-                msgdlg += self.__getDefaultButtonCode(istring)
-            elif self.rYesNo.isChecked():
-                if not self.iconQuestion.isChecked():
-                    msgdlg += ',{0}{1}icon={2}'.format(
-                        os.linesep, istring, icon)
-                if self.yesDefaultCheck.isChecked():
-                    msgdlg += ',{0}{1}yesDefault=True'.format(
-                        os.linesep, istring)
-            elif self.rRetryAbort.isChecked():
-                if not self.iconQuestion.isChecked():
-                    msgdlg += ',{0}{1}icon={2}'.format(
-                        os.linesep, istring, icon)
-            elif self.rOkToClearData.isChecked():
-                saveFunc = self.saveFuncEdit.text()
-                if saveFunc == "":
-                    saveFunc = "lambda: True"
-                msgdlg += ',{0}{1}{2}'.format(os.linesep, istring, saveFunc)
-        else:
-            resvar = self.eResultVar.text()
-            if not resvar:
-                resvar = "dlg"
-            
-            msgdlg = "{0} = EricMessageBox.EricMessageBox({1}".format(
-                resvar, os.linesep)
-            msgdlg += '{0}{1},{2}'.format(istring, icon, os.linesep)
-            msgdlg += '{0}self.tr("{1}")'.format(
-                istring, self.eCaption.text())
-            msgdlg += ',{0}{1}self.tr("""{2}""")'.format(
-                os.linesep, istring, self.eMessage.toPlainText())
-            if self.modalCheck.isChecked():
-                msgdlg += ',{0}{1}modal=True'.format(os.linesep, istring)
-            btnCode = self.__getStandardButtonCode(
-                istring, indString, withIntro=False)
-            if btnCode:
-                msgdlg += ',{0}{1}buttons={2}'.format(
-                    os.linesep, istring, btnCode)
-            if not self.parentNone.isChecked():
-                msgdlg += ',{0}{1}parent={2}'.format(
-                    os.linesep, istring, parent)
-        
-        msgdlg += '){0}'.format(estring)
-        return msgdlg
--- a/eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.ui	Fri May 21 18:04:01 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,693 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>E5MessageBoxWizardDialog</class>
- <widget class="QDialog" name="E5MessageBoxWizardDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>535</width>
-    <height>681</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>EricMessageBox Wizard</string>
-  </property>
-  <property name="sizeGripEnabled">
-   <bool>true</bool>
-  </property>
-  <layout class="QVBoxLayout" name="verticalLayout_2">
-   <item>
-    <widget class="QGroupBox" name="typeBox">
-     <property name="title">
-      <string>Type</string>
-     </property>
-     <layout class="QGridLayout" name="gridLayout">
-      <item row="0" column="0">
-       <widget class="QRadioButton" name="rInformation">
-        <property name="toolTip">
-         <string>Generate an Information message box</string>
-        </property>
-        <property name="text">
-         <string>Information</string>
-        </property>
-        <property name="checked">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <widget class="QRadioButton" name="rQuestion">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Generate a Question message box</string>
-        </property>
-        <property name="text">
-         <string>Question</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="2">
-       <widget class="QRadioButton" name="rWarning">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Generate a Warning message box</string>
-        </property>
-        <property name="text">
-         <string>Warning</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="3">
-       <widget class="QRadioButton" name="rCritical">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Generate a Critical message box</string>
-        </property>
-        <property name="text">
-         <string>Critical</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="0">
-       <widget class="QRadioButton" name="rYesNo">
-        <property name="toolTip">
-         <string>Generate a Yes/No message box</string>
-        </property>
-        <property name="text">
-         <string>Yes/No</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QRadioButton" name="rRetryAbort">
-        <property name="toolTip">
-         <string>Generate a retry/abort message box</string>
-        </property>
-        <property name="text">
-         <string>Retry/Abort</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="2">
-       <widget class="QRadioButton" name="rOkToClearData">
-        <property name="toolTip">
-         <string>Generate an &quot;ok to clear data&quot; message box</string>
-        </property>
-        <property name="text">
-         <string>OK to clear data</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="0">
-       <widget class="QRadioButton" name="rAbout">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Generate an About message box</string>
-        </property>
-        <property name="text">
-         <string>About</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="1">
-       <widget class="QRadioButton" name="rAboutQt">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Generate an AboutQt message box</string>
-        </property>
-        <property name="text">
-         <string>About Qt</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="2">
-       <widget class="QRadioButton" name="rStandard">
-        <property name="toolTip">
-         <string>Generate a standard message box</string>
-        </property>
-        <property name="text">
-         <string>Standard message box</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QLabel" name="lResultVar">
-     <property name="text">
-      <string>Result:</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QLineEdit" name="eResultVar">
-     <property name="toolTip">
-      <string>Enter the result variable name</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QLabel" name="textLabel1">
-     <property name="text">
-      <string>Title</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QLineEdit" name="eCaption">
-     <property name="toolTip">
-      <string>Enter the title for the message box</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QLabel" name="textLabel2">
-     <property name="text">
-      <string>Message</string>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QTextEdit" name="eMessage">
-     <property name="toolTip">
-      <string>Enter the message to be shown in the message box</string>
-     </property>
-     <property name="tabChangesFocus">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </item>
-   <item>
-    <widget class="QGroupBox" name="parentGroup">
-     <property name="title">
-      <string>Parent</string>
-     </property>
-     <layout class="QGridLayout" name="gridLayout_3">
-      <item row="0" column="0">
-       <widget class="QRadioButton" name="parentSelf">
-        <property name="toolTip">
-         <string>Select &quot;self&quot; as parent</string>
-        </property>
-        <property name="text">
-         <string>self</string>
-        </property>
-        <property name="checked">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <widget class="QRadioButton" name="parentNone">
-        <property name="toolTip">
-         <string>Select &quot;None&quot; as parent</string>
-        </property>
-        <property name="text">
-         <string>None</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="0" colspan="2">
-       <layout class="QHBoxLayout" name="horizontalLayout_2">
-        <item>
-         <widget class="QRadioButton" name="parentOther">
-          <property name="toolTip">
-           <string>Select to enter a parent expression</string>
-          </property>
-          <property name="text">
-           <string>Expression:</string>
-          </property>
-         </widget>
-        </item>
-        <item>
-         <widget class="QLineEdit" name="parentEdit">
-          <property name="enabled">
-           <bool>false</bool>
-          </property>
-          <property name="toolTip">
-           <string>Enter the parent expression</string>
-          </property>
-         </widget>
-        </item>
-       </layout>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QGroupBox" name="standardButtons">
-     <property name="title">
-      <string>Standard Buttons</string>
-     </property>
-     <layout class="QGridLayout" name="gridLayout_2">
-      <item row="0" column="0">
-       <widget class="QCheckBox" name="abortCheck">
-        <property name="text">
-         <string>Abort</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="1">
-       <widget class="QCheckBox" name="applyCheck">
-        <property name="text">
-         <string>Apply</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="2">
-       <widget class="QCheckBox" name="cancelCheck">
-        <property name="text">
-         <string>Cancel</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="3">
-       <widget class="QCheckBox" name="closeCheck">
-        <property name="text">
-         <string>Close</string>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="4">
-       <widget class="QCheckBox" name="discardCheck">
-        <property name="text">
-         <string>Discard</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="0">
-       <widget class="QCheckBox" name="helpCheck">
-        <property name="text">
-         <string>Help</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QCheckBox" name="ignoreCheck">
-        <property name="text">
-         <string>Ignore</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="2">
-       <widget class="QCheckBox" name="noCheck">
-        <property name="text">
-         <string>No</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="3">
-       <widget class="QCheckBox" name="notoallCheck">
-        <property name="text">
-         <string>No to all</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="4">
-       <widget class="QCheckBox" name="okCheck">
-        <property name="text">
-         <string>Ok</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="0">
-       <widget class="QCheckBox" name="openCheck">
-        <property name="text">
-         <string>Open</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="1">
-       <widget class="QCheckBox" name="resetCheck">
-        <property name="text">
-         <string>Reset</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="2">
-       <widget class="QCheckBox" name="restoreCheck">
-        <property name="text">
-         <string>Restore defaults</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="3">
-       <widget class="QCheckBox" name="retryCheck">
-        <property name="text">
-         <string>Retry</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="4">
-       <widget class="QCheckBox" name="saveCheck">
-        <property name="text">
-         <string>Save</string>
-        </property>
-       </widget>
-      </item>
-      <item row="3" column="0">
-       <widget class="QCheckBox" name="saveallCheck">
-        <property name="text">
-         <string>Save all</string>
-        </property>
-       </widget>
-      </item>
-      <item row="3" column="1">
-       <widget class="QCheckBox" name="yesCheck">
-        <property name="text">
-         <string>Yes</string>
-        </property>
-       </widget>
-      </item>
-      <item row="3" column="2">
-       <widget class="QCheckBox" name="yestoallCheck">
-        <property name="text">
-         <string>Yes to all</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QGroupBox" name="defaultButton">
-     <property name="title">
-      <string>Default Button</string>
-     </property>
-     <layout class="QVBoxLayout" name="verticalLayout">
-      <item>
-       <widget class="QComboBox" name="defaultCombo">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="toolTip">
-         <string>Select the default button</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <widget class="QGroupBox" name="iconBox">
-     <property name="title">
-      <string>Icon</string>
-     </property>
-     <layout class="QHBoxLayout" name="_2">
-      <item>
-       <widget class="QRadioButton" name="iconInformation">
-        <property name="toolTip">
-         <string>Show an Information icon</string>
-        </property>
-        <property name="text">
-         <string>Information</string>
-        </property>
-        <property name="checked">
-         <bool>false</bool>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="iconQuestion">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Show a Question icon</string>
-        </property>
-        <property name="text">
-         <string>Question</string>
-        </property>
-        <property name="checked">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="iconWarning">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Show a Warning icon</string>
-        </property>
-        <property name="text">
-         <string>Warning</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QRadioButton" name="iconCritical">
-        <property name="focusPolicy">
-         <enum>Qt::TabFocus</enum>
-        </property>
-        <property name="toolTip">
-         <string>Show a Critical icon</string>
-        </property>
-        <property name="text">
-         <string>Critical</string>
-        </property>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item>
-    <layout class="QHBoxLayout" name="horizontalLayout">
-     <item>
-      <widget class="QCheckBox" name="modalCheck">
-       <property name="enabled">
-        <bool>false</bool>
-       </property>
-       <property name="toolTip">
-        <string>Select to generate a modal message box</string>
-       </property>
-       <property name="text">
-        <string>Modal Message Box</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QCheckBox" name="yesDefaultCheck">
-       <property name="enabled">
-        <bool>false</bool>
-       </property>
-       <property name="toolTip">
-        <string>Select to make 'Yes' the default</string>
-       </property>
-       <property name="text">
-        <string>Yes is default</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QLabel" name="label">
-       <property name="enabled">
-        <bool>false</bool>
-       </property>
-       <property name="text">
-        <string>Save function:</string>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QLineEdit" name="saveFuncEdit">
-       <property name="enabled">
-        <bool>false</bool>
-       </property>
-       <property name="toolTip">
-        <string>Enter the name of the save function</string>
-       </property>
-      </widget>
-     </item>
-    </layout>
-   </item>
-   <item>
-    <widget class="QDialogButtonBox" name="buttonBox">
-     <property name="orientation">
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="standardButtons">
-      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
-     </property>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
- <tabstops>
-  <tabstop>rInformation</tabstop>
-  <tabstop>rQuestion</tabstop>
-  <tabstop>rWarning</tabstop>
-  <tabstop>rCritical</tabstop>
-  <tabstop>rYesNo</tabstop>
-  <tabstop>rRetryAbort</tabstop>
-  <tabstop>rOkToClearData</tabstop>
-  <tabstop>rAbout</tabstop>
-  <tabstop>rAboutQt</tabstop>
-  <tabstop>rStandard</tabstop>
-  <tabstop>eResultVar</tabstop>
-  <tabstop>eCaption</tabstop>
-  <tabstop>eMessage</tabstop>
-  <tabstop>parentSelf</tabstop>
-  <tabstop>parentNone</tabstop>
-  <tabstop>parentOther</tabstop>
-  <tabstop>parentEdit</tabstop>
-  <tabstop>abortCheck</tabstop>
-  <tabstop>applyCheck</tabstop>
-  <tabstop>cancelCheck</tabstop>
-  <tabstop>closeCheck</tabstop>
-  <tabstop>discardCheck</tabstop>
-  <tabstop>helpCheck</tabstop>
-  <tabstop>ignoreCheck</tabstop>
-  <tabstop>noCheck</tabstop>
-  <tabstop>notoallCheck</tabstop>
-  <tabstop>okCheck</tabstop>
-  <tabstop>openCheck</tabstop>
-  <tabstop>resetCheck</tabstop>
-  <tabstop>restoreCheck</tabstop>
-  <tabstop>retryCheck</tabstop>
-  <tabstop>saveCheck</tabstop>
-  <tabstop>saveallCheck</tabstop>
-  <tabstop>yesCheck</tabstop>
-  <tabstop>yestoallCheck</tabstop>
-  <tabstop>defaultCombo</tabstop>
-  <tabstop>iconInformation</tabstop>
-  <tabstop>iconQuestion</tabstop>
-  <tabstop>iconWarning</tabstop>
-  <tabstop>iconCritical</tabstop>
-  <tabstop>modalCheck</tabstop>
-  <tabstop>yesDefaultCheck</tabstop>
-  <tabstop>saveFuncEdit</tabstop>
-  <tabstop>buttonBox</tabstop>
- </tabstops>
- <resources/>
- <connections>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>accepted()</signal>
-   <receiver>E5MessageBoxWizardDialog</receiver>
-   <slot>accept()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>52</x>
-     <y>744</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>34</x>
-     <y>604</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>rejected()</signal>
-   <receiver>E5MessageBoxWizardDialog</receiver>
-   <slot>reject()</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>144</x>
-     <y>744</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>126</x>
-     <y>605</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>rStandard</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>modalCheck</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>82</x>
-     <y>131</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>67</x>
-     <y>705</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>rYesNo</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>yesDefaultCheck</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>95</x>
-     <y>79</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>250</x>
-     <y>705</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>rOkToClearData</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>label</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>388</x>
-     <y>79</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>332</x>
-     <y>706</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>rOkToClearData</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>saveFuncEdit</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>388</x>
-     <y>79</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>524</x>
-     <y>706</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>parentOther</sender>
-   <signal>toggled(bool)</signal>
-   <receiver>parentEdit</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel">
-     <x>90</x>
-     <y>384</y>
-    </hint>
-    <hint type="destinationlabel">
-     <x>142</x>
-     <y>386</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
-</ui>
--- a/eric7/Plugins/WizardPlugins/E5MessageBoxWizard/__init__.py	Fri May 21 18:04:01 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Package implementing the eric message box wizard.
-"""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.py	Sun May 23 12:47:04 2021 +0200
@@ -0,0 +1,589 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing the eric message box wizard dialog.
+"""
+
+import os
+
+from PyQt6.QtCore import pyqtSlot
+from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton
+
+from EricWidgets import EricMessageBox
+
+from .Ui_EricMessageBoxWizardDialog import Ui_EricMessageBoxWizardDialog
+
+
+class EricMessageBoxWizardDialog(QDialog, Ui_EricMessageBoxWizardDialog):
+    """
+    Class implementing the eric message box wizard dialog.
+    
+    It displays a dialog for entering the parameters
+    for the EricMessageBox code generator.
+    """
+    def __init__(self, parent=None):
+        """
+        Constructor
+        
+        @param parent reference to the parent widget
+        @type QWidget
+        """
+        super().__init__(parent)
+        self.setupUi(self)
+        
+        # keep the following three lists in sync
+        self.buttonsList = [
+            self.tr("No button"),
+            self.tr("Abort"),
+            self.tr("Apply"),
+            self.tr("Cancel"),
+            self.tr("Close"),
+            self.tr("Discard"),
+            self.tr("Help"),
+            self.tr("Ignore"),
+            self.tr("No"),
+            self.tr("No to all"),
+            self.tr("Ok"),
+            self.tr("Open"),
+            self.tr("Reset"),
+            self.tr("Restore defaults"),
+            self.tr("Retry"),
+            self.tr("Save"),
+            self.tr("Save all"),
+            self.tr("Yes"),
+            self.tr("Yes to all"),
+        ]
+        self.buttonsCodeListBinary = [
+            EricMessageBox.NoButton,
+            EricMessageBox.Abort,
+            EricMessageBox.Apply,
+            EricMessageBox.Cancel,
+            EricMessageBox.Close,
+            EricMessageBox.Discard,
+            EricMessageBox.Help,
+            EricMessageBox.Ignore,
+            EricMessageBox.No,
+            EricMessageBox.NoToAll,
+            EricMessageBox.Ok,
+            EricMessageBox.Open,
+            EricMessageBox.Reset,
+            EricMessageBox.RestoreDefaults,
+            EricMessageBox.Retry,
+            EricMessageBox.Save,
+            EricMessageBox.SaveAll,
+            EricMessageBox.Yes,
+            EricMessageBox.YesToAll,
+        ]
+        self.buttonsCodeListText = [
+            "EricMessageBox.NoButton",
+            "EricMessageBox.Abort",
+            "EricMessageBox.Apply",
+            "EricMessageBox.Cancel",
+            "EricMessageBox.Close",
+            "EricMessageBox.Discard",
+            "EricMessageBox.Help",
+            "EricMessageBox.Ignore",
+            "EricMessageBox.No",
+            "EricMessageBox.NoToAll",
+            "EricMessageBox.Ok",
+            "EricMessageBox.Open",
+            "EricMessageBox.Reset",
+            "EricMessageBox.RestoreDefaults",
+            "EricMessageBox.Retry",
+            "EricMessageBox.Save",
+            "EricMessageBox.SaveAll",
+            "EricMessageBox.Yes",
+            "EricMessageBox.YesToAll",
+        ]
+        
+        self.defaultCombo.addItems(self.buttonsList)
+        
+        self.bTest = self.buttonBox.addButton(
+            self.tr("Test"), QDialogButtonBox.ButtonRole.ActionRole)
+        
+        self.__enabledGroups()
+
+    def __enabledGroups(self):
+        """
+        Private method to enable/disable some group boxes.
+        """
+        self.standardButtons.setEnabled(
+            self.rInformation.isChecked() or
+            self.rQuestion.isChecked() or
+            self.rWarning.isChecked() or
+            self.rCritical.isChecked() or
+            self.rStandard.isChecked()
+        )
+        
+        self.defaultButton.setEnabled(
+            self.rInformation.isChecked() or
+            self.rQuestion.isChecked() or
+            self.rWarning.isChecked() or
+            self.rCritical.isChecked()
+        )
+        
+        self.iconBox.setEnabled(
+            self.rYesNo.isChecked() or
+            self.rRetryAbort.isChecked() or
+            self.rStandard.isChecked()
+        )
+        
+        self.bTest.setEnabled(not self.rStandard.isChecked())
+        
+        self.eMessage.setEnabled(not self.rAboutQt.isChecked())
+    
+    @pyqtSlot(bool)
+    def on_rInformation_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rInformation
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rQuestion_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rQuestion
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rWarning_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rWarning
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rCritical_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rCritical
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rYesNo_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rYesNo
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rRetryAbort_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rRetryAbort
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rOkToClearData_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rOkToClearData
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rAbout_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rAbout
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rAboutQt_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rAboutQt
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(bool)
+    def on_rStandard_toggled(self, on):
+        """
+        Private slot to handle the toggled signal of the rStandard
+        radio button.
+        
+        @param on toggle state (ignored)
+        @type bool
+        """
+        self.__enabledGroups()
+    
+    @pyqtSlot(QAbstractButton)
+    def on_buttonBox_clicked(self, button):
+        """
+        Private slot called by a button of the button box clicked.
+        
+        @param button button that was clicked
+        @type QAbstractButton
+        """
+        if button == self.bTest:
+            self.on_bTest_clicked()
+    
+    @pyqtSlot()
+    def on_bTest_clicked(self):
+        """
+        Private method to test the selected options.
+        """
+        if self.rAbout.isChecked():
+            EricMessageBox.about(
+                None,
+                self.eCaption.text(),
+                self.eMessage.toPlainText()
+            )
+        elif self.rAboutQt.isChecked():
+            EricMessageBox.aboutQt(
+                None, self.eCaption.text()
+            )
+        elif (
+            self.rInformation.isChecked() or
+            self.rQuestion.isChecked() or
+            self.rWarning.isChecked() or
+            self.rCritical.isChecked()
+        ):
+            buttons = EricMessageBox.NoButton
+            if self.abortCheck.isChecked():
+                buttons |= EricMessageBox.Abort
+            if self.applyCheck.isChecked():
+                buttons |= EricMessageBox.Apply
+            if self.cancelCheck.isChecked():
+                buttons |= EricMessageBox.Cancel
+            if self.closeCheck.isChecked():
+                buttons |= EricMessageBox.Close
+            if self.discardCheck.isChecked():
+                buttons |= EricMessageBox.Discard
+            if self.helpCheck.isChecked():
+                buttons |= EricMessageBox.Help
+            if self.ignoreCheck.isChecked():
+                buttons |= EricMessageBox.Ignore
+            if self.noCheck.isChecked():
+                buttons |= EricMessageBox.No
+            if self.notoallCheck.isChecked():
+                buttons |= EricMessageBox.NoToAll
+            if self.okCheck.isChecked():
+                buttons |= EricMessageBox.Ok
+            if self.openCheck.isChecked():
+                buttons |= EricMessageBox.Open
+            if self.resetCheck.isChecked():
+                buttons |= EricMessageBox.Reset
+            if self.restoreCheck.isChecked():
+                buttons |= EricMessageBox.RestoreDefaults
+            if self.retryCheck.isChecked():
+                buttons |= EricMessageBox.Retry
+            if self.saveCheck.isChecked():
+                buttons |= EricMessageBox.Save
+            if self.saveallCheck.isChecked():
+                buttons |= EricMessageBox.SaveAll
+            if self.yesCheck.isChecked():
+                buttons |= EricMessageBox.Yes
+            if self.yestoallCheck.isChecked():
+                buttons |= EricMessageBox.YesToAll
+            if buttons == EricMessageBox.NoButton:
+                buttons = EricMessageBox.Ok
+            
+            defaultButton = self.buttonsCodeListBinary[
+                self.defaultCombo.currentIndex()]
+            
+            if self.rInformation.isChecked():
+                EricMessageBox.information(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    buttons,
+                    defaultButton
+                )
+            elif self.rQuestion.isChecked():
+                EricMessageBox.question(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    buttons,
+                    defaultButton
+                )
+            elif self.rWarning.isChecked():
+                EricMessageBox.warning(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    buttons,
+                    defaultButton
+                )
+            elif self.rCritical.isChecked():
+                EricMessageBox.critical(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    buttons,
+                    defaultButton
+                )
+        elif (
+            self.rYesNo.isChecked() or
+            self.rRetryAbort.isChecked()
+        ):
+            if self.iconInformation.isChecked():
+                icon = EricMessageBox.Information
+            elif self.iconQuestion.isChecked():
+                icon = EricMessageBox.Question
+            elif self.iconWarning.isChecked():
+                icon = EricMessageBox.Warning
+            elif self.iconCritical.isChecked():
+                icon = EricMessageBox.Critical
+            
+            if self.rYesNo.isChecked():
+                EricMessageBox.yesNo(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    icon=icon,
+                    yesDefault=self.yesDefaultCheck.isChecked()
+                )
+            elif self.rRetryAbort.isChecked():
+                EricMessageBox.retryAbort(
+                    self,
+                    self.eCaption.text(),
+                    self.eMessage.toPlainText(),
+                    icon=icon
+                )
+        elif self.rOkToClearData.isChecked():
+            EricMessageBox.okToClearData(
+                self,
+                self.eCaption.text(),
+                self.eMessage.toPlainText(),
+                lambda: True
+            )
+    
+    def __getStandardButtonCode(self, istring, withIntro=True):
+        """
+        Private method to generate the button code for the standard buttons.
+        
+        @param istring indentation string
+        @type str
+        @param withIntro flag indicating to generate a first line
+            with introductory text
+        @type bool
+        @return the button code
+        @rtype str
+        """
+        buttons = []
+        if self.abortCheck.isChecked():
+            buttons.append("EricMessageBox.Abort")
+        if self.applyCheck.isChecked():
+            buttons.append("EricMessageBox.Apply")
+        if self.cancelCheck.isChecked():
+            buttons.append("EricMessageBox.Cancel")
+        if self.closeCheck.isChecked():
+            buttons.append("EricMessageBox.Close")
+        if self.discardCheck.isChecked():
+            buttons.append("EricMessageBox.Discard")
+        if self.helpCheck.isChecked():
+            buttons.append("EricMessageBox.Help")
+        if self.ignoreCheck.isChecked():
+            buttons.append("EricMessageBox.Ignore")
+        if self.noCheck.isChecked():
+            buttons.append("EricMessageBox.No")
+        if self.notoallCheck.isChecked():
+            buttons.append("EricMessageBox.NoToAll")
+        if self.okCheck.isChecked():
+            buttons.append("EricMessageBox.Ok")
+        if self.openCheck.isChecked():
+            buttons.append("EricMessageBox.Open")
+        if self.resetCheck.isChecked():
+            buttons.append("EricMessageBox.Reset")
+        if self.restoreCheck.isChecked():
+            buttons.append("EricMessageBox.RestoreDefaults")
+        if self.retryCheck.isChecked():
+            buttons.append("EricMessageBox.Retry")
+        if self.saveCheck.isChecked():
+            buttons.append("EricMessageBox.Save")
+        if self.saveallCheck.isChecked():
+            buttons.append("EricMessageBox.SaveAll")
+        if self.yesCheck.isChecked():
+            buttons.append("EricMessageBox.Yes")
+        if self.yestoallCheck.isChecked():
+            buttons.append("EricMessageBox.YesToAll")
+        if len(buttons) == 0:
+            return ""
+        
+        joinstring = ' |{0}{1}'.format(os.linesep, istring)
+        intro = ',' if withIntro else ''
+        btnCode = '{0}{1}{2}{3}'.format(
+            intro, os.linesep, istring, joinstring.join(buttons))
+        
+        return btnCode
+    
+    def __getDefaultButtonCode(self, istring):
+        """
+        Private method to generate the button code for the default button.
+        
+        @param istring indentation string
+        @type str
+        @return the button code
+        @rtype str
+        """
+        btnCode = ""
+        defaultIndex = self.defaultCombo.currentIndex()
+        if defaultIndex:
+            btnCode = ',{0}{1}{2}'.format(
+                os.linesep, istring,
+                self.buttonsCodeListText[defaultIndex])
+        return btnCode
+    
+    def getCode(self, indLevel, indString):
+        """
+        Public method to get the source code.
+        
+        @param indLevel indentation level
+        @type int
+        @param indString string used for indentation (space or tab)
+        @type str
+        @return generated code
+        @rtype str
+        """
+        # calculate our indentation level and the indentation string
+        il = indLevel + 1
+        istring = il * indString
+        estring = os.linesep + indLevel * indString
+        
+        # now generate the code
+        if self.parentSelf.isChecked():
+            parent = "self"
+        elif self.parentNone.isChecked():
+            parent = "None"
+        elif self.parentOther.isChecked():
+            parent = self.parentEdit.text()
+            if parent == "":
+                parent = "None"
+        
+        if self.iconInformation.isChecked():
+            icon = "EricMessageBox.Information"
+        elif self.iconQuestion.isChecked():
+            icon = "EricMessageBox.Question"
+        elif self.iconWarning.isChecked():
+            icon = "EricMessageBox.Warning"
+        elif self.iconCritical.isChecked():
+            icon = "EricMessageBox.Critical"
+        
+        if not self.rStandard.isChecked():
+            resvar = self.eResultVar.text()
+            if not resvar:
+                resvar = "res"
+            
+            if self.rAbout.isChecked():
+                msgdlg = "EricMessageBox.about({0}".format(os.linesep)
+            elif self.rAboutQt.isChecked():
+                msgdlg = "EricMessageBox.aboutQt({0}".format(os.linesep)
+            elif self.rInformation.isChecked():
+                msgdlg = "{0} = EricMessageBox.information({1}".format(
+                    resvar, os.linesep)
+            elif self.rQuestion.isChecked():
+                msgdlg = "{0} = EricMessageBox.question({1}".format(
+                    resvar, os.linesep)
+            elif self.rWarning.isChecked():
+                msgdlg = "{0} = EricMessageBox.warning({1}".format(
+                    resvar, os.linesep)
+            elif self.rCritical.isChecked():
+                msgdlg = "{0} = EricMessageBox.critical({1}".format(
+                    resvar, os.linesep)
+            elif self.rYesNo.isChecked():
+                msgdlg = "{0} = EricMessageBox.yesNo({1}".format(
+                    resvar, os.linesep)
+            elif self.rRetryAbort.isChecked():
+                msgdlg = "{0} = EricMessageBox.retryAbort({1}".format(
+                    resvar, os.linesep)
+            elif self.rOkToClearData.isChecked():
+                msgdlg = "{0} = EricMessageBox.okToClearData({1}".format(
+                    resvar, os.linesep)
+            
+            msgdlg += '{0}{1},{2}'.format(istring, parent, os.linesep)
+            msgdlg += '{0}self.tr("{1}")'.format(
+                istring, self.eCaption.text())
+            
+            if not self.rAboutQt.isChecked():
+                msgdlg += ',{0}{1}self.tr("""{2}""")'.format(
+                    os.linesep, istring, self.eMessage.toPlainText())
+            
+            if (
+                self.rInformation.isChecked() or
+                self.rQuestion.isChecked() or
+                self.rWarning.isChecked() or
+                self.rCritical.isChecked()
+            ):
+                msgdlg += self.__getStandardButtonCode(istring)
+                msgdlg += self.__getDefaultButtonCode(istring)
+            elif self.rYesNo.isChecked():
+                if not self.iconQuestion.isChecked():
+                    msgdlg += ',{0}{1}icon={2}'.format(
+                        os.linesep, istring, icon)
+                if self.yesDefaultCheck.isChecked():
+                    msgdlg += ',{0}{1}yesDefault=True'.format(
+                        os.linesep, istring)
+            elif self.rRetryAbort.isChecked():
+                if not self.iconQuestion.isChecked():
+                    msgdlg += ',{0}{1}icon={2}'.format(
+                        os.linesep, istring, icon)
+            elif self.rOkToClearData.isChecked():
+                saveFunc = self.saveFuncEdit.text()
+                if saveFunc == "":
+                    saveFunc = "lambda: True"
+                msgdlg += ',{0}{1}{2}'.format(os.linesep, istring, saveFunc)
+        else:
+            resvar = self.eResultVar.text()
+            if not resvar:
+                resvar = "dlg"
+            
+            msgdlg = "{0} = EricMessageBox.EricMessageBox({1}".format(
+                resvar, os.linesep)
+            msgdlg += '{0}{1},{2}'.format(istring, icon, os.linesep)
+            msgdlg += '{0}self.tr("{1}")'.format(
+                istring, self.eCaption.text())
+            msgdlg += ',{0}{1}self.tr("""{2}""")'.format(
+                os.linesep, istring, self.eMessage.toPlainText())
+            if self.modalCheck.isChecked():
+                msgdlg += ',{0}{1}modal=True'.format(os.linesep, istring)
+            btnCode = self.__getStandardButtonCode(
+                istring, withIntro=False)
+            if btnCode:
+                msgdlg += ',{0}{1}buttons={2}'.format(
+                    os.linesep, istring, btnCode)
+            if not self.parentNone.isChecked():
+                msgdlg += ',{0}{1}parent={2}'.format(
+                    os.linesep, istring, parent)
+        
+        msgdlg += '){0}'.format(estring)
+        return msgdlg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.ui	Sun May 23 12:47:04 2021 +0200
@@ -0,0 +1,693 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>EricMessageBoxWizardDialog</class>
+ <widget class="QDialog" name="EricMessageBoxWizardDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>535</width>
+    <height>681</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>EricMessageBox Wizard</string>
+  </property>
+  <property name="sizeGripEnabled">
+   <bool>true</bool>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout_2">
+   <item>
+    <widget class="QGroupBox" name="typeBox">
+     <property name="title">
+      <string>Type</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout">
+      <item row="0" column="0">
+       <widget class="QRadioButton" name="rInformation">
+        <property name="toolTip">
+         <string>Generate an Information message box</string>
+        </property>
+        <property name="text">
+         <string>Information</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QRadioButton" name="rQuestion">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Generate a Question message box</string>
+        </property>
+        <property name="text">
+         <string>Question</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="2">
+       <widget class="QRadioButton" name="rWarning">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Generate a Warning message box</string>
+        </property>
+        <property name="text">
+         <string>Warning</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="3">
+       <widget class="QRadioButton" name="rCritical">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Generate a Critical message box</string>
+        </property>
+        <property name="text">
+         <string>Critical</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QRadioButton" name="rYesNo">
+        <property name="toolTip">
+         <string>Generate a Yes/No message box</string>
+        </property>
+        <property name="text">
+         <string>Yes/No</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QRadioButton" name="rRetryAbort">
+        <property name="toolTip">
+         <string>Generate a retry/abort message box</string>
+        </property>
+        <property name="text">
+         <string>Retry/Abort</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="2">
+       <widget class="QRadioButton" name="rOkToClearData">
+        <property name="toolTip">
+         <string>Generate an &quot;ok to clear data&quot; message box</string>
+        </property>
+        <property name="text">
+         <string>OK to clear data</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QRadioButton" name="rAbout">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Generate an About message box</string>
+        </property>
+        <property name="text">
+         <string>About</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="1">
+       <widget class="QRadioButton" name="rAboutQt">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Generate an AboutQt message box</string>
+        </property>
+        <property name="text">
+         <string>About Qt</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="2">
+       <widget class="QRadioButton" name="rStandard">
+        <property name="toolTip">
+         <string>Generate a standard message box</string>
+        </property>
+        <property name="text">
+         <string>Standard message box</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLabel" name="lResultVar">
+     <property name="text">
+      <string>Result:</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLineEdit" name="eResultVar">
+     <property name="toolTip">
+      <string>Enter the result variable name</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLabel" name="textLabel1">
+     <property name="text">
+      <string>Title</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLineEdit" name="eCaption">
+     <property name="toolTip">
+      <string>Enter the title for the message box</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLabel" name="textLabel2">
+     <property name="text">
+      <string>Message</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QTextEdit" name="eMessage">
+     <property name="toolTip">
+      <string>Enter the message to be shown in the message box</string>
+     </property>
+     <property name="tabChangesFocus">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QGroupBox" name="parentGroup">
+     <property name="title">
+      <string>Parent</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_3">
+      <item row="0" column="0">
+       <widget class="QRadioButton" name="parentSelf">
+        <property name="toolTip">
+         <string>Select &quot;self&quot; as parent</string>
+        </property>
+        <property name="text">
+         <string>self</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QRadioButton" name="parentNone">
+        <property name="toolTip">
+         <string>Select &quot;None&quot; as parent</string>
+        </property>
+        <property name="text">
+         <string>None</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0" colspan="2">
+       <layout class="QHBoxLayout" name="horizontalLayout_2">
+        <item>
+         <widget class="QRadioButton" name="parentOther">
+          <property name="toolTip">
+           <string>Select to enter a parent expression</string>
+          </property>
+          <property name="text">
+           <string>Expression:</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QLineEdit" name="parentEdit">
+          <property name="enabled">
+           <bool>false</bool>
+          </property>
+          <property name="toolTip">
+           <string>Enter the parent expression</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QGroupBox" name="standardButtons">
+     <property name="title">
+      <string>Standard Buttons</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_2">
+      <item row="0" column="0">
+       <widget class="QCheckBox" name="abortCheck">
+        <property name="text">
+         <string>Abort</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QCheckBox" name="applyCheck">
+        <property name="text">
+         <string>Apply</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="2">
+       <widget class="QCheckBox" name="cancelCheck">
+        <property name="text">
+         <string>Cancel</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="3">
+       <widget class="QCheckBox" name="closeCheck">
+        <property name="text">
+         <string>Close</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="4">
+       <widget class="QCheckBox" name="discardCheck">
+        <property name="text">
+         <string>Discard</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QCheckBox" name="helpCheck">
+        <property name="text">
+         <string>Help</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QCheckBox" name="ignoreCheck">
+        <property name="text">
+         <string>Ignore</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="2">
+       <widget class="QCheckBox" name="noCheck">
+        <property name="text">
+         <string>No</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="3">
+       <widget class="QCheckBox" name="notoallCheck">
+        <property name="text">
+         <string>No to all</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="4">
+       <widget class="QCheckBox" name="okCheck">
+        <property name="text">
+         <string>Ok</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QCheckBox" name="openCheck">
+        <property name="text">
+         <string>Open</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="1">
+       <widget class="QCheckBox" name="resetCheck">
+        <property name="text">
+         <string>Reset</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="2">
+       <widget class="QCheckBox" name="restoreCheck">
+        <property name="text">
+         <string>Restore defaults</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="3">
+       <widget class="QCheckBox" name="retryCheck">
+        <property name="text">
+         <string>Retry</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="4">
+       <widget class="QCheckBox" name="saveCheck">
+        <property name="text">
+         <string>Save</string>
+        </property>
+       </widget>
+      </item>
+      <item row="3" column="0">
+       <widget class="QCheckBox" name="saveallCheck">
+        <property name="text">
+         <string>Save all</string>
+        </property>
+       </widget>
+      </item>
+      <item row="3" column="1">
+       <widget class="QCheckBox" name="yesCheck">
+        <property name="text">
+         <string>Yes</string>
+        </property>
+       </widget>
+      </item>
+      <item row="3" column="2">
+       <widget class="QCheckBox" name="yestoallCheck">
+        <property name="text">
+         <string>Yes to all</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QGroupBox" name="defaultButton">
+     <property name="title">
+      <string>Default Button</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout">
+      <item>
+       <widget class="QComboBox" name="defaultCombo">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="toolTip">
+         <string>Select the default button</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QGroupBox" name="iconBox">
+     <property name="title">
+      <string>Icon</string>
+     </property>
+     <layout class="QHBoxLayout" name="_2">
+      <item>
+       <widget class="QRadioButton" name="iconInformation">
+        <property name="toolTip">
+         <string>Show an Information icon</string>
+        </property>
+        <property name="text">
+         <string>Information</string>
+        </property>
+        <property name="checked">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="iconQuestion">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Show a Question icon</string>
+        </property>
+        <property name="text">
+         <string>Question</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="iconWarning">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Show a Warning icon</string>
+        </property>
+        <property name="text">
+         <string>Warning</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="iconCritical">
+        <property name="focusPolicy">
+         <enum>Qt::TabFocus</enum>
+        </property>
+        <property name="toolTip">
+         <string>Show a Critical icon</string>
+        </property>
+        <property name="text">
+         <string>Critical</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="QCheckBox" name="modalCheck">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="toolTip">
+        <string>Select to generate a modal message box</string>
+       </property>
+       <property name="text">
+        <string>Modal Message Box</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QCheckBox" name="yesDefaultCheck">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="toolTip">
+        <string>Select to make 'Yes' the default</string>
+       </property>
+       <property name="text">
+        <string>Yes is default</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLabel" name="label">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="text">
+        <string>Save function:</string>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QLineEdit" name="saveFuncEdit">
+       <property name="enabled">
+        <bool>false</bool>
+       </property>
+       <property name="toolTip">
+        <string>Enter the name of the save function</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <widget class="QDialogButtonBox" name="buttonBox">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="standardButtons">
+      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
+ <tabstops>
+  <tabstop>rInformation</tabstop>
+  <tabstop>rQuestion</tabstop>
+  <tabstop>rWarning</tabstop>
+  <tabstop>rCritical</tabstop>
+  <tabstop>rYesNo</tabstop>
+  <tabstop>rRetryAbort</tabstop>
+  <tabstop>rOkToClearData</tabstop>
+  <tabstop>rAbout</tabstop>
+  <tabstop>rAboutQt</tabstop>
+  <tabstop>rStandard</tabstop>
+  <tabstop>eResultVar</tabstop>
+  <tabstop>eCaption</tabstop>
+  <tabstop>eMessage</tabstop>
+  <tabstop>parentSelf</tabstop>
+  <tabstop>parentNone</tabstop>
+  <tabstop>parentOther</tabstop>
+  <tabstop>parentEdit</tabstop>
+  <tabstop>abortCheck</tabstop>
+  <tabstop>applyCheck</tabstop>
+  <tabstop>cancelCheck</tabstop>
+  <tabstop>closeCheck</tabstop>
+  <tabstop>discardCheck</tabstop>
+  <tabstop>helpCheck</tabstop>
+  <tabstop>ignoreCheck</tabstop>
+  <tabstop>noCheck</tabstop>
+  <tabstop>notoallCheck</tabstop>
+  <tabstop>okCheck</tabstop>
+  <tabstop>openCheck</tabstop>
+  <tabstop>resetCheck</tabstop>
+  <tabstop>restoreCheck</tabstop>
+  <tabstop>retryCheck</tabstop>
+  <tabstop>saveCheck</tabstop>
+  <tabstop>saveallCheck</tabstop>
+  <tabstop>yesCheck</tabstop>
+  <tabstop>yestoallCheck</tabstop>
+  <tabstop>defaultCombo</tabstop>
+  <tabstop>iconInformation</tabstop>
+  <tabstop>iconQuestion</tabstop>
+  <tabstop>iconWarning</tabstop>
+  <tabstop>iconCritical</tabstop>
+  <tabstop>modalCheck</tabstop>
+  <tabstop>yesDefaultCheck</tabstop>
+  <tabstop>saveFuncEdit</tabstop>
+  <tabstop>buttonBox</tabstop>
+ </tabstops>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>accepted()</signal>
+   <receiver>EricMessageBoxWizardDialog</receiver>
+   <slot>accept()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>52</x>
+     <y>744</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>34</x>
+     <y>604</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>buttonBox</sender>
+   <signal>rejected()</signal>
+   <receiver>EricMessageBoxWizardDialog</receiver>
+   <slot>reject()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>144</x>
+     <y>744</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>126</x>
+     <y>605</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>rStandard</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>modalCheck</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>82</x>
+     <y>131</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>67</x>
+     <y>705</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>rYesNo</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>yesDefaultCheck</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>95</x>
+     <y>79</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>250</x>
+     <y>705</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>rOkToClearData</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>label</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>388</x>
+     <y>79</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>332</x>
+     <y>706</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>rOkToClearData</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>saveFuncEdit</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>388</x>
+     <y>79</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>524</x>
+     <y>706</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>parentOther</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>parentEdit</receiver>
+   <slot>setEnabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>90</x>
+     <y>384</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>142</x>
+     <y>386</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Plugins/WizardPlugins/EricMessageBoxWizard/__init__.py	Sun May 23 12:47:04 2021 +0200
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2010 - 2021 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Package implementing the eric message box wizard.
+"""

eric ide

mercurial