author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 30 Sep 2017 22:41:09 +0100 | |
branch | jv |
changeset 4020 | d801dbd5cf3b |
parent 3439 | f1b63f77f302 |
child 3869 | 5d4df7d04f64 |
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 |
||
336 |
fileType := self fileTypeIconKeyFor:filename. |
|
1862 | 337 |
|
3325 | 338 |
(fileType ~~ #directory) ifTrue:[ |
3403 | 339 |
suffix := filename suffix. |
1862 | 340 |
(suffix = 'bak' or:[suffix = 'sav']) ifTrue:[ |
3403 | 341 |
filename := filename withoutSuffix. |
1862 | 342 |
]. |
3403 | 343 |
mimeType := MIMETypes mimeTypeForFilename:filename. |
1862 | 344 |
]. |
345 |
||
3325 | 346 |
^ mimeType ? fileType. |
1862 | 347 |
! |
348 |
||
349 |
iconKeyForRemoteDirectory:aFilenameArg |
|
350 |
"given a fileName, return an appropriate icon" |
|
351 |
||
352 |
^ #directoryNetwork |
|
1875 | 353 |
! |
354 |
||
355 |
icons |
|
356 |
Icons isNil ifTrue:[ |
|
357 |
self initializeIcons |
|
358 |
]. |
|
359 |
^ Icons |
|
360 |
! |
|
361 |
||
362 |
matchedIcons |
|
363 |
MatchedIcons isNil ifTrue:[ |
|
364 |
self initializeIcons |
|
365 |
]. |
|
366 |
^ MatchedIcons |
|
1859 | 367 |
! ! |
368 |
||
3325 | 369 |
!MIMETypeIconLibrary class methodsFor:'image specs'! |
370 |
||
371 |
addOnLinked |
|
3397 | 372 |
<resource: #programImage> |
3325 | 373 |
|
3397 | 374 |
^ ToolbarIconLibrary fileTypeAddOnLinked |
3325 | 375 |
! |
376 |
||
377 |
addOnLocked |
|
3397 | 378 |
<resource: #programImage> |
3325 | 379 |
|
3397 | 380 |
^ ToolbarIconLibrary fileTypeAddOnLocked |
3325 | 381 |
! |
382 |
||
383 |
applicationBinary |
|
3397 | 384 |
<resource: #programImage> |
3325 | 385 |
|
3397 | 386 |
^ ToolbarIconLibrary fileTypeApplicationBinaryIcon |
3325 | 387 |
! |
388 |
||
389 |
applicationJavaArchive |
|
3397 | 390 |
<resource: #programImage> |
3325 | 391 |
|
3397 | 392 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
3325 | 393 |
! |
394 |
||
395 |
applicationLibrary |
|
3397 | 396 |
<resource: #programImage> |
3325 | 397 |
|
3397 | 398 |
^ ToolbarIconLibrary fileTypeApplicationLibraryIcon |
3325 | 399 |
! |
400 |
||
401 |
applicationPdf |
|
3397 | 402 |
<resource: #programImage> |
3325 | 403 |
|
3397 | 404 |
^ ToolbarIconLibrary fileTypeApplicationPdfIcon |
3325 | 405 |
! |
406 |
||
407 |
applicationPostscript |
|
3397 | 408 |
<resource: #programImage> |
3325 | 409 |
|
3397 | 410 |
^ ToolbarIconLibrary fileTypeApplicationPostscriptIcon |
3325 | 411 |
! |
412 |
||
413 |
applicationRtf |
|
3397 | 414 |
<resource: #programImage> |
3325 | 415 |
|
3397 | 416 |
^ ToolbarIconLibrary fileTypeApplicationRtfIcon |
3325 | 417 |
! |
418 |
||
419 |
applicationSharedLibrary |
|
3397 | 420 |
<resource: #programImage> |
3325 | 421 |
|
3397 | 422 |
^ ToolbarIconLibrary fileTypeApplicationSharedLibraryIcon |
3325 | 423 |
! |
424 |
||
425 |
audio |
|
3397 | 426 |
<resource: #programImage> |
3325 | 427 |
|
3397 | 428 |
^ ToolbarIconLibrary fileTypeAudioIcon |
3325 | 429 |
! |
430 |
||
431 |
binaryFile |
|
3397 | 432 |
<resource: #programImage> |
3325 | 433 |
|
3397 | 434 |
^ ToolbarIconLibrary fileTypeBinaryFileIcon |
3325 | 435 |
! |
436 |
||
3399 | 437 |
cPlusPlusSource |
438 |
<resource: #programImage> |
|
439 |
||
440 |
^ ToolbarIconLibrary fileTypeCPlusPlusSourceIcon |
|
441 |
! |
|
442 |
||
443 |
cSource |
|
444 |
<resource: #programImage> |
|
445 |
||
446 |
^ ToolbarIconLibrary fileTypeCSourceIcon |
|
447 |
! |
|
448 |
||
3325 | 449 |
compressedArchive |
3397 | 450 |
<resource: #programImage> |
3325 | 451 |
|
3397 | 452 |
^ ToolbarIconLibrary fileTypeCompressedArchiveIcon |
3325 | 453 |
! |
454 |
||
455 |
deviceFile |
|
3397 | 456 |
<resource: #programImage> |
3325 | 457 |
|
3397 | 458 |
^ ToolbarIconLibrary fileTypeDeviceFileIcon |
3325 | 459 |
! |
460 |
||
461 |
digitalNotepad |
|
3397 | 462 |
<resource: #programImage> |
3325 | 463 |
|
3397 | 464 |
^ ToolbarIconLibrary fileTypeDigitalNotepadIcon |
3325 | 465 |
! |
466 |
||
467 |
directory |
|
3397 | 468 |
<resource: #programImage> |
3325 | 469 |
|
3397 | 470 |
^ ToolbarIconLibrary fileTypeDirectoryIcon |
3325 | 471 |
! |
472 |
||
473 |
directoryGray |
|
3397 | 474 |
<resource: #programImage> |
3325 | 475 |
|
3397 | 476 |
^ ToolbarIconLibrary fileTypeDirectoryGrayIcon |
3325 | 477 |
! |
478 |
||
479 |
directoryLink |
|
3397 | 480 |
<resource: #programImage> |
3325 | 481 |
|
3397 | 482 |
^ ToolbarIconLibrary fileTypeDirectoryLinkIcon |
3325 | 483 |
! |
484 |
||
485 |
directoryLocked |
|
3397 | 486 |
<resource: #programImage> |
3325 | 487 |
|
3397 | 488 |
^ ToolbarIconLibrary fileTypeDirectoryLockedIcon |
3325 | 489 |
! |
490 |
||
491 |
directoryNetwork |
|
3397 | 492 |
<resource: #programImage> |
3325 | 493 |
|
3397 | 494 |
^ ToolbarIconLibrary fileTypeDirectoryNetworkIcon |
3325 | 495 |
! |
496 |
||
497 |
directoryOpen |
|
3397 | 498 |
<resource: #programImage> |
3325 | 499 |
|
3397 | 500 |
^ ToolbarIconLibrary fileTypeDirectoryOpenIcon |
3325 | 501 |
! |
502 |
||
503 |
directoryOpenGray |
|
3397 | 504 |
<resource: #programImage> |
3325 | 505 |
|
3397 | 506 |
^ ToolbarIconLibrary fileTypeDirectoryOpenGrayIcon |
3325 | 507 |
! |
508 |
||
509 |
executableFile |
|
3397 | 510 |
<resource: #programImage> |
3325 | 511 |
|
3397 | 512 |
^ ToolbarIconLibrary fileTypeExecutableFileIcon |
3325 | 513 |
! |
514 |
||
515 |
expeccoLogfile |
|
3397 | 516 |
<resource: #programImage> |
3325 | 517 |
|
3397 | 518 |
^ ToolbarIconLibrary fileTypeExpeccoLogfileIcon |
3325 | 519 |
! |
520 |
||
521 |
expeccoSuite |
|
3397 | 522 |
<resource: #programImage> |
3325 | 523 |
|
3397 | 524 |
^ ToolbarIconLibrary fileTypeExpeccoSuiteIcon |
3325 | 525 |
! |
526 |
||
527 |
file |
|
3397 | 528 |
<resource: #programImage> |
3325 | 529 |
|
3397 | 530 |
^ ToolbarIconLibrary fileTypeFileIcon |
3325 | 531 |
! |
532 |
||
533 |
fileArchive |
|
3397 | 534 |
<resource: #programImage> |
3325 | 535 |
|
3397 | 536 |
^ ToolbarIconLibrary fileTypeFileArchiveIcon |
3325 | 537 |
! |
538 |
||
539 |
fileLink |
|
3397 | 540 |
<resource: #programImage> |
3325 | 541 |
|
3397 | 542 |
^ ToolbarIconLibrary fileTypeFileLinkIcon |
3325 | 543 |
! |
544 |
||
545 |
fileLocked |
|
3397 | 546 |
<resource: #programImage> |
3325 | 547 |
|
3397 | 548 |
^ ToolbarIconLibrary fileTypeFileLockedIcon |
3325 | 549 |
! |
550 |
||
3399 | 551 |
headerFile |
552 |
<resource: #programImage> |
|
553 |
||
554 |
^ ToolbarIconLibrary fileTypeHeaderFileIcon |
|
555 |
! |
|
556 |
||
3403 | 557 |
homeDirectory |
558 |
<resource: #programImage> |
|
559 |
||
560 |
^ ToolbarIconLibrary fileTypeHomeIcon |
|
561 |
! |
|
562 |
||
3325 | 563 |
imageFile |
3397 | 564 |
<resource: #programImage> |
3325 | 565 |
|
3397 | 566 |
^ ToolbarIconLibrary fileTypeImageFileIcon |
3325 | 567 |
! |
568 |
||
3401 | 569 |
javaArchive |
570 |
<resource: #programImage> |
|
571 |
||
572 |
^ ToolbarIconLibrary fileTypeApplicationJavaArchiveIcon |
|
573 |
! |
|
574 |
||
3423 | 575 |
javaScriptSource |
576 |
<resource: #programImage> |
|
577 |
||
578 |
^ ToolbarIconLibrary fileTypeJavaScriptSourceIcon |
|
579 |
! |
|
580 |
||
3325 | 581 |
javaSource |
3397 | 582 |
<resource: #programImage> |
3325 | 583 |
|
3397 | 584 |
^ ToolbarIconLibrary fileTypeJavaSourceIcon |
3325 | 585 |
! |
586 |
||
3402 | 587 |
lispSource |
588 |
<resource: #programImage> |
|
589 |
||
590 |
^ ToolbarIconLibrary fileTypeLispSourceIcon |
|
591 |
! |
|
592 |
||
3325 | 593 |
smalltalkSource |
3397 | 594 |
<resource: #programImage> |
3325 | 595 |
|
3397 | 596 |
^ ToolbarIconLibrary fileTypeSmalltalkSourceIcon |
3325 | 597 |
! |
598 |
||
599 |
specialFile |
|
3397 | 600 |
<resource: #programImage> |
3325 | 601 |
|
3397 | 602 |
^ ToolbarIconLibrary fileTypeSpecialFileIcon |
3325 | 603 |
! |
604 |
||
605 |
text |
|
3397 | 606 |
<resource: #programImage> |
3325 | 607 |
|
3397 | 608 |
^ ToolbarIconLibrary fileTypeTextIcon |
3325 | 609 |
! |
610 |
||
611 |
textHtml |
|
3397 | 612 |
<resource: #programImage> |
3325 | 613 |
|
3397 | 614 |
^ ToolbarIconLibrary fileTypeTextHtmlIcon |
3325 | 615 |
! |
616 |
||
617 |
video |
|
3397 | 618 |
<resource: #programImage> |
3325 | 619 |
|
3397 | 620 |
^ ToolbarIconLibrary fileTypeVideoIcon |
3325 | 621 |
! ! |
622 |
||
1865 | 623 |
!MIMETypeIconLibrary class methodsFor:'documentation'! |
1859 | 624 |
|
625 |
version |
|
3439 | 626 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.30 2015-01-26 10:11:25 stefan Exp $' |
2847 | 627 |
! |
628 |
||
629 |
version_CVS |
|
3439 | 630 |
^ '$Header: /cvs/stx/stx/libview2/MIMETypeIconLibrary.st,v 1.30 2015-01-26 10:11:25 stefan Exp $' |
1859 | 631 |
! ! |
632 |
||
3159 | 633 |
|
1865 | 634 |
MIMETypeIconLibrary initialize! |