|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2009 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module implementing a dialog to show the data of a response or reply header. |
|
8 """ |
|
9 |
|
10 from PyQt4.QtGui import QDialog |
|
11 from PyQt4.QtCore import pyqtSlot |
|
12 |
|
13 from Ui_E4NetworkHeaderDetailsDialog import Ui_E4NetworkHeaderDetailsDialog |
|
14 |
|
15 class E4NetworkHeaderDetailsDialog(QDialog, Ui_E4NetworkHeaderDetailsDialog): |
|
16 """ |
|
17 Class implementing a dialog to show the data of a response or reply header. |
|
18 """ |
|
19 def __init__(self, parent = None): |
|
20 """ |
|
21 Constructor |
|
22 |
|
23 @param parent reference to the parent object (QWidget) |
|
24 """ |
|
25 QDialog.__init__(self, parent) |
|
26 self.setupUi(self) |
|
27 |
|
28 def setData(self, name, value): |
|
29 """ |
|
30 Public method to set the data to display. |
|
31 |
|
32 @param name name of the header (string) |
|
33 @param value value of the header (string) |
|
34 """ |
|
35 self.nameEdit.setText(name) |
|
36 self.valueEdit.setPlainText(value) |