eric7/Documentation/Source/eric7.WebBrowser.WebInspector.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.WebBrowser.WebInspector</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.WebBrowser.WebInspector</h1>
24
25 <p>
26 Module implementing a QWebEngineView to load the web inspector in.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>_VIEWS</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#WebInspector">WebInspector</a></td>
39 <td>Class implementing a QWebEngineView to load the web inspector in.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45
46 <tr>
47 <td><a href="#pushView">pushView</a></td>
48 <td>Function to push a view to the front of the list.</td>
49 </tr>
50 <tr>
51 <td><a href="#registerView">registerView</a></td>
52 <td>Function to register a view.</td>
53 </tr>
54 <tr>
55 <td><a href="#unregisterView">unregisterView</a></td>
56 <td>Function to unregister a view.</td>
57 </tr>
58 </table>
59 <hr />
60 <hr />
61 <a NAME="WebInspector" ID="WebInspector"></a>
62 <h2>WebInspector</h2>
63
64 <p>
65 Class implementing a QWebEngineView to load the web inspector in.
66 </p>
67 <h3>Signals</h3>
68 <dl>
69
70 <dt>inspectorClosed</dt>
71 <dd>
72 emitted to indicate the closing of the inspector
73 window
74 </dd>
75 </dl>
76 <h3>Derived from</h3>
77 QWebEngineView
78 <h3>Class Attributes</h3>
79
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <h3>Class Methods</h3>
84
85 <table>
86
87 <tr>
88 <td><a href="#WebInspector.isEnabled">isEnabled</a></td>
89 <td>Class method to check, if the web inspector is enabled.</td>
90 </tr>
91 </table>
92 <h3>Methods</h3>
93
94 <table>
95
96 <tr>
97 <td><a href="#WebInspector.__init__">WebInspector</a></td>
98 <td>Constructor</td>
99 </tr>
100 <tr>
101 <td><a href="#WebInspector.__loadFinished">__loadFinished</a></td>
102 <td>Private slot handling the finished signal.</td>
103 </tr>
104 <tr>
105 <td><a href="#WebInspector.__reloadGeometry">__reloadGeometry</a></td>
106 <td>Private method to restore the geometry.</td>
107 </tr>
108 <tr>
109 <td><a href="#WebInspector.closeEvent">closeEvent</a></td>
110 <td>Protected method to save the geometry when closed.</td>
111 </tr>
112 <tr>
113 <td><a href="#WebInspector.inspectElement">inspectElement</a></td>
114 <td>Public method to inspect an element.</td>
115 </tr>
116 <tr>
117 <td><a href="#WebInspector.setView">setView</a></td>
118 <td>Public method to connect a view to this inspector.</td>
119 </tr>
120 </table>
121 <h3>Static Methods</h3>
122
123 <table>
124 <tr><td>None</td></tr>
125 </table>
126
127 <a NAME="WebInspector.isEnabled" ID="WebInspector.isEnabled"></a>
128 <h4>WebInspector.isEnabled (class method)</h4>
129 <b>isEnabled</b>(<i></i>)
130
131 <p>
132 Class method to check, if the web inspector is enabled.
133 </p>
134 <dl>
135 <dt>Return:</dt>
136 <dd>
137 flag indicating the enabled state
138 </dd>
139 </dl>
140 <dl>
141 <dt>Return Type:</dt>
142 <dd>
143 bool
144 </dd>
145 </dl>
146 <a NAME="WebInspector.__init__" ID="WebInspector.__init__"></a>
147 <h4>WebInspector (Constructor)</h4>
148 <b>WebInspector</b>(<i>parent=None</i>)
149
150 <p>
151 Constructor
152 </p>
153 <dl>
154
155 <dt><i>parent</i> (QWidget)</dt>
156 <dd>
157 reference to the parent widget
158 </dd>
159 </dl>
160 <a NAME="WebInspector.__loadFinished" ID="WebInspector.__loadFinished"></a>
161 <h4>WebInspector.__loadFinished</h4>
162 <b>__loadFinished</b>(<i></i>)
163
164 <p>
165 Private slot handling the finished signal.
166 </p>
167 <a NAME="WebInspector.__reloadGeometry" ID="WebInspector.__reloadGeometry"></a>
168 <h4>WebInspector.__reloadGeometry</h4>
169 <b>__reloadGeometry</b>(<i></i>)
170
171 <p>
172 Private method to restore the geometry.
173 </p>
174 <a NAME="WebInspector.closeEvent" ID="WebInspector.closeEvent"></a>
175 <h4>WebInspector.closeEvent</h4>
176 <b>closeEvent</b>(<i>evt</i>)
177
178 <p>
179 Protected method to save the geometry when closed.
180 </p>
181 <dl>
182
183 <dt><i>evt</i> (QCloseEvent)</dt>
184 <dd>
185 event object
186 </dd>
187 </dl>
188 <a NAME="WebInspector.inspectElement" ID="WebInspector.inspectElement"></a>
189 <h4>WebInspector.inspectElement</h4>
190 <b>inspectElement</b>(<i></i>)
191
192 <p>
193 Public method to inspect an element.
194 </p>
195 <a NAME="WebInspector.setView" ID="WebInspector.setView"></a>
196 <h4>WebInspector.setView</h4>
197 <b>setView</b>(<i>view, inspectElement=False</i>)
198
199 <p>
200 Public method to connect a view to this inspector.
201 </p>
202 <dl>
203
204 <dt><i>view</i> (WebBrowserView)</dt>
205 <dd>
206 reference to the view object
207 </dd>
208 <dt><i>inspectElement</i> (bool)</dt>
209 <dd>
210 flag indicating to start a web inspection
211 </dd>
212 </dl>
213 <div align="right"><a href="#top">Up</a></div>
214 <hr />
215 <hr />
216 <a NAME="pushView" ID="pushView"></a>
217 <h2>pushView</h2>
218 <b>pushView</b>(<i>view</i>)
219
220 <p>
221 Function to push a view to the front of the list.
222 </p>
223 <dl>
224
225 <dt><i>view</i> (WebBrowserView)</dt>
226 <dd>
227 reference to the view
228 </dd>
229 </dl>
230 <div align="right"><a href="#top">Up</a></div>
231 <hr />
232 <hr />
233 <a NAME="registerView" ID="registerView"></a>
234 <h2>registerView</h2>
235 <b>registerView</b>(<i>view</i>)
236
237 <p>
238 Function to register a view.
239 </p>
240 <dl>
241
242 <dt><i>view</i> (WebBrowserView)</dt>
243 <dd>
244 reference to the view
245 </dd>
246 </dl>
247 <div align="right"><a href="#top">Up</a></div>
248 <hr />
249 <hr />
250 <a NAME="unregisterView" ID="unregisterView"></a>
251 <h2>unregisterView</h2>
252 <b>unregisterView</b>(<i>view</i>)
253
254 <p>
255 Function to unregister a view.
256 </p>
257 <dl>
258
259 <dt><i>view</i> (WebBrowserView)</dt>
260 <dd>
261 reference to the view
262 </dd>
263 </dl>
264 <div align="right"><a href="#top">Up</a></div>
265 <hr />
266 </body></html>

eric ide

mercurial