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