author | Claus Gittinger <cg@exept.de> |
Sun, 23 Nov 2014 14:42:46 +0100 | |
changeset 3398 | 27762e2393d8 |
parent 3397 | 68901dc6d90b |
child 3399 | 5f9df070dfed |
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 |
|
133 |
'application/x-c-source' text |
|
134 |
'application/x-c-header' text |
|
135 |
'application/x-cpp-source' text |
|
136 |
'application/x-javascript' text |
|
137 |
'application/x-java-source' javaSource |
|
1859 | 138 |
|
3325 | 139 |
'application/x-sh' text |
140 |
'application/x-csh' text |
|
141 |
'application/x-tcl' text |
|
142 |
'application/x-perl' text |
|
143 |
'application/x-make' text |
|
144 |
'application/x-batch-script' text |
|
145 |
'application/x-asn1-source' text |
|
1859 | 146 |
|
147 |
"/ compressors / archivers |
|
3325 | 148 |
'application/x-tar' fileArchive |
149 |
'application/x-gtar' fileArchive |
|
150 |
'application/x-tar-compressed' compressedArchive |
|
151 |
'application/x-zip-compressed' compressedArchive |
|
152 |
'application/x-gzip-compressed' compressedArchive |
|
153 |
'application/x-cpio' fileArchive |
|
154 |
'application/x-shar' fileArchive |
|
155 |
'application/java-archive' fileArchive |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
156 |
|
3325 | 157 |
'application/x-expecco-testsuite' expeccoSuite |
158 |
'application/x-expecco-logfile' expeccoLogfile |
|
2847 | 159 |
|
3325 | 160 |
'*' text |
161 |
). |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
162 |
|
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
163 |
addMapping := [:key :baseNameOrName | |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
164 |
|fileName image| |
1859 | 165 |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
166 |
baseNameOrName notNil ifTrue:[ |
3325 | 167 |
baseNameOrName isSymbol ifTrue:[ |
168 |
image := self perform:baseNameOrName. |
|
169 |
] ifFalse:[ |
|
170 |
image := fileNameToImageMap at:baseNameOrName ifAbsent:nil. |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
171 |
image isNil ifTrue:[ |
3325 | 172 |
image := Smalltalk imageFromFileNamed:baseNameOrName forClass:self. |
173 |
image isNil ifTrue:[ |
|
174 |
fileName := 'bitmaps/xpmBitmaps/document_images/' , baseNameOrName. |
|
175 |
image := Smalltalk imageFromFileNamed:fileName forClass:self. |
|
176 |
]. |
|
177 |
]. |
|
178 |
fileNameToImageMap at:baseNameOrName put:image. |
|
179 |
]. |
|
180 |
image notNil ifTrue:[ |
|
181 |
key includesMatchCharacters ifTrue:[ |
|
182 |
matchedIcons add:(key -> image). |
|
183 |
] ifFalse:[ |
|
184 |
icons at:key put:image. |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
185 |
]. |
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 |
]. |
1859 | 189 |
|
1956
7bfc5c973c1b
classResources now understood by all classes
Claus Gittinger <cg@exept.de>
parents:
1877
diff
changeset
|
190 |
resources := self classResources. |
7bfc5c973c1b
classResources now understood by all classes
Claus Gittinger <cg@exept.de>
parents:
1877
diff
changeset
|
191 |
|
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
192 |
"all mappings from the resource file" |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
193 |
resources keysAndValuesDo:addMapping. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
194 |
|
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
195 |
"missing mappings from above defaults" |
3325 | 196 |
defaults pairWiseDo:[:key :baseName | |
1869
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
197 |
(resources includesKey:key) ifFalse:[ |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
198 |
addMapping value:key value:baseName |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
199 |
]. |
c6800c75b7d0
resource file handling cleaned up
Claus Gittinger <cg@exept.de>
parents:
1865
diff
changeset
|
200 |
]. |
1859 | 201 |
|
1876 | 202 |
Icons := icons. |
203 |
MatchedIcons := matchedIcons. |
|
204 |
||
1859 | 205 |
" |
206 |
self initializeIcons |
|
207 |
" |
|
208 |
! ! |
|
209 |
||
1865 | 210 |
!MIMETypeIconLibrary class methodsFor:'accessing'! |
1859 | 211 |
|
3325 | 212 |
addOnIconsFor:aFilename to:anIcon |
213 |
"given a fileName, return an appropriate icon, especially an overlaid icon if linked or locked" |
|
214 |
||
215 |
|addOnIcon addIcns isDirectory isReadable| |
|
216 |
||
217 |
aFilename isNil ifTrue:[^ anIcon ]. |
|
218 |
anIcon isNil ifTrue:[^ anIcon ]. |
|
219 |
||
220 |
addIcns := OrderedCollection new. |
|
221 |
aFilename isSymbolicLink ifTrue:[ |
|
222 |
addOnIcon := self iconForKeyMatching:#addOnLinked. |
|
223 |
addOnIcon notNil ifTrue:[ addIcns add:addOnIcon ]. |
|
224 |
]. |
|
225 |
isDirectory := aFilename isDirectory. |
|
226 |
isReadable := aFilename isReadable. |
|
227 |
((isReadable not and:[isDirectory not]) or:[(isDirectory) and:[(isReadable not) or:[aFilename isExecutable not]]]) ifTrue:[ |
|
228 |
addOnIcon := self iconForKeyMatching:#addOnLocked. |
|
229 |
addOnIcon notNil ifTrue:[ addIcns add:addOnIcon ]. |
|
230 |
]. |
|
231 |
addIcns notEmpty ifTrue:[ |
|
232 |
addIcns addFirst:anIcon. |
|
233 |
^ MultiImage images:addIcns. |
|
234 |
]. |
|
235 |
^ anIcon |
|
236 |
! |
|
237 |
||
1862 | 238 |
fileTypeIconKeyFor:aFilename |
3398 | 239 |
"return an icon-key for a fileName. |
240 |
This does not look at the file's suffix or into the file's contents, |
|
241 |
for more detailed key i.e. it only returns keys for the common broad categories" |
|
242 |
||
3159 | 243 |
|info| |
244 |
||
245 |
info := aFilename linkInfo. |
|
246 |
info isNil ifTrue:[ |
|
247 |
^ nil. |
|
248 |
]. |
|
249 |
info isSymbolicLink ifTrue:[ |
|
1862 | 250 |
^ #symbolicLink. |
251 |
]. |
|
3159 | 252 |
info isDirectory ifTrue:[ |
1862 | 253 |
^ #directory. |
254 |
]. |
|
3159 | 255 |
info isSpecialFile ifTrue:[ |
1862 | 256 |
^ #specialFile. |
257 |
]. |
|
258 |
aFilename isExecutableProgram ifTrue:[ |
|
259 |
^ #executableFile |
|
260 |
]. |
|
261 |
^ #file. |
|
3159 | 262 |
|
263 |
" |
|
264 |
self fileTypeIconKeyFor:'/foo/bar' asFilename |
|
265 |
self fileTypeIconKeyFor:'/tmp' asFilename |
|
266 |
self fileTypeIconKeyFor:'/dev/null' asFilename |
|
267 |
self fileTypeIconKeyFor:'Makefile' asFilename |
|
268 |
self fileTypeIconKeyFor:'/usr/bin/make' asFilename |
|
269 |
" |
|
1862 | 270 |
! |
271 |
||
3325 | 272 |
iconForFile:aFilename |
273 |
"given a fileName, return an appropriate icon" |
|
274 |
||
275 |
|icn| |
|
276 |
||
277 |
icn := self iconForKeyMatching:(self iconKeyForFile:aFilename). |
|
278 |
^ self addOnIconsFor:aFilename to:icn. |
|
279 |
! |
|
280 |
||
1860 | 281 |
iconForKey:mimeTypeOrKey |
1875 | 282 |
^ self icons at:mimeTypeOrKey ifAbsent:nil. |
1860 | 283 |
! |
1859 | 284 |
|
1860 | 285 |
iconForKeyMatching:mimeTypeOrKey |
1861 | 286 |
|icn assoc| |
287 |
||
288 |
icn := self iconForKey:mimeTypeOrKey. |
|
289 |
icn notNil ifTrue:[^icn]. |
|
2065 | 290 |
assoc := self iconForMatchKey:mimeTypeOrKey. |
1861 | 291 |
assoc notNil ifTrue:[^ assoc value]. |
292 |
^ nil. |
|
293 |
! |
|
294 |
||
3325 | 295 |
iconForLinkedDirectory |
296 |
"answer the icon used for linked directories" |
|
297 |
||
298 |
^ self directoryLink. |
|
299 |
||
300 |
"/ |dirIcon linkIcon| |
|
301 |
"/ |
|
302 |
"/ dirIcon := self iconForKeyMatching:#directory. |
|
303 |
"/ linkIcon := self iconForKeyMatching:#addOnLinked. |
|
304 |
"/ |
|
305 |
"/ linkIcon notNil ifTrue:[ |
|
306 |
"/ ^ MultiImage images:(Array with:dirIcon with:linkIcon). |
|
307 |
"/ ]. |
|
308 |
"/ ^ dirIcon |
|
309 |
||
310 |
" |
|
311 |
self iconForLinkedDirectory |
|
312 |
" |
|
313 |
! |
|
314 |
||
1861 | 315 |
iconForMatchKey:matchKey |
1875 | 316 |
^ self matchedIcons detect:[:assoc | assoc key match:matchKey] ifNone:nil. |
1862 | 317 |
! |
318 |
||
319 |
iconKeyForFile:aFilenameArg |
|
320 |
"given a fileName, return an appropriate icon" |
|
321 |
||
322 |
|aFilename fileType mimeType suffix| |
|
323 |
||
324 |
aFilename := aFilenameArg. |
|
325 |
||
326 |
aFilenameArg isFilename ifTrue:[ |
|
327 |
fileType := self fileTypeIconKeyFor:aFilename. |
|
328 |
] ifFalse:[ |
|
329 |
fileType := #file |
|
330 |
]. |
|
331 |
||
3325 | 332 |
(fileType ~~ #directory) ifTrue:[ |
1862 | 333 |
suffix := aFilename suffix. |
334 |
(suffix = 'bak' or:[suffix = 'sav']) ifTrue:[ |
|
335 |
aFilename := aFilename withoutSuffix. |
|
336 |
]. |
|
337 |
mimeType := MIMETypes mimeTypeForFilename:aFilename. |
|
338 |
]. |
|
339 |
||
3325 | 340 |
^ mimeType ? fileType. |
1862 | 341 |
! |
342 |
||
343 |
iconKeyForRemoteDirectory:aFilenameArg |
|
344 |
"given a fileName, return an appropriate icon" |
|
345 |
||
346 |
^ #directoryNetwork |
|
1875 | 347 |
! |
348 |
||
349 |
icons |
|
350 |
Icons isNil ifTrue:[ |
|
351 |
self initializeIcons |
|
352 |
]. |
|
353 |
^ Icons |
|
354 |
! |
|
355 |
||
356 |
matchedIcons |
|
357 |
MatchedIcons isNil ifTrue:[ |
|
358 |
self initializeIcons |
|
359 |
]. |
|
360 |
^ MatchedIcons |
|
1859 | 361 |
! ! |
362 |
||
3325 | 363 |
!MIMETypeIconLibrary class methodsFor:'image specs'! |
364 |
||
365 |
addOnLinked |
|
3397 | 366 |
<resource: #programImage> |
3325 | 367 |
|
3397 | 368 |
^ ToolbarIconLibrary fileTypeAddOnLinked |
3325 | 369 |
! |
370 |
||
371 |
addOnLocked |
|
3397 | 372 |
<resource: #programImage> |
3325 | 373 |
|
3397 | 374 |
^ ToolbarIconLibrary fileTypeAddOnLocked |
3325 | 375 |
! |
376 |
||
377 |
applicationBinary |
|
3397 | 378 |
<resource: #programImage> |
3325 | 379 |
|
3397 | 380 |
^ ToolbarIconLibrary fileTypeApplicationBinaryIcon |
3325 | 381 |
! |
382 |
||
383 |
applicationJavaArchive |
|
3397 | 384 |
<resource: #programImage> |
3325 | 385 |
|
3397 | 386 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
3325 | 387 |
! |
388 |
||
389 |
applicationLibrary |
|
3397 | 390 |
<resource: #programImage> |
3325 | 391 |
|
3397 | 392 |
^ ToolbarIconLibrary fileTypeApplicationLibraryIcon |
3325 | 393 |
! |
394 |
||
395 |
applicationPdf |
|
3397 | 396 |
<resource: #programImage> |
3325 | 397 |
|
3397 | 398 |
^ ToolbarIconLibrary fileTypeApplicationPdfIcon |
3325 | 399 |
! |
400 |
||
401 |
applicationPostscript |
|
3397 | 402 |
<resource: #programImage> |
3325 | 403 |
|
3397 | 404 |
^ ToolbarIconLibrary fileTypeApplicationPostscriptIcon |
3325 | 405 |
! |
406 |
||
407 |
applicationRtf |
|
3397 | 408 |
<resource: #programImage> |
3325 | 409 |
|
3397 | 410 |
^ ToolbarIconLibrary fileTypeApplicationRtfIcon |
3325 | 411 |
! |
412 |
||
413 |
applicationSharedLibrary |
|
3397 | 414 |
<resource: #programImage> |
3325 | 415 |
|
3397 | 416 |
^ ToolbarIconLibrary fileTypeApplicationSharedLibraryIcon |
3325 | 417 |
! |
418 |
||
419 |
audio |
|
3397 | 420 |
<resource: #programImage> |
3325 | 421 |
|
3397 | 422 |
^ ToolbarIconLibrary fileTypeAudioIcon |
3325 | 423 |
! |
424 |
||
425 |
binaryFile |
|
3397 | 426 |
<resource: #programImage> |
3325 | 427 |
|
3397 | 428 |
^ ToolbarIconLibrary fileTypeBinaryFileIcon |
3325 | 429 |
! |
430 |
||
431 |
compressedArchive |
|
3397 | 432 |
<resource: #programImage> |
3325 | 433 |
|
3397 | 434 |
^ ToolbarIconLibrary fileTypeCompressedArchiveIcon |
3325 | 435 |
! |
436 |
||
437 |
deviceFile |
|
3397 | 438 |
<resource: #programImage> |
3325 | 439 |
|
3397 | 440 |
^ ToolbarIconLibrary fileTypeDeviceFileIcon |
3325 | 441 |
! |
442 |
||
443 |
digitalNotepad |
|
3397 | 444 |
<resource: #programImage> |
3325 | 445 |
|
3397 | 446 |
^ ToolbarIconLibrary fileTypeDigitalNotepadIcon |
3325 | 447 |
! |
448 |
||
449 |
directory |
|
3397 | 450 |
<resource: #programImage> |
3325 | 451 |
|
3397 | 452 |
^ ToolbarIconLibrary fileTypeDirectoryIcon |
3325 | 453 |
! |
454 |
||
455 |
directoryGray |
|
3397 | 456 |
<resource: #programImage> |
3325 | 457 |
|
3397 | 458 |
^ ToolbarIconLibrary fileTypeDirectoryGrayIcon |
3325 | 459 |
! |
460 |
||
461 |
directoryLink |
|
3397 | 462 |
<resource: #programImage> |
3325 | 463 |
|
3397 | 464 |
^ ToolbarIconLibrary fileTypeDirectoryLinkIcon |
3325 | 465 |
! |
466 |
||
467 |
directoryLocked |
|
3397 | 468 |
<resource: #programImage> |
3325 | 469 |
|
3397 | 470 |
^ ToolbarIconLibrary fileTypeDirectoryLockedIcon |
3325 | 471 |
! |
472 |
||
473 |
directoryNetwork |
|
3397 | 474 |
<resource: #programImage> |
3325 | 475 |
|
3397 | 476 |
^ ToolbarIconLibrary fileTypeDirectoryNetworkIcon |
3325 | 477 |
! |
478 |
||
479 |
directoryOpen |
|
3397 | 480 |
<resource: #programImage> |
3325 | 481 |
|
3397 | 482 |
^ ToolbarIconLibrary fileTypeDirectoryOpenIcon |
3325 | 483 |
! |
484 |
||
485 |
directoryOpenGray |
|
3397 | 486 |
<resource: #programImage> |
3325 | 487 |
|
3397 | 488 |
^ ToolbarIconLibrary fileTypeDirectoryOpenGrayIcon |
3325 | 489 |
! |
490 |
||
491 |
executableFile |
|
3397 | 492 |
<resource: #programImage> |
3325 | 493 |
|
3397 | 494 |
^ ToolbarIconLibrary fileTypeExecutableFileIcon |
3325 | 495 |
! |
496 |
||
497 |
expeccoLogfile |
|
3397 | 498 |
<resource: #programImage> |
3325 | 499 |
|
3397 | 500 |
^ ToolbarIconLibrary fileTypeExpeccoLogfileIcon |
3325 | 501 |
! |
502 |
||
503 |
expeccoSuite |
|
3397 | 504 |
<resource: #programImage> |
3325 | 505 |
|
3397 | 506 |
^ ToolbarIconLibrary fileTypeExpeccoSuiteIcon |
3325 | 507 |
! |
508 |
||
509 |
file |
|
3397 | 510 |
<resource: #programImage> |
3325 | 511 |
|
3397 | 512 |
^ ToolbarIconLibrary fileTypeFileIcon |
3325 | 513 |
! |
514 |
||
515 |
fileArchive |
|
3397 | 516 |
<resource: #programImage> |
3325 | 517 |
|
3397 | 518 |
^ ToolbarIconLibrary fileTypeFileArchiveIcon |
3325 | 519 |
! |
520 |
||
521 |
fileLink |
|
3397 | 522 |
<resource: #programImage> |
3325 | 523 |
|
3397 | 524 |
^ ToolbarIconLibrary fileTypeFileLinkIcon |
3325 | 525 |
! |
526 |
||
527 |
fileLocked |
|
3397 | 528 |
<resource: #programImage> |
3325 | 529 |
|
3397 | 530 |
^ ToolbarIconLibrary fileTypeFileLockedIcon |
3325 | 531 |
! |
532 |
||
533 |
imageFile |
|
3397 | 534 |
<resource: #programImage> |
3325 | 535 |
|
3397 | 536 |
^ ToolbarIconLibrary fileTypeImageFileIcon |
3325 | 537 |
! |
538 |
||
539 |
javaSource |
|
3397 | 540 |
<resource: #programImage> |
3325 | 541 |
|
3397 | 542 |
^ ToolbarIconLibrary fileTypeJavaSourceIcon |
3325 | 543 |
! |
544 |
||
545 |
smalltalkSource |
|
3397 | 546 |
<resource: #programImage> |
3325 | 547 |
|
3397 | 548 |
^ ToolbarIconLibrary fileTypeSmalltalkSourceIcon |
3325 | 549 |
! |
550 |
||
551 |
specialFile |
|
3397 | 552 |
<resource: #programImage> |
3325 | 553 |
|
3397 | 554 |
^ ToolbarIconLibrary fileTypeSpecialFileIcon |
3325 | 555 |
! |
556 |
||
557 |
text |
|
3397 | 558 |
<resource: #programImage> |
3325 | 559 |
|
3397 | 560 |
^ ToolbarIconLibrary fileTypeTextIcon |
3325 | 561 |
! |
562 |
||
563 |
textHtml |
|
3397 | 564 |
<resource: #programImage> |
3325 | 565 |
|
3397 | 566 |
^ ToolbarIconLibrary fileTypeTextHtmlIcon |
3325 | 567 |
! |
568 |
||
569 |
video |
|
3397 | 570 |
<resource: #programImage> |
3325 | 571 |
|
3397 | 572 |
^ ToolbarIconLibrary fileTypeVideoIcon |
3325 | 573 |
! ! |
574 |
||
1865 | 575 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
1859 | 576 |
|
577 |
version |
|
3398 | 578 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.22 2014-11-23 13:42:46 cg Exp $' |
2847 | 579 |
! |
580 |
||
581 |
version_CVS |
|
3398 | 582 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.22 2014-11-23 13:42:46 cg Exp $' |
1859 | 583 |
! ! |
584 |
||
3159 | 585 |
|
1865 | 586 |
MIMETypeIconLibrary initialize! |