Home | Trees | Indices | Help |
|
---|
|
object --+ | FileTypeResolver
Utility class that can figure out mime-types and icons related to files.
Note : The icons are associated purely to mime-types, so a file may not have a custom icon accessible with this class.
Version: 1.1.2
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
DEFAULT_ICON = ThemeResource('../runo/icons/16/document.png')
|
|||
DEFAULT_MIME_TYPE =
|
|||
_initialExtToMIMEMap =
|
|||
_extToMIMEMap =
|
|||
_MIMEToIconMap = dict()
|
|
|||
Inherited from |
|
Gets the mime-type of a file. Currently the mime-type is resolved based only on the file name extension.
|
Gets the descriptive icon representing file, based on the filename. First the mime-type for the given filename is resolved, and then the corresponding icon is fetched from the internal icon storage. If it is not found the default icon is returned.
|
Adds a mime-type mapping for the given filename extension. If the extension is already in the internal mapping it is overwritten.
|
Adds a icon for the given mime-type. If the mime-type also has a corresponding icon, it is replaced with the new icon.
|
Gets the internal file extension to mime-type mapping.
|
Gets the internal mime-type to icon mapping.
|
|
_initialExtToMIMEMap
|
_extToMIMEMap
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jun 10 22:40:22 2015 | http://epydoc.sourceforge.net |