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