Project/ProjectBrowser.py

changeset 2965
d133c7edd88a
parent 2769
8cbebde7a984
child 2995
63d874899b8b
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
32 the project resources browser, the project translations browser, 32 the project resources browser, the project translations browser,
33 the project interfaces (IDL) browser and a browser for stuff, 33 the project interfaces (IDL) browser and a browser for stuff,
34 that doesn't fit these categories. Optionally it contains an additional 34 that doesn't fit these categories. Optionally it contains an additional
35 tab with the file system browser. 35 tab with the file system browser.
36 """ 36 """
37
38 def __init__(self, project, parent=None, embeddedBrowser=True): 37 def __init__(self, project, parent=None, embeddedBrowser=True):
39 """ 38 """
40 Constructor 39 Constructor
41 40
42 @param project reference to the project object 41 @param project reference to the project object
151 else: 150 else:
152 self.setCurrentIndex(0) 151 self.setCurrentIndex(0)
153 152
154 def __setBrowsersAvailable(self, browserFlags): 153 def __setBrowsersAvailable(self, browserFlags):
155 """ 154 """
156 Private method to add selected browsers to the project browser 155 Private method to add selected browsers to the project browser.
157 156
158 @param browserFlags flags indicating the browsers to add (integer) 157 @param browserFlags flags indicating the browsers to add (integer)
159 """ 158 """
160 # step 1: remove all tabs 159 # step 1: remove all tabs
161 while self.count() > 0: 160 while self.count() > 0:
210 self.fileBrowser.layoutDisplay() 209 self.fileBrowser.layoutDisplay()
211 210
212 def __currentChanged(self, index): 211 def __currentChanged(self, index):
213 """ 212 """
214 Private slot to handle the currentChanged(int) signal. 213 Private slot to handle the currentChanged(int) signal.
214
215 @param index index of the tab (integer)
215 """ 216 """
216 if index > -1: 217 if index > -1:
217 browser = self.widget(index) 218 browser = self.widget(index)
218 if browser is not None: 219 if browser is not None:
219 browser.layoutDisplay() 220 browser.layoutDisplay()

eric ide

mercurial