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