|
Class: MIMETypeIconLibrary
Object
|
+--MIMETypeIconLibrary
- Package:
- stx:libview2
- Category:
- Interface-Smalltalk
- Version:
- rev:
1.36
date: 2019/03/17 10:45:12
- user: cg
- file: MIMETypeIconLibrary.st directory: libview2
- module: stx stc-classLibrary: libview2
an icon library especially for file type icons as per mime type.
This does not (and should not) provide icons itself - it just forwards
the mime-name based accessors to the standard icon library.
accessing
-
addOnIconsFor: aFilename to: anIcon
-
given a fileName, return an appropriate multi-icon,
which adds more symbols to the incoming arg, anIcon.
A multi-icon is returned if linked or locked
-
fileTypeIconKeyFor: aFilename
-
return an icon-key for a fileName.
This does not look at the file's suffix or into the file's contents,
for more detailed key i.e. it only returns keys for the common broad categories
usage example(s):
self fileTypeIconKeyFor:'/foo/bar' asFilename
self fileTypeIconKeyFor:'/tmp' asFilename
self fileTypeIconKeyFor:'/dev/null' asFilename
self fileTypeIconKeyFor:'Makefile' asFilename
self fileTypeIconKeyFor:'/usr/bin/make' asFilename
|
-
iconForFile: aFilename
-
given a fileName, return an appropriate icon
usage example(s):
self iconForFile:'/foo/bar/baz.c' asFilename
|
-
iconForKey: mimeTypeOrKey
-
self iconForKey:#file
self iconForKey:#directory
self iconForKey:#fileLink
self iconForKey:#directoryLink
-
iconForKeyMatching: mimeTypeOrKey
-
-
iconForLinkedDirectory
-
answer the icon used for linked directories
usage example(s):
self iconForLinkedDirectory
|
-
iconForMatchKey: matchKey
-
-
iconKeyForFile: aFilenameArg
-
given a fileName, return an appropriate icon
-
iconKeyForRemoteDirectory: aFilenameArg
-
given a fileName, return an appropriate icon
-
icons
-
-
matchedIcons
-
image specs
-
addOnLinked
-
-
addOnLocked
-
-
applicationBinary
-
-
applicationJavaArchive
-
-
applicationLibrary
-
-
applicationPdf
-
-
applicationPostscript
-
-
applicationRtf
-
-
applicationSharedLibrary
-
-
audio
-
-
binaryFile
-
-
cPlusPlusSource
-
-
cSource
-
-
compressedArchive
-
-
deviceFile
-
-
digitalNotepad
-
-
directory
-
-
directoryGray
-
-
directoryLink
-
-
directoryLocked
-
-
directoryNetwork
-
-
directoryOpen
-
-
directoryOpenGray
-
-
executableFile
-
-
expeccoLogfile
-
-
expeccoSuite
-
-
file
-
-
fileArchive
-
-
fileLink
-
-
fileLocked
-
-
headerFile
-
-
homeDirectory
-
-
imageFile
-
-
javaArchive
-
-
javaScriptSource
-
-
javaSource
-
-
lispSource
-
-
smalltalkSource
-
-
specialFile
-
-
text
-
-
textHtml
-
-
video
-
initialization
-
flushIcons
-
remove any cached icons. Call this eg. after a style change
usage example(s):
-
initialize
-
now done lazily, when the first icon is asked for
usage example(s):
-
initializeIcons
-
initialize my icon mapping, which maps MIMEType to icon keys.
The iconKey is used as (part of) a selector into the ToolbarIconLibrary
(see iconForFile:aFilename)
usage example(s):
|