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