|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Preferences.ConfigurationPages.DebuggerGeneralPage</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.Preferences.ConfigurationPages.DebuggerGeneralPage</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing the Debugger General configuration page. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#DebuggerGeneralPage">DebuggerGeneralPage</a></td> |
|
39 <td>Class implementing the Debugger General configuration page.</td> |
|
40 </tr> |
|
41 <tr> |
|
42 <td><a href="#PreviewModel">PreviewModel</a></td> |
|
43 <td>Class to show an example of the selected background colours for the debug viewer.</td> |
|
44 </tr> |
|
45 </table> |
|
46 <h3>Functions</h3> |
|
47 |
|
48 <table> |
|
49 |
|
50 <tr> |
|
51 <td><a href="#create">create</a></td> |
|
52 <td>Module function to create the configuration page.</td> |
|
53 </tr> |
|
54 </table> |
|
55 <hr /> |
|
56 <hr /> |
|
57 <a NAME="DebuggerGeneralPage" ID="DebuggerGeneralPage"></a> |
|
58 <h2>DebuggerGeneralPage</h2> |
|
59 |
|
60 <p> |
|
61 Class implementing the Debugger General configuration page. |
|
62 </p> |
|
63 <h3>Derived from</h3> |
|
64 ConfigurationPageBase, Ui_DebuggerGeneralPage |
|
65 <h3>Class Attributes</h3> |
|
66 |
|
67 <table> |
|
68 <tr><td>None</td></tr> |
|
69 </table> |
|
70 <h3>Class Methods</h3> |
|
71 |
|
72 <table> |
|
73 <tr><td>None</td></tr> |
|
74 </table> |
|
75 <h3>Methods</h3> |
|
76 |
|
77 <table> |
|
78 |
|
79 <tr> |
|
80 <td><a href="#DebuggerGeneralPage.__init__">DebuggerGeneralPage</a></td> |
|
81 <td>Constructor</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#DebuggerGeneralPage.on_addAllowedHostButton_clicked">on_addAllowedHostButton_clicked</a></td> |
|
85 <td>Private slot called to add a new allowed host.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#DebuggerGeneralPage.on_allowedHostsList_currentItemChanged">on_allowedHostsList_currentItemChanged</a></td> |
|
89 <td>Private method set the state of the edit and delete button.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#DebuggerGeneralPage.on_deleteAllowedHostButton_clicked">on_deleteAllowedHostButton_clicked</a></td> |
|
93 <td>Private slot called to delete an allowed host.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#DebuggerGeneralPage.on_editAllowedHostButton_clicked">on_editAllowedHostButton_clicked</a></td> |
|
97 <td>Private slot called to edit an allowed host.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#DebuggerGeneralPage.save">save</a></td> |
|
101 <td>Public slot to save the Debugger General (1) configuration.</td> |
|
102 </tr> |
|
103 </table> |
|
104 <h3>Static Methods</h3> |
|
105 |
|
106 <table> |
|
107 <tr><td>None</td></tr> |
|
108 </table> |
|
109 |
|
110 <a NAME="DebuggerGeneralPage.__init__" ID="DebuggerGeneralPage.__init__"></a> |
|
111 <h4>DebuggerGeneralPage (Constructor)</h4> |
|
112 <b>DebuggerGeneralPage</b>(<i></i>) |
|
113 |
|
114 <p> |
|
115 Constructor |
|
116 </p> |
|
117 <a NAME="DebuggerGeneralPage.on_addAllowedHostButton_clicked" ID="DebuggerGeneralPage.on_addAllowedHostButton_clicked"></a> |
|
118 <h4>DebuggerGeneralPage.on_addAllowedHostButton_clicked</h4> |
|
119 <b>on_addAllowedHostButton_clicked</b>(<i></i>) |
|
120 |
|
121 <p> |
|
122 Private slot called to add a new allowed host. |
|
123 </p> |
|
124 <a NAME="DebuggerGeneralPage.on_allowedHostsList_currentItemChanged" ID="DebuggerGeneralPage.on_allowedHostsList_currentItemChanged"></a> |
|
125 <h4>DebuggerGeneralPage.on_allowedHostsList_currentItemChanged</h4> |
|
126 <b>on_allowedHostsList_currentItemChanged</b>(<i>current, previous</i>) |
|
127 |
|
128 <p> |
|
129 Private method set the state of the edit and delete button. |
|
130 </p> |
|
131 <dl> |
|
132 |
|
133 <dt><i>current</i></dt> |
|
134 <dd> |
|
135 new current item (QListWidgetItem) |
|
136 </dd> |
|
137 <dt><i>previous</i></dt> |
|
138 <dd> |
|
139 previous current item (QListWidgetItem) |
|
140 </dd> |
|
141 </dl> |
|
142 <a NAME="DebuggerGeneralPage.on_deleteAllowedHostButton_clicked" ID="DebuggerGeneralPage.on_deleteAllowedHostButton_clicked"></a> |
|
143 <h4>DebuggerGeneralPage.on_deleteAllowedHostButton_clicked</h4> |
|
144 <b>on_deleteAllowedHostButton_clicked</b>(<i></i>) |
|
145 |
|
146 <p> |
|
147 Private slot called to delete an allowed host. |
|
148 </p> |
|
149 <a NAME="DebuggerGeneralPage.on_editAllowedHostButton_clicked" ID="DebuggerGeneralPage.on_editAllowedHostButton_clicked"></a> |
|
150 <h4>DebuggerGeneralPage.on_editAllowedHostButton_clicked</h4> |
|
151 <b>on_editAllowedHostButton_clicked</b>(<i></i>) |
|
152 |
|
153 <p> |
|
154 Private slot called to edit an allowed host. |
|
155 </p> |
|
156 <a NAME="DebuggerGeneralPage.save" ID="DebuggerGeneralPage.save"></a> |
|
157 <h4>DebuggerGeneralPage.save</h4> |
|
158 <b>save</b>(<i></i>) |
|
159 |
|
160 <p> |
|
161 Public slot to save the Debugger General (1) configuration. |
|
162 </p> |
|
163 <div align="right"><a href="#top">Up</a></div> |
|
164 <hr /> |
|
165 <hr /> |
|
166 <a NAME="PreviewModel" ID="PreviewModel"></a> |
|
167 <h2>PreviewModel</h2> |
|
168 |
|
169 <p> |
|
170 Class to show an example of the selected background colours for the debug |
|
171 viewer. |
|
172 </p> |
|
173 <h3>Derived from</h3> |
|
174 QAbstractItemModel |
|
175 <h3>Class Attributes</h3> |
|
176 |
|
177 <table> |
|
178 <tr><td>None</td></tr> |
|
179 </table> |
|
180 <h3>Class Methods</h3> |
|
181 |
|
182 <table> |
|
183 <tr><td>None</td></tr> |
|
184 </table> |
|
185 <h3>Methods</h3> |
|
186 |
|
187 <table> |
|
188 |
|
189 <tr> |
|
190 <td><a href="#PreviewModel.__init__">PreviewModel</a></td> |
|
191 <td>Constructor</td> |
|
192 </tr> |
|
193 <tr> |
|
194 <td><a href="#PreviewModel.columnCount">columnCount</a></td> |
|
195 <td>Public Qt slot to get the column count.</td> |
|
196 </tr> |
|
197 <tr> |
|
198 <td><a href="#PreviewModel.data">data</a></td> |
|
199 <td>Public Qt slot get the role data of item.</td> |
|
200 </tr> |
|
201 <tr> |
|
202 <td><a href="#PreviewModel.flags">flags</a></td> |
|
203 <td>Public Qt slot to get the item flags.</td> |
|
204 </tr> |
|
205 <tr> |
|
206 <td><a href="#PreviewModel.index">index</a></td> |
|
207 <td>Public Qt slot to get the index of item at row:column of parent.</td> |
|
208 </tr> |
|
209 <tr> |
|
210 <td><a href="#PreviewModel.parent">parent</a></td> |
|
211 <td>Public Qt slot to get the parent of the given child.</td> |
|
212 </tr> |
|
213 <tr> |
|
214 <td><a href="#PreviewModel.rowCount">rowCount</a></td> |
|
215 <td>Public Qt slot to get the row count.</td> |
|
216 </tr> |
|
217 <tr> |
|
218 <td><a href="#PreviewModel.setColor">setColor</a></td> |
|
219 <td>Public slot to update the background colour indexed by key.</td> |
|
220 </tr> |
|
221 </table> |
|
222 <h3>Static Methods</h3> |
|
223 |
|
224 <table> |
|
225 <tr><td>None</td></tr> |
|
226 </table> |
|
227 |
|
228 <a NAME="PreviewModel.__init__" ID="PreviewModel.__init__"></a> |
|
229 <h4>PreviewModel (Constructor)</h4> |
|
230 <b>PreviewModel</b>(<i></i>) |
|
231 |
|
232 <p> |
|
233 Constructor |
|
234 </p> |
|
235 <a NAME="PreviewModel.columnCount" ID="PreviewModel.columnCount"></a> |
|
236 <h4>PreviewModel.columnCount</h4> |
|
237 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
|
238 |
|
239 <p> |
|
240 Public Qt slot to get the column count. |
|
241 </p> |
|
242 <dl> |
|
243 |
|
244 <dt><i>parent</i> (QModelIndex)</dt> |
|
245 <dd> |
|
246 the model parent |
|
247 </dd> |
|
248 </dl> |
|
249 <dl> |
|
250 <dt>Return:</dt> |
|
251 <dd> |
|
252 number of columns |
|
253 </dd> |
|
254 </dl> |
|
255 <dl> |
|
256 <dt>Return Type:</dt> |
|
257 <dd> |
|
258 int |
|
259 </dd> |
|
260 </dl> |
|
261 <a NAME="PreviewModel.data" ID="PreviewModel.data"></a> |
|
262 <h4>PreviewModel.data</h4> |
|
263 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) |
|
264 |
|
265 <p> |
|
266 Public Qt slot get the role data of item. |
|
267 </p> |
|
268 <dl> |
|
269 |
|
270 <dt><i>index</i> (QModelIndex)</dt> |
|
271 <dd> |
|
272 the model index |
|
273 </dd> |
|
274 <dt><i>role</i> (QtCore.Qt.ItemDataRole)</dt> |
|
275 <dd> |
|
276 the requested data role |
|
277 </dd> |
|
278 </dl> |
|
279 <dl> |
|
280 <dt>Return:</dt> |
|
281 <dd> |
|
282 role data of item |
|
283 </dd> |
|
284 </dl> |
|
285 <dl> |
|
286 <dt>Return Type:</dt> |
|
287 <dd> |
|
288 str, QBrush or None |
|
289 </dd> |
|
290 </dl> |
|
291 <a NAME="PreviewModel.flags" ID="PreviewModel.flags"></a> |
|
292 <h4>PreviewModel.flags</h4> |
|
293 <b>flags</b>(<i>index</i>) |
|
294 |
|
295 <p> |
|
296 Public Qt slot to get the item flags. |
|
297 </p> |
|
298 <dl> |
|
299 |
|
300 <dt><i>index</i> (QModelIndex)</dt> |
|
301 <dd> |
|
302 of item |
|
303 </dd> |
|
304 </dl> |
|
305 <dl> |
|
306 <dt>Return:</dt> |
|
307 <dd> |
|
308 item flags |
|
309 </dd> |
|
310 </dl> |
|
311 <dl> |
|
312 <dt>Return Type:</dt> |
|
313 <dd> |
|
314 QtCore.Qt.ItemFlag |
|
315 </dd> |
|
316 </dl> |
|
317 <a NAME="PreviewModel.index" ID="PreviewModel.index"></a> |
|
318 <h4>PreviewModel.index</h4> |
|
319 <b>index</b>(<i>row, column, parent=QModelIndex()</i>) |
|
320 |
|
321 <p> |
|
322 Public Qt slot to get the index of item at row:column of parent. |
|
323 </p> |
|
324 <dl> |
|
325 |
|
326 <dt><i>row</i> (int)</dt> |
|
327 <dd> |
|
328 number of rows |
|
329 </dd> |
|
330 <dt><i>column</i> (int)</dt> |
|
331 <dd> |
|
332 number of columns |
|
333 </dd> |
|
334 <dt><i>parent</i> (QModelIndex)</dt> |
|
335 <dd> |
|
336 the model parent |
|
337 </dd> |
|
338 </dl> |
|
339 <dl> |
|
340 <dt>Return:</dt> |
|
341 <dd> |
|
342 new model index for child |
|
343 </dd> |
|
344 </dl> |
|
345 <dl> |
|
346 <dt>Return Type:</dt> |
|
347 <dd> |
|
348 QModelIndex |
|
349 </dd> |
|
350 </dl> |
|
351 <a NAME="PreviewModel.parent" ID="PreviewModel.parent"></a> |
|
352 <h4>PreviewModel.parent</h4> |
|
353 <b>parent</b>(<i>child</i>) |
|
354 |
|
355 <p> |
|
356 Public Qt slot to get the parent of the given child. |
|
357 </p> |
|
358 <dl> |
|
359 |
|
360 <dt><i>child</i> (QModelIndex)</dt> |
|
361 <dd> |
|
362 the model child node |
|
363 </dd> |
|
364 </dl> |
|
365 <dl> |
|
366 <dt>Return:</dt> |
|
367 <dd> |
|
368 new model index for parent |
|
369 </dd> |
|
370 </dl> |
|
371 <dl> |
|
372 <dt>Return Type:</dt> |
|
373 <dd> |
|
374 QModelIndex |
|
375 </dd> |
|
376 </dl> |
|
377 <a NAME="PreviewModel.rowCount" ID="PreviewModel.rowCount"></a> |
|
378 <h4>PreviewModel.rowCount</h4> |
|
379 <b>rowCount</b>(<i>parent=QModelIndex()</i>) |
|
380 |
|
381 <p> |
|
382 Public Qt slot to get the row count. |
|
383 </p> |
|
384 <dl> |
|
385 |
|
386 <dt><i>parent</i> (QModelIndex)</dt> |
|
387 <dd> |
|
388 the model parent |
|
389 </dd> |
|
390 </dl> |
|
391 <dl> |
|
392 <dt>Return:</dt> |
|
393 <dd> |
|
394 number of rows |
|
395 </dd> |
|
396 </dl> |
|
397 <dl> |
|
398 <dt>Return Type:</dt> |
|
399 <dd> |
|
400 int |
|
401 </dd> |
|
402 </dl> |
|
403 <a NAME="PreviewModel.setColor" ID="PreviewModel.setColor"></a> |
|
404 <h4>PreviewModel.setColor</h4> |
|
405 <b>setColor</b>(<i>key, bgcolour</i>) |
|
406 |
|
407 <p> |
|
408 Public slot to update the background colour indexed by key. |
|
409 </p> |
|
410 <dl> |
|
411 |
|
412 <dt><i>key</i> (str)</dt> |
|
413 <dd> |
|
414 the name of background |
|
415 </dd> |
|
416 <dt><i>bgcolour</i> (QColor)</dt> |
|
417 <dd> |
|
418 the new background colour |
|
419 </dd> |
|
420 </dl> |
|
421 <div align="right"><a href="#top">Up</a></div> |
|
422 <hr /> |
|
423 <hr /> |
|
424 <a NAME="create" ID="create"></a> |
|
425 <h2>create</h2> |
|
426 <b>create</b>(<i>dlg</i>) |
|
427 |
|
428 <p> |
|
429 Module function to create the configuration page. |
|
430 </p> |
|
431 <dl> |
|
432 |
|
433 <dt><i>dlg</i></dt> |
|
434 <dd> |
|
435 reference to the configuration dialog |
|
436 </dd> |
|
437 </dl> |
|
438 <dl> |
|
439 <dt>Return:</dt> |
|
440 <dd> |
|
441 reference to the instantiated page (ConfigurationPageBase) |
|
442 </dd> |
|
443 </dl> |
|
444 <div align="right"><a href="#top">Up</a></div> |
|
445 <hr /> |
|
446 </body></html> |