UI/ErrorLogDialog.py

changeset 3092
f7ec7a3e7270
parent 3030
4a0a82ddd9d2
child 3142
55030c09e142
child 3160
209a07d7e401
diff -r 8239cae3f947 -r f7ec7a3e7270 UI/ErrorLogDialog.py
--- a/UI/ErrorLogDialog.py	Sun Nov 17 12:24:45 2013 +0100
+++ b/UI/ErrorLogDialog.py	Sun Nov 17 13:28:39 2013 +0100
@@ -19,11 +19,13 @@
     """
     Class implementing a dialog to display an error log.
     """
-    def __init__(self, logFile, parent=None):
+    def __init__(self, logFile, showMode, parent=None):
         """
         Constructor
         
         @param logFile name of the log file containing the error info (string)
+        @param showMode flag indicating to just show the error log message
+            (boolean)
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
@@ -33,6 +35,13 @@
             .pixmap(32, 32)
         self.icon.setPixmap(pixmap)
         
+        if showMode:
+            self.icon.hide()
+            self.label.hide()
+            self.deleteButton.setText(self.trUtf8("Delete"))
+            self.keepButton.setText(self.trUtf8("Close"))
+            self.setWindowTitle(self.trUtf8("Error Log"))
+        
         self.__ui = parent
         self.__logFile = logFile
         

eric ide

mercurial