1135 self._populated = False |
1135 self._populated = False |
1136 self._lazyPopulation = True |
1136 self._lazyPopulation = True |
1137 self._moduleName = os.path.basename(finfo) |
1137 self._moduleName = os.path.basename(finfo) |
1138 elif self.isProtobufFile(): |
1138 elif self.isProtobufFile(): |
1139 pixName = "protobuf.png" |
1139 pixName = "protobuf.png" |
|
1140 self._populated = False |
|
1141 self._lazyPopulation = True |
|
1142 self._moduleName = os.path.basename(finfo) |
1140 elif self.isSvgFile(): |
1143 elif self.isSvgFile(): |
1141 pixName = "fileSvg.png" |
1144 pixName = "fileSvg.png" |
1142 elif self.isPixmapFile(): |
1145 elif self.isPixmapFile(): |
1143 pixName = "filePixmap.png" |
1146 pixName = "filePixmap.png" |
1144 elif self.isDFile(): |
1147 elif self.isDFile(): |
1165 @param full flag indicating full pathname should be displayed (boolean) |
1168 @param full flag indicating full pathname should be displayed (boolean) |
1166 """ |
1169 """ |
1167 self._filename = os.path.abspath(finfo) |
1170 self._filename = os.path.abspath(finfo) |
1168 self.itemData[0] = os.path.basename(finfo) |
1171 self.itemData[0] = os.path.basename(finfo) |
1169 if self.isPython2File() or self.isPython3File() or \ |
1172 if self.isPython2File() or self.isPython3File() or \ |
1170 self.isRubyFile() or self.isIdlFile(): |
1173 self.isRubyFile() or self.isIdlFile() or \ |
|
1174 self.isProtobufFile(): |
1171 self._dirName = os.path.dirname(finfo) |
1175 self._dirName = os.path.dirname(finfo) |
1172 self._moduleName = os.path.basename(finfo) |
1176 self._moduleName = os.path.basename(finfo) |
1173 |
1177 |
1174 def fileName(self): |
1178 def fileName(self): |
1175 """ |
1179 """ |
1391 self._classObject, |
1395 self._classObject, |
1392 Utilities.ClassBrowsers.ClbrBaseClasses.Function) |
1396 Utilities.ClassBrowsers.ClbrBaseClasses.Function) |
1393 self.ismodule = isinstance( |
1397 self.ismodule = isinstance( |
1394 self._classObject, |
1398 self._classObject, |
1395 Utilities.ClassBrowsers.ClbrBaseClasses.Module) |
1399 Utilities.ClassBrowsers.ClbrBaseClasses.Module) |
|
1400 self.isenum = isinstance( |
|
1401 self._classObject, |
|
1402 Utilities.ClassBrowsers.ClbrBaseClasses.Enum) |
1396 if self.isfunction: |
1403 if self.isfunction: |
1397 if cl.isPrivate(): |
1404 if cl.isPrivate(): |
1398 self.icon = UI.PixmapCache.getIcon("method_private.png") |
1405 self.icon = UI.PixmapCache.getIcon("method_private.png") |
1399 elif cl.isProtected(): |
1406 elif cl.isProtected(): |
1400 self.icon = UI.PixmapCache.getIcon("method_protected.png") |
1407 self.icon = UI.PixmapCache.getIcon("method_protected.png") |
1409 # ....format(name, |
1416 # ....format(name, |
1410 # ", ".join([e.split('=')[0].strip() \ |
1417 # ", ".join([e.split('=')[0].strip() \ |
1411 # for e in self._classObject.parameters])) |
1418 # for e in self._classObject.parameters])) |
1412 elif self.ismodule: |
1419 elif self.ismodule: |
1413 self.icon = UI.PixmapCache.getIcon("module.png") |
1420 self.icon = UI.PixmapCache.getIcon("module.png") |
|
1421 elif self.isenum: |
|
1422 self.icon = UI.PixmapCache.getIcon("attribute.png") |
1414 else: |
1423 else: |
1415 if cl.isPrivate(): |
1424 if cl.isPrivate(): |
1416 self.icon = UI.PixmapCache.getIcon("class_private.png") |
1425 self.icon = UI.PixmapCache.getIcon("class_private.png") |
1417 elif cl.isProtected(): |
1426 elif cl.isProtected(): |
1418 self.icon = UI.PixmapCache.getIcon("class_protected.png") |
1427 self.icon = UI.PixmapCache.getIcon("class_protected.png") |