author | Claus Gittinger <cg@exept.de> |
Sun, 23 Nov 2014 17:17:57 +0100 | |
changeset 3402 | 6c17e9383174 |
parent 3401 | 4850b4d8d0fd |
child 3403 | 67c06ca6cbd6 |
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 |
||
323 |
|aFilename fileType mimeType suffix| |
|
324 |
||
325 |
aFilename := aFilenameArg. |
|
326 |
||
327 |
aFilenameArg isFilename ifTrue:[ |
|
328 |
fileType := self fileTypeIconKeyFor:aFilename. |
|
329 |
] ifFalse:[ |
|
330 |
fileType := #file |
|
331 |
]. |
|
332 |
||
3325 | 333 |
(fileType ~~ #directory) ifTrue:[ |
1862 | 334 |
suffix := aFilename suffix. |
335 |
(suffix = 'bak' or:[suffix = 'sav']) ifTrue:[ |
|
336 |
aFilename := aFilename withoutSuffix. |
|
337 |
]. |
|
338 |
mimeType := MIMETypes mimeTypeForFilename:aFilename. |
|
339 |
]. |
|
340 |
||
3325 | 341 |
^ mimeType ? fileType. |
1862 | 342 |
! |
343 |
||
344 |
iconKeyForRemoteDirectory:aFilenameArg |
|
345 |
"given a fileName, return an appropriate icon" |
|
346 |
||
347 |
^ #directoryNetwork |
|
1875 | 348 |
! |
349 |
||
350 |
icons |
|
351 |
Icons isNil ifTrue:[ |
|
352 |
self initializeIcons |
|
353 |
]. |
|
354 |
^ Icons |
|
355 |
! |
|
356 |
||
357 |
matchedIcons |
|
358 |
MatchedIcons isNil ifTrue:[ |
|
359 |
self initializeIcons |
|
360 |
]. |
|
361 |
^ MatchedIcons |
|
1859 | 362 |
! ! |
363 |
||
3325 | 364 |
!MIMETypeIconLibrary class methodsFor:'image specs'! |
365 |
||
366 |
addOnLinked |
|
3397 | 367 |
<resource: #programImage> |
3325 | 368 |
|
3397 | 369 |
^ ToolbarIconLibrary fileTypeAddOnLinked |
3325 | 370 |
! |
371 |
||
372 |
addOnLocked |
|
3397 | 373 |
<resource: #programImage> |
3325 | 374 |
|
3397 | 375 |
^ ToolbarIconLibrary fileTypeAddOnLocked |
3325 | 376 |
! |
377 |
||
378 |
applicationBinary |
|
3397 | 379 |
<resource: #programImage> |
3325 | 380 |
|
3397 | 381 |
^ ToolbarIconLibrary fileTypeApplicationBinaryIcon |
3325 | 382 |
! |
383 |
||
384 |
applicationJavaArchive |
|
3397 | 385 |
<resource: #programImage> |
3325 | 386 |
|
3397 | 387 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
3325 | 388 |
! |
389 |
||
390 |
applicationLibrary |
|
3397 | 391 |
<resource: #programImage> |
3325 | 392 |
|
3397 | 393 |
^ ToolbarIconLibrary fileTypeApplicationLibraryIcon |
3325 | 394 |
! |
395 |
||
396 |
applicationPdf |
|
3397 | 397 |
<resource: #programImage> |
3325 | 398 |
|
3397 | 399 |
^ ToolbarIconLibrary fileTypeApplicationPdfIcon |
3325 | 400 |
! |
401 |
||
402 |
applicationPostscript |
|
3397 | 403 |
<resource: #programImage> |
3325 | 404 |
|
3397 | 405 |
^ ToolbarIconLibrary fileTypeApplicationPostscriptIcon |
3325 | 406 |
! |
407 |
||
408 |
applicationRtf |
|
3397 | 409 |
<resource: #programImage> |
3325 | 410 |
|
3397 | 411 |
^ ToolbarIconLibrary fileTypeApplicationRtfIcon |
3325 | 412 |
! |
413 |
||
414 |
applicationSharedLibrary |
|
3397 | 415 |
<resource: #programImage> |
3325 | 416 |
|
3397 | 417 |
^ ToolbarIconLibrary fileTypeApplicationSharedLibraryIcon |
3325 | 418 |
! |
419 |
||
420 |
audio |
|
3397 | 421 |
<resource: #programImage> |
3325 | 422 |
|
3397 | 423 |
^ ToolbarIconLibrary fileTypeAudioIcon |
3325 | 424 |
! |
425 |
||
426 |
binaryFile |
|
3397 | 427 |
<resource: #programImage> |
3325 | 428 |
|
3397 | 429 |
^ ToolbarIconLibrary fileTypeBinaryFileIcon |
3325 | 430 |
! |
431 |
||
3399 | 432 |
cPlusPlusSource |
433 |
<resource: #programImage> |
|
434 |
||
435 |
^ ToolbarIconLibrary fileTypeCPlusPlusSourceIcon |
|
436 |
! |
|
437 |
||
438 |
cSource |
|
439 |
<resource: #programImage> |
|
440 |
||
441 |
^ ToolbarIconLibrary fileTypeCSourceIcon |
|
442 |
! |
|
443 |
||
3325 | 444 |
compressedArchive |
3397 | 445 |
<resource: #programImage> |
3325 | 446 |
|
3397 | 447 |
^ ToolbarIconLibrary fileTypeCompressedArchiveIcon |
3325 | 448 |
! |
449 |
||
450 |
deviceFile |
|
3397 | 451 |
<resource: #programImage> |
3325 | 452 |
|
3397 | 453 |
^ ToolbarIconLibrary fileTypeDeviceFileIcon |
3325 | 454 |
! |
455 |
||
456 |
digitalNotepad |
|
3397 | 457 |
<resource: #programImage> |
3325 | 458 |
|
3397 | 459 |
^ ToolbarIconLibrary fileTypeDigitalNotepadIcon |
3325 | 460 |
! |
461 |
||
462 |
directory |
|
3397 | 463 |
<resource: #programImage> |
3325 | 464 |
|
3397 | 465 |
^ ToolbarIconLibrary fileTypeDirectoryIcon |
3325 | 466 |
! |
467 |
||
468 |
directoryGray |
|
3397 | 469 |
<resource: #programImage> |
3325 | 470 |
|
3397 | 471 |
^ ToolbarIconLibrary fileTypeDirectoryGrayIcon |
3325 | 472 |
! |
473 |
||
474 |
directoryLink |
|
3397 | 475 |
<resource: #programImage> |
3325 | 476 |
|
3397 | 477 |
^ ToolbarIconLibrary fileTypeDirectoryLinkIcon |
3325 | 478 |
! |
479 |
||
480 |
directoryLocked |
|
3397 | 481 |
<resource: #programImage> |
3325 | 482 |
|
3397 | 483 |
^ ToolbarIconLibrary fileTypeDirectoryLockedIcon |
3325 | 484 |
! |
485 |
||
486 |
directoryNetwork |
|
3397 | 487 |
<resource: #programImage> |
3325 | 488 |
|
3397 | 489 |
^ ToolbarIconLibrary fileTypeDirectoryNetworkIcon |
3325 | 490 |
! |
491 |
||
492 |
directoryOpen |
|
3397 | 493 |
<resource: #programImage> |
3325 | 494 |
|
3397 | 495 |
^ ToolbarIconLibrary fileTypeDirectoryOpenIcon |
3325 | 496 |
! |
497 |
||
498 |
directoryOpenGray |
|
3397 | 499 |
<resource: #programImage> |
3325 | 500 |
|
3397 | 501 |
^ ToolbarIconLibrary fileTypeDirectoryOpenGrayIcon |
3325 | 502 |
! |
503 |
||
504 |
executableFile |
|
3397 | 505 |
<resource: #programImage> |
3325 | 506 |
|
3397 | 507 |
^ ToolbarIconLibrary fileTypeExecutableFileIcon |
3325 | 508 |
! |
509 |
||
510 |
expeccoLogfile |
|
3397 | 511 |
<resource: #programImage> |
3325 | 512 |
|
3397 | 513 |
^ ToolbarIconLibrary fileTypeExpeccoLogfileIcon |
3325 | 514 |
! |
515 |
||
516 |
expeccoSuite |
|
3397 | 517 |
<resource: #programImage> |
3325 | 518 |
|
3397 | 519 |
^ ToolbarIconLibrary fileTypeExpeccoSuiteIcon |
3325 | 520 |
! |
521 |
||
522 |
file |
|
3397 | 523 |
<resource: #programImage> |
3325 | 524 |
|
3397 | 525 |
^ ToolbarIconLibrary fileTypeFileIcon |
3325 | 526 |
! |
527 |
||
528 |
fileArchive |
|
3397 | 529 |
<resource: #programImage> |
3325 | 530 |
|
3397 | 531 |
^ ToolbarIconLibrary fileTypeFileArchiveIcon |
3325 | 532 |
! |
533 |
||
534 |
fileLink |
|
3397 | 535 |
<resource: #programImage> |
3325 | 536 |
|
3397 | 537 |
^ ToolbarIconLibrary fileTypeFileLinkIcon |
3325 | 538 |
! |
539 |
||
540 |
fileLocked |
|
3397 | 541 |
<resource: #programImage> |
3325 | 542 |
|
3397 | 543 |
^ ToolbarIconLibrary fileTypeFileLockedIcon |
3325 | 544 |
! |
545 |
||
3399 | 546 |
headerFile |
547 |
<resource: #programImage> |
|
548 |
||
549 |
^ ToolbarIconLibrary fileTypeHeaderFileIcon |
|
550 |
! |
|
551 |
||
3325 | 552 |
imageFile |
3397 | 553 |
<resource: #programImage> |
3325 | 554 |
|
3397 | 555 |
^ ToolbarIconLibrary fileTypeImageFileIcon |
3325 | 556 |
! |
557 |
||
3401 | 558 |
javaArchive |
559 |
<resource: #programImage> |
|
560 |
||
561 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
|
562 |
! |
|
563 |
||
3325 | 564 |
javaSource |
3397 | 565 |
<resource: #programImage> |
3325 | 566 |
|
3397 | 567 |
^ ToolbarIconLibrary fileTypeJavaSourceIcon |
3325 | 568 |
! |
569 |
||
3402 | 570 |
lispSource |
571 |
<resource: #programImage> |
|
572 |
||
573 |
^ ToolbarIconLibrary fileTypeLispSourceIcon |
|
574 |
! |
|
575 |
||
3325 | 576 |
smalltalkSource |
3397 | 577 |
<resource: #programImage> |
3325 | 578 |
|
3397 | 579 |
^ ToolbarIconLibrary fileTypeSmalltalkSourceIcon |
3325 | 580 |
! |
581 |
||
582 |
specialFile |
|
3397 | 583 |
<resource: #programImage> |
3325 | 584 |
|
3397 | 585 |
^ ToolbarIconLibrary fileTypeSpecialFileIcon |
3325 | 586 |
! |
587 |
||
588 |
text |
|
3397 | 589 |
<resource: #programImage> |
3325 | 590 |
|
3397 | 591 |
^ ToolbarIconLibrary fileTypeTextIcon |
3325 | 592 |
! |
593 |
||
594 |
textHtml |
|
3397 | 595 |
<resource: #programImage> |
3325 | 596 |
|
3397 | 597 |
^ ToolbarIconLibrary fileTypeTextHtmlIcon |
3325 | 598 |
! |
599 |
||
600 |
video |
|
3397 | 601 |
<resource: #programImage> |
3325 | 602 |
|
3397 | 603 |
^ ToolbarIconLibrary fileTypeVideoIcon |
3325 | 604 |
! ! |
605 |
||
1865 | 606 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
1859 | 607 |
|
608 |
version |
|
3402 | 609 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.25 2014-11-23 16:17:57 cg Exp $' |
2847 | 610 |
! |
611 |
||
612 |
version_CVS |
|
3402 | 613 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.25 2014-11-23 16:17:57 cg Exp $' |
1859 | 614 |
! ! |
615 |
||
3159 | 616 |
|
1865 | 617 |
MIMETypeIconLibrary initialize! |