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