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