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