1006 pixName = "fileSvg.png" |
1006 pixName = "fileSvg.png" |
1007 elif self.isPixmapFile(): |
1007 elif self.isPixmapFile(): |
1008 pixName = "filePixmap.png" |
1008 pixName = "filePixmap.png" |
1009 elif self.isDFile(): |
1009 elif self.isDFile(): |
1010 pixName = "fileD.png" |
1010 pixName = "fileD.png" |
|
1011 elif self.isJavaScriptFile(): |
|
1012 pixName = "fileJavascript.png" |
|
1013 self._populated = False |
|
1014 self._lazyPopulation = True |
|
1015 self._moduleName = os.path.basename(finfo) |
1011 else: |
1016 else: |
1012 pixName = "fileMisc.png" |
1017 pixName = "fileMisc.png" |
1013 |
1018 |
1014 if os.path.lexists(self._filename) and os.path.islink(self._filename): |
1019 if os.path.lexists(self._filename) and os.path.islink(self._filename): |
1015 self.symlink = True |
1020 self.symlink = True |
1143 Public method to check, if this file is a CORBA IDL file. |
1148 Public method to check, if this file is a CORBA IDL file. |
1144 |
1149 |
1145 @return flag indicating a CORBA IDL file (boolean) |
1150 @return flag indicating a CORBA IDL file (boolean) |
1146 """ |
1151 """ |
1147 return self.fileext == '.idl' |
1152 return self.fileext == '.idl' |
|
1153 |
|
1154 def isJavaScriptFile(self): |
|
1155 """ |
|
1156 Public method to check, if this file is a JavaScript file. |
|
1157 |
|
1158 @return flag indicating a JavaScript file (boolean) |
|
1159 """ |
|
1160 return self.fileext == '.js' |
1148 |
1161 |
1149 def isPixmapFile(self): |
1162 def isPixmapFile(self): |
1150 """ |
1163 """ |
1151 Public method to check, if this file is a pixmap file. |
1164 Public method to check, if this file is a pixmap file. |
1152 |
1165 |