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