1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
5
<title>eric4.UI.LogView</title>
9
margin: 0em 1em 10em 1em;
13
h1 { color: white; background: #4FA4FF; }
14
h2 { color: white; background: #4FA4FF; }
15
h3 { color: white; background: #00557F; }
16
h4 { color: white; background: #00557F; }
22
<body><a NAME="top" ID="top"></a>
23
<h1>eric4.UI.LogView</h1>
25
Module implementing the log viewer widget and the log widget.
30
<td><a href="#LogViewer">LogViewer</a></td>
31
<td>Class to provide a widget for displaying logging information.</td>
33
<td><a href="#LogWidget">LogWidget</a></td>
34
<td>Class providing a specialized text edit for displaying logging information.</td>
39
<tr><td>None</td></tr>
42
<a NAME="LogViewer" ID="LogViewer"></a>
45
Class to provide a widget for displaying logging information.
52
<td><a href="#LogViewer.__init__">LogViewer</a></td>
55
<td><a href="#LogViewer.__handleClear">__handleClear</a></td>
56
<td>Private slot to handle the clear tab menu entry.</td>
58
<td><a href="#LogViewer.__handleCopy">__handleCopy</a></td>
59
<td>Private slot to handle the copy tab menu entry.</td>
61
<td><a href="#LogViewer.__handleSelectAll">__handleSelectAll</a></td>
62
<td>Private slot to handle the select all tab menu entry.</td>
64
<td><a href="#LogViewer.__handleShowContextMenu">__handleShowContextMenu</a></td>
65
<td>Private slot to show the tab context menu.</td>
67
<td><a href="#LogViewer.appendToStderr">appendToStderr</a></td>
68
<td>Public slot to appand text to the "stderr" tab.</td>
70
<td><a href="#LogViewer.appendToStdout">appendToStdout</a></td>
71
<td>Public slot to appand text to the "stdout" tab.</td>
73
<td><a href="#LogViewer.showLogTab">showLogTab</a></td>
74
<td>Public method to show a particular Log-Viewer tab.</td>
77
<p><a NAME="LogViewer.__init__" ID="LogViewer.__init__"></a>
78
<h4>LogViewer (Constructor)</h4>
79
<b>LogViewer</b>(<i>parent = None</i>)
83
<dt><i>parent</i></dt>
85
reference to the parent widget (QWidget)
87
</dl><a NAME="LogViewer.__handleClear" ID="LogViewer.__handleClear"></a>
88
<h4>LogViewer.__handleClear</h4>
89
<b>__handleClear</b>(<i></i>)
91
Private slot to handle the clear tab menu entry.
92
</p><a NAME="LogViewer.__handleCopy" ID="LogViewer.__handleCopy"></a>
93
<h4>LogViewer.__handleCopy</h4>
94
<b>__handleCopy</b>(<i></i>)
96
Private slot to handle the copy tab menu entry.
97
</p><a NAME="LogViewer.__handleSelectAll" ID="LogViewer.__handleSelectAll"></a>
98
<h4>LogViewer.__handleSelectAll</h4>
99
<b>__handleSelectAll</b>(<i></i>)
101
Private slot to handle the select all tab menu entry.
102
</p><a NAME="LogViewer.__handleShowContextMenu" ID="LogViewer.__handleShowContextMenu"></a>
103
<h4>LogViewer.__handleShowContextMenu</h4>
104
<b>__handleShowContextMenu</b>(<i>coord, index</i>)
106
Private slot to show the tab context menu.
108
<dt><i>coord</i></dt>
110
the position of the mouse pointer (QPoint)
111
</dd><dt><i>index</i></dt>
113
index of the tab the menu is requested for (integer)
115
</dl><a NAME="LogViewer.appendToStderr" ID="LogViewer.appendToStderr"></a>
116
<h4>LogViewer.appendToStderr</h4>
117
<b>appendToStderr</b>(<i>txt</i>)
119
Public slot to appand text to the "stderr" tab.
123
text to be appended (string or QString)
125
</dl><a NAME="LogViewer.appendToStdout" ID="LogViewer.appendToStdout"></a>
126
<h4>LogViewer.appendToStdout</h4>
127
<b>appendToStdout</b>(<i>txt</i>)
129
Public slot to appand text to the "stdout" tab.
133
text to be appended (string or QString)
135
</dl><a NAME="LogViewer.showLogTab" ID="LogViewer.showLogTab"></a>
136
<h4>LogViewer.showLogTab</h4>
137
<b>showLogTab</b>(<i>tabname</i>)
139
Public method to show a particular Log-Viewer tab.
141
<dt><i>tabname</i></dt>
143
string naming the tab to be shown ("stdout", "stderr")
146
<div align="right"><a href="#top">Up</a></div>
148
<a NAME="LogWidget" ID="LogWidget"></a>
151
Class providing a specialized text edit for displaying logging information.
153
<h3>Derived from</h3>
158
<td><a href="#LogWidget.__init__">LogWidget</a></td>
161
<td><a href="#LogWidget.__handleShowContextMenu">__handleShowContextMenu</a></td>
162
<td>Private slot to show the context menu.</td>
164
<td><a href="#LogWidget.appendText">appendText</a></td>
165
<td>Public method to append text to the end.</td>
168
<p><a NAME="LogWidget.__init__" ID="LogWidget.__init__"></a>
169
<h4>LogWidget (Constructor)</h4>
170
<b>LogWidget</b>(<i>parent = None</i>)
174
<dt><i>parent</i></dt>
176
reference to the parent widget (QWidget)
178
</dl><a NAME="LogWidget.__handleShowContextMenu" ID="LogWidget.__handleShowContextMenu"></a>
179
<h4>LogWidget.__handleShowContextMenu</h4>
180
<b>__handleShowContextMenu</b>(<i>coord</i>)
182
Private slot to show the context menu.
184
<dt><i>coord</i></dt>
186
the position of the mouse pointer (QPoint)
188
</dl><a NAME="LogWidget.appendText" ID="LogWidget.appendText"></a>
189
<h4>LogWidget.appendText</h4>
190
<b>appendText</b>(<i>txt</i>)
192
Public method to append text to the end.
196
text to insert (QString)
199
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'