author | Claus Gittinger <cg@exept.de> |
Wed, 31 Jan 2018 02:33:56 +0100 | |
changeset 4060 | 9ddc9c4794f5 |
parent 4051 | d1754b7766ee |
child 4066 | 4ccc64c057fb |
permissions | -rw-r--r-- |
2035 | 1 |
" |
2 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
1863 | 12 |
"{ Package: 'stx:libview2' }" |
1859 | 13 |
|
3439 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
1865 | 16 |
Object subclass:#MIMETypeIconLibrary |
1859 | 17 |
instanceVariableNames:'' |
1860 | 18 |
classVariableNames:'Icons MatchedIcons' |
1859 | 19 |
poolDictionaries:'' |
1875 | 20 |
category:'Interface-Smalltalk' |
1859 | 21 |
! |
22 |
||
2035 | 23 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
3420 | 37 |
! |
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
an icon library especially for file type icons as per mime type. |
|
3421 | 42 |
This does not (and should not) provide icons itself - it just forwards |
43 |
the mime-name based accessors to the standard icon library. |
|
3420 | 44 |
" |
2035 | 45 |
! ! |
1859 | 46 |
|
1865 | 47 |
!MIMETypeIconLibrary class methodsFor:'initialization'! |
1859 | 48 |
|
3398 | 49 |
flushIcons |
50 |
"remove any cached icons. Call this eg. after a style change" |
|
51 |
||
52 |
Icons := nil |
|
53 |
||
54 |
" |
|
55 |
self flushIcons |
|
56 |
" |
|
57 |
! |
|
58 |
||
1859 | 59 |
initialize |
2359 | 60 |
"/ now done lazily, when the first icon is asked for |
1875 | 61 |
"/ self initializeIcons |
1859 | 62 |
! |
63 |
||
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
64 |
initializeIcons |
4051 | 65 |
"initialize my icon mapping, which maps MIMEType to icon keys. |
66 |
The iconKey is used as (part of) a selector into the ToolbarIconLibrary |
|
67 |
(see iconForFile:aFilename)" |
|
68 |
||
1876 | 69 |
|icons matchedIcons defaults resources addMapping fileNameToImageMap| |
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
70 |
|
1876 | 71 |
icons := Dictionary new. |
72 |
matchedIcons := OrderedCollection new. |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
73 |
fileNameToImageMap := Dictionary new. |
1859 | 74 |
|
3325 | 75 |
defaults := #( |
1859 | 76 |
"/ internal-type to icon mappings. |
3325 | 77 |
directory directory |
78 |
directoryOpen directoryOpen |
|
79 |
directoryLocked directoryLocked |
|
80 |
directoryLink directoryLink |
|
81 |
directoryNetwork directoryNetwork |
|
82 |
file file |
|
83 |
fileLink fileLink |
|
84 |
fileLocked fileLocked |
|
1859 | 85 |
|
3325 | 86 |
executableFile executableFile |
87 |
deviceFile deviceFile |
|
88 |
binaryFile binaryFile |
|
89 |
specialFile specialFile |
|
1859 | 90 |
|
3325 | 91 |
addOnLocked addOnLocked |
92 |
addOnLinked addOnLinked |
|
1859 | 93 |
|
3325 | 94 |
directoryGray directoryGray |
95 |
directoryOpenGray directoryOpenGray |
|
1859 | 96 |
|
1875 | 97 |
"/ these are soon obsolete |
3325 | 98 |
imageFile imageFile |
99 |
textFile text |
|
1875 | 100 |
|
1859 | 101 |
"/ mime-type to icon mappings. |
3325 | 102 |
'image/*' imageFile |
1859 | 103 |
|
104 |
"/ misc text ... |
|
105 |
||
3325 | 106 |
'text/html' textHtml |
107 |
"/ 'text/plain' text |
|
108 |
'text/*' text |
|
1859 | 109 |
|
3325 | 110 |
'application/postscript' applicationPostscript |
111 |
'application/pdf' applicationPdf |
|
112 |
'application/rtf' applicationRtf |
|
1859 | 113 |
|
114 |
"/ video formats ... |
|
115 |
||
3325 | 116 |
"/ 'video/x-sgi-movie' video |
117 |
"/ 'video/x-msvideo' video |
|
118 |
"/ 'video/quicktime' video |
|
119 |
"/ 'video/x-mpeg2' video |
|
120 |
"/ 'video/mpeg' video |
|
121 |
'video/*' video |
|
122 |
"/ 'application/vnd.rn-realmedia' video |
|
1859 | 123 |
|
124 |
"/ audio formats ... |
|
125 |
||
3325 | 126 |
"/ 'audio/x-pn-realaudio' audio |
127 |
"/ 'audio/x-mpeg' audio |
|
128 |
"/ 'audio/x-mp3' audio |
|
129 |
"/ 'audio/x-wav' audio |
|
130 |
"/ 'audio/x-aiff' audio |
|
131 |
"/ 'audio/basic' audio |
|
132 |
"/ 'audio/x-shockwave-flash' audio |
|
133 |
'audio/*' audio |
|
1859 | 134 |
|
135 |
"/ misc stuff |
|
3325 | 136 |
'application/winword' text |
137 |
'application/x-waltop-digital-notepad' digitalNotepad |
|
1859 | 138 |
|
139 |
"/ binary formats |
|
3325 | 140 |
'application/binary' binaryFile |
141 |
'application/library' binaryFile |
|
142 |
'application/shared-library' binaryFile |
|
1859 | 143 |
|
144 |
"/ progr. languages |
|
3325 | 145 |
'application/x-smalltalk-source' smalltalkSource |
146 |
'application/x-smalltalk-source-sif' text |
|
3399 | 147 |
'application/x-c-source' cSource |
148 |
'application/x-c-header' headerFile |
|
149 |
'application/x-cpp-source' cPlusPlusSource |
|
3423 | 150 |
'application/x-javascript' javaScriptSource |
3325 | 151 |
'application/x-java-source' javaSource |
3402 | 152 |
'application/x-lisp-source' lispSource |
4042 | 153 |
'application/x-scheme-source' lispSource |
1859 | 154 |
|
3325 | 155 |
'application/x-sh' text |
156 |
'application/x-csh' text |
|
157 |
'application/x-tcl' text |
|
158 |
'application/x-perl' text |
|
159 |
'application/x-make' text |
|
160 |
'application/x-batch-script' text |
|
161 |
'application/x-asn1-source' text |
|
1859 | 162 |
|
163 |
"/ compressors / archivers |
|
3401 | 164 |
'application/java-archive' javaArchive |
3325 | 165 |
'application/x-tar' fileArchive |
166 |
'application/x-gtar' fileArchive |
|
167 |
'application/x-tar-compressed' compressedArchive |
|
168 |
'application/x-zip-compressed' compressedArchive |
|
169 |
'application/x-gzip-compressed' compressedArchive |
|
170 |
'application/x-cpio' fileArchive |
|
171 |
'application/x-shar' fileArchive |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
172 |
|
3325 | 173 |
'application/x-expecco-testsuite' expeccoSuite |
174 |
'application/x-expecco-logfile' expeccoLogfile |
|
2847 | 175 |
|
3325 | 176 |
'*' text |
177 |
). |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
178 |
|
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
179 |
addMapping := [:key :baseNameOrName | |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
180 |
|fileName image| |
1859 | 181 |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
182 |
baseNameOrName notNil ifTrue:[ |
3325 | 183 |
baseNameOrName isSymbol ifTrue:[ |
184 |
image := self perform:baseNameOrName. |
|
185 |
] ifFalse:[ |
|
186 |
image := fileNameToImageMap at:baseNameOrName ifAbsent:nil. |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
187 |
image isNil ifTrue:[ |
3325 | 188 |
image := Smalltalk imageFromFileNamed:baseNameOrName forClass:self. |
189 |
image isNil ifTrue:[ |
|
190 |
fileName := 'bitmaps/xpmBitmaps/document_images/' , baseNameOrName. |
|
191 |
image := Smalltalk imageFromFileNamed:fileName forClass:self. |
|
192 |
]. |
|
193 |
]. |
|
194 |
fileNameToImageMap at:baseNameOrName put:image. |
|
195 |
]. |
|
196 |
image notNil ifTrue:[ |
|
197 |
key includesMatchCharacters ifTrue:[ |
|
198 |
matchedIcons add:(key -> image). |
|
199 |
] ifFalse:[ |
|
200 |
icons at:key put:image. |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
201 |
]. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
202 |
]. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
203 |
] |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
204 |
]. |
1859 | 205 |
|
1956
7bfc5c973c1b
classResources now understood by all classes
Claus Gittinger <cg@exept.de>
parents:
1877
diff
changeset
|
206 |
resources := self classResources. |
7bfc5c973c1b
classResources now understood by all classes
Claus Gittinger <cg@exept.de>
parents:
1877
diff
changeset
|
207 |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
208 |
"all mappings from the resource file" |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
209 |
resources keysAndValuesDo:addMapping. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
210 |
|
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
211 |
"missing mappings from above defaults" |
3325 | 212 |
defaults pairWiseDo:[:key :baseName | |
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
213 |
(resources includesKey:key) ifFalse:[ |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
214 |
addMapping value:key value:baseName |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
215 |
]. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
216 |
]. |
1859 | 217 |
|
1876 | 218 |
Icons := icons. |
219 |
MatchedIcons := matchedIcons. |
|
220 |
||
1859 | 221 |
" |
222 |
self initializeIcons |
|
223 |
" |
|
224 |
! ! |
|
225 |
||
1865 | 226 |
!MIMETypeIconLibrary class methodsFor:'accessing'! |
1859 | 227 |
|
3325 | 228 |
addOnIconsFor:aFilename to:anIcon |
4051 | 229 |
"given a fileName, return an appropriate icon, |
230 |
especially an overlaid icon if linked or locked" |
|
3325 | 231 |
|
3439 | 232 |
|addOnIcon addIcns| |
3325 | 233 |
|
234 |
aFilename isNil ifTrue:[^ anIcon ]. |
|
235 |
anIcon isNil ifTrue:[^ anIcon ]. |
|
236 |
||
237 |
addIcns := OrderedCollection new. |
|
238 |
aFilename isSymbolicLink ifTrue:[ |
|
239 |
addOnIcon := self iconForKeyMatching:#addOnLinked. |
|
240 |
addOnIcon notNil ifTrue:[ addIcns add:addOnIcon ]. |
|
241 |
]. |
|
3439 | 242 |
(aFilename isReadable not |
243 |
and:[aFilename isDirectory not or:[aFilename isExecutable not]]) ifTrue:[ |
|
3325 | 244 |
addOnIcon := self iconForKeyMatching:#addOnLocked. |
245 |
addOnIcon notNil ifTrue:[ addIcns add:addOnIcon ]. |
|
246 |
]. |
|
247 |
addIcns notEmpty ifTrue:[ |
|
248 |
addIcns addFirst:anIcon. |
|
249 |
^ MultiImage images:addIcns. |
|
250 |
]. |
|
251 |
^ anIcon |
|
252 |
! |
|
253 |
||
1862 | 254 |
fileTypeIconKeyFor:aFilename |
3398 | 255 |
"return an icon-key for a fileName. |
256 |
This does not look at the file's suffix or into the file's contents, |
|
257 |
for more detailed key i.e. it only returns keys for the common broad categories" |
|
258 |
||
3159 | 259 |
|info| |
260 |
||
261 |
info := aFilename linkInfo. |
|
262 |
info isNil ifTrue:[ |
|
263 |
^ nil. |
|
264 |
]. |
|
265 |
info isSymbolicLink ifTrue:[ |
|
1862 | 266 |
^ #symbolicLink. |
267 |
]. |
|
3159 | 268 |
info isDirectory ifTrue:[ |
1862 | 269 |
^ #directory. |
270 |
]. |
|
3159 | 271 |
info isSpecialFile ifTrue:[ |
1862 | 272 |
^ #specialFile. |
273 |
]. |
|
274 |
aFilename isExecutableProgram ifTrue:[ |
|
275 |
^ #executableFile |
|
276 |
]. |
|
277 |
^ #file. |
|
3159 | 278 |
|
279 |
" |
|
280 |
self fileTypeIconKeyFor:'/foo/bar' asFilename |
|
281 |
self fileTypeIconKeyFor:'/tmp' asFilename |
|
282 |
self fileTypeIconKeyFor:'/dev/null' asFilename |
|
283 |
self fileTypeIconKeyFor:'Makefile' asFilename |
|
284 |
self fileTypeIconKeyFor:'/usr/bin/make' asFilename |
|
285 |
" |
|
1862 | 286 |
! |
287 |
||
3325 | 288 |
iconForFile:aFilename |
289 |
"given a fileName, return an appropriate icon" |
|
290 |
||
291 |
|icn| |
|
292 |
||
293 |
icn := self iconForKeyMatching:(self iconKeyForFile:aFilename). |
|
294 |
^ self addOnIconsFor:aFilename to:icn. |
|
4051 | 295 |
|
296 |
" |
|
297 |
self iconForFile:'/foo/bar/baz.c' asFilename |
|
298 |
" |
|
3325 | 299 |
! |
300 |
||
1860 | 301 |
iconForKey:mimeTypeOrKey |
1875 | 302 |
^ self icons at:mimeTypeOrKey ifAbsent:nil. |
1860 | 303 |
! |
1859 | 304 |
|
1860 | 305 |
iconForKeyMatching:mimeTypeOrKey |
1861 | 306 |
|icn assoc| |
307 |
||
308 |
icn := self iconForKey:mimeTypeOrKey. |
|
309 |
icn notNil ifTrue:[^icn]. |
|
2065 | 310 |
assoc := self iconForMatchKey:mimeTypeOrKey. |
1861 | 311 |
assoc notNil ifTrue:[^ assoc value]. |
312 |
^ nil. |
|
313 |
! |
|
314 |
||
3325 | 315 |
iconForLinkedDirectory |
316 |
"answer the icon used for linked directories" |
|
317 |
||
318 |
^ self directoryLink. |
|
319 |
||
320 |
"/ |dirIcon linkIcon| |
|
321 |
"/ |
|
322 |
"/ dirIcon := self iconForKeyMatching:#directory. |
|
323 |
"/ linkIcon := self iconForKeyMatching:#addOnLinked. |
|
324 |
"/ |
|
325 |
"/ linkIcon notNil ifTrue:[ |
|
326 |
"/ ^ MultiImage images:(Array with:dirIcon with:linkIcon). |
|
327 |
"/ ]. |
|
328 |
"/ ^ dirIcon |
|
329 |
||
330 |
" |
|
331 |
self iconForLinkedDirectory |
|
332 |
" |
|
333 |
! |
|
334 |
||
1861 | 335 |
iconForMatchKey:matchKey |
1875 | 336 |
^ self matchedIcons detect:[:assoc | assoc key match:matchKey] ifNone:nil. |
1862 | 337 |
! |
338 |
||
339 |
iconKeyForFile:aFilenameArg |
|
340 |
"given a fileName, return an appropriate icon" |
|
341 |
||
3403 | 342 |
|filename fileType mimeType suffix| |
1862 | 343 |
|
3403 | 344 |
filename := aFilenameArg asFilename. |
345 |
fileType := self fileTypeIconKeyFor:filename. |
|
1862 | 346 |
|
3325 | 347 |
(fileType ~~ #directory) ifTrue:[ |
3403 | 348 |
suffix := filename suffix. |
1862 | 349 |
(suffix = 'bak' or:[suffix = 'sav']) ifTrue:[ |
3403 | 350 |
filename := filename withoutSuffix. |
1862 | 351 |
]. |
3869 | 352 |
mimeType := MIMETypes mimeTypeForFilename:filename asNonBackupFilename. |
1862 | 353 |
]. |
354 |
||
3325 | 355 |
^ mimeType ? fileType. |
3869 | 356 |
|
357 |
"Modified: / 09-02-2017 / 14:03:16 / stefan" |
|
1862 | 358 |
! |
359 |
||
360 |
iconKeyForRemoteDirectory:aFilenameArg |
|
361 |
"given a fileName, return an appropriate icon" |
|
362 |
||
363 |
^ #directoryNetwork |
|
1875 | 364 |
! |
365 |
||
366 |
icons |
|
367 |
Icons isNil ifTrue:[ |
|
368 |
self initializeIcons |
|
369 |
]. |
|
370 |
^ Icons |
|
371 |
! |
|
372 |
||
373 |
matchedIcons |
|
374 |
MatchedIcons isNil ifTrue:[ |
|
375 |
self initializeIcons |
|
376 |
]. |
|
377 |
^ MatchedIcons |
|
1859 | 378 |
! ! |
379 |
||
3325 | 380 |
!MIMETypeIconLibrary class methodsFor:'image specs'! |
381 |
||
382 |
addOnLinked |
|
3397 | 383 |
<resource: #programImage> |
3325 | 384 |
|
3397 | 385 |
^ ToolbarIconLibrary fileTypeAddOnLinked |
3325 | 386 |
! |
387 |
||
388 |
addOnLocked |
|
3397 | 389 |
<resource: #programImage> |
3325 | 390 |
|
3397 | 391 |
^ ToolbarIconLibrary fileTypeAddOnLocked |
3325 | 392 |
! |
393 |
||
394 |
applicationBinary |
|
3397 | 395 |
<resource: #programImage> |
3325 | 396 |
|
3397 | 397 |
^ ToolbarIconLibrary fileTypeApplicationBinaryIcon |
3325 | 398 |
! |
399 |
||
400 |
applicationJavaArchive |
|
3397 | 401 |
<resource: #programImage> |
3325 | 402 |
|
3397 | 403 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
3325 | 404 |
! |
405 |
||
406 |
applicationLibrary |
|
3397 | 407 |
<resource: #programImage> |
3325 | 408 |
|
3397 | 409 |
^ ToolbarIconLibrary fileTypeApplicationLibraryIcon |
3325 | 410 |
! |
411 |
||
412 |
applicationPdf |
|
3397 | 413 |
<resource: #programImage> |
3325 | 414 |
|
3397 | 415 |
^ ToolbarIconLibrary fileTypeApplicationPdfIcon |
3325 | 416 |
! |
417 |
||
418 |
applicationPostscript |
|
3397 | 419 |
<resource: #programImage> |
3325 | 420 |
|
3397 | 421 |
^ ToolbarIconLibrary fileTypeApplicationPostscriptIcon |
3325 | 422 |
! |
423 |
||
424 |
applicationRtf |
|
3397 | 425 |
<resource: #programImage> |
3325 | 426 |
|
3397 | 427 |
^ ToolbarIconLibrary fileTypeApplicationRtfIcon |
3325 | 428 |
! |
429 |
||
430 |
applicationSharedLibrary |
|
3397 | 431 |
<resource: #programImage> |
3325 | 432 |
|
3397 | 433 |
^ ToolbarIconLibrary fileTypeApplicationSharedLibraryIcon |
3325 | 434 |
! |
435 |
||
436 |
audio |
|
3397 | 437 |
<resource: #programImage> |
3325 | 438 |
|
3397 | 439 |
^ ToolbarIconLibrary fileTypeAudioIcon |
3325 | 440 |
! |
441 |
||
442 |
binaryFile |
|
3397 | 443 |
<resource: #programImage> |
3325 | 444 |
|
3397 | 445 |
^ ToolbarIconLibrary fileTypeBinaryFileIcon |
3325 | 446 |
! |
447 |
||
3399 | 448 |
cPlusPlusSource |
449 |
<resource: #programImage> |
|
450 |
||
451 |
^ ToolbarIconLibrary fileTypeCPlusPlusSourceIcon |
|
452 |
! |
|
453 |
||
454 |
cSource |
|
455 |
<resource: #programImage> |
|
456 |
||
457 |
^ ToolbarIconLibrary fileTypeCSourceIcon |
|
458 |
! |
|
459 |
||
3325 | 460 |
compressedArchive |
3397 | 461 |
<resource: #programImage> |
3325 | 462 |
|
3397 | 463 |
^ ToolbarIconLibrary fileTypeCompressedArchiveIcon |
3325 | 464 |
! |
465 |
||
466 |
deviceFile |
|
3397 | 467 |
<resource: #programImage> |
3325 | 468 |
|
3397 | 469 |
^ ToolbarIconLibrary fileTypeDeviceFileIcon |
3325 | 470 |
! |
471 |
||
472 |
digitalNotepad |
|
3397 | 473 |
<resource: #programImage> |
3325 | 474 |
|
3397 | 475 |
^ ToolbarIconLibrary fileTypeDigitalNotepadIcon |
3325 | 476 |
! |
477 |
||
478 |
directory |
|
3397 | 479 |
<resource: #programImage> |
3325 | 480 |
|
3397 | 481 |
^ ToolbarIconLibrary fileTypeDirectoryIcon |
3325 | 482 |
! |
483 |
||
484 |
directoryGray |
|
3397 | 485 |
<resource: #programImage> |
3325 | 486 |
|
3397 | 487 |
^ ToolbarIconLibrary fileTypeDirectoryGrayIcon |
3325 | 488 |
! |
489 |
||
490 |
directoryLink |
|
3397 | 491 |
<resource: #programImage> |
3325 | 492 |
|
3397 | 493 |
^ ToolbarIconLibrary fileTypeDirectoryLinkIcon |
3325 | 494 |
! |
495 |
||
496 |
directoryLocked |
|
3397 | 497 |
<resource: #programImage> |
3325 | 498 |
|
3397 | 499 |
^ ToolbarIconLibrary fileTypeDirectoryLockedIcon |
3325 | 500 |
! |
501 |
||
502 |
directoryNetwork |
|
3397 | 503 |
<resource: #programImage> |
3325 | 504 |
|
3397 | 505 |
^ ToolbarIconLibrary fileTypeDirectoryNetworkIcon |
3325 | 506 |
! |
507 |
||
508 |
directoryOpen |
|
3397 | 509 |
<resource: #programImage> |
3325 | 510 |
|
3397 | 511 |
^ ToolbarIconLibrary fileTypeDirectoryOpenIcon |
3325 | 512 |
! |
513 |
||
514 |
directoryOpenGray |
|
3397 | 515 |
<resource: #programImage> |
3325 | 516 |
|
3397 | 517 |
^ ToolbarIconLibrary fileTypeDirectoryOpenGrayIcon |
3325 | 518 |
! |
519 |
||
520 |
executableFile |
|
3397 | 521 |
<resource: #programImage> |
3325 | 522 |
|
3397 | 523 |
^ ToolbarIconLibrary fileTypeExecutableFileIcon |
3325 | 524 |
! |
525 |
||
526 |
expeccoLogfile |
|
3397 | 527 |
<resource: #programImage> |
3325 | 528 |
|
3397 | 529 |
^ ToolbarIconLibrary fileTypeExpeccoLogfileIcon |
3325 | 530 |
! |
531 |
||
532 |
expeccoSuite |
|
3397 | 533 |
<resource: #programImage> |
3325 | 534 |
|
3397 | 535 |
^ ToolbarIconLibrary fileTypeExpeccoSuiteIcon |
3325 | 536 |
! |
537 |
||
538 |
file |
|
3397 | 539 |
<resource: #programImage> |
3325 | 540 |
|
3397 | 541 |
^ ToolbarIconLibrary fileTypeFileIcon |
3325 | 542 |
! |
543 |
||
544 |
fileArchive |
|
3397 | 545 |
<resource: #programImage> |
3325 | 546 |
|
3397 | 547 |
^ ToolbarIconLibrary fileTypeFileArchiveIcon |
3325 | 548 |
! |
549 |
||
550 |
fileLink |
|
3397 | 551 |
<resource: #programImage> |
3325 | 552 |
|
3397 | 553 |
^ ToolbarIconLibrary fileTypeFileLinkIcon |
3325 | 554 |
! |
555 |
||
556 |
fileLocked |
|
3397 | 557 |
<resource: #programImage> |
3325 | 558 |
|
3397 | 559 |
^ ToolbarIconLibrary fileTypeFileLockedIcon |
3325 | 560 |
! |
561 |
||
3399 | 562 |
headerFile |
563 |
<resource: #programImage> |
|
564 |
||
565 |
^ ToolbarIconLibrary fileTypeHeaderFileIcon |
|
566 |
! |
|
567 |
||
3403 | 568 |
homeDirectory |
569 |
<resource: #programImage> |
|
570 |
||
571 |
^ ToolbarIconLibrary fileTypeHomeIcon |
|
572 |
! |
|
573 |
||
3325 | 574 |
imageFile |
3397 | 575 |
<resource: #programImage> |
3325 | 576 |
|
3397 | 577 |
^ ToolbarIconLibrary fileTypeImageFileIcon |
3325 | 578 |
! |
579 |
||
3401 | 580 |
javaArchive |
581 |
<resource: #programImage> |
|
582 |
||
583 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
|
584 |
! |
|
585 |
||
3423 | 586 |
javaScriptSource |
587 |
<resource: #programImage> |
|
588 |
||
589 |
^ ToolbarIconLibrary fileTypeJavaScriptSourceIcon |
|
590 |
! |
|
591 |
||
3325 | 592 |
javaSource |
3397 | 593 |
<resource: #programImage> |
3325 | 594 |
|
3397 | 595 |
^ ToolbarIconLibrary fileTypeJavaSourceIcon |
3325 | 596 |
! |
597 |
||
3402 | 598 |
lispSource |
599 |
<resource: #programImage> |
|
600 |
||
601 |
^ ToolbarIconLibrary fileTypeLispSourceIcon |
|
602 |
! |
|
603 |
||
3325 | 604 |
smalltalkSource |
3397 | 605 |
<resource: #programImage> |
3325 | 606 |
|
3397 | 607 |
^ ToolbarIconLibrary fileTypeSmalltalkSourceIcon |
3325 | 608 |
! |
609 |
||
610 |
specialFile |
|
3397 | 611 |
<resource: #programImage> |
3325 | 612 |
|
3397 | 613 |
^ ToolbarIconLibrary fileTypeSpecialFileIcon |
3325 | 614 |
! |
615 |
||
616 |
text |
|
3397 | 617 |
<resource: #programImage> |
3325 | 618 |
|
3397 | 619 |
^ ToolbarIconLibrary fileTypeTextIcon |
3325 | 620 |
! |
621 |
||
622 |
textHtml |
|
3397 | 623 |
<resource: #programImage> |
3325 | 624 |
|
3397 | 625 |
^ ToolbarIconLibrary fileTypeTextHtmlIcon |
3325 | 626 |
! |
627 |
||
628 |
video |
|
3397 | 629 |
<resource: #programImage> |
3325 | 630 |
|
3397 | 631 |
^ ToolbarIconLibrary fileTypeVideoIcon |
3325 | 632 |
! ! |
633 |
||
1865 | 634 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
1859 | 635 |
|
636 |
version |
|
3869 | 637 |
^ '$Header$' |
2847 | 638 |
! |
639 |
||
640 |
version_CVS |
|
3869 | 641 |
^ '$Header$' |
1859 | 642 |
! ! |
643 |
||
3159 | 644 |
|
1865 | 645 |
MIMETypeIconLibrary initialize! |