E4Network/E4NetworkHeaderDetailsDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/E4Network/E4NetworkHeaderDetailsDialog.py	Mon Dec 28 16:03:33 2009 +0000
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2009 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing a dialog to show the data of a response or reply header.
+"""
+
+from PyQt4.QtGui import QDialog
+from PyQt4.QtCore import pyqtSlot
+
+from Ui_E4NetworkHeaderDetailsDialog import Ui_E4NetworkHeaderDetailsDialog
+
+class E4NetworkHeaderDetailsDialog(QDialog, Ui_E4NetworkHeaderDetailsDialog):
+    """
+    Class implementing a dialog to show the data of a response or reply header.
+    """
+    def __init__(self, parent = None):
+        """
+        Constructor
+        
+        @param parent reference to the parent object (QWidget)
+        """
+        QDialog.__init__(self, parent)
+        self.setupUi(self)
+    
+    def setData(self, name, value):
+        """
+        Public method to set the data to display.
+        
+        @param name name of the header (string)
+        @param value value of the header (string)
+        """
+        self.nameEdit.setText(name)
+        self.valueEdit.setPlainText(value)
\ No newline at end of file

eric ide

mercurial