author | Claus Gittinger <cg@exept.de> |
Thu, 25 Oct 2018 11:07:46 +0200 | |
changeset 4201 | bdf4332ad870 |
parent 4066 | 4ccc64c057fb |
child 4246 | 9c1043a7117a |
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. |
4201 | 308 |
|
309 |
" |
|
310 |
self iconForKey:#file |
|
311 |
self iconForKey:#directory |
|
312 |
self iconForKey:#fileLink |
|
313 |
self iconForKey:#directoryLink |
|
314 |
" |
|
315 |
||
316 |
"Modified (comment): / 25-10-2018 / 11:07:14 / Claus Gittinger" |
|
1860 | 317 |
! |
1859 | 318 |
|
1860 | 319 |
iconForKeyMatching:mimeTypeOrKey |
1861 | 320 |
|icn assoc| |
321 |
||
322 |
icn := self iconForKey:mimeTypeOrKey. |
|
323 |
icn notNil ifTrue:[^icn]. |
|
2065 | 324 |
assoc := self iconForMatchKey:mimeTypeOrKey. |
1861 | 325 |
assoc notNil ifTrue:[^ assoc value]. |
326 |
^ nil. |
|
327 |
! |
|
328 |
||
3325 | 329 |
iconForLinkedDirectory |
330 |
"answer the icon used for linked directories" |
|
331 |
||
332 |
^ self directoryLink. |
|
333 |
||
334 |
"/ |dirIcon linkIcon| |
|
335 |
"/ |
|
336 |
"/ dirIcon := self iconForKeyMatching:#directory. |
|
337 |
"/ linkIcon := self iconForKeyMatching:#addOnLinked. |
|
338 |
"/ |
|
339 |
"/ linkIcon notNil ifTrue:[ |
|
340 |
"/ ^ MultiImage images:(Array with:dirIcon with:linkIcon). |
|
341 |
"/ ]. |
|
342 |
"/ ^ dirIcon |
|
343 |
||
344 |
" |
|
345 |
self iconForLinkedDirectory |
|
346 |
" |
|
347 |
! |
|
348 |
||
1861 | 349 |
iconForMatchKey:matchKey |
1875 | 350 |
^ self matchedIcons detect:[:assoc | assoc key match:matchKey] ifNone:nil. |
1862 | 351 |
! |
352 |
||
353 |
iconKeyForFile:aFilenameArg |
|
354 |
"given a fileName, return an appropriate icon" |
|
355 |
||
3403 | 356 |
|filename fileType mimeType suffix| |
1862 | 357 |
|
3403 | 358 |
filename := aFilenameArg asFilename. |
359 |
fileType := self fileTypeIconKeyFor:filename. |
|
1862 | 360 |
|
3325 | 361 |
(fileType ~~ #directory) ifTrue:[ |
3403 | 362 |
suffix := filename suffix. |
1862 | 363 |
(suffix = 'bak' or:[suffix = 'sav']) ifTrue:[ |
3403 | 364 |
filename := filename withoutSuffix. |
1862 | 365 |
]. |
3869 | 366 |
mimeType := MIMETypes mimeTypeForFilename:filename asNonBackupFilename. |
1862 | 367 |
]. |
368 |
||
3325 | 369 |
^ mimeType ? fileType. |
3869 | 370 |
|
371 |
"Modified: / 09-02-2017 / 14:03:16 / stefan" |
|
1862 | 372 |
! |
373 |
||
374 |
iconKeyForRemoteDirectory:aFilenameArg |
|
375 |
"given a fileName, return an appropriate icon" |
|
376 |
||
377 |
^ #directoryNetwork |
|
1875 | 378 |
! |
379 |
||
380 |
icons |
|
381 |
Icons isNil ifTrue:[ |
|
382 |
self initializeIcons |
|
383 |
]. |
|
384 |
^ Icons |
|
385 |
! |
|
386 |
||
387 |
matchedIcons |
|
388 |
MatchedIcons isNil ifTrue:[ |
|
389 |
self initializeIcons |
|
390 |
]. |
|
391 |
^ MatchedIcons |
|
1859 | 392 |
! ! |
393 |
||
3325 | 394 |
!MIMETypeIconLibrary class methodsFor:'image specs'! |
395 |
||
396 |
addOnLinked |
|
3397 | 397 |
<resource: #programImage> |
3325 | 398 |
|
3397 | 399 |
^ ToolbarIconLibrary fileTypeAddOnLinked |
3325 | 400 |
! |
401 |
||
402 |
addOnLocked |
|
3397 | 403 |
<resource: #programImage> |
3325 | 404 |
|
3397 | 405 |
^ ToolbarIconLibrary fileTypeAddOnLocked |
3325 | 406 |
! |
407 |
||
408 |
applicationBinary |
|
3397 | 409 |
<resource: #programImage> |
3325 | 410 |
|
3397 | 411 |
^ ToolbarIconLibrary fileTypeApplicationBinaryIcon |
3325 | 412 |
! |
413 |
||
414 |
applicationJavaArchive |
|
3397 | 415 |
<resource: #programImage> |
3325 | 416 |
|
3397 | 417 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
3325 | 418 |
! |
419 |
||
420 |
applicationLibrary |
|
3397 | 421 |
<resource: #programImage> |
3325 | 422 |
|
3397 | 423 |
^ ToolbarIconLibrary fileTypeApplicationLibraryIcon |
3325 | 424 |
! |
425 |
||
426 |
applicationPdf |
|
3397 | 427 |
<resource: #programImage> |
3325 | 428 |
|
3397 | 429 |
^ ToolbarIconLibrary fileTypeApplicationPdfIcon |
3325 | 430 |
! |
431 |
||
432 |
applicationPostscript |
|
3397 | 433 |
<resource: #programImage> |
3325 | 434 |
|
3397 | 435 |
^ ToolbarIconLibrary fileTypeApplicationPostscriptIcon |
3325 | 436 |
! |
437 |
||
438 |
applicationRtf |
|
3397 | 439 |
<resource: #programImage> |
3325 | 440 |
|
3397 | 441 |
^ ToolbarIconLibrary fileTypeApplicationRtfIcon |
3325 | 442 |
! |
443 |
||
444 |
applicationSharedLibrary |
|
3397 | 445 |
<resource: #programImage> |
3325 | 446 |
|
3397 | 447 |
^ ToolbarIconLibrary fileTypeApplicationSharedLibraryIcon |
3325 | 448 |
! |
449 |
||
450 |
audio |
|
3397 | 451 |
<resource: #programImage> |
3325 | 452 |
|
3397 | 453 |
^ ToolbarIconLibrary fileTypeAudioIcon |
3325 | 454 |
! |
455 |
||
456 |
binaryFile |
|
3397 | 457 |
<resource: #programImage> |
3325 | 458 |
|
3397 | 459 |
^ ToolbarIconLibrary fileTypeBinaryFileIcon |
3325 | 460 |
! |
461 |
||
3399 | 462 |
cPlusPlusSource |
463 |
<resource: #programImage> |
|
464 |
||
465 |
^ ToolbarIconLibrary fileTypeCPlusPlusSourceIcon |
|
466 |
! |
|
467 |
||
468 |
cSource |
|
469 |
<resource: #programImage> |
|
470 |
||
471 |
^ ToolbarIconLibrary fileTypeCSourceIcon |
|
472 |
! |
|
473 |
||
3325 | 474 |
compressedArchive |
3397 | 475 |
<resource: #programImage> |
3325 | 476 |
|
3397 | 477 |
^ ToolbarIconLibrary fileTypeCompressedArchiveIcon |
3325 | 478 |
! |
479 |
||
480 |
deviceFile |
|
3397 | 481 |
<resource: #programImage> |
3325 | 482 |
|
3397 | 483 |
^ ToolbarIconLibrary fileTypeDeviceFileIcon |
3325 | 484 |
! |
485 |
||
486 |
digitalNotepad |
|
3397 | 487 |
<resource: #programImage> |
3325 | 488 |
|
3397 | 489 |
^ ToolbarIconLibrary fileTypeDigitalNotepadIcon |
3325 | 490 |
! |
491 |
||
492 |
directory |
|
3397 | 493 |
<resource: #programImage> |
3325 | 494 |
|
3397 | 495 |
^ ToolbarIconLibrary fileTypeDirectoryIcon |
3325 | 496 |
! |
497 |
||
498 |
directoryGray |
|
3397 | 499 |
<resource: #programImage> |
3325 | 500 |
|
3397 | 501 |
^ ToolbarIconLibrary fileTypeDirectoryGrayIcon |
3325 | 502 |
! |
503 |
||
504 |
directoryLink |
|
3397 | 505 |
<resource: #programImage> |
3325 | 506 |
|
3397 | 507 |
^ ToolbarIconLibrary fileTypeDirectoryLinkIcon |
3325 | 508 |
! |
509 |
||
510 |
directoryLocked |
|
3397 | 511 |
<resource: #programImage> |
3325 | 512 |
|
3397 | 513 |
^ ToolbarIconLibrary fileTypeDirectoryLockedIcon |
3325 | 514 |
! |
515 |
||
516 |
directoryNetwork |
|
3397 | 517 |
<resource: #programImage> |
3325 | 518 |
|
3397 | 519 |
^ ToolbarIconLibrary fileTypeDirectoryNetworkIcon |
3325 | 520 |
! |
521 |
||
522 |
directoryOpen |
|
3397 | 523 |
<resource: #programImage> |
3325 | 524 |
|
3397 | 525 |
^ ToolbarIconLibrary fileTypeDirectoryOpenIcon |
3325 | 526 |
! |
527 |
||
528 |
directoryOpenGray |
|
3397 | 529 |
<resource: #programImage> |
3325 | 530 |
|
3397 | 531 |
^ ToolbarIconLibrary fileTypeDirectoryOpenGrayIcon |
3325 | 532 |
! |
533 |
||
534 |
executableFile |
|
3397 | 535 |
<resource: #programImage> |
3325 | 536 |
|
3397 | 537 |
^ ToolbarIconLibrary fileTypeExecutableFileIcon |
3325 | 538 |
! |
539 |
||
540 |
expeccoLogfile |
|
3397 | 541 |
<resource: #programImage> |
3325 | 542 |
|
3397 | 543 |
^ ToolbarIconLibrary fileTypeExpeccoLogfileIcon |
3325 | 544 |
! |
545 |
||
546 |
expeccoSuite |
|
3397 | 547 |
<resource: #programImage> |
3325 | 548 |
|
3397 | 549 |
^ ToolbarIconLibrary fileTypeExpeccoSuiteIcon |
3325 | 550 |
! |
551 |
||
552 |
file |
|
3397 | 553 |
<resource: #programImage> |
3325 | 554 |
|
3397 | 555 |
^ ToolbarIconLibrary fileTypeFileIcon |
3325 | 556 |
! |
557 |
||
558 |
fileArchive |
|
3397 | 559 |
<resource: #programImage> |
3325 | 560 |
|
3397 | 561 |
^ ToolbarIconLibrary fileTypeFileArchiveIcon |
3325 | 562 |
! |
563 |
||
564 |
fileLink |
|
3397 | 565 |
<resource: #programImage> |
3325 | 566 |
|
3397 | 567 |
^ ToolbarIconLibrary fileTypeFileLinkIcon |
3325 | 568 |
! |
569 |
||
570 |
fileLocked |
|
3397 | 571 |
<resource: #programImage> |
3325 | 572 |
|
3397 | 573 |
^ ToolbarIconLibrary fileTypeFileLockedIcon |
3325 | 574 |
! |
575 |
||
3399 | 576 |
headerFile |
577 |
<resource: #programImage> |
|
578 |
||
579 |
^ ToolbarIconLibrary fileTypeHeaderFileIcon |
|
580 |
! |
|
581 |
||
3403 | 582 |
homeDirectory |
583 |
<resource: #programImage> |
|
584 |
||
585 |
^ ToolbarIconLibrary fileTypeHomeIcon |
|
586 |
! |
|
587 |
||
3325 | 588 |
imageFile |
3397 | 589 |
<resource: #programImage> |
3325 | 590 |
|
3397 | 591 |
^ ToolbarIconLibrary fileTypeImageFileIcon |
3325 | 592 |
! |
593 |
||
3401 | 594 |
javaArchive |
595 |
<resource: #programImage> |
|
596 |
||
597 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
|
598 |
! |
|
599 |
||
3423 | 600 |
javaScriptSource |
601 |
<resource: #programImage> |
|
602 |
||
603 |
^ ToolbarIconLibrary fileTypeJavaScriptSourceIcon |
|
604 |
! |
|
605 |
||
3325 | 606 |
javaSource |
3397 | 607 |
<resource: #programImage> |
3325 | 608 |
|
3397 | 609 |
^ ToolbarIconLibrary fileTypeJavaSourceIcon |
3325 | 610 |
! |
611 |
||
3402 | 612 |
lispSource |
613 |
<resource: #programImage> |
|
614 |
||
615 |
^ ToolbarIconLibrary fileTypeLispSourceIcon |
|
616 |
! |
|
617 |
||
3325 | 618 |
smalltalkSource |
3397 | 619 |
<resource: #programImage> |
3325 | 620 |
|
3397 | 621 |
^ ToolbarIconLibrary fileTypeSmalltalkSourceIcon |
3325 | 622 |
! |
623 |
||
624 |
specialFile |
|
3397 | 625 |
<resource: #programImage> |
3325 | 626 |
|
3397 | 627 |
^ ToolbarIconLibrary fileTypeSpecialFileIcon |
3325 | 628 |
! |
629 |
||
630 |
text |
|
3397 | 631 |
<resource: #programImage> |
3325 | 632 |
|
3397 | 633 |
^ ToolbarIconLibrary fileTypeTextIcon |
3325 | 634 |
! |
635 |
||
636 |
textHtml |
|
3397 | 637 |
<resource: #programImage> |
3325 | 638 |
|
3397 | 639 |
^ ToolbarIconLibrary fileTypeTextHtmlIcon |
3325 | 640 |
! |
641 |
||
642 |
video |
|
3397 | 643 |
<resource: #programImage> |
3325 | 644 |
|
3397 | 645 |
^ ToolbarIconLibrary fileTypeVideoIcon |
3325 | 646 |
! ! |
647 |
||
1865 | 648 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
1859 | 649 |
|
650 |
version |
|
3869 | 651 |
^ '$Header$' |
2847 | 652 |
! |
653 |
||
654 |
version_CVS |
|
3869 | 655 |
^ '$Header$' |
1859 | 656 |
! ! |
657 |
||
3159 | 658 |
|
1865 | 659 |
MIMETypeIconLibrary initialize! |