|
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'> |
|
4 <html><head> |
|
5 <title>eric5.UI.LogView</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.UI.LogView</h1> |
|
12 <p> |
|
13 Module implementing the log viewer widget and the log widget. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#LogViewer">LogViewer</a></td> |
|
23 <td>Class providing a specialized text edit for displaying logging information.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="LogViewer" ID="LogViewer"></a> |
|
32 <h2>LogViewer</h2> |
|
33 <p> |
|
34 Class providing a specialized text edit for displaying logging information. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QTextEdit |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#LogViewer.__init__">LogViewer</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#LogViewer.__appendText">__appendText</a></td> |
|
49 <td>Public method to append text to the end.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#LogViewer.__configure">__configure</a></td> |
|
52 <td>Private method to open the configuration dialog.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#LogViewer.__handleShowContextMenu">__handleShowContextMenu</a></td> |
|
55 <td>Private slot to show the context menu.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#LogViewer.appendToStderr">appendToStderr</a></td> |
|
58 <td>Public slot to appand text to the "stderr" tab.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#LogViewer.appendToStdout">appendToStdout</a></td> |
|
61 <td>Public slot to appand text to the "stdout" tab.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#LogViewer.preferencesChanged">preferencesChanged</a></td> |
|
64 <td>Public slot to handle a change of the preferences.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <a NAME="LogViewer.__init__" ID="LogViewer.__init__"></a> |
|
68 <h4>LogViewer (Constructor)</h4> |
|
69 <b>LogViewer</b>(<i>parent = None</i>) |
|
70 <p> |
|
71 Constructor |
|
72 </p><dl> |
|
73 <dt><i>parent</i></dt> |
|
74 <dd> |
|
75 reference to the parent widget (QWidget) |
|
76 </dd> |
|
77 </dl><a NAME="LogViewer.__appendText" ID="LogViewer.__appendText"></a> |
|
78 <h4>LogViewer.__appendText</h4> |
|
79 <b>__appendText</b>(<i>txt, error = False</i>) |
|
80 <p> |
|
81 Public method to append text to the end. |
|
82 </p><dl> |
|
83 <dt><i>txt</i></dt> |
|
84 <dd> |
|
85 text to insert (string) |
|
86 </dd><dt><i>error</i></dt> |
|
87 <dd> |
|
88 flag indicating to insert error text (boolean) |
|
89 </dd> |
|
90 </dl><a NAME="LogViewer.__configure" ID="LogViewer.__configure"></a> |
|
91 <h4>LogViewer.__configure</h4> |
|
92 <b>__configure</b>(<i></i>) |
|
93 <p> |
|
94 Private method to open the configuration dialog. |
|
95 </p><a NAME="LogViewer.__handleShowContextMenu" ID="LogViewer.__handleShowContextMenu"></a> |
|
96 <h4>LogViewer.__handleShowContextMenu</h4> |
|
97 <b>__handleShowContextMenu</b>(<i>coord</i>) |
|
98 <p> |
|
99 Private slot to show the context menu. |
|
100 </p><dl> |
|
101 <dt><i>coord</i></dt> |
|
102 <dd> |
|
103 the position of the mouse pointer (QPoint) |
|
104 </dd> |
|
105 </dl><a NAME="LogViewer.appendToStderr" ID="LogViewer.appendToStderr"></a> |
|
106 <h4>LogViewer.appendToStderr</h4> |
|
107 <b>appendToStderr</b>(<i>txt</i>) |
|
108 <p> |
|
109 Public slot to appand text to the "stderr" tab. |
|
110 </p><dl> |
|
111 <dt><i>txt</i></dt> |
|
112 <dd> |
|
113 text to be appended (string) |
|
114 </dd> |
|
115 </dl><a NAME="LogViewer.appendToStdout" ID="LogViewer.appendToStdout"></a> |
|
116 <h4>LogViewer.appendToStdout</h4> |
|
117 <b>appendToStdout</b>(<i>txt</i>) |
|
118 <p> |
|
119 Public slot to appand text to the "stdout" tab. |
|
120 </p><dl> |
|
121 <dt><i>txt</i></dt> |
|
122 <dd> |
|
123 text to be appended (string) |
|
124 </dd> |
|
125 </dl><a NAME="LogViewer.preferencesChanged" ID="LogViewer.preferencesChanged"></a> |
|
126 <h4>LogViewer.preferencesChanged</h4> |
|
127 <b>preferencesChanged</b>(<i></i>) |
|
128 <p> |
|
129 Public slot to handle a change of the preferences. |
|
130 </p> |
|
131 <div align="right"><a href="#top">Up</a></div> |
|
132 <hr /> |
|
133 </body></html> |