1
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
2
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4
<title>eric3.UI.Browser</title>
6
<body bgcolor="#FFFFFF"><a NAME="top" ID="top"></a>
7
<h1><font color="#0000FF">eric3.UI.Browser</font></h1>
9
Module implementing a browser with class browsing capabilities.
11
The class browsing part is based on IDLE's classbrowser.
13
<h3><font color="#FF0000">Classes</font></h3>
16
<td><a href="#Browser">Browser</a></td>
17
<td>Class used to display a file system tree.</td>
19
<td><a href="#BrowserClass">BrowserClass</a></td>
20
<td>Class implementing a BrowserNode that represents a python class or function.</td>
22
<td><a href="#BrowserClassAttributes">BrowserClassAttributes</a></td>
23
<td>Class implementing a BrowserNode that represents the attributes of a python class.</td>
25
<td><a href="#BrowserDirectory">BrowserDirectory</a></td>
26
<td>Class implementing a BrowserNode that represents a directory.</td>
28
<td><a href="#BrowserFile">BrowserFile</a></td>
29
<td>Class implementing a BrowserNode that represents a file.</td>
31
<td><a href="#BrowserMethod">BrowserMethod</a></td>
32
<td>Class implementing a BrowserNode that represents a python method.</td>
34
<td><a href="#BrowserNode">BrowserNode</a></td>
35
<td>Class implementing a thin wrapper around QListViewItem.</td>
37
<td><a href="#BrowserSysPath">BrowserSysPath</a></td>
38
<td>Class implementing a BrowserNode that represents the Python sys.path.</td>
41
<h3><font color="#FF0000">Functions</font></h3>
43
<tr><td>None</td></tr>
46
<a NAME="Browser" ID="Browser"></a>
47
<h2><font color="#0000FF">Browser</font></h2>
49
Class used to display a file system tree.
51
Via the context menu that
52
is displayed by a right click the user can select various actions on
56
<dt>designerFile(string)</dt>
58
emitted to open a Qt-Designer file
59
</dd><dt>linguistFile(string)</dt>
61
emitted to open a Qt-Linguist file
62
</dd><dt>pixmapFile(string)</dt>
64
emitted to open a pixmap file
65
</dd><dt>projectFile(string)</dt>
67
emitted to open an eric3 project file
68
</dd><dt>pythonFile(string, int)</dt>
70
emitted to open a Python file at a line
71
</dd><dt>unittestOpen(string)</dt>
73
emitted to open a Python file for a unittest
76
<h3><font color="#FF0000">Derived from</font></h3>
78
<h3><font color="#FF0000">Methods</font></h3>
81
<td><a href="#Browser.__init__">Browser</a></td>
84
<td><a href="#Browser.contentsMouseDoubleClickEvent">contentsMouseDoubleClickEvent</a></td>
85
<td>Protected method of QListView.</td>
87
<td><a href="#Browser.createPopupMenus">createPopupMenus</a></td>
88
<td>Private method to generate the various popup menus.</td>
90
<td><a href="#Browser.getItemsFiltered">getItemsFiltered</a></td>
91
<td>Public method to get the items of a specific type.</td>
93
<td><a href="#Browser.getSelectedItems">getSelectedItems</a></td>
94
<td>Public method to get the selected items.</td>
96
<td><a href="#Browser.getSelectedItemsCount">getSelectedItemsCount</a></td>
97
<td>Public method to get the count of items selcted.</td>
99
<td><a href="#Browser.handleAddAsToplevelDir">handleAddAsToplevelDir</a></td>
100
<td>Private slot to handle the Add as toplevel directory popup menu entry.</td>
102
<td><a href="#Browser.handleContextMenu">handleContextMenu</a></td>
103
<td>Private slot to show the context menu of the listview.</td>
105
<td><a href="#Browser.handleNewToplevelDir">handleNewToplevelDir</a></td>
106
<td>Private slot to handle the New toplevel directory popup menu entry.</td>
108
<td><a href="#Browser.handleOpen">handleOpen</a></td>
109
<td>Private slot to handle the open popup menu entry.</td>
111
<td><a href="#Browser.handlePreferencesChanged">handlePreferencesChanged</a></td>
112
<td>Public slot used to handle the preferencesChanged signal.</td>
114
<td><a href="#Browser.handleProgramChange">handleProgramChange</a></td>
115
<td>Public slot to handle the programChange signal.</td>
117
<td><a href="#Browser.handleRemoveToplevel">handleRemoveToplevel</a></td>
118
<td>Private slot to handle the Remove from toplevel popup menu entry.</td>
120
<td><a href="#Browser.handleUnittest">handleUnittest</a></td>
121
<td>Private slot to handle the unittest popup menu entry.</td>
123
<td><a href="#Browser.refreshTree">refreshTree</a></td>
124
<td>Private slot to refresh the tree.</td>
126
<td><a href="#Browser.saveToplevelDirs">saveToplevelDirs</a></td>
127
<td>Public slot to save the toplevel directories.</td>
129
<td><a href="#Browser.wantedItem">wantedItem</a></td>
130
<td>Private method to check type of a listview item.</td>
133
<p><a NAME="Browser.__init__" ID="Browser__init__"></a>
134
<h3><font color="#0000FF">Browser (Constructor)</font></h3>
135
<b>Browser</b>(<i>parent=None</i>)
139
<dt><i>parent</i></dt>
141
parent widget (QWidget)
143
</dl><a NAME="Browser.contentsMouseDoubleClickEvent" ID="BrowsercontentsMouseDoubleClickEvent"></a>
144
<h3><font color="#0000FF">Browser.contentsMouseDoubleClickEvent</font></h3>
145
<b>contentsMouseDoubleClickEvent</b>(<i>mouseEvent</i>)
147
Protected method of QListView.
149
Reimplemented to disable expanding/collapsing
150
of items when double-clicking. Instead the double-clicked entry is opened.
152
<dt><i>mouseEvent</i></dt>
154
the mouse event (QMouseEvent)
156
</dl><a NAME="Browser.createPopupMenus" ID="BrowsercreatePopupMenus"></a>
157
<h3><font color="#0000FF">Browser.createPopupMenus</font></h3>
158
<b>createPopupMenus</b>(<i></i>)
160
Private method to generate the various popup menus.
161
</p><a NAME="Browser.getItemsFiltered" ID="BrowsergetItemsFiltered"></a>
162
<h3><font color="#0000FF">Browser.getItemsFiltered</font></h3>
163
<b>getItemsFiltered</b>(<i>filter</i>)
165
Public method to get the items of a specific type.
167
<dt><i>filter</i></dt>
169
list of class to check against
174
list of items (list of QListViewItem)
176
</dl><a NAME="Browser.getSelectedItems" ID="BrowsergetSelectedItems"></a>
177
<h3><font color="#0000FF">Browser.getSelectedItems</font></h3>
178
<b>getSelectedItems</b>(<i>filter=None</i>)
180
Public method to get the selected items.
182
<dt><i>filter</i></dt>
184
list of class to check against
189
list of selected items (list of QListViewItem)
191
</dl><a NAME="Browser.getSelectedItemsCount" ID="BrowsergetSelectedItemsCount"></a>
192
<h3><font color="#0000FF">Browser.getSelectedItemsCount</font></h3>
193
<b>getSelectedItemsCount</b>(<i>filter=None</i>)
195
Public method to get the count of items selcted.
197
<dt><i>filter</i></dt>
199
list of class to check against
204
count of items selected (integer)
206
</dl><a NAME="Browser.handleAddAsToplevelDir" ID="BrowserhandleAddAsToplevelDir"></a>
207
<h3><font color="#0000FF">Browser.handleAddAsToplevelDir</font></h3>
208
<b>handleAddAsToplevelDir</b>(<i></i>)
210
Private slot to handle the Add as toplevel directory popup menu entry.
211
</p><a NAME="Browser.handleContextMenu" ID="BrowserhandleContextMenu"></a>
212
<h3><font color="#0000FF">Browser.handleContextMenu</font></h3>
213
<b>handleContextMenu</b>(<i>itm, coord, col</i>)
215
Private slot to show the context menu of the listview.
219
the selected listview item (QListViewItem)
220
</dd><dt><i>coord</i></dt>
222
the position of the mouse pointer (QPoint)
223
</dd><dt><i>col</i></dt>
225
the column of the mouse pointer (int)
227
</dl><a NAME="Browser.handleNewToplevelDir" ID="BrowserhandleNewToplevelDir"></a>
228
<h3><font color="#0000FF">Browser.handleNewToplevelDir</font></h3>
229
<b>handleNewToplevelDir</b>(<i></i>)
231
Private slot to handle the New toplevel directory popup menu entry.
232
</p><a NAME="Browser.handleOpen" ID="BrowserhandleOpen"></a>
233
<h3><font color="#0000FF">Browser.handleOpen</font></h3>
234
<b>handleOpen</b>(<i></i>)
236
Private slot to handle the open popup menu entry.
237
</p><a NAME="Browser.handlePreferencesChanged" ID="BrowserhandlePreferencesChanged"></a>
238
<h3><font color="#0000FF">Browser.handlePreferencesChanged</font></h3>
239
<b>handlePreferencesChanged</b>(<i></i>)
241
Public slot used to handle the preferencesChanged signal.
242
</p><a NAME="Browser.handleProgramChange" ID="BrowserhandleProgramChange"></a>
243
<h3><font color="#0000FF">Browser.handleProgramChange</font></h3>
244
<b>handleProgramChange</b>(<i>fn</i>)
246
Public slot to handle the programChange signal.
247
</p><a NAME="Browser.handleRemoveToplevel" ID="BrowserhandleRemoveToplevel"></a>
248
<h3><font color="#0000FF">Browser.handleRemoveToplevel</font></h3>
249
<b>handleRemoveToplevel</b>(<i></i>)
251
Private slot to handle the Remove from toplevel popup menu entry.
252
</p><a NAME="Browser.handleUnittest" ID="BrowserhandleUnittest"></a>
253
<h3><font color="#0000FF">Browser.handleUnittest</font></h3>
254
<b>handleUnittest</b>(<i></i>)
256
Private slot to handle the unittest popup menu entry.
257
</p><a NAME="Browser.refreshTree" ID="BrowserrefreshTree"></a>
258
<h3><font color="#0000FF">Browser.refreshTree</font></h3>
259
<b>refreshTree</b>(<i></i>)
261
Private slot to refresh the tree.
263
The tree is refreshed by closing all open items and reopening them.
264
</p><a NAME="Browser.saveToplevelDirs" ID="BrowsersaveToplevelDirs"></a>
265
<h3><font color="#0000FF">Browser.saveToplevelDirs</font></h3>
266
<b>saveToplevelDirs</b>(<i></i>)
268
Public slot to save the toplevel directories.
269
</p><a NAME="Browser.wantedItem" ID="BrowserwantedItem"></a>
270
<h3><font color="#0000FF">Browser.wantedItem</font></h3>
271
<b>wantedItem</b>(<i>itm, filter=None</i>)
273
Private method to check type of a listview item.
277
the listview item to check (QListViewItem)
278
</dd><dt><i>filter</i></dt>
280
list of class to check against
285
flag indicating item is a valid type (boolean)
288
<div align="right"><a href="#top">Up</a></div>
290
<a NAME="BrowserClass" ID="BrowserClass"></a>
291
<h2><font color="#0000FF">BrowserClass</font></h2>
293
Class implementing a BrowserNode that represents a python class or function.
295
<h3><font color="#FF0000">Derived from</font></h3>
297
<h3><font color="#FF0000">Methods</font></h3>
300
<td><a href="#BrowserClass.__init__">BrowserClass</a></td>
303
<td><a href="#BrowserClass.fileName">fileName</a></td>
304
<td>Public method returning the name of the file defining this class.</td>
306
<td><a href="#BrowserClass.setOpen">setOpen</a></td>
307
<td>Public slot to set/reset the open state.</td>
310
<p><a NAME="BrowserClass.__init__" ID="BrowserClass__init__"></a>
311
<h3><font color="#0000FF">BrowserClass (Constructor)</font></h3>
312
<b>BrowserClass</b>(<i>parent, cl, after, filename</i>)
316
<dt><i>parent</i></dt>
318
parent Browser or BrowserNode
319
</dd><dt><i>cl</i></dt>
321
Class object to be shown
322
</dd><dt><i>after</i></dt>
324
sibling this node is positioned after
325
</dd><dt><i>filename</i></dt>
327
filename of the file defining this class
329
</dl><a NAME="BrowserClass.fileName" ID="BrowserClassfileName"></a>
330
<h3><font color="#0000FF">BrowserClass.fileName</font></h3>
331
<b>fileName</b>(<i></i>)
333
Public method returning the name of the file defining this class.
339
</dl><a NAME="BrowserClass.setOpen" ID="BrowserClasssetOpen"></a>
340
<h3><font color="#0000FF">BrowserClass.setOpen</font></h3>
341
<b>setOpen</b>(<i>o</i>)
343
Public slot to set/reset the open state.
347
flag indicating the open state
350
<div align="right"><a href="#top">Up</a></div>
352
<a NAME="BrowserClassAttributes" ID="BrowserClassAttributes"></a>
353
<h2><font color="#0000FF">BrowserClassAttributes</font></h2>
355
Class implementing a BrowserNode that represents the attributes of a python class.
357
<h3><font color="#FF0000">Derived from</font></h3>
359
<h3><font color="#FF0000">Methods</font></h3>
362
<td><a href="#BrowserClassAttributes.__init__">BrowserClassAttributes</a></td>
365
<td><a href="#BrowserClassAttributes.setOpen">setOpen</a></td>
366
<td>Public slot to set/reset the open state.</td>
369
<p><a NAME="BrowserClassAttributes.__init__" ID="BrowserClassAttributes__init__"></a>
370
<h3><font color="#0000FF">BrowserClassAttributes (Constructor)</font></h3>
371
<b>BrowserClassAttributes</b>(<i>parent, after, attributes</i>)
375
<dt><i>parent</i></dt>
377
parent Browser or BrowserNode
378
</dd><dt><i>after</i></dt>
380
sibling this node is positioned after
381
</dd><dt><i>attributes</i></dt>
383
list of attribute names
385
</dl><a NAME="BrowserClassAttributes.setOpen" ID="BrowserClassAttributessetOpen"></a>
386
<h3><font color="#0000FF">BrowserClassAttributes.setOpen</font></h3>
387
<b>setOpen</b>(<i>o</i>)
389
Public slot to set/reset the open state.
393
flag indicating the open state
396
<div align="right"><a href="#top">Up</a></div>
398
<a NAME="BrowserDirectory" ID="BrowserDirectory"></a>
399
<h2><font color="#0000FF">BrowserDirectory</font></h2>
401
Class implementing a BrowserNode that represents a directory.
403
<h3><font color="#FF0000">Derived from</font></h3>
405
<h3><font color="#FF0000">Methods</font></h3>
408
<td><a href="#BrowserDirectory.__init__">BrowserDirectory</a></td>
411
<td><a href="#BrowserDirectory.compare">compare</a></td>
412
<td>Private method to compare two items.</td>
414
<td><a href="#BrowserDirectory.fileName">fileName</a></td>
415
<td>Public method returning the directory name of this node.</td>
417
<td><a href="#BrowserDirectory.setOpen">setOpen</a></td>
418
<td>Public slot to set/reset the open state.</td>
421
<p><a NAME="BrowserDirectory.__init__" ID="BrowserDirectory__init__"></a>
422
<h3><font color="#0000FF">BrowserDirectory (Constructor)</font></h3>
423
<b>BrowserDirectory</b>(<i>parent, dinfo, after, full=1, bold=0</i>)
427
<dt><i>parent</i></dt>
429
parent Browser or BrowserNode
430
</dd><dt><i>dinfo</i></dt>
432
dinfo is the string for the directory (string or QString)
433
</dd><dt><i>after</i></dt>
435
sibling this node is positioned after
436
</dd><dt><i>full</i></dt>
438
flag indicating full pathname should be displayed (boolean)
439
</dd><dt><i>bold</i></dt>
441
flag indicating a highlighted display (boolean)
443
</dl><a NAME="BrowserDirectory.compare" ID="BrowserDirectorycompare"></a>
444
<h3><font color="#0000FF">BrowserDirectory.compare</font></h3>
445
<b>compare</b>(<i>item, col, ascending</i>)
447
Private method to compare two items.
448
</p><a NAME="BrowserDirectory.fileName" ID="BrowserDirectoryfileName"></a>
449
<h3><font color="#0000FF">BrowserDirectory.fileName</font></h3>
450
<b>fileName</b>(<i></i>)
452
Public method returning the directory name of this node.
456
directory name (string)
458
</dl><a NAME="BrowserDirectory.setOpen" ID="BrowserDirectorysetOpen"></a>
459
<h3><font color="#0000FF">BrowserDirectory.setOpen</font></h3>
460
<b>setOpen</b>(<i>o</i>)
462
Public slot to set/reset the open state.
466
flag indicating the open state
469
<div align="right"><a href="#top">Up</a></div>
471
<a NAME="BrowserFile" ID="BrowserFile"></a>
472
<h2><font color="#0000FF">BrowserFile</font></h2>
474
Class implementing a BrowserNode that represents a file.
476
<h3><font color="#FF0000">Derived from</font></h3>
478
<h3><font color="#FF0000">Methods</font></h3>
481
<td><a href="#BrowserFile.__init__">BrowserFile</a></td>
484
<td><a href="#BrowserFile.compare">compare</a></td>
485
<td>Private method to compare two items.</td>
487
<td><a href="#BrowserFile.fileName">fileName</a></td>
488
<td>Public method returning the filename.</td>
490
<td><a href="#BrowserFile.isDesignerFile">isDesignerFile</a></td>
491
<td>Public method to check, if this file is a Qt-Designer file.</td>
493
<td><a href="#BrowserFile.isDesignerHeaderFile">isDesignerHeaderFile</a></td>
494
<td>Public method to check, if this file is a Qt-Designer header file.</td>
496
<td><a href="#BrowserFile.isIdlFile">isIdlFile</a></td>
497
<td>Public method to check, if this file is a CORBA IDL file.</td>
499
<td><a href="#BrowserFile.isLinguistFile">isLinguistFile</a></td>
500
<td>Public method to check, if this file is a Qt-Linguist.</td>
502
<td><a href="#BrowserFile.isPixmapFile">isPixmapFile</a></td>
503
<td>Public method to check, if this file is a pixmap file.</td>
505
<td><a href="#BrowserFile.isProjectFile">isProjectFile</a></td>
506
<td>Public method to check, if this file is an eric3 project file.</td>
508
<td><a href="#BrowserFile.isPythonFile">isPythonFile</a></td>
509
<td>Public method to check, if this file is a Python script.</td>
511
<td><a href="#BrowserFile.isRubyFile">isRubyFile</a></td>
512
<td>Public method to check, if this file is a Ruby script.</td>
514
<td><a href="#BrowserFile.setOpen">setOpen</a></td>
515
<td>Public slot to set/reset the open state.</td>
518
<p><a NAME="BrowserFile.__init__" ID="BrowserFile__init__"></a>
519
<h3><font color="#0000FF">BrowserFile (Constructor)</font></h3>
520
<b>BrowserFile</b>(<i>parent, finfo, after, special=0, dtext=QString.null, bold=0, isPyFile=0</i>)
524
<dt><i>parent</i></dt>
526
parent Browser or BrowserNode
527
</dd><dt><i>finfo</i></dt>
529
the string for the file (string)
530
</dd><dt><i>after</i></dt>
532
sibling this node is positioned after
533
</dd><dt><i>special</i></dt>
535
flag indicating special treatment (boolean)
536
</dd><dt><i>dtext</i></dt>
538
display text if special is set (string or QString)
539
</dd><dt><i>bold</i></dt>
541
flag indicating a highlighted display (boolean)
542
</dd><dt><i>isPyFile</i></dt>
544
flag indicating that this is a Python file
545
even if it doesn't have the .py extension (boolean)
547
</dl><a NAME="BrowserFile.compare" ID="BrowserFilecompare"></a>
548
<h3><font color="#0000FF">BrowserFile.compare</font></h3>
549
<b>compare</b>(<i>item, col, ascending</i>)
551
Private method to compare two items.
552
</p><a NAME="BrowserFile.fileName" ID="BrowserFilefileName"></a>
553
<h3><font color="#0000FF">BrowserFile.fileName</font></h3>
554
<b>fileName</b>(<i></i>)
556
Public method returning the filename.
562
</dl><a NAME="BrowserFile.isDesignerFile" ID="BrowserFileisDesignerFile"></a>
563
<h3><font color="#0000FF">BrowserFile.isDesignerFile</font></h3>
564
<b>isDesignerFile</b>(<i></i>)
566
Public method to check, if this file is a Qt-Designer file.
570
flag indicating a Qt-Designer file (boolean)
572
</dl><a NAME="BrowserFile.isDesignerHeaderFile" ID="BrowserFileisDesignerHeaderFile"></a>
573
<h3><font color="#0000FF">BrowserFile.isDesignerHeaderFile</font></h3>
574
<b>isDesignerHeaderFile</b>(<i></i>)
576
Public method to check, if this file is a Qt-Designer header file.
580
flag indicating a Qt-Designer header file (boolean)
582
</dl><a NAME="BrowserFile.isIdlFile" ID="BrowserFileisIdlFile"></a>
583
<h3><font color="#0000FF">BrowserFile.isIdlFile</font></h3>
584
<b>isIdlFile</b>(<i></i>)
586
Public method to check, if this file is a CORBA IDL file.
590
flag indicating a CORBA IDL file (boolean)
592
</dl><a NAME="BrowserFile.isLinguistFile" ID="BrowserFileisLinguistFile"></a>
593
<h3><font color="#0000FF">BrowserFile.isLinguistFile</font></h3>
594
<b>isLinguistFile</b>(<i></i>)
596
Public method to check, if this file is a Qt-Linguist.
600
flag indicating a Qt-Linguist file (boolean)
602
</dl><a NAME="BrowserFile.isPixmapFile" ID="BrowserFileisPixmapFile"></a>
603
<h3><font color="#0000FF">BrowserFile.isPixmapFile</font></h3>
604
<b>isPixmapFile</b>(<i></i>)
606
Public method to check, if this file is a pixmap file.
610
flag indicating a pixmap file (boolean)
612
</dl><a NAME="BrowserFile.isProjectFile" ID="BrowserFileisProjectFile"></a>
613
<h3><font color="#0000FF">BrowserFile.isProjectFile</font></h3>
614
<b>isProjectFile</b>(<i></i>)
616
Public method to check, if this file is an eric3 project file.
620
flag indicating an eric3 project file (boolean)
622
</dl><a NAME="BrowserFile.isPythonFile" ID="BrowserFileisPythonFile"></a>
623
<h3><font color="#0000FF">BrowserFile.isPythonFile</font></h3>
624
<b>isPythonFile</b>(<i></i>)
626
Public method to check, if this file is a Python script.
630
flag indicating a Python file (boolean)
632
</dl><a NAME="BrowserFile.isRubyFile" ID="BrowserFileisRubyFile"></a>
633
<h3><font color="#0000FF">BrowserFile.isRubyFile</font></h3>
634
<b>isRubyFile</b>(<i></i>)
636
Public method to check, if this file is a Ruby script.
640
flag indicating a Ruby file (boolean)
642
</dl><a NAME="BrowserFile.setOpen" ID="BrowserFilesetOpen"></a>
643
<h3><font color="#0000FF">BrowserFile.setOpen</font></h3>
644
<b>setOpen</b>(<i>o</i>)
646
Public slot to set/reset the open state.
650
flag indicating the open state
653
<div align="right"><a href="#top">Up</a></div>
655
<a NAME="BrowserMethod" ID="BrowserMethod"></a>
656
<h2><font color="#0000FF">BrowserMethod</font></h2>
658
Class implementing a BrowserNode that represents a python method.
660
<h3><font color="#FF0000">Derived from</font></h3>
662
<h3><font color="#FF0000">Methods</font></h3>
665
<td><a href="#BrowserMethod.__init__">BrowserMethod</a></td>
668
<td><a href="#BrowserMethod.compare">compare</a></td>
669
<td>Private method to compare two items.</td>
671
<td><a href="#BrowserMethod.fileName">fileName</a></td>
672
<td>Public method returning the name of the file defining this class.</td>
674
<td><a href="#BrowserMethod.setOpen">setOpen</a></td>
675
<td>Public slot to set/reset the open state.</td>
678
<p><a NAME="BrowserMethod.__init__" ID="BrowserMethod__init__"></a>
679
<h3><font color="#0000FF">BrowserMethod (Constructor)</font></h3>
680
<b>BrowserMethod</b>(<i>parent, fn, after, filename</i>)
684
<dt><i>parent</i></dt>
686
parent Browser or BrowserNode
687
</dd><dt><i>fn</i></dt>
689
Function object to be shown
690
</dd><dt><i>after</i></dt>
692
sibling this node is positioned after
693
</dd><dt><i>filename</i></dt>
695
filename of the file defining this method
697
</dl><a NAME="BrowserMethod.compare" ID="BrowserMethodcompare"></a>
698
<h3><font color="#0000FF">BrowserMethod.compare</font></h3>
699
<b>compare</b>(<i>item, col, ascending</i>)
701
Private method to compare two items.
702
</p><a NAME="BrowserMethod.fileName" ID="BrowserMethodfileName"></a>
703
<h3><font color="#0000FF">BrowserMethod.fileName</font></h3>
704
<b>fileName</b>(<i></i>)
706
Public method returning the name of the file defining this class.
712
</dl><a NAME="BrowserMethod.setOpen" ID="BrowserMethodsetOpen"></a>
713
<h3><font color="#0000FF">BrowserMethod.setOpen</font></h3>
714
<b>setOpen</b>(<i>o</i>)
716
Public slot to set/reset the open state.
720
flag indicating the open state
723
<div align="right"><a href="#top">Up</a></div>
725
<a NAME="BrowserNode" ID="BrowserNode"></a>
726
<h2><font color="#0000FF">BrowserNode</font></h2>
728
Class implementing a thin wrapper around QListViewItem.
730
It makes sure that it is positioned after the previous sibling.
732
<h3><font color="#FF0000">Derived from</font></h3>
734
<h3><font color="#FF0000">Methods</font></h3>
737
<td><a href="#BrowserNode.__init__">BrowserNode</a></td>
740
<td><a href="#BrowserNode.paintCell">paintCell</a></td>
741
<td>Overwritten class to set a different text color, if bold is true.</td>
744
<p><a NAME="BrowserNode.__init__" ID="BrowserNode__init__"></a>
745
<h3><font color="#0000FF">BrowserNode (Constructor)</font></h3>
746
<b>BrowserNode</b>(<i>parent, text, after, bold=0</i>)
750
<dt><i>parent</i></dt>
752
parent Browser or BrowserNode
753
</dd><dt><i>text</i></dt>
755
text to be displayed by this node (string or QString)
756
</dd><dt><i>after</i></dt>
758
sibling this node is positioned after
759
</dd><dt><i>bold</i></dt>
761
flag indicating a highlighted font
763
</dl><a NAME="BrowserNode.paintCell" ID="BrowserNodepaintCell"></a>
764
<h3><font color="#0000FF">BrowserNode.paintCell</font></h3>
765
<b>paintCell</b>(<i>p, cg, column, width, alignment</i>)
767
Overwritten class to set a different text color, if bold is true.
771
the painter (QPainter)
772
</dd><dt><i>cg</i></dt>
774
the color group (QColorGroup)
775
</dd><dt><i>column</i></dt>
778
</dd><dt><i>width</i></dt>
780
width of the cell (int)
781
</dd><dt><i>alignment</i></dt>
783
alignment of the cell (int)
786
<div align="right"><a href="#top">Up</a></div>
788
<a NAME="BrowserSysPath" ID="BrowserSysPath"></a>
789
<h2><font color="#0000FF">BrowserSysPath</font></h2>
791
Class implementing a BrowserNode that represents the Python sys.path.
793
<h3><font color="#FF0000">Derived from</font></h3>
795
<h3><font color="#FF0000">Methods</font></h3>
798
<td><a href="#BrowserSysPath.__init__">BrowserSysPath</a></td>
801
<td><a href="#BrowserSysPath.setOpen">setOpen</a></td>
802
<td>Public slot to set/reset the open state.</td>
805
<p><a NAME="BrowserSysPath.__init__" ID="BrowserSysPath__init__"></a>
806
<h3><font color="#0000FF">BrowserSysPath (Constructor)</font></h3>
807
<b>BrowserSysPath</b>(<i>parent, after</i>)
811
<dt><i>parent</i></dt>
813
parent Browser or BrowserNode
814
</dd><dt><i>after</i></dt>
816
sibling this node is positioned after
818
</dl><a NAME="BrowserSysPath.setOpen" ID="BrowserSysPathsetOpen"></a>
819
<h3><font color="#0000FF">BrowserSysPath.setOpen</font></h3>
820
<b>setOpen</b>(<i>o</i>)
822
Public slot to set/reset the open state.
826
flag indicating the open state
829
<div align="right"><a href="#top">Up</a></div>
b'\\ No newline at end of file'