|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.UI.BrowserModel</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.UI.BrowserModel</h1> |
|
12 <p> |
|
13 Module implementing the browser model. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>BrowserItemAttribute</td></tr><tr><td>BrowserItemAttributes</td></tr><tr><td>BrowserItemClass</td></tr><tr><td>BrowserItemCoding</td></tr><tr><td>BrowserItemDirectory</td></tr><tr><td>BrowserItemFile</td></tr><tr><td>BrowserItemMethod</td></tr><tr><td>BrowserItemRoot</td></tr><tr><td>BrowserItemSysPath</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#BrowserClassAttributeItem">BrowserClassAttributeItem</a></td> |
|
23 <td>Class implementing the data structure for browser class attribute items.</td> |
|
24 </tr><tr> |
|
25 <td><a href="#BrowserClassAttributesItem">BrowserClassAttributesItem</a></td> |
|
26 <td>Class implementing the data structure for browser class attributes items.</td> |
|
27 </tr><tr> |
|
28 <td><a href="#BrowserClassItem">BrowserClassItem</a></td> |
|
29 <td>Class implementing the data structure for browser class items.</td> |
|
30 </tr><tr> |
|
31 <td><a href="#BrowserCodingItem">BrowserCodingItem</a></td> |
|
32 <td>Class implementing the data structure for browser coding items.</td> |
|
33 </tr><tr> |
|
34 <td><a href="#BrowserDirectoryItem">BrowserDirectoryItem</a></td> |
|
35 <td>Class implementing the data structure for browser directory items.</td> |
|
36 </tr><tr> |
|
37 <td><a href="#BrowserFileItem">BrowserFileItem</a></td> |
|
38 <td>Class implementing the data structure for browser file items.</td> |
|
39 </tr><tr> |
|
40 <td><a href="#BrowserItem">BrowserItem</a></td> |
|
41 <td>Class implementing the data structure for browser items.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#BrowserMethodItem">BrowserMethodItem</a></td> |
|
44 <td>Class implementing the data structure for browser method items.</td> |
|
45 </tr><tr> |
|
46 <td><a href="#BrowserModel">BrowserModel</a></td> |
|
47 <td>Class implementing the browser model.</td> |
|
48 </tr><tr> |
|
49 <td><a href="#BrowserSysPathItem">BrowserSysPathItem</a></td> |
|
50 <td>Class implementing the data structure for browser sys.path items.</td> |
|
51 </tr> |
|
52 </table> |
|
53 <h3>Functions</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <hr /><hr /> |
|
58 <a NAME="BrowserClassAttributeItem" ID="BrowserClassAttributeItem"></a> |
|
59 <h2>BrowserClassAttributeItem</h2> |
|
60 <p> |
|
61 Class implementing the data structure for browser class attribute items. |
|
62 </p> |
|
63 <h3>Derived from</h3> |
|
64 BrowserItem |
|
65 <h3>Class Attributes</h3> |
|
66 <table> |
|
67 <tr><td>None</td></tr> |
|
68 </table> |
|
69 <h3>Methods</h3> |
|
70 <table> |
|
71 <tr> |
|
72 <td><a href="#BrowserClassAttributeItem.__init__">BrowserClassAttributeItem</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr><tr> |
|
75 <td><a href="#BrowserClassAttributeItem.attributeObject">attributeObject</a></td> |
|
76 <td>Public method returning the class object.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#BrowserClassAttributeItem.fileName">fileName</a></td> |
|
79 <td>Public method returning the filename.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#BrowserClassAttributeItem.isPublic">isPublic</a></td> |
|
82 <td>Public method returning the public visibility status.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#BrowserClassAttributeItem.lessThan">lessThan</a></td> |
|
85 <td>Public method to check, if the item is less than the other one.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#BrowserClassAttributeItem.lineno">lineno</a></td> |
|
88 <td>Public method returning the line number defining this object.</td> |
|
89 </tr> |
|
90 </table> |
|
91 <a NAME="BrowserClassAttributeItem.__init__" ID="BrowserClassAttributeItem.__init__"></a> |
|
92 <h4>BrowserClassAttributeItem (Constructor)</h4> |
|
93 <b>BrowserClassAttributeItem</b>(<i>parent, attribute</i>) |
|
94 <p> |
|
95 Constructor |
|
96 </p><dl> |
|
97 <dt><i>parent</i></dt> |
|
98 <dd> |
|
99 parent item |
|
100 </dd><dt><i>attribute</i></dt> |
|
101 <dd> |
|
102 reference to the attribute object |
|
103 </dd> |
|
104 </dl><a NAME="BrowserClassAttributeItem.attributeObject" ID="BrowserClassAttributeItem.attributeObject"></a> |
|
105 <h4>BrowserClassAttributeItem.attributeObject</h4> |
|
106 <b>attributeObject</b>(<i></i>) |
|
107 <p> |
|
108 Public method returning the class object. |
|
109 </p><dl> |
|
110 <dt>Returns:</dt> |
|
111 <dd> |
|
112 reference to the class object |
|
113 </dd> |
|
114 </dl><a NAME="BrowserClassAttributeItem.fileName" ID="BrowserClassAttributeItem.fileName"></a> |
|
115 <h4>BrowserClassAttributeItem.fileName</h4> |
|
116 <b>fileName</b>(<i></i>) |
|
117 <p> |
|
118 Public method returning the filename. |
|
119 </p><dl> |
|
120 <dt>Returns:</dt> |
|
121 <dd> |
|
122 filename (string) |
|
123 </dd> |
|
124 </dl><a NAME="BrowserClassAttributeItem.isPublic" ID="BrowserClassAttributeItem.isPublic"></a> |
|
125 <h4>BrowserClassAttributeItem.isPublic</h4> |
|
126 <b>isPublic</b>(<i></i>) |
|
127 <p> |
|
128 Public method returning the public visibility status. |
|
129 </p><dl> |
|
130 <dt>Returns:</dt> |
|
131 <dd> |
|
132 flag indicating public visibility (boolean) |
|
133 </dd> |
|
134 </dl><a NAME="BrowserClassAttributeItem.lessThan" ID="BrowserClassAttributeItem.lessThan"></a> |
|
135 <h4>BrowserClassAttributeItem.lessThan</h4> |
|
136 <b>lessThan</b>(<i>other, column, order</i>) |
|
137 <p> |
|
138 Public method to check, if the item is less than the other one. |
|
139 </p><dl> |
|
140 <dt><i>other</i></dt> |
|
141 <dd> |
|
142 reference to item to compare against (BrowserItem) |
|
143 </dd><dt><i>column</i></dt> |
|
144 <dd> |
|
145 column number to use for the comparison (integer) |
|
146 </dd><dt><i>order</i></dt> |
|
147 <dd> |
|
148 sort order (Qt.SortOrder) (for special sorting) |
|
149 </dd> |
|
150 </dl><dl> |
|
151 <dt>Returns:</dt> |
|
152 <dd> |
|
153 true, if this item is less than other (boolean) |
|
154 </dd> |
|
155 </dl><a NAME="BrowserClassAttributeItem.lineno" ID="BrowserClassAttributeItem.lineno"></a> |
|
156 <h4>BrowserClassAttributeItem.lineno</h4> |
|
157 <b>lineno</b>(<i></i>) |
|
158 <p> |
|
159 Public method returning the line number defining this object. |
|
160 </p><p> |
|
161 return line number defining the object (integer) |
|
162 </p> |
|
163 <div align="right"><a href="#top">Up</a></div> |
|
164 <hr /><hr /> |
|
165 <a NAME="BrowserClassAttributesItem" ID="BrowserClassAttributesItem"></a> |
|
166 <h2>BrowserClassAttributesItem</h2> |
|
167 <p> |
|
168 Class implementing the data structure for browser class attributes items. |
|
169 </p> |
|
170 <h3>Derived from</h3> |
|
171 BrowserItem |
|
172 <h3>Class Attributes</h3> |
|
173 <table> |
|
174 <tr><td>None</td></tr> |
|
175 </table> |
|
176 <h3>Methods</h3> |
|
177 <table> |
|
178 <tr> |
|
179 <td><a href="#BrowserClassAttributesItem.__init__">BrowserClassAttributesItem</a></td> |
|
180 <td>Constructor</td> |
|
181 </tr><tr> |
|
182 <td><a href="#BrowserClassAttributesItem.attributes">attributes</a></td> |
|
183 <td>Public method returning the attribute list.</td> |
|
184 </tr><tr> |
|
185 <td><a href="#BrowserClassAttributesItem.lessThan">lessThan</a></td> |
|
186 <td>Public method to check, if the item is less than the other one.</td> |
|
187 </tr> |
|
188 </table> |
|
189 <a NAME="BrowserClassAttributesItem.__init__" ID="BrowserClassAttributesItem.__init__"></a> |
|
190 <h4>BrowserClassAttributesItem (Constructor)</h4> |
|
191 <b>BrowserClassAttributesItem</b>(<i>parent, attributes, text</i>) |
|
192 <p> |
|
193 Constructor |
|
194 </p><dl> |
|
195 <dt><i>parent</i></dt> |
|
196 <dd> |
|
197 parent item |
|
198 </dd><dt><i>attributes</i></dt> |
|
199 <dd> |
|
200 list of attributes |
|
201 </dd><dt><i>text</i></dt> |
|
202 <dd> |
|
203 text to be shown by this item (string) |
|
204 </dd> |
|
205 </dl><a NAME="BrowserClassAttributesItem.attributes" ID="BrowserClassAttributesItem.attributes"></a> |
|
206 <h4>BrowserClassAttributesItem.attributes</h4> |
|
207 <b>attributes</b>(<i></i>) |
|
208 <p> |
|
209 Public method returning the attribute list. |
|
210 </p><dl> |
|
211 <dt>Returns:</dt> |
|
212 <dd> |
|
213 reference to the list of attributes |
|
214 </dd> |
|
215 </dl><a NAME="BrowserClassAttributesItem.lessThan" ID="BrowserClassAttributesItem.lessThan"></a> |
|
216 <h4>BrowserClassAttributesItem.lessThan</h4> |
|
217 <b>lessThan</b>(<i>other, column, order</i>) |
|
218 <p> |
|
219 Public method to check, if the item is less than the other one. |
|
220 </p><dl> |
|
221 <dt><i>other</i></dt> |
|
222 <dd> |
|
223 reference to item to compare against (BrowserItem) |
|
224 </dd><dt><i>column</i></dt> |
|
225 <dd> |
|
226 column number to use for the comparison (integer) |
|
227 </dd><dt><i>order</i></dt> |
|
228 <dd> |
|
229 sort order (Qt.SortOrder) (for special sorting) |
|
230 </dd> |
|
231 </dl><dl> |
|
232 <dt>Returns:</dt> |
|
233 <dd> |
|
234 true, if this item is less than other (boolean) |
|
235 </dd> |
|
236 </dl> |
|
237 <div align="right"><a href="#top">Up</a></div> |
|
238 <hr /><hr /> |
|
239 <a NAME="BrowserClassItem" ID="BrowserClassItem"></a> |
|
240 <h2>BrowserClassItem</h2> |
|
241 <p> |
|
242 Class implementing the data structure for browser class items. |
|
243 </p> |
|
244 <h3>Derived from</h3> |
|
245 BrowserItem |
|
246 <h3>Class Attributes</h3> |
|
247 <table> |
|
248 <tr><td>None</td></tr> |
|
249 </table> |
|
250 <h3>Methods</h3> |
|
251 <table> |
|
252 <tr> |
|
253 <td><a href="#BrowserClassItem.__init__">BrowserClassItem</a></td> |
|
254 <td>Constructor</td> |
|
255 </tr><tr> |
|
256 <td><a href="#BrowserClassItem.classObject">classObject</a></td> |
|
257 <td>Public method returning the class object.</td> |
|
258 </tr><tr> |
|
259 <td><a href="#BrowserClassItem.fileName">fileName</a></td> |
|
260 <td>Public method returning the filename.</td> |
|
261 </tr><tr> |
|
262 <td><a href="#BrowserClassItem.isPublic">isPublic</a></td> |
|
263 <td>Public method returning the public visibility status.</td> |
|
264 </tr><tr> |
|
265 <td><a href="#BrowserClassItem.lessThan">lessThan</a></td> |
|
266 <td>Public method to check, if the item is less than the other one.</td> |
|
267 </tr><tr> |
|
268 <td><a href="#BrowserClassItem.lineno">lineno</a></td> |
|
269 <td>Public method returning the line number defining this object.</td> |
|
270 </tr> |
|
271 </table> |
|
272 <a NAME="BrowserClassItem.__init__" ID="BrowserClassItem.__init__"></a> |
|
273 <h4>BrowserClassItem (Constructor)</h4> |
|
274 <b>BrowserClassItem</b>(<i>parent, cl, filename</i>) |
|
275 <p> |
|
276 Constructor |
|
277 </p><dl> |
|
278 <dt><i>parent</i></dt> |
|
279 <dd> |
|
280 parent item |
|
281 </dd><dt><i>cl</i></dt> |
|
282 <dd> |
|
283 Class object to be shown |
|
284 </dd><dt><i>filename</i></dt> |
|
285 <dd> |
|
286 filename of the file defining this class |
|
287 </dd> |
|
288 </dl><a NAME="BrowserClassItem.classObject" ID="BrowserClassItem.classObject"></a> |
|
289 <h4>BrowserClassItem.classObject</h4> |
|
290 <b>classObject</b>(<i></i>) |
|
291 <p> |
|
292 Public method returning the class object. |
|
293 </p><dl> |
|
294 <dt>Returns:</dt> |
|
295 <dd> |
|
296 reference to the class object |
|
297 </dd> |
|
298 </dl><a NAME="BrowserClassItem.fileName" ID="BrowserClassItem.fileName"></a> |
|
299 <h4>BrowserClassItem.fileName</h4> |
|
300 <b>fileName</b>(<i></i>) |
|
301 <p> |
|
302 Public method returning the filename. |
|
303 </p><dl> |
|
304 <dt>Returns:</dt> |
|
305 <dd> |
|
306 filename (string) |
|
307 </dd> |
|
308 </dl><a NAME="BrowserClassItem.isPublic" ID="BrowserClassItem.isPublic"></a> |
|
309 <h4>BrowserClassItem.isPublic</h4> |
|
310 <b>isPublic</b>(<i></i>) |
|
311 <p> |
|
312 Public method returning the public visibility status. |
|
313 </p><dl> |
|
314 <dt>Returns:</dt> |
|
315 <dd> |
|
316 flag indicating public visibility (boolean) |
|
317 </dd> |
|
318 </dl><a NAME="BrowserClassItem.lessThan" ID="BrowserClassItem.lessThan"></a> |
|
319 <h4>BrowserClassItem.lessThan</h4> |
|
320 <b>lessThan</b>(<i>other, column, order</i>) |
|
321 <p> |
|
322 Public method to check, if the item is less than the other one. |
|
323 </p><dl> |
|
324 <dt><i>other</i></dt> |
|
325 <dd> |
|
326 reference to item to compare against (BrowserItem) |
|
327 </dd><dt><i>column</i></dt> |
|
328 <dd> |
|
329 column number to use for the comparison (integer) |
|
330 </dd><dt><i>order</i></dt> |
|
331 <dd> |
|
332 sort order (Qt.SortOrder) (for special sorting) |
|
333 </dd> |
|
334 </dl><dl> |
|
335 <dt>Returns:</dt> |
|
336 <dd> |
|
337 true, if this item is less than other (boolean) |
|
338 </dd> |
|
339 </dl><a NAME="BrowserClassItem.lineno" ID="BrowserClassItem.lineno"></a> |
|
340 <h4>BrowserClassItem.lineno</h4> |
|
341 <b>lineno</b>(<i></i>) |
|
342 <p> |
|
343 Public method returning the line number defining this object. |
|
344 </p><p> |
|
345 return line number defining the object (integer) |
|
346 </p> |
|
347 <div align="right"><a href="#top">Up</a></div> |
|
348 <hr /><hr /> |
|
349 <a NAME="BrowserCodingItem" ID="BrowserCodingItem"></a> |
|
350 <h2>BrowserCodingItem</h2> |
|
351 <p> |
|
352 Class implementing the data structure for browser coding items. |
|
353 </p> |
|
354 <h3>Derived from</h3> |
|
355 BrowserItem |
|
356 <h3>Class Attributes</h3> |
|
357 <table> |
|
358 <tr><td>None</td></tr> |
|
359 </table> |
|
360 <h3>Methods</h3> |
|
361 <table> |
|
362 <tr> |
|
363 <td><a href="#BrowserCodingItem.__init__">BrowserCodingItem</a></td> |
|
364 <td>Constructor</td> |
|
365 </tr><tr> |
|
366 <td><a href="#BrowserCodingItem.lessThan">lessThan</a></td> |
|
367 <td>Public method to check, if the item is less than the other one.</td> |
|
368 </tr> |
|
369 </table> |
|
370 <a NAME="BrowserCodingItem.__init__" ID="BrowserCodingItem.__init__"></a> |
|
371 <h4>BrowserCodingItem (Constructor)</h4> |
|
372 <b>BrowserCodingItem</b>(<i>parent, text</i>) |
|
373 <p> |
|
374 Constructor |
|
375 </p><dl> |
|
376 <dt><i>parent</i></dt> |
|
377 <dd> |
|
378 parent item |
|
379 </dd><dt><i>text</i></dt> |
|
380 <dd> |
|
381 text to be shown by this item (string) |
|
382 </dd> |
|
383 </dl><a NAME="BrowserCodingItem.lessThan" ID="BrowserCodingItem.lessThan"></a> |
|
384 <h4>BrowserCodingItem.lessThan</h4> |
|
385 <b>lessThan</b>(<i>other, column, order</i>) |
|
386 <p> |
|
387 Public method to check, if the item is less than the other one. |
|
388 </p><dl> |
|
389 <dt><i>other</i></dt> |
|
390 <dd> |
|
391 reference to item to compare against (BrowserItem) |
|
392 </dd><dt><i>column</i></dt> |
|
393 <dd> |
|
394 column number to use for the comparison (integer) |
|
395 </dd><dt><i>order</i></dt> |
|
396 <dd> |
|
397 sort order (Qt.SortOrder) (for special sorting) |
|
398 </dd> |
|
399 </dl><dl> |
|
400 <dt>Returns:</dt> |
|
401 <dd> |
|
402 true, if this item is less than other (boolean) |
|
403 </dd> |
|
404 </dl> |
|
405 <div align="right"><a href="#top">Up</a></div> |
|
406 <hr /><hr /> |
|
407 <a NAME="BrowserDirectoryItem" ID="BrowserDirectoryItem"></a> |
|
408 <h2>BrowserDirectoryItem</h2> |
|
409 <p> |
|
410 Class implementing the data structure for browser directory items. |
|
411 </p> |
|
412 <h3>Derived from</h3> |
|
413 BrowserItem |
|
414 <h3>Class Attributes</h3> |
|
415 <table> |
|
416 <tr><td>None</td></tr> |
|
417 </table> |
|
418 <h3>Methods</h3> |
|
419 <table> |
|
420 <tr> |
|
421 <td><a href="#BrowserDirectoryItem.__init__">BrowserDirectoryItem</a></td> |
|
422 <td>Constructor</td> |
|
423 </tr><tr> |
|
424 <td><a href="#BrowserDirectoryItem.dirName">dirName</a></td> |
|
425 <td>Public method returning the directory name.</td> |
|
426 </tr><tr> |
|
427 <td><a href="#BrowserDirectoryItem.lessThan">lessThan</a></td> |
|
428 <td>Public method to check, if the item is less than the other one.</td> |
|
429 </tr><tr> |
|
430 <td><a href="#BrowserDirectoryItem.setName">setName</a></td> |
|
431 <td>Public method to set the directory name.</td> |
|
432 </tr> |
|
433 </table> |
|
434 <a NAME="BrowserDirectoryItem.__init__" ID="BrowserDirectoryItem.__init__"></a> |
|
435 <h4>BrowserDirectoryItem (Constructor)</h4> |
|
436 <b>BrowserDirectoryItem</b>(<i>parent, dinfo, full = True</i>) |
|
437 <p> |
|
438 Constructor |
|
439 </p><dl> |
|
440 <dt><i>parent</i></dt> |
|
441 <dd> |
|
442 parent item |
|
443 </dd><dt><i>dinfo</i></dt> |
|
444 <dd> |
|
445 dinfo is the string for the directory (string) |
|
446 </dd><dt><i>full</i></dt> |
|
447 <dd> |
|
448 flag indicating full pathname should be displayed (boolean) |
|
449 </dd> |
|
450 </dl><a NAME="BrowserDirectoryItem.dirName" ID="BrowserDirectoryItem.dirName"></a> |
|
451 <h4>BrowserDirectoryItem.dirName</h4> |
|
452 <b>dirName</b>(<i></i>) |
|
453 <p> |
|
454 Public method returning the directory name. |
|
455 </p><dl> |
|
456 <dt>Returns:</dt> |
|
457 <dd> |
|
458 directory name (string) |
|
459 </dd> |
|
460 </dl><a NAME="BrowserDirectoryItem.lessThan" ID="BrowserDirectoryItem.lessThan"></a> |
|
461 <h4>BrowserDirectoryItem.lessThan</h4> |
|
462 <b>lessThan</b>(<i>other, column, order</i>) |
|
463 <p> |
|
464 Public method to check, if the item is less than the other one. |
|
465 </p><dl> |
|
466 <dt><i>other</i></dt> |
|
467 <dd> |
|
468 reference to item to compare against (BrowserItem) |
|
469 </dd><dt><i>column</i></dt> |
|
470 <dd> |
|
471 column number to use for the comparison (integer) |
|
472 </dd><dt><i>order</i></dt> |
|
473 <dd> |
|
474 sort order (Qt.SortOrder) (for special sorting) |
|
475 </dd> |
|
476 </dl><dl> |
|
477 <dt>Returns:</dt> |
|
478 <dd> |
|
479 true, if this item is less than other (boolean) |
|
480 </dd> |
|
481 </dl><a NAME="BrowserDirectoryItem.setName" ID="BrowserDirectoryItem.setName"></a> |
|
482 <h4>BrowserDirectoryItem.setName</h4> |
|
483 <b>setName</b>(<i>dinfo, full = True</i>) |
|
484 <p> |
|
485 Public method to set the directory name. |
|
486 </p><dl> |
|
487 <dt><i>dinfo</i></dt> |
|
488 <dd> |
|
489 dinfo is the string for the directory (string) |
|
490 </dd><dt><i>full</i></dt> |
|
491 <dd> |
|
492 flag indicating full pathname should be displayed (boolean) |
|
493 </dd> |
|
494 </dl> |
|
495 <div align="right"><a href="#top">Up</a></div> |
|
496 <hr /><hr /> |
|
497 <a NAME="BrowserFileItem" ID="BrowserFileItem"></a> |
|
498 <h2>BrowserFileItem</h2> |
|
499 <p> |
|
500 Class implementing the data structure for browser file items. |
|
501 </p> |
|
502 <h3>Derived from</h3> |
|
503 BrowserItem |
|
504 <h3>Class Attributes</h3> |
|
505 <table> |
|
506 <tr><td>None</td></tr> |
|
507 </table> |
|
508 <h3>Methods</h3> |
|
509 <table> |
|
510 <tr> |
|
511 <td><a href="#BrowserFileItem.__init__">BrowserFileItem</a></td> |
|
512 <td>Constructor</td> |
|
513 </tr><tr> |
|
514 <td><a href="#BrowserFileItem.dirName">dirName</a></td> |
|
515 <td>Public method returning the directory name.</td> |
|
516 </tr><tr> |
|
517 <td><a href="#BrowserFileItem.fileExt">fileExt</a></td> |
|
518 <td>Public method returning the file extension.</td> |
|
519 </tr><tr> |
|
520 <td><a href="#BrowserFileItem.fileName">fileName</a></td> |
|
521 <td>Public method returning the filename.</td> |
|
522 </tr><tr> |
|
523 <td><a href="#BrowserFileItem.isDFile">isDFile</a></td> |
|
524 <td>Public method to check, if this file is a D file.</td> |
|
525 </tr><tr> |
|
526 <td><a href="#BrowserFileItem.isDesignerFile">isDesignerFile</a></td> |
|
527 <td>Public method to check, if this file is a Qt-Designer file.</td> |
|
528 </tr><tr> |
|
529 <td><a href="#BrowserFileItem.isIdlFile">isIdlFile</a></td> |
|
530 <td>Public method to check, if this file is a CORBA IDL file.</td> |
|
531 </tr><tr> |
|
532 <td><a href="#BrowserFileItem.isLinguistFile">isLinguistFile</a></td> |
|
533 <td>Public method to check, if this file is a Qt-Linguist file.</td> |
|
534 </tr><tr> |
|
535 <td><a href="#BrowserFileItem.isMultiProjectFile">isMultiProjectFile</a></td> |
|
536 <td>Public method to check, if this file is an eric multi project file.</td> |
|
537 </tr><tr> |
|
538 <td><a href="#BrowserFileItem.isPixmapFile">isPixmapFile</a></td> |
|
539 <td>Public method to check, if this file is a pixmap file.</td> |
|
540 </tr><tr> |
|
541 <td><a href="#BrowserFileItem.isProjectFile">isProjectFile</a></td> |
|
542 <td>Public method to check, if this file is an eric project file.</td> |
|
543 </tr><tr> |
|
544 <td><a href="#BrowserFileItem.isPython3File">isPython3File</a></td> |
|
545 <td>Public method to check, if this file is a Python3 script.</td> |
|
546 </tr><tr> |
|
547 <td><a href="#BrowserFileItem.isPythonFile">isPythonFile</a></td> |
|
548 <td>Public method to check, if this file is a Python script.</td> |
|
549 </tr><tr> |
|
550 <td><a href="#BrowserFileItem.isResourcesFile">isResourcesFile</a></td> |
|
551 <td>Public method to check, if this file is a Qt-Resources file.</td> |
|
552 </tr><tr> |
|
553 <td><a href="#BrowserFileItem.isRubyFile">isRubyFile</a></td> |
|
554 <td>Public method to check, if this file is a Ruby script.</td> |
|
555 </tr><tr> |
|
556 <td><a href="#BrowserFileItem.isSvgFile">isSvgFile</a></td> |
|
557 <td>Public method to check, if this file is a SVG file.</td> |
|
558 </tr><tr> |
|
559 <td><a href="#BrowserFileItem.lessThan">lessThan</a></td> |
|
560 <td>Public method to check, if the item is less than the other one.</td> |
|
561 </tr><tr> |
|
562 <td><a href="#BrowserFileItem.moduleName">moduleName</a></td> |
|
563 <td>Public method returning the module name.</td> |
|
564 </tr><tr> |
|
565 <td><a href="#BrowserFileItem.setName">setName</a></td> |
|
566 <td>Public method to set the directory name.</td> |
|
567 </tr> |
|
568 </table> |
|
569 <a NAME="BrowserFileItem.__init__" ID="BrowserFileItem.__init__"></a> |
|
570 <h4>BrowserFileItem (Constructor)</h4> |
|
571 <b>BrowserFileItem</b>(<i>parent, finfo, full = True, sourceLanguage = ""</i>) |
|
572 <p> |
|
573 Constructor |
|
574 </p><dl> |
|
575 <dt><i>parent</i></dt> |
|
576 <dd> |
|
577 parent item |
|
578 </dd><dt><i>finfo</i></dt> |
|
579 <dd> |
|
580 the string for the file (string) |
|
581 </dd><dt><i>full</i></dt> |
|
582 <dd> |
|
583 flag indicating full pathname should be displayed (boolean) |
|
584 </dd><dt><i>sourceLanguage</i></dt> |
|
585 <dd> |
|
586 source code language of the project (string) |
|
587 </dd> |
|
588 </dl><a NAME="BrowserFileItem.dirName" ID="BrowserFileItem.dirName"></a> |
|
589 <h4>BrowserFileItem.dirName</h4> |
|
590 <b>dirName</b>(<i></i>) |
|
591 <p> |
|
592 Public method returning the directory name. |
|
593 </p><dl> |
|
594 <dt>Returns:</dt> |
|
595 <dd> |
|
596 directory name (string) |
|
597 </dd> |
|
598 </dl><a NAME="BrowserFileItem.fileExt" ID="BrowserFileItem.fileExt"></a> |
|
599 <h4>BrowserFileItem.fileExt</h4> |
|
600 <b>fileExt</b>(<i></i>) |
|
601 <p> |
|
602 Public method returning the file extension. |
|
603 </p><dl> |
|
604 <dt>Returns:</dt> |
|
605 <dd> |
|
606 file extension (string) |
|
607 </dd> |
|
608 </dl><a NAME="BrowserFileItem.fileName" ID="BrowserFileItem.fileName"></a> |
|
609 <h4>BrowserFileItem.fileName</h4> |
|
610 <b>fileName</b>(<i></i>) |
|
611 <p> |
|
612 Public method returning the filename. |
|
613 </p><dl> |
|
614 <dt>Returns:</dt> |
|
615 <dd> |
|
616 filename (string) |
|
617 </dd> |
|
618 </dl><a NAME="BrowserFileItem.isDFile" ID="BrowserFileItem.isDFile"></a> |
|
619 <h4>BrowserFileItem.isDFile</h4> |
|
620 <b>isDFile</b>(<i></i>) |
|
621 <p> |
|
622 Public method to check, if this file is a D file. |
|
623 </p><dl> |
|
624 <dt>Returns:</dt> |
|
625 <dd> |
|
626 flag indicating a D file (boolean) |
|
627 </dd> |
|
628 </dl><a NAME="BrowserFileItem.isDesignerFile" ID="BrowserFileItem.isDesignerFile"></a> |
|
629 <h4>BrowserFileItem.isDesignerFile</h4> |
|
630 <b>isDesignerFile</b>(<i></i>) |
|
631 <p> |
|
632 Public method to check, if this file is a Qt-Designer file. |
|
633 </p><dl> |
|
634 <dt>Returns:</dt> |
|
635 <dd> |
|
636 flag indicating a Qt-Designer file (boolean) |
|
637 </dd> |
|
638 </dl><a NAME="BrowserFileItem.isIdlFile" ID="BrowserFileItem.isIdlFile"></a> |
|
639 <h4>BrowserFileItem.isIdlFile</h4> |
|
640 <b>isIdlFile</b>(<i></i>) |
|
641 <p> |
|
642 Public method to check, if this file is a CORBA IDL file. |
|
643 </p><dl> |
|
644 <dt>Returns:</dt> |
|
645 <dd> |
|
646 flag indicating a CORBA IDL file (boolean) |
|
647 </dd> |
|
648 </dl><a NAME="BrowserFileItem.isLinguistFile" ID="BrowserFileItem.isLinguistFile"></a> |
|
649 <h4>BrowserFileItem.isLinguistFile</h4> |
|
650 <b>isLinguistFile</b>(<i></i>) |
|
651 <p> |
|
652 Public method to check, if this file is a Qt-Linguist file. |
|
653 </p><dl> |
|
654 <dt>Returns:</dt> |
|
655 <dd> |
|
656 flag indicating a Qt-Linguist file (boolean) |
|
657 </dd> |
|
658 </dl><a NAME="BrowserFileItem.isMultiProjectFile" ID="BrowserFileItem.isMultiProjectFile"></a> |
|
659 <h4>BrowserFileItem.isMultiProjectFile</h4> |
|
660 <b>isMultiProjectFile</b>(<i></i>) |
|
661 <p> |
|
662 Public method to check, if this file is an eric multi project file. |
|
663 </p><dl> |
|
664 <dt>Returns:</dt> |
|
665 <dd> |
|
666 flag indicating an eric project file (boolean) |
|
667 </dd> |
|
668 </dl><a NAME="BrowserFileItem.isPixmapFile" ID="BrowserFileItem.isPixmapFile"></a> |
|
669 <h4>BrowserFileItem.isPixmapFile</h4> |
|
670 <b>isPixmapFile</b>(<i></i>) |
|
671 <p> |
|
672 Public method to check, if this file is a pixmap file. |
|
673 </p><dl> |
|
674 <dt>Returns:</dt> |
|
675 <dd> |
|
676 flag indicating a pixmap file (boolean) |
|
677 </dd> |
|
678 </dl><a NAME="BrowserFileItem.isProjectFile" ID="BrowserFileItem.isProjectFile"></a> |
|
679 <h4>BrowserFileItem.isProjectFile</h4> |
|
680 <b>isProjectFile</b>(<i></i>) |
|
681 <p> |
|
682 Public method to check, if this file is an eric project file. |
|
683 </p><dl> |
|
684 <dt>Returns:</dt> |
|
685 <dd> |
|
686 flag indicating an eric project file (boolean) |
|
687 </dd> |
|
688 </dl><a NAME="BrowserFileItem.isPython3File" ID="BrowserFileItem.isPython3File"></a> |
|
689 <h4>BrowserFileItem.isPython3File</h4> |
|
690 <b>isPython3File</b>(<i></i>) |
|
691 <p> |
|
692 Public method to check, if this file is a Python3 script. |
|
693 </p><dl> |
|
694 <dt>Returns:</dt> |
|
695 <dd> |
|
696 flag indicating a Python file (boolean) |
|
697 </dd> |
|
698 </dl><a NAME="BrowserFileItem.isPythonFile" ID="BrowserFileItem.isPythonFile"></a> |
|
699 <h4>BrowserFileItem.isPythonFile</h4> |
|
700 <b>isPythonFile</b>(<i></i>) |
|
701 <p> |
|
702 Public method to check, if this file is a Python script. |
|
703 </p><dl> |
|
704 <dt>Returns:</dt> |
|
705 <dd> |
|
706 flag indicating a Python file (boolean) |
|
707 </dd> |
|
708 </dl><a NAME="BrowserFileItem.isResourcesFile" ID="BrowserFileItem.isResourcesFile"></a> |
|
709 <h4>BrowserFileItem.isResourcesFile</h4> |
|
710 <b>isResourcesFile</b>(<i></i>) |
|
711 <p> |
|
712 Public method to check, if this file is a Qt-Resources file. |
|
713 </p><dl> |
|
714 <dt>Returns:</dt> |
|
715 <dd> |
|
716 flag indicating a Qt-Resources file (boolean) |
|
717 </dd> |
|
718 </dl><a NAME="BrowserFileItem.isRubyFile" ID="BrowserFileItem.isRubyFile"></a> |
|
719 <h4>BrowserFileItem.isRubyFile</h4> |
|
720 <b>isRubyFile</b>(<i></i>) |
|
721 <p> |
|
722 Public method to check, if this file is a Ruby script. |
|
723 </p><dl> |
|
724 <dt>Returns:</dt> |
|
725 <dd> |
|
726 flag indicating a Ruby file (boolean) |
|
727 </dd> |
|
728 </dl><a NAME="BrowserFileItem.isSvgFile" ID="BrowserFileItem.isSvgFile"></a> |
|
729 <h4>BrowserFileItem.isSvgFile</h4> |
|
730 <b>isSvgFile</b>(<i></i>) |
|
731 <p> |
|
732 Public method to check, if this file is a SVG file. |
|
733 </p><dl> |
|
734 <dt>Returns:</dt> |
|
735 <dd> |
|
736 flag indicating a SVG file (boolean) |
|
737 </dd> |
|
738 </dl><a NAME="BrowserFileItem.lessThan" ID="BrowserFileItem.lessThan"></a> |
|
739 <h4>BrowserFileItem.lessThan</h4> |
|
740 <b>lessThan</b>(<i>other, column, order</i>) |
|
741 <p> |
|
742 Public method to check, if the item is less than the other one. |
|
743 </p><dl> |
|
744 <dt><i>other</i></dt> |
|
745 <dd> |
|
746 reference to item to compare against (BrowserItem) |
|
747 </dd><dt><i>column</i></dt> |
|
748 <dd> |
|
749 column number to use for the comparison (integer) |
|
750 </dd><dt><i>order</i></dt> |
|
751 <dd> |
|
752 sort order (Qt.SortOrder) (for special sorting) |
|
753 </dd> |
|
754 </dl><dl> |
|
755 <dt>Returns:</dt> |
|
756 <dd> |
|
757 true, if this item is less than other (boolean) |
|
758 </dd> |
|
759 </dl><a NAME="BrowserFileItem.moduleName" ID="BrowserFileItem.moduleName"></a> |
|
760 <h4>BrowserFileItem.moduleName</h4> |
|
761 <b>moduleName</b>(<i></i>) |
|
762 <p> |
|
763 Public method returning the module name. |
|
764 </p><dl> |
|
765 <dt>Returns:</dt> |
|
766 <dd> |
|
767 module name (string) |
|
768 </dd> |
|
769 </dl><a NAME="BrowserFileItem.setName" ID="BrowserFileItem.setName"></a> |
|
770 <h4>BrowserFileItem.setName</h4> |
|
771 <b>setName</b>(<i>finfo, full = True</i>) |
|
772 <p> |
|
773 Public method to set the directory name. |
|
774 </p><dl> |
|
775 <dt><i>finfo</i></dt> |
|
776 <dd> |
|
777 the string for the file (string) |
|
778 </dd><dt><i>full</i></dt> |
|
779 <dd> |
|
780 flag indicating full pathname should be displayed (boolean) |
|
781 </dd> |
|
782 </dl> |
|
783 <div align="right"><a href="#top">Up</a></div> |
|
784 <hr /><hr /> |
|
785 <a NAME="BrowserItem" ID="BrowserItem"></a> |
|
786 <h2>BrowserItem</h2> |
|
787 <p> |
|
788 Class implementing the data structure for browser items. |
|
789 </p> |
|
790 <h3>Derived from</h3> |
|
791 object |
|
792 <h3>Class Attributes</h3> |
|
793 <table> |
|
794 <tr><td>None</td></tr> |
|
795 </table> |
|
796 <h3>Methods</h3> |
|
797 <table> |
|
798 <tr> |
|
799 <td><a href="#BrowserItem.__init__">BrowserItem</a></td> |
|
800 <td>Constructor.</td> |
|
801 </tr><tr> |
|
802 <td><a href="#BrowserItem.appendChild">appendChild</a></td> |
|
803 <td>Public method to add a child to this item.</td> |
|
804 </tr><tr> |
|
805 <td><a href="#BrowserItem.child">child</a></td> |
|
806 <td>Public method to get a child id.</td> |
|
807 </tr><tr> |
|
808 <td><a href="#BrowserItem.childCount">childCount</a></td> |
|
809 <td>Public method to get the number of available child items.</td> |
|
810 </tr><tr> |
|
811 <td><a href="#BrowserItem.children">children</a></td> |
|
812 <td>Public method to get the ids of all child items.</td> |
|
813 </tr><tr> |
|
814 <td><a href="#BrowserItem.columnCount">columnCount</a></td> |
|
815 <td>Public method to get the number of available data items.</td> |
|
816 </tr><tr> |
|
817 <td><a href="#BrowserItem.data">data</a></td> |
|
818 <td>Public method to get a specific data item.</td> |
|
819 </tr><tr> |
|
820 <td><a href="#BrowserItem.getIcon">getIcon</a></td> |
|
821 <td>Public method to get the items icon.</td> |
|
822 </tr><tr> |
|
823 <td><a href="#BrowserItem.isLazyPopulated">isLazyPopulated</a></td> |
|
824 <td>Public method to check, if this item should be populated lazyly.</td> |
|
825 </tr><tr> |
|
826 <td><a href="#BrowserItem.isPopulated">isPopulated</a></td> |
|
827 <td>Public method to chek, if this item is populated.</td> |
|
828 </tr><tr> |
|
829 <td><a href="#BrowserItem.isPublic">isPublic</a></td> |
|
830 <td>Public method returning the public visibility status.</td> |
|
831 </tr><tr> |
|
832 <td><a href="#BrowserItem.lessThan">lessThan</a></td> |
|
833 <td>Public method to check, if the item is less than the other one.</td> |
|
834 </tr><tr> |
|
835 <td><a href="#BrowserItem.parent">parent</a></td> |
|
836 <td>Public method to get the reference to the parent item.</td> |
|
837 </tr><tr> |
|
838 <td><a href="#BrowserItem.removeChild">removeChild</a></td> |
|
839 <td>Public method to remove a child.</td> |
|
840 </tr><tr> |
|
841 <td><a href="#BrowserItem.removeChildren">removeChildren</a></td> |
|
842 <td>Public method to remove all children.</td> |
|
843 </tr><tr> |
|
844 <td><a href="#BrowserItem.row">row</a></td> |
|
845 <td>Public method to get the row number of this item.</td> |
|
846 </tr><tr> |
|
847 <td><a href="#BrowserItem.type">type</a></td> |
|
848 <td>Public method to get the item type.</td> |
|
849 </tr> |
|
850 </table> |
|
851 <a NAME="BrowserItem.__init__" ID="BrowserItem.__init__"></a> |
|
852 <h4>BrowserItem (Constructor)</h4> |
|
853 <b>BrowserItem</b>(<i>parent, data</i>) |
|
854 <p> |
|
855 Constructor. |
|
856 </p><dl> |
|
857 <dt><i>parent</i></dt> |
|
858 <dd> |
|
859 reference to the parent item |
|
860 </dd><dt><i>data</i></dt> |
|
861 <dd> |
|
862 single data of the item |
|
863 </dd> |
|
864 </dl><a NAME="BrowserItem.appendChild" ID="BrowserItem.appendChild"></a> |
|
865 <h4>BrowserItem.appendChild</h4> |
|
866 <b>appendChild</b>(<i>child</i>) |
|
867 <p> |
|
868 Public method to add a child to this item. |
|
869 </p><dl> |
|
870 <dt><i>child</i></dt> |
|
871 <dd> |
|
872 reference to the child item to add (BrowserItem) |
|
873 </dd> |
|
874 </dl><a NAME="BrowserItem.child" ID="BrowserItem.child"></a> |
|
875 <h4>BrowserItem.child</h4> |
|
876 <b>child</b>(<i>row</i>) |
|
877 <p> |
|
878 Public method to get a child id. |
|
879 </p><dl> |
|
880 <dt><i>row</i></dt> |
|
881 <dd> |
|
882 number of child to get the id of (integer) |
|
883 </dd><dt><i>return</i></dt> |
|
884 <dd> |
|
885 reference to the child item (BrowserItem) |
|
886 </dd> |
|
887 </dl><a NAME="BrowserItem.childCount" ID="BrowserItem.childCount"></a> |
|
888 <h4>BrowserItem.childCount</h4> |
|
889 <b>childCount</b>(<i></i>) |
|
890 <p> |
|
891 Public method to get the number of available child items. |
|
892 </p><dl> |
|
893 <dt>Returns:</dt> |
|
894 <dd> |
|
895 number of child items (integer) |
|
896 </dd> |
|
897 </dl><a NAME="BrowserItem.children" ID="BrowserItem.children"></a> |
|
898 <h4>BrowserItem.children</h4> |
|
899 <b>children</b>(<i></i>) |
|
900 <p> |
|
901 Public method to get the ids of all child items. |
|
902 </p><dl> |
|
903 <dt>Returns:</dt> |
|
904 <dd> |
|
905 references to all child items (list of BrowserItem) |
|
906 </dd> |
|
907 </dl><a NAME="BrowserItem.columnCount" ID="BrowserItem.columnCount"></a> |
|
908 <h4>BrowserItem.columnCount</h4> |
|
909 <b>columnCount</b>(<i></i>) |
|
910 <p> |
|
911 Public method to get the number of available data items. |
|
912 </p><dl> |
|
913 <dt>Returns:</dt> |
|
914 <dd> |
|
915 number of data items (integer) |
|
916 </dd> |
|
917 </dl><a NAME="BrowserItem.data" ID="BrowserItem.data"></a> |
|
918 <h4>BrowserItem.data</h4> |
|
919 <b>data</b>(<i>column</i>) |
|
920 <p> |
|
921 Public method to get a specific data item. |
|
922 </p><dl> |
|
923 <dt><i>column</i></dt> |
|
924 <dd> |
|
925 number of the requested data item (integer) |
|
926 </dd><dt><i>return</i></dt> |
|
927 <dd> |
|
928 the stored data item |
|
929 </dd> |
|
930 </dl><a NAME="BrowserItem.getIcon" ID="BrowserItem.getIcon"></a> |
|
931 <h4>BrowserItem.getIcon</h4> |
|
932 <b>getIcon</b>(<i></i>) |
|
933 <p> |
|
934 Public method to get the items icon. |
|
935 </p><dl> |
|
936 <dt>Returns:</dt> |
|
937 <dd> |
|
938 the icon (QIcon) |
|
939 </dd> |
|
940 </dl><a NAME="BrowserItem.isLazyPopulated" ID="BrowserItem.isLazyPopulated"></a> |
|
941 <h4>BrowserItem.isLazyPopulated</h4> |
|
942 <b>isLazyPopulated</b>(<i></i>) |
|
943 <p> |
|
944 Public method to check, if this item should be populated lazyly. |
|
945 </p><dl> |
|
946 <dt>Returns:</dt> |
|
947 <dd> |
|
948 lazy population flag (boolean) |
|
949 </dd> |
|
950 </dl><a NAME="BrowserItem.isPopulated" ID="BrowserItem.isPopulated"></a> |
|
951 <h4>BrowserItem.isPopulated</h4> |
|
952 <b>isPopulated</b>(<i></i>) |
|
953 <p> |
|
954 Public method to chek, if this item is populated. |
|
955 </p><dl> |
|
956 <dt>Returns:</dt> |
|
957 <dd> |
|
958 population status (boolean) |
|
959 </dd> |
|
960 </dl><a NAME="BrowserItem.isPublic" ID="BrowserItem.isPublic"></a> |
|
961 <h4>BrowserItem.isPublic</h4> |
|
962 <b>isPublic</b>(<i></i>) |
|
963 <p> |
|
964 Public method returning the public visibility status. |
|
965 </p><dl> |
|
966 <dt>Returns:</dt> |
|
967 <dd> |
|
968 flag indicating public visibility (boolean) |
|
969 </dd> |
|
970 </dl><a NAME="BrowserItem.lessThan" ID="BrowserItem.lessThan"></a> |
|
971 <h4>BrowserItem.lessThan</h4> |
|
972 <b>lessThan</b>(<i>other, column, order</i>) |
|
973 <p> |
|
974 Public method to check, if the item is less than the other one. |
|
975 </p><dl> |
|
976 <dt><i>other</i></dt> |
|
977 <dd> |
|
978 reference to item to compare against (BrowserItem) |
|
979 </dd><dt><i>column</i></dt> |
|
980 <dd> |
|
981 column number to use for the comparison (integer) |
|
982 </dd><dt><i>order</i></dt> |
|
983 <dd> |
|
984 sort order (Qt.SortOrder) (for special sorting) |
|
985 </dd> |
|
986 </dl><dl> |
|
987 <dt>Returns:</dt> |
|
988 <dd> |
|
989 true, if this item is less than other (boolean) |
|
990 </dd> |
|
991 </dl><a NAME="BrowserItem.parent" ID="BrowserItem.parent"></a> |
|
992 <h4>BrowserItem.parent</h4> |
|
993 <b>parent</b>(<i></i>) |
|
994 <p> |
|
995 Public method to get the reference to the parent item. |
|
996 </p><dl> |
|
997 <dt>Returns:</dt> |
|
998 <dd> |
|
999 reference to the parent item |
|
1000 </dd> |
|
1001 </dl><a NAME="BrowserItem.removeChild" ID="BrowserItem.removeChild"></a> |
|
1002 <h4>BrowserItem.removeChild</h4> |
|
1003 <b>removeChild</b>(<i>child</i>) |
|
1004 <p> |
|
1005 Public method to remove a child. |
|
1006 </p><dl> |
|
1007 <dt><i>child</i></dt> |
|
1008 <dd> |
|
1009 reference to the child to remove (BrowserItem) |
|
1010 </dd> |
|
1011 </dl><a NAME="BrowserItem.removeChildren" ID="BrowserItem.removeChildren"></a> |
|
1012 <h4>BrowserItem.removeChildren</h4> |
|
1013 <b>removeChildren</b>(<i></i>) |
|
1014 <p> |
|
1015 Public method to remove all children. |
|
1016 </p><a NAME="BrowserItem.row" ID="BrowserItem.row"></a> |
|
1017 <h4>BrowserItem.row</h4> |
|
1018 <b>row</b>(<i></i>) |
|
1019 <p> |
|
1020 Public method to get the row number of this item. |
|
1021 </p><dl> |
|
1022 <dt>Returns:</dt> |
|
1023 <dd> |
|
1024 row number (integer) |
|
1025 </dd> |
|
1026 </dl><a NAME="BrowserItem.type" ID="BrowserItem.type"></a> |
|
1027 <h4>BrowserItem.type</h4> |
|
1028 <b>type</b>(<i></i>) |
|
1029 <p> |
|
1030 Public method to get the item type. |
|
1031 </p><dl> |
|
1032 <dt>Returns:</dt> |
|
1033 <dd> |
|
1034 type of the item |
|
1035 </dd> |
|
1036 </dl> |
|
1037 <div align="right"><a href="#top">Up</a></div> |
|
1038 <hr /><hr /> |
|
1039 <a NAME="BrowserMethodItem" ID="BrowserMethodItem"></a> |
|
1040 <h2>BrowserMethodItem</h2> |
|
1041 <p> |
|
1042 Class implementing the data structure for browser method items. |
|
1043 </p> |
|
1044 <h3>Derived from</h3> |
|
1045 BrowserItem |
|
1046 <h3>Class Attributes</h3> |
|
1047 <table> |
|
1048 <tr><td>None</td></tr> |
|
1049 </table> |
|
1050 <h3>Methods</h3> |
|
1051 <table> |
|
1052 <tr> |
|
1053 <td><a href="#BrowserMethodItem.__init__">BrowserMethodItem</a></td> |
|
1054 <td>Constructor</td> |
|
1055 </tr><tr> |
|
1056 <td><a href="#BrowserMethodItem.fileName">fileName</a></td> |
|
1057 <td>Public method returning the filename.</td> |
|
1058 </tr><tr> |
|
1059 <td><a href="#BrowserMethodItem.functionObject">functionObject</a></td> |
|
1060 <td>Public method returning the function object.</td> |
|
1061 </tr><tr> |
|
1062 <td><a href="#BrowserMethodItem.isPublic">isPublic</a></td> |
|
1063 <td>Public method returning the public visibility status.</td> |
|
1064 </tr><tr> |
|
1065 <td><a href="#BrowserMethodItem.lessThan">lessThan</a></td> |
|
1066 <td>Public method to check, if the item is less than the other one.</td> |
|
1067 </tr><tr> |
|
1068 <td><a href="#BrowserMethodItem.lineno">lineno</a></td> |
|
1069 <td>Public method returning the line number defining this object.</td> |
|
1070 </tr> |
|
1071 </table> |
|
1072 <a NAME="BrowserMethodItem.__init__" ID="BrowserMethodItem.__init__"></a> |
|
1073 <h4>BrowserMethodItem (Constructor)</h4> |
|
1074 <b>BrowserMethodItem</b>(<i>parent, fn, filename</i>) |
|
1075 <p> |
|
1076 Constructor |
|
1077 </p><dl> |
|
1078 <dt><i>parent</i></dt> |
|
1079 <dd> |
|
1080 parent item |
|
1081 </dd><dt><i>fn</i></dt> |
|
1082 <dd> |
|
1083 Function object to be shown |
|
1084 </dd><dt><i>filename</i></dt> |
|
1085 <dd> |
|
1086 filename of the file defining this class (string) |
|
1087 </dd> |
|
1088 </dl><a NAME="BrowserMethodItem.fileName" ID="BrowserMethodItem.fileName"></a> |
|
1089 <h4>BrowserMethodItem.fileName</h4> |
|
1090 <b>fileName</b>(<i></i>) |
|
1091 <p> |
|
1092 Public method returning the filename. |
|
1093 </p><dl> |
|
1094 <dt>Returns:</dt> |
|
1095 <dd> |
|
1096 filename (string) |
|
1097 </dd> |
|
1098 </dl><a NAME="BrowserMethodItem.functionObject" ID="BrowserMethodItem.functionObject"></a> |
|
1099 <h4>BrowserMethodItem.functionObject</h4> |
|
1100 <b>functionObject</b>(<i></i>) |
|
1101 <p> |
|
1102 Public method returning the function object. |
|
1103 </p><dl> |
|
1104 <dt>Returns:</dt> |
|
1105 <dd> |
|
1106 reference to the function object |
|
1107 </dd> |
|
1108 </dl><a NAME="BrowserMethodItem.isPublic" ID="BrowserMethodItem.isPublic"></a> |
|
1109 <h4>BrowserMethodItem.isPublic</h4> |
|
1110 <b>isPublic</b>(<i></i>) |
|
1111 <p> |
|
1112 Public method returning the public visibility status. |
|
1113 </p><dl> |
|
1114 <dt>Returns:</dt> |
|
1115 <dd> |
|
1116 flag indicating public visibility (boolean) |
|
1117 </dd> |
|
1118 </dl><a NAME="BrowserMethodItem.lessThan" ID="BrowserMethodItem.lessThan"></a> |
|
1119 <h4>BrowserMethodItem.lessThan</h4> |
|
1120 <b>lessThan</b>(<i>other, column, order</i>) |
|
1121 <p> |
|
1122 Public method to check, if the item is less than the other one. |
|
1123 </p><dl> |
|
1124 <dt><i>other</i></dt> |
|
1125 <dd> |
|
1126 reference to item to compare against (BrowserItem) |
|
1127 </dd><dt><i>column</i></dt> |
|
1128 <dd> |
|
1129 column number to use for the comparison (integer) |
|
1130 </dd><dt><i>order</i></dt> |
|
1131 <dd> |
|
1132 sort order (Qt.SortOrder) (for special sorting) |
|
1133 </dd> |
|
1134 </dl><dl> |
|
1135 <dt>Returns:</dt> |
|
1136 <dd> |
|
1137 true, if this item is less than other (boolean) |
|
1138 </dd> |
|
1139 </dl><a NAME="BrowserMethodItem.lineno" ID="BrowserMethodItem.lineno"></a> |
|
1140 <h4>BrowserMethodItem.lineno</h4> |
|
1141 <b>lineno</b>(<i></i>) |
|
1142 <p> |
|
1143 Public method returning the line number defining this object. |
|
1144 </p><p> |
|
1145 return line number defining the object (integer) |
|
1146 </p> |
|
1147 <div align="right"><a href="#top">Up</a></div> |
|
1148 <hr /><hr /> |
|
1149 <a NAME="BrowserModel" ID="BrowserModel"></a> |
|
1150 <h2>BrowserModel</h2> |
|
1151 <p> |
|
1152 Class implementing the browser model. |
|
1153 </p> |
|
1154 <h3>Derived from</h3> |
|
1155 QAbstractItemModel |
|
1156 <h3>Class Attributes</h3> |
|
1157 <table> |
|
1158 <tr><td>None</td></tr> |
|
1159 </table> |
|
1160 <h3>Methods</h3> |
|
1161 <table> |
|
1162 <tr> |
|
1163 <td><a href="#BrowserModel.__init__">BrowserModel</a></td> |
|
1164 <td>Constructor</td> |
|
1165 </tr><tr> |
|
1166 <td><a href="#BrowserModel.__populateModel">__populateModel</a></td> |
|
1167 <td>Private method to populate the browser model.</td> |
|
1168 </tr><tr> |
|
1169 <td><a href="#BrowserModel._addItem">_addItem</a></td> |
|
1170 <td>Protected slot to add an item.</td> |
|
1171 </tr><tr> |
|
1172 <td><a href="#BrowserModel.addItem">addItem</a></td> |
|
1173 <td>Puplic slot to add an item.</td> |
|
1174 </tr><tr> |
|
1175 <td><a href="#BrowserModel.addTopLevelDir">addTopLevelDir</a></td> |
|
1176 <td>Public method to add a new toplevel directory.</td> |
|
1177 </tr><tr> |
|
1178 <td><a href="#BrowserModel.clear">clear</a></td> |
|
1179 <td>Public method to clear the model.</td> |
|
1180 </tr><tr> |
|
1181 <td><a href="#BrowserModel.columnCount">columnCount</a></td> |
|
1182 <td>Public method to get the number of columns.</td> |
|
1183 </tr><tr> |
|
1184 <td><a href="#BrowserModel.data">data</a></td> |
|
1185 <td>Public method to get data of an item.</td> |
|
1186 </tr><tr> |
|
1187 <td><a href="#BrowserModel.flags">flags</a></td> |
|
1188 <td>Public method to get the item flags.</td> |
|
1189 </tr><tr> |
|
1190 <td><a href="#BrowserModel.hasChildren">hasChildren</a></td> |
|
1191 <td>Public method to check for the presence of child items.</td> |
|
1192 </tr><tr> |
|
1193 <td><a href="#BrowserModel.headerData">headerData</a></td> |
|
1194 <td>Public method to get the header data.</td> |
|
1195 </tr><tr> |
|
1196 <td><a href="#BrowserModel.index">index</a></td> |
|
1197 <td>Public method to create an index.</td> |
|
1198 </tr><tr> |
|
1199 <td><a href="#BrowserModel.item">item</a></td> |
|
1200 <td>Public method to get a reference to an item.</td> |
|
1201 </tr><tr> |
|
1202 <td><a href="#BrowserModel.parent">parent</a></td> |
|
1203 <td>Public method to get the index of the parent object.</td> |
|
1204 </tr><tr> |
|
1205 <td><a href="#BrowserModel.populateClassAttributesItem">populateClassAttributesItem</a></td> |
|
1206 <td>Public method to populate a class attributes item's subtree.</td> |
|
1207 </tr><tr> |
|
1208 <td><a href="#BrowserModel.populateClassItem">populateClassItem</a></td> |
|
1209 <td>Public method to populate a class item's subtree.</td> |
|
1210 </tr><tr> |
|
1211 <td><a href="#BrowserModel.populateDirectoryItem">populateDirectoryItem</a></td> |
|
1212 <td>Public method to populate a directory item's subtree.</td> |
|
1213 </tr><tr> |
|
1214 <td><a href="#BrowserModel.populateFileItem">populateFileItem</a></td> |
|
1215 <td>Public method to populate a file item's subtree.</td> |
|
1216 </tr><tr> |
|
1217 <td><a href="#BrowserModel.populateItem">populateItem</a></td> |
|
1218 <td>Public method to populate an item's subtree.</td> |
|
1219 </tr><tr> |
|
1220 <td><a href="#BrowserModel.populateMethodItem">populateMethodItem</a></td> |
|
1221 <td>Public method to populate a method item's subtree.</td> |
|
1222 </tr><tr> |
|
1223 <td><a href="#BrowserModel.populateSysPathItem">populateSysPathItem</a></td> |
|
1224 <td>Public method to populate a sys.path item's subtree.</td> |
|
1225 </tr><tr> |
|
1226 <td><a href="#BrowserModel.programChange">programChange</a></td> |
|
1227 <td>Public method to change the entry for the directory of file being debugged.</td> |
|
1228 </tr><tr> |
|
1229 <td><a href="#BrowserModel.removeToplevelDir">removeToplevelDir</a></td> |
|
1230 <td>Public method to remove a toplevel directory.</td> |
|
1231 </tr><tr> |
|
1232 <td><a href="#BrowserModel.rowCount">rowCount</a></td> |
|
1233 <td>Public method to get the number of rows.</td> |
|
1234 </tr><tr> |
|
1235 <td><a href="#BrowserModel.saveToplevelDirs">saveToplevelDirs</a></td> |
|
1236 <td>Public slot to save the toplevel directories.</td> |
|
1237 </tr> |
|
1238 </table> |
|
1239 <a NAME="BrowserModel.__init__" ID="BrowserModel.__init__"></a> |
|
1240 <h4>BrowserModel (Constructor)</h4> |
|
1241 <b>BrowserModel</b>(<i>parent = None</i>) |
|
1242 <p> |
|
1243 Constructor |
|
1244 </p><dl> |
|
1245 <dt><i>parent</i></dt> |
|
1246 <dd> |
|
1247 reference to parent object (QObject) |
|
1248 </dd> |
|
1249 </dl><a NAME="BrowserModel.__populateModel" ID="BrowserModel.__populateModel"></a> |
|
1250 <h4>BrowserModel.__populateModel</h4> |
|
1251 <b>__populateModel</b>(<i></i>) |
|
1252 <p> |
|
1253 Private method to populate the browser model. |
|
1254 </p><a NAME="BrowserModel._addItem" ID="BrowserModel._addItem"></a> |
|
1255 <h4>BrowserModel._addItem</h4> |
|
1256 <b>_addItem</b>(<i>itm, parentItem</i>) |
|
1257 <p> |
|
1258 Protected slot to add an item. |
|
1259 </p><dl> |
|
1260 <dt><i>itm</i></dt> |
|
1261 <dd> |
|
1262 reference to item to add (BrowserItem) |
|
1263 </dd><dt><i>parentItem</i></dt> |
|
1264 <dd> |
|
1265 reference to item to add to (BrowserItem) |
|
1266 </dd> |
|
1267 </dl><a NAME="BrowserModel.addItem" ID="BrowserModel.addItem"></a> |
|
1268 <h4>BrowserModel.addItem</h4> |
|
1269 <b>addItem</b>(<i>itm, parent = QModelIndex()</i>) |
|
1270 <p> |
|
1271 Puplic slot to add an item. |
|
1272 </p><dl> |
|
1273 <dt><i>itm</i></dt> |
|
1274 <dd> |
|
1275 item to add (BrowserItem) |
|
1276 </dd><dt><i>parent</i></dt> |
|
1277 <dd> |
|
1278 index of parent item (QModelIndex) |
|
1279 </dd> |
|
1280 </dl><a NAME="BrowserModel.addTopLevelDir" ID="BrowserModel.addTopLevelDir"></a> |
|
1281 <h4>BrowserModel.addTopLevelDir</h4> |
|
1282 <b>addTopLevelDir</b>(<i>dirname</i>) |
|
1283 <p> |
|
1284 Public method to add a new toplevel directory. |
|
1285 </p><dl> |
|
1286 <dt><i>dirname</i></dt> |
|
1287 <dd> |
|
1288 name of the new toplevel directory (string) |
|
1289 </dd> |
|
1290 </dl><a NAME="BrowserModel.clear" ID="BrowserModel.clear"></a> |
|
1291 <h4>BrowserModel.clear</h4> |
|
1292 <b>clear</b>(<i></i>) |
|
1293 <p> |
|
1294 Public method to clear the model. |
|
1295 </p><a NAME="BrowserModel.columnCount" ID="BrowserModel.columnCount"></a> |
|
1296 <h4>BrowserModel.columnCount</h4> |
|
1297 <b>columnCount</b>(<i>parent=QModelIndex()</i>) |
|
1298 <p> |
|
1299 Public method to get the number of columns. |
|
1300 </p><dl> |
|
1301 <dt><i>parent</i></dt> |
|
1302 <dd> |
|
1303 index of parent item (QModelIndex) |
|
1304 </dd> |
|
1305 </dl><dl> |
|
1306 <dt>Returns:</dt> |
|
1307 <dd> |
|
1308 number of columns (integer) |
|
1309 </dd> |
|
1310 </dl><a NAME="BrowserModel.data" ID="BrowserModel.data"></a> |
|
1311 <h4>BrowserModel.data</h4> |
|
1312 <b>data</b>(<i>index, role</i>) |
|
1313 <p> |
|
1314 Public method to get data of an item. |
|
1315 </p><dl> |
|
1316 <dt><i>index</i></dt> |
|
1317 <dd> |
|
1318 index of the data to retrieve (QModelIndex) |
|
1319 </dd><dt><i>role</i></dt> |
|
1320 <dd> |
|
1321 role of data (Qt.ItemDataRole) |
|
1322 </dd> |
|
1323 </dl><dl> |
|
1324 <dt>Returns:</dt> |
|
1325 <dd> |
|
1326 requested data |
|
1327 </dd> |
|
1328 </dl><a NAME="BrowserModel.flags" ID="BrowserModel.flags"></a> |
|
1329 <h4>BrowserModel.flags</h4> |
|
1330 <b>flags</b>(<i>index</i>) |
|
1331 <p> |
|
1332 Public method to get the item flags. |
|
1333 </p><dl> |
|
1334 <dt><i>index</i></dt> |
|
1335 <dd> |
|
1336 index of the data to retrieve (QModelIndex) |
|
1337 </dd> |
|
1338 </dl><dl> |
|
1339 <dt>Returns:</dt> |
|
1340 <dd> |
|
1341 requested flags (Qt.ItemFlags) |
|
1342 </dd> |
|
1343 </dl><a NAME="BrowserModel.hasChildren" ID="BrowserModel.hasChildren"></a> |
|
1344 <h4>BrowserModel.hasChildren</h4> |
|
1345 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) |
|
1346 <p> |
|
1347 Public method to check for the presence of child items. |
|
1348 </p><p> |
|
1349 We always return True for normal items in order to do lazy |
|
1350 population of the tree. |
|
1351 </p><dl> |
|
1352 <dt><i>parent</i></dt> |
|
1353 <dd> |
|
1354 index of parent item (QModelIndex) |
|
1355 </dd> |
|
1356 </dl><dl> |
|
1357 <dt>Returns:</dt> |
|
1358 <dd> |
|
1359 flag indicating the presence of child items (boolean) |
|
1360 </dd> |
|
1361 </dl><a NAME="BrowserModel.headerData" ID="BrowserModel.headerData"></a> |
|
1362 <h4>BrowserModel.headerData</h4> |
|
1363 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) |
|
1364 <p> |
|
1365 Public method to get the header data. |
|
1366 </p><dl> |
|
1367 <dt><i>section</i></dt> |
|
1368 <dd> |
|
1369 number of section to get data for (integer) |
|
1370 </dd><dt><i>orientation</i></dt> |
|
1371 <dd> |
|
1372 header orientation (Qt.Orientation) |
|
1373 </dd><dt><i>role</i></dt> |
|
1374 <dd> |
|
1375 role of data (Qt.ItemDataRole) |
|
1376 </dd> |
|
1377 </dl><dl> |
|
1378 <dt>Returns:</dt> |
|
1379 <dd> |
|
1380 requested header data |
|
1381 </dd> |
|
1382 </dl><a NAME="BrowserModel.index" ID="BrowserModel.index"></a> |
|
1383 <h4>BrowserModel.index</h4> |
|
1384 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) |
|
1385 <p> |
|
1386 Public method to create an index. |
|
1387 </p><dl> |
|
1388 <dt><i>row</i></dt> |
|
1389 <dd> |
|
1390 row number of the new index (integer) |
|
1391 </dd><dt><i>column</i></dt> |
|
1392 <dd> |
|
1393 column number of the new index (integer) |
|
1394 </dd><dt><i>parent</i></dt> |
|
1395 <dd> |
|
1396 index of parent item (QModelIndex) |
|
1397 </dd> |
|
1398 </dl><dl> |
|
1399 <dt>Returns:</dt> |
|
1400 <dd> |
|
1401 index object (QModelIndex) |
|
1402 </dd> |
|
1403 </dl><a NAME="BrowserModel.item" ID="BrowserModel.item"></a> |
|
1404 <h4>BrowserModel.item</h4> |
|
1405 <b>item</b>(<i>index</i>) |
|
1406 <p> |
|
1407 Public method to get a reference to an item. |
|
1408 </p><dl> |
|
1409 <dt><i>index</i></dt> |
|
1410 <dd> |
|
1411 index of the data to retrieve (QModelIndex) |
|
1412 </dd> |
|
1413 </dl><dl> |
|
1414 <dt>Returns:</dt> |
|
1415 <dd> |
|
1416 requested item reference (BrowserItem) |
|
1417 </dd> |
|
1418 </dl><a NAME="BrowserModel.parent" ID="BrowserModel.parent"></a> |
|
1419 <h4>BrowserModel.parent</h4> |
|
1420 <b>parent</b>(<i>index</i>) |
|
1421 <p> |
|
1422 Public method to get the index of the parent object. |
|
1423 </p><dl> |
|
1424 <dt><i>index</i></dt> |
|
1425 <dd> |
|
1426 index of the item (QModelIndex) |
|
1427 </dd> |
|
1428 </dl><dl> |
|
1429 <dt>Returns:</dt> |
|
1430 <dd> |
|
1431 index of parent item (QModelIndex) |
|
1432 </dd> |
|
1433 </dl><a NAME="BrowserModel.populateClassAttributesItem" ID="BrowserModel.populateClassAttributesItem"></a> |
|
1434 <h4>BrowserModel.populateClassAttributesItem</h4> |
|
1435 <b>populateClassAttributesItem</b>(<i>parentItem, repopulate = False</i>) |
|
1436 <p> |
|
1437 Public method to populate a class attributes item's subtree. |
|
1438 </p><dl> |
|
1439 <dt><i>parentItem</i></dt> |
|
1440 <dd> |
|
1441 reference to the class attributes item to be populated |
|
1442 </dd><dt><i>repopulate</i></dt> |
|
1443 <dd> |
|
1444 flag indicating a repopulation (boolean) |
|
1445 </dd> |
|
1446 </dl><a NAME="BrowserModel.populateClassItem" ID="BrowserModel.populateClassItem"></a> |
|
1447 <h4>BrowserModel.populateClassItem</h4> |
|
1448 <b>populateClassItem</b>(<i>parentItem, repopulate = False</i>) |
|
1449 <p> |
|
1450 Public method to populate a class item's subtree. |
|
1451 </p><dl> |
|
1452 <dt><i>parentItem</i></dt> |
|
1453 <dd> |
|
1454 reference to the class item to be populated |
|
1455 </dd><dt><i>repopulate</i></dt> |
|
1456 <dd> |
|
1457 flag indicating a repopulation (boolean) |
|
1458 </dd> |
|
1459 </dl><a NAME="BrowserModel.populateDirectoryItem" ID="BrowserModel.populateDirectoryItem"></a> |
|
1460 <h4>BrowserModel.populateDirectoryItem</h4> |
|
1461 <b>populateDirectoryItem</b>(<i>parentItem, repopulate = False</i>) |
|
1462 <p> |
|
1463 Public method to populate a directory item's subtree. |
|
1464 </p><dl> |
|
1465 <dt><i>parentItem</i></dt> |
|
1466 <dd> |
|
1467 reference to the directory item to be populated |
|
1468 </dd><dt><i>repopulate</i></dt> |
|
1469 <dd> |
|
1470 flag indicating a repopulation (boolean) |
|
1471 </dd> |
|
1472 </dl><a NAME="BrowserModel.populateFileItem" ID="BrowserModel.populateFileItem"></a> |
|
1473 <h4>BrowserModel.populateFileItem</h4> |
|
1474 <b>populateFileItem</b>(<i>parentItem, repopulate = False</i>) |
|
1475 <p> |
|
1476 Public method to populate a file item's subtree. |
|
1477 </p><dl> |
|
1478 <dt><i>parentItem</i></dt> |
|
1479 <dd> |
|
1480 reference to the file item to be populated |
|
1481 </dd><dt><i>repopulate</i></dt> |
|
1482 <dd> |
|
1483 flag indicating a repopulation (boolean) |
|
1484 </dd> |
|
1485 </dl><a NAME="BrowserModel.populateItem" ID="BrowserModel.populateItem"></a> |
|
1486 <h4>BrowserModel.populateItem</h4> |
|
1487 <b>populateItem</b>(<i>parentItem, repopulate = False</i>) |
|
1488 <p> |
|
1489 Public method to populate an item's subtree. |
|
1490 </p><dl> |
|
1491 <dt><i>parentItem</i></dt> |
|
1492 <dd> |
|
1493 reference to the item to be populated |
|
1494 </dd><dt><i>repopulate</i></dt> |
|
1495 <dd> |
|
1496 flag indicating a repopulation (boolean) |
|
1497 </dd> |
|
1498 </dl><a NAME="BrowserModel.populateMethodItem" ID="BrowserModel.populateMethodItem"></a> |
|
1499 <h4>BrowserModel.populateMethodItem</h4> |
|
1500 <b>populateMethodItem</b>(<i>parentItem, repopulate = False</i>) |
|
1501 <p> |
|
1502 Public method to populate a method item's subtree. |
|
1503 </p><dl> |
|
1504 <dt><i>parentItem</i></dt> |
|
1505 <dd> |
|
1506 reference to the method item to be populated |
|
1507 </dd><dt><i>repopulate</i></dt> |
|
1508 <dd> |
|
1509 flag indicating a repopulation (boolean) |
|
1510 </dd> |
|
1511 </dl><a NAME="BrowserModel.populateSysPathItem" ID="BrowserModel.populateSysPathItem"></a> |
|
1512 <h4>BrowserModel.populateSysPathItem</h4> |
|
1513 <b>populateSysPathItem</b>(<i>parentItem, repopulate = False</i>) |
|
1514 <p> |
|
1515 Public method to populate a sys.path item's subtree. |
|
1516 </p><dl> |
|
1517 <dt><i>parentItem</i></dt> |
|
1518 <dd> |
|
1519 reference to the sys.path item to be populated |
|
1520 </dd><dt><i>repopulate</i></dt> |
|
1521 <dd> |
|
1522 flag indicating a repopulation (boolean) |
|
1523 </dd> |
|
1524 </dl><a NAME="BrowserModel.programChange" ID="BrowserModel.programChange"></a> |
|
1525 <h4>BrowserModel.programChange</h4> |
|
1526 <b>programChange</b>(<i>dirname</i>) |
|
1527 <p> |
|
1528 Public method to change the entry for the directory of file being debugged. |
|
1529 </p><dl> |
|
1530 <dt><i>dirname</i></dt> |
|
1531 <dd> |
|
1532 name of the directory containg the file (string) |
|
1533 </dd> |
|
1534 </dl><a NAME="BrowserModel.removeToplevelDir" ID="BrowserModel.removeToplevelDir"></a> |
|
1535 <h4>BrowserModel.removeToplevelDir</h4> |
|
1536 <b>removeToplevelDir</b>(<i>index</i>) |
|
1537 <p> |
|
1538 Public method to remove a toplevel directory. |
|
1539 </p><dl> |
|
1540 <dt><i>index</i></dt> |
|
1541 <dd> |
|
1542 index of the toplevel directory to be removed (QModelIndex) |
|
1543 </dd> |
|
1544 </dl><a NAME="BrowserModel.rowCount" ID="BrowserModel.rowCount"></a> |
|
1545 <h4>BrowserModel.rowCount</h4> |
|
1546 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
|
1547 <p> |
|
1548 Public method to get the number of rows. |
|
1549 </p><dl> |
|
1550 <dt><i>parent</i></dt> |
|
1551 <dd> |
|
1552 index of parent item (QModelIndex) |
|
1553 </dd> |
|
1554 </dl><dl> |
|
1555 <dt>Returns:</dt> |
|
1556 <dd> |
|
1557 number of rows (integer) |
|
1558 </dd> |
|
1559 </dl><a NAME="BrowserModel.saveToplevelDirs" ID="BrowserModel.saveToplevelDirs"></a> |
|
1560 <h4>BrowserModel.saveToplevelDirs</h4> |
|
1561 <b>saveToplevelDirs</b>(<i></i>) |
|
1562 <p> |
|
1563 Public slot to save the toplevel directories. |
|
1564 </p> |
|
1565 <div align="right"><a href="#top">Up</a></div> |
|
1566 <hr /><hr /> |
|
1567 <a NAME="BrowserSysPathItem" ID="BrowserSysPathItem"></a> |
|
1568 <h2>BrowserSysPathItem</h2> |
|
1569 <p> |
|
1570 Class implementing the data structure for browser sys.path items. |
|
1571 </p> |
|
1572 <h3>Derived from</h3> |
|
1573 BrowserItem |
|
1574 <h3>Class Attributes</h3> |
|
1575 <table> |
|
1576 <tr><td>None</td></tr> |
|
1577 </table> |
|
1578 <h3>Methods</h3> |
|
1579 <table> |
|
1580 <tr> |
|
1581 <td><a href="#BrowserSysPathItem.__init__">BrowserSysPathItem</a></td> |
|
1582 <td>Constructor</td> |
|
1583 </tr> |
|
1584 </table> |
|
1585 <a NAME="BrowserSysPathItem.__init__" ID="BrowserSysPathItem.__init__"></a> |
|
1586 <h4>BrowserSysPathItem (Constructor)</h4> |
|
1587 <b>BrowserSysPathItem</b>(<i>parent</i>) |
|
1588 <p> |
|
1589 Constructor |
|
1590 </p><dl> |
|
1591 <dt><i>parent</i></dt> |
|
1592 <dd> |
|
1593 parent item |
|
1594 </dd> |
|
1595 </dl> |
|
1596 <div align="right"><a href="#top">Up</a></div> |
|
1597 <hr /> |
|
1598 </body></html> |