|
Class: MIMETypeIconLibrary
Object
|
+--MIMETypeIconLibrary
- Package:
- stx:libview2
- Category:
- Interface-Smalltalk
- Version:
- rev:
1.47
date: 2024/02/02 15:34:34
- user: stefan
- 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.
copyrightCOPYRIGHT (c) 2004 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
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: aFilenameOrString
-
given a fileName, return an appropriate icon
Usage example(s):
self iconForFile:'/foo/bar/baz.c' asFilename
self iconForFile:'/foo/bar/baz.c'
self iconForFile:'/foo/bar/baz.cpp'
self iconForFile:'/foo/bar/baz.py'
|
-
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
-
don't search for senders - called via reflection based on the mime type
-
applicationJavaArchive
-
don't search for senders - called via reflection based on the mime type
-
applicationLibrary
-
don't search for senders - called via reflection based on the mime type
-
applicationPdf
-
don't search for senders - called via reflection based on the mime type
-
applicationPostscript
-
don't search for senders - called via reflection based on the mime type
-
applicationRtf
-
don't search for senders - called via reflection based on the mime type
-
applicationSettings
-
don't search for senders - called via reflection based on the mime type
-
applicationSharedLibrary
-
don't search for senders - called via reflection based on the mime type
-
audio
-
don't search for senders - called via reflection based on the mime type
-
binaryFile
-
don't search for senders - called via reflection based on the mime type
-
cPlusPlusSource
-
don't search for senders - called via reflection based on the mime type
-
cSource
-
don't search for senders - called via reflection based on the mime type
-
compressedArchive
-
don't search for senders - called via reflection based on the mime type
-
deviceFile
-
don't search for senders - called via reflection based on the mime type
-
digitalNotepad
-
don't search for senders - called via reflection based on the mime type
-
directory
-
don't search for senders - called via reflection based on the mime type
-
directoryGray
-
don't search for senders - called via reflection based on the mime type
-
directoryLink
-
don't search for senders - called via reflection based on the mime type
-
directoryLocked
-
don't search for senders - called via reflection based on the mime type
-
directoryNetwork
-
don't search for senders - called via reflection based on the mime type
-
directoryOpen
-
don't search for senders - called via reflection based on the mime type
-
directoryOpenGray
-
don't search for senders - called via reflection based on the mime type
-
executableFile
-
don't search for senders - called via reflection based on the mime type
-
expeccoEncryptedFileAttachment
-
don't search for senders - called via reflection based on the mime type
-
expeccoLogfile
-
don't search for senders - called via reflection based on the mime type
-
expeccoSuite
-
don't search for senders - called via reflection based on the mime type
-
file
-
don't search for senders - called via reflection based on the mime type
-
fileArchive
-
don't search for senders - called via reflection based on the mime type
-
fileLink
-
don't search for senders - called via reflection based on the mime type
-
fileLocked
-
don't search for senders - called via reflection based on the mime type
-
headerFile
-
don't search for senders - called via reflection based on the mime type
-
homeDirectory
-
don't search for senders - called via reflection based on the mime type
-
imageFile
-
don't search for senders - called via reflection based on the mime type
-
javaArchive
-
don't search for senders - called via reflection based on the mime type
-
javaScriptSource
-
don't search for senders - called via reflection based on the mime type
-
javaSource
-
don't search for senders - called via reflection based on the mime type
-
lispSource
-
don't search for senders - called via reflection based on the mime type
-
pythonSource
-
don't search for senders - called via reflection based on the mime type
-
smalltalkSource
-
don't search for senders - called via reflection based on the mime type
-
specialFile
-
don't search for senders - called via reflection based on the mime type
-
text
-
don't search for senders - called via reflection based on the mime type
-
textHtml
-
don't search for senders - called via reflection based on the mime type
-
textXML
-
don't search for senders - called via reflection based on the mime type
-
video
-
don't search for senders - called via reflection based on the mime type
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):
self initializeIcons
MIMETypes mimeTypeForSuffix:'so' => 'application/shared-library'
MIMETypes mimeTypeForSuffix:'dylib' => 'application/shared-library'
|
|