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