|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.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><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.WebBrowser.WebInspector</h1> |
|
23 <p> |
|
24 Module implementing a QWebEngineView to load the web inspector in. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>_VIEWS</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#WebInspector">WebInspector</a></td> |
|
34 <td>Class implementing a QWebEngineView to load the web inspector in.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr> |
|
40 <td><a href="#pushView">pushView</a></td> |
|
41 <td>Function to push a view to the front of the list.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#registerView">registerView</a></td> |
|
44 <td>Function to register a view.</td> |
|
45 </tr><tr> |
|
46 <td><a href="#unregisterView">unregisterView</a></td> |
|
47 <td>Function to unregister a view.</td> |
|
48 </tr> |
|
49 </table> |
|
50 <hr /><hr /> |
|
51 <a NAME="WebInspector" ID="WebInspector"></a> |
|
52 <h2>WebInspector</h2> |
|
53 <p> |
|
54 Class implementing a QWebEngineView to load the web inspector in. |
|
55 </p><h3>Signals</h3> |
|
56 <dl> |
|
57 <dt>inspectorClosed</dt> |
|
58 <dd> |
|
59 emitted to indicate the closing of the inspector |
|
60 window |
|
61 </dd> |
|
62 </dl> |
|
63 <h3>Derived from</h3> |
|
64 QWebEngineView |
|
65 <h3>Class Attributes</h3> |
|
66 <table> |
|
67 <tr><td>None</td></tr> |
|
68 </table> |
|
69 <h3>Class Methods</h3> |
|
70 <table> |
|
71 <tr> |
|
72 <td><a href="#WebInspector.isEnabled">isEnabled</a></td> |
|
73 <td>Class method to check, if the web inspector is enabled.</td> |
|
74 </tr> |
|
75 </table> |
|
76 <h3>Methods</h3> |
|
77 <table> |
|
78 <tr> |
|
79 <td><a href="#WebInspector.__init__">WebInspector</a></td> |
|
80 <td>Constructor</td> |
|
81 </tr><tr> |
|
82 <td><a href="#WebInspector.__inspectorReplyFinished">__inspectorReplyFinished</a></td> |
|
83 <td>Private slot handling the reply.</td> |
|
84 </tr><tr> |
|
85 <td><a href="#WebInspector.__loadFinished">__loadFinished</a></td> |
|
86 <td>Private slot handling the finished signal.</td> |
|
87 </tr><tr> |
|
88 <td><a href="#WebInspector.__reloadGeometry">__reloadGeometry</a></td> |
|
89 <td>Private method to restore the geometry.</td> |
|
90 </tr><tr> |
|
91 <td><a href="#WebInspector.closeEvent">closeEvent</a></td> |
|
92 <td>Protected method to save the geometry when closed.</td> |
|
93 </tr><tr> |
|
94 <td><a href="#WebInspector.inspectElement">inspectElement</a></td> |
|
95 <td>Public method to inspect an element.</td> |
|
96 </tr><tr> |
|
97 <td><a href="#WebInspector.setView">setView</a></td> |
|
98 <td>Public method to connect a view to this inspector.</td> |
|
99 </tr> |
|
100 </table> |
|
101 <h3>Static Methods</h3> |
|
102 <table> |
|
103 <tr><td>None</td></tr> |
|
104 </table> |
|
105 <a NAME="WebInspector.isEnabled" ID="WebInspector.isEnabled"></a> |
|
106 <h4>WebInspector.isEnabled (class method)</h4> |
|
107 <b>isEnabled</b>(<i></i>) |
|
108 <p> |
|
109 Class method to check, if the web inspector is enabled. |
|
110 </p><dl> |
|
111 <dt>Returns:</dt> |
|
112 <dd> |
|
113 flag indicating the enabled state |
|
114 </dd> |
|
115 </dl><dl> |
|
116 <dt>Return Type:</dt> |
|
117 <dd> |
|
118 bool |
|
119 </dd> |
|
120 </dl><a NAME="WebInspector.__init__" ID="WebInspector.__init__"></a> |
|
121 <h4>WebInspector (Constructor)</h4> |
|
122 <b>WebInspector</b>(<i>parent=None</i>) |
|
123 <p> |
|
124 Constructor |
|
125 </p><dl> |
|
126 <dt><i>parent</i> (QWidget)</dt> |
|
127 <dd> |
|
128 reference to the parent widget |
|
129 </dd> |
|
130 </dl><a NAME="WebInspector.__inspectorReplyFinished" ID="WebInspector.__inspectorReplyFinished"></a> |
|
131 <h4>WebInspector.__inspectorReplyFinished</h4> |
|
132 <b>__inspectorReplyFinished</b>(<i></i>) |
|
133 <p> |
|
134 Private slot handling the reply. |
|
135 </p><a NAME="WebInspector.__loadFinished" ID="WebInspector.__loadFinished"></a> |
|
136 <h4>WebInspector.__loadFinished</h4> |
|
137 <b>__loadFinished</b>(<i></i>) |
|
138 <p> |
|
139 Private slot handling the finished signal. |
|
140 </p><a NAME="WebInspector.__reloadGeometry" ID="WebInspector.__reloadGeometry"></a> |
|
141 <h4>WebInspector.__reloadGeometry</h4> |
|
142 <b>__reloadGeometry</b>(<i></i>) |
|
143 <p> |
|
144 Private method to restore the geometry. |
|
145 </p><a NAME="WebInspector.closeEvent" ID="WebInspector.closeEvent"></a> |
|
146 <h4>WebInspector.closeEvent</h4> |
|
147 <b>closeEvent</b>(<i>evt</i>) |
|
148 <p> |
|
149 Protected method to save the geometry when closed. |
|
150 </p><dl> |
|
151 <dt><i>evt</i> (QCloseEvent)</dt> |
|
152 <dd> |
|
153 event object |
|
154 </dd> |
|
155 </dl><a NAME="WebInspector.inspectElement" ID="WebInspector.inspectElement"></a> |
|
156 <h4>WebInspector.inspectElement</h4> |
|
157 <b>inspectElement</b>(<i></i>) |
|
158 <p> |
|
159 Public method to inspect an element. |
|
160 </p><a NAME="WebInspector.setView" ID="WebInspector.setView"></a> |
|
161 <h4>WebInspector.setView</h4> |
|
162 <b>setView</b>(<i>view, inspectElement=False</i>) |
|
163 <p> |
|
164 Public method to connect a view to this inspector. |
|
165 </p><dl> |
|
166 <dt><i>view</i> (WebBrowserView)</dt> |
|
167 <dd> |
|
168 reference to the view object |
|
169 </dd><dt><i>inspectElement</i> (bool)</dt> |
|
170 <dd> |
|
171 flag indicating to start a web inspection |
|
172 </dd> |
|
173 </dl> |
|
174 <div align="right"><a href="#top">Up</a></div> |
|
175 <hr /><hr /> |
|
176 <a NAME="pushView" ID="pushView"></a> |
|
177 <h2>pushView</h2> |
|
178 <b>pushView</b>(<i>view</i>) |
|
179 <p> |
|
180 Function to push a view to the front of the list. |
|
181 </p><dl> |
|
182 <dt><i>view</i> (WebBrowserView)</dt> |
|
183 <dd> |
|
184 reference to the view |
|
185 </dd> |
|
186 </dl> |
|
187 <div align="right"><a href="#top">Up</a></div> |
|
188 <hr /><hr /> |
|
189 <a NAME="registerView" ID="registerView"></a> |
|
190 <h2>registerView</h2> |
|
191 <b>registerView</b>(<i>view</i>) |
|
192 <p> |
|
193 Function to register a view. |
|
194 </p><dl> |
|
195 <dt><i>view</i> (WebBrowserView)</dt> |
|
196 <dd> |
|
197 reference to the view |
|
198 </dd> |
|
199 </dl> |
|
200 <div align="right"><a href="#top">Up</a></div> |
|
201 <hr /><hr /> |
|
202 <a NAME="unregisterView" ID="unregisterView"></a> |
|
203 <h2>unregisterView</h2> |
|
204 <b>unregisterView</b>(<i>view</i>) |
|
205 <p> |
|
206 Function to unregister a view. |
|
207 </p><dl> |
|
208 <dt><i>view</i> (WebBrowserView)</dt> |
|
209 <dd> |
|
210 reference to the view |
|
211 </dd> |
|
212 </dl> |
|
213 <div align="right"><a href="#top">Up</a></div> |
|
214 <hr /> |
|
215 </body></html> |