Continued replacing QMessageBox.

Thu, 02 Sep 2010 08:58:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 02 Sep 2010 08:58:41 +0200
changeset 545
1538031b5175
parent 544
303e2c8fd00e
child 546
c3e7bf5648be

Continued replacing QMessageBox.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
E5Gui/E5MessageBox.py file | annotate | diff | comparison | revisions
Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
IconEditor/IconEditorWindow.py file | annotate | diff | comparison | revisions
Plugins/PluginAbout.py file | annotate | diff | comparison | revisions
QScintilla/MiniEditor.py file | annotate | diff | comparison | revisions
SqlBrowser/SqlBrowser.py file | annotate | diff | comparison | revisions
Tools/TRPreviewer.py file | annotate | diff | comparison | revisions
Tools/UIPreviewer.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/E5Gui/E5MessageBox.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/E5Gui/E5MessageBox.py	Thu Sep 02 08:58:41 2010 +0200
@@ -42,6 +42,10 @@
     else:
         return messageBox.standardButton(clickedButton)
 
+# the about functions are here for consistancy
+about = QMessageBox.about
+aboutQt = QMessageBox.aboutQt
+
 def critical(parent, title, text, 
              buttons = QMessageBox.Ok, defaultButton = QMessageBox.NoButton):
     """
--- a/Helpviewer/HelpWindow.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Thu Sep 02 08:58:41 2010 +0200
@@ -1741,7 +1741,7 @@
         """
         Private slot to show the about information.
         """
-        QMessageBox.about(self, self.trUtf8("Eric Web Browser"), self.trUtf8(
+        E5MessageBox.about(self, self.trUtf8("Eric Web Browser"), self.trUtf8(
             """<h3>About Eric Web Browser</h3>"""
             """<p>The Eric Web Browser is a combined help file and HTML browser.</p>"""
         ))
@@ -1750,7 +1750,7 @@
         """
         Private slot to show info about Qt.
         """
-        QMessageBox.aboutQt(self, self.trUtf8("Eric Web Browser"))
+        E5MessageBox.aboutQt(self, self.trUtf8("Eric Web Browser"))
 
     def __setBackwardAvailable(self, b):
         """
@@ -2969,4 +2969,4 @@
         else:
             print(codecs[offset])
             QWebSettings.globalSettings().setDefaultTextEncoding(codecs[offset])
-            Preferences.setHelp("DefaultTextEncoding", codecs[offset])
+            Preferences.setHelp("DefaultTextEncoding", codecs[offset])
\ No newline at end of file
--- a/IconEditor/IconEditorWindow.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/IconEditor/IconEditorWindow.py	Thu Sep 02 08:58:41 2010 +0200
@@ -1209,7 +1209,7 @@
         """
         Private slot to show a little About message.
         """
-        QMessageBox.about(self, self.trUtf8("About eric5 Icon Editor"),
+        E5MessageBox.about(self, self.trUtf8("About eric5 Icon Editor"),
             self.trUtf8("The eric5 Icon Editor is a simple editor component"
                         " to perform icon drawing tasks."))
     
@@ -1217,7 +1217,7 @@
         """
         Private slot to handle the About Qt dialog.
         """
-        QMessageBox.aboutQt(self, "eric5 Icon Editor")
+        E5MessageBox.aboutQt(self, "eric5 Icon Editor")
     
     def __whatsThis(self):
         """
--- a/Plugins/PluginAbout.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/Plugins/PluginAbout.py	Thu Sep 02 08:58:41 2010 +0200
@@ -14,6 +14,7 @@
 import UI.PixmapCache
 
 from E5Gui.E5Action import E5Action
+from E5Gui import E5MessageBox
 
 from AboutPlugin.AboutDialog import AboutDialog
 
@@ -124,4 +125,4 @@
         """
         Private slot to handle the About Qt dialog.
         """
-        QMessageBox.aboutQt(self.__ui, Program)
+        E5MessageBox.aboutQt(self.__ui, Program)
\ No newline at end of file
--- a/QScintilla/MiniEditor.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/QScintilla/MiniEditor.py	Thu Sep 02 08:58:41 2010 +0200
@@ -230,7 +230,7 @@
         """
         Private slot to show a little About message.
         """
-        QMessageBox.about(self, self.trUtf8("About eric5 Mini Editor"),
+        E5MessageBox.about(self, self.trUtf8("About eric5 Mini Editor"),
             self.trUtf8("The eric5 Mini Editor is an editor component"
                 " based on QScintilla. It may be used for simple"
                 " editing tasks, that don't need the power of"
@@ -240,7 +240,7 @@
         """
         Private slot to handle the About Qt dialog.
         """
-        QMessageBox.aboutQt(self, "eric5 Mini Editor")
+        E5MessageBox.aboutQt(self, "eric5 Mini Editor")
     
     def __whatsThis(self):
         """
--- a/SqlBrowser/SqlBrowser.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/SqlBrowser/SqlBrowser.py	Thu Sep 02 08:58:41 2010 +0200
@@ -165,7 +165,7 @@
         """
         Private slot to show the about information.
         """
-        QMessageBox.about(self, self.trUtf8("SQL Browser"), self.trUtf8(
+        E5MessageBox.about(self, self.trUtf8("SQL Browser"), self.trUtf8(
             """<h3>About SQL Browser</h3>"""
             """<p>The SQL browser window is a little tool to examine """
             """the data and the schema of a database and to execute """
@@ -176,4 +176,4 @@
         """
         Private slot to show info about Qt.
         """
-        QMessageBox.aboutQt(self, self.trUtf8("SQL Browser"))
\ No newline at end of file
+        E5MessageBox.aboutQt(self, self.trUtf8("SQL Browser"))
\ No newline at end of file
--- a/Tools/TRPreviewer.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/Tools/TRPreviewer.py	Thu Sep 02 08:58:41 2010 +0200
@@ -322,7 +322,7 @@
         """
         Private slot to show the about information.
         """
-        QMessageBox.about(self, self.trUtf8("TR Previewer"), self.trUtf8(
+        E5MessageBox.about(self, self.trUtf8("TR Previewer"), self.trUtf8(
             """<h3> About TR Previewer </h3>"""
             """<p>The TR Previewer loads and displays Qt User-Interface files"""
             """ and translation files and shows dialogs for a selected language.</p>"""
@@ -332,7 +332,7 @@
         """
         Private slot to show info about Qt.
         """
-        QMessageBox.aboutQt(self, self.trUtf8("TR Previewer"))
+        E5MessageBox.aboutQt(self, self.trUtf8("TR Previewer"))
     
     def __openWidget(self):
         """
--- a/Tools/UIPreviewer.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/Tools/UIPreviewer.py	Thu Sep 02 08:58:41 2010 +0200
@@ -273,7 +273,7 @@
         """
         Private slot to show the about information.
         """
-        QMessageBox.about(self, self.trUtf8("UI Previewer"), self.trUtf8(
+        E5MessageBox.about(self, self.trUtf8("UI Previewer"), self.trUtf8(
             """<h3> About UI Previewer </h3>"""
             """<p>The UI Previewer loads and displays Qt User-Interface files"""
             """ with various styles, which are selectable via a selection list.</p>"""
@@ -283,7 +283,7 @@
         """
         Private slot to show info about Qt.
         """
-        QMessageBox.aboutQt(self, self.trUtf8("UI Previewer"))
+        E5MessageBox.aboutQt(self, self.trUtf8("UI Previewer"))
 
     def __openFile(self):
         """
--- a/UI/UserInterface.py	Wed Sep 01 19:25:12 2010 +0200
+++ b/UI/UserInterface.py	Thu Sep 02 08:58:41 2010 +0200
@@ -2700,7 +2700,7 @@
             .format(Program, Version)
         versionText += self.trUtf8("""</table>""")
         
-        QMessageBox.about(self, Program, versionText)
+        E5MessageBox.about(self, Program, versionText)
         
     def __reportBug(self):
         """
@@ -5592,7 +5592,7 @@
             line += 2
         versionText += self.trUtf8("""</table>""")
         
-        QMessageBox.about(self, Program, versionText)
+        E5MessageBox.about(self, Program, versionText)
         
     def __sslErrors(self, reply, errors):
         """
@@ -5686,4 +5686,4 @@
         if self.__startup:
             if Preferences.getGeometry("MainMaximized"):
                 self.setWindowState(Qt.WindowStates(Qt.WindowMaximized))
-            self.__startup = False
+            self.__startup = False
\ No newline at end of file

eric ide

mercurial