author | Claus Gittinger <cg@exept.de> |
Mon, 09 Feb 2004 21:16:18 +0100 | |
changeset 2852 | 7514af362940 |
parent 2851 | 7e4364e9c3bb |
child 2860 | 69d838dd825c |
permissions | -rw-r--r-- |
0 | 1 |
" |
5 | 2 |
COPYRIGHT (c) 1991 by Claus Gittinger |
59 | 3 |
All Rights Reserved |
0 | 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 |
" |
|
12 |
||
77 | 13 |
|
14 |
||
2275 | 15 |
"{ Package: 'stx:libwidg' }" |
16 |
||
77 | 17 |
DialogBox subclass:#FontPanel |
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
18 |
instanceVariableNames:'previewField familyList faceList sizeList revertButton |
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
19 |
currentFamily currentFace currentStyle currentFaceAndStyle |
2843 | 20 |
currentSize currentEncoding selectedFont nameLabel encodingFilter |
21 |
encodingLabel filter encoding' |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
22 |
classVariableNames:'' |
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
23 |
poolDictionaries:'' |
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
24 |
category:'Views-DialogBoxes' |
0 | 25 |
! |
26 |
||
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
27 |
!FontPanel class methodsFor:'documentation'! |
77 | 28 |
|
197 | 29 |
copyright |
30 |
" |
|
31 |
COPYRIGHT (c) 1991 by Claus Gittinger |
|
32 |
All Rights Reserved |
|
33 |
||
34 |
This software is furnished under a license and may be used |
|
35 |
only in accordance with the terms of that license and with the |
|
36 |
inclusion of the above copyright notice. This software may not |
|
37 |
be provided or otherwise made available to, or used by, any |
|
38 |
other person. No title to or ownership of the software is |
|
39 |
hereby transferred. |
|
40 |
" |
|
41 |
||
42 |
||
77 | 43 |
! |
44 |
||
45 |
documentation |
|
46 |
" |
|
47 |
this class implements a font chooser. |
|
48 |
||
2826 | 49 |
Notice: |
50 |
this is a very old dialog; |
|
51 |
it was written before the UI-framework was available and is completely |
|
52 |
setup manually (initialize method). |
|
53 |
Therefore, it desperately asks to be rewritten using the UIPainter... |
|
54 |
||
595 | 55 |
[author:] |
56 |
Claus Gittinger |
|
57 |
||
58 |
[see also:] |
|
59 |
Font FontDescription |
|
60 |
View Dialog |
|
61 |
" |
|
62 |
! |
|
63 |
||
64 |
examples |
|
65 |
" |
|
66 |
very simple: |
|
67 |
[exBegin] |
|
68 |
|font| |
|
69 |
||
70 |
font := FontPanel fontFromUser. |
|
655 | 71 |
Transcript showCR:font |
595 | 72 |
[exEnd] |
73 |
||
74 |
||
75 |
with initial font: |
|
76 |
[exBegin] |
|
77 |
|font| |
|
78 |
||
79 |
font := FontPanel |
|
80 |
fontFromUserInitial:(Font |
|
81 |
family:'courier' |
|
82 |
size:12). |
|
655 | 83 |
Transcript showCR:font |
595 | 84 |
[exEnd] |
85 |
||
86 |
||
87 |
with initial font & title: |
|
88 |
[exBegin] |
|
89 |
|font| |
|
90 |
||
91 |
font := FontPanel |
|
92 |
fontFromUserInitial:(Font |
|
93 |
family:'courier' |
|
94 |
size:12) |
|
95 |
title:'select a fooBar font'. |
|
655 | 96 |
Transcript showCR:font |
595 | 97 |
[exEnd] |
98 |
||
99 |
||
100 |
full setup; setting a filter to only present iso fonts |
|
101 |
and callBack action: |
|
102 |
[exBegin] |
|
0 | 103 |
|
585 | 104 |
|panel| |
77 | 105 |
|
585 | 106 |
panel := FontPanel new. |
595 | 107 |
panel label:'hi there - which iso font ?'. |
108 |
panel filter:[:fd | fd encoding notNil |
|
109 |
and:[fd encoding startsWith:'iso']]. |
|
110 |
panel action:[:family :face :style :size | |
|
655 | 111 |
Transcript showCR:'family:' , family. |
112 |
Transcript showCR:'face:' , face. |
|
113 |
Transcript showCR:'style:' , style. |
|
114 |
Transcript showCR:'size:' , size printString. |
|
595 | 115 |
]. |
116 |
panel open |
|
117 |
[exEnd] |
|
77 | 118 |
" |
119 |
! ! |
|
0 | 120 |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
121 |
!FontPanel class methodsFor:'defaults'! |
0 | 122 |
|
197 | 123 |
defaultExtent |
571 | 124 |
"return the default extent of my instances. |
125 |
The value returned here is usually ignored, and |
|
126 |
the value from preferredExtent taken instead." |
|
127 |
||
2842 | 128 |
^ (Screen current pixelPerMillimeter * (150 @ 100)) rounded |
571 | 129 |
|
130 |
"Modified: 22.4.1996 / 23:36:19 / cg" |
|
197 | 131 |
! |
132 |
||
382 | 133 |
defaultJISSampleString |
595 | 134 |
"return the sample jis preview text" |
135 |
||
382 | 136 |
^ ('The quick brown fox |
137 |
jumps over the lazy dog |
|
138 |
1234567890 |
|
139 |
!!@#$%^&*(){}[]:"~;,./<>? |
|
390
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
140 |
|
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
141 |
\e$B$$$i$C$7$c$$$^$;\e(J \e$B@$4V\e(J |
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
142 |
' withEscapes decodeFrom:#jis7) |
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
143 |
|
595 | 144 |
"Modified: 29.4.1996 / 09:46:11 / cg" |
382 | 145 |
! |
146 |
||
2847 | 147 |
defaultLatin1SampleString |
148 |
"return the sample latin1 preview text" |
|
149 |
||
150 |
|t| |
|
151 |
||
152 |
Smalltalk language == #de ifTrue:[ |
|
153 |
t := 'Franz jagt im komplett verwahrlosten Taxi |
|
154 |
quer durch Bayern'. |
|
155 |
] ifFalse:[ |
|
156 |
t := 'The quick brown fox |
|
157 |
jumps over the lazy dog'. |
|
158 |
]. |
|
159 |
t := t , ' |
|
160 |
1234567890 |
|
161 |
!!@#$%^&*(){}[]:"~;,./<>? |
|
162 |
' , |
|
163 |
(Character value:16rE4) asString , "/ umlaut a |
|
164 |
(Character value:16rF6) asString , "/ umlaut o |
|
165 |
(Character value:16rFC) asString , "/ umlaut u |
|
166 |
(Character value:16rC4) asString , "/ umlaut A |
|
167 |
(Character value:16rD6) asString , "/ umlaut O |
|
168 |
(Character value:16rDC) asString , "/ umlaut U |
|
169 |
(Character value:16rDF) asString , "/ sz |
|
170 |
(Character value:233) asString , "/ e-degu |
|
171 |
(Character value:232) asString , "/ e-grave |
|
172 |
(Character value:234) asString , "/ e-circonflex |
|
173 |
(Character value:197) asString , "/ A |
|
2851 | 174 |
(Character value:169) asString , "/ copyright |
175 |
(Character value:164) asString. "/ euro |
|
2847 | 176 |
^ t |
177 |
||
178 |
"Modified: 29.4.1996 / 09:46:19 / cg" |
|
179 |
! |
|
180 |
||
181 |
defaultUnicodeSampleString |
|
182 |
"return the sample unicode preview text" |
|
595 | 183 |
|
2275 | 184 |
|t| |
185 |
||
2286 | 186 |
Smalltalk language == #de ifTrue:[ |
2275 | 187 |
t := 'Franz jagt im komplett verwahrlosten Taxi |
188 |
quer durch Bayern'. |
|
189 |
] ifFalse:[ |
|
190 |
t := 'The quick brown fox |
|
191 |
jumps over the lazy dog'. |
|
192 |
]. |
|
193 |
t := t , ' |
|
110 | 194 |
1234567890 |
195 |
!!@#$%^&*(){}[]:"~;,./<>? |
|
196 |
' , |
|
398 | 197 |
(Character value:16rE4) asString , "/ umlaut a |
198 |
(Character value:16rF6) asString , "/ umlaut o |
|
199 |
(Character value:16rFC) asString , "/ umlaut u |
|
200 |
(Character value:16rC4) asString , "/ umlaut A |
|
201 |
(Character value:16rD6) asString , "/ umlaut O |
|
202 |
(Character value:16rDC) asString , "/ umlaut U |
|
203 |
(Character value:16rDF) asString , "/ sz |
|
204 |
(Character value:233) asString , "/ e-degu |
|
205 |
(Character value:232) asString , "/ e-grave |
|
206 |
(Character value:234) asString , "/ e-circonflex |
|
207 |
(Character value:197) asString , "/ A |
|
2276 | 208 |
(Character value:169) asString. "/ copyright |
209 |
^ t |
|
398 | 210 |
|
595 | 211 |
"Modified: 29.4.1996 / 09:46:19 / cg" |
0 | 212 |
! ! |
213 |
||
2852 | 214 |
!FontPanel class methodsFor:'menu specs'! |
215 |
||
216 |
previewMenu |
|
217 |
"This resource specification was automatically generated |
|
218 |
by the MenuEditor of ST/X." |
|
219 |
||
220 |
"Do not manually edit this!! If it is corrupted, |
|
221 |
the MenuEditor may not be able to read the specification." |
|
222 |
||
223 |
" |
|
224 |
MenuEditor new openOnClass:FontPanel andSelector:#previewMenu |
|
225 |
(Menu new fromLiteralArrayEncoding:(FontPanel previewMenu)) startUp |
|
226 |
" |
|
227 |
||
228 |
<resource: #menu> |
|
229 |
||
230 |
^ |
|
231 |
#(Menu |
|
232 |
( |
|
233 |
(MenuItem |
|
234 |
label: 'Copy' |
|
235 |
itemValue: previewCopySelection |
|
236 |
translateLabel: true |
|
237 |
) |
|
238 |
(MenuItem |
|
239 |
label: '-' |
|
240 |
) |
|
241 |
(MenuItem |
|
242 |
label: 'Show Character Set' |
|
243 |
itemValue: previewShowCharacterSet |
|
244 |
translateLabel: true |
|
245 |
) |
|
246 |
) |
|
247 |
nil |
|
248 |
nil |
|
249 |
) |
|
250 |
! ! |
|
251 |
||
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
252 |
!FontPanel class methodsFor:'startup'! |
0 | 253 |
|
254 |
fontFromUser |
|
77 | 255 |
"open a fontPanel and return the selected font, or nil |
256 |
if abort is pressed" |
|
257 |
||
410 | 258 |
^ self fontFromUserInitial:nil |
259 |
||
260 |
" |
|
261 |
FontPanel fontFromUser |
|
262 |
" |
|
263 |
||
264 |
"Modified: 27.2.1996 / 00:51:59 / cg" |
|
265 |
! |
|
266 |
||
267 |
fontFromUserInitial:aFont |
|
595 | 268 |
"open a fontPanel showing aFont initially, |
269 |
and return the selected font, or nil if abort is pressed" |
|
410 | 270 |
|
413 | 271 |
^ self fontFromUserInitial:aFont title:nil |
272 |
||
273 |
" |
|
274 |
FontPanel fontFromUserInitial:(Font family:'courier' size:12) |
|
275 |
" |
|
276 |
||
277 |
"Created: 27.2.1996 / 00:51:44 / cg" |
|
595 | 278 |
"Modified: 29.4.1996 / 09:45:52 / cg" |
413 | 279 |
! |
280 |
||
281 |
fontFromUserInitial:aFont title:someTitle |
|
595 | 282 |
"open a fontPanel with title and return the selected font, |
283 |
or nil if abort is pressed" |
|
413 | 284 |
|
415 | 285 |
^ self fontFromUserInitial:aFont title:someTitle filter:nil |
286 |
||
287 |
" |
|
288 |
FontPanel fontFromUserInitial:(Font family:'courier' size:12) title:'select some font' |
|
289 |
" |
|
290 |
||
291 |
"Created: 27.2.1996 / 00:59:46 / cg" |
|
595 | 292 |
"Modified: 29.4.1996 / 09:45:34 / cg" |
415 | 293 |
! |
294 |
||
2849 | 295 |
fontFromUserInitial:initialFont title:someTitle filter:aFilterBlock |
595 | 296 |
"open a fontPanel with title and font-filter |
297 |
and return the selected font, or nil if abort is pressed" |
|
415 | 298 |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
299 |
|fontPanel selectedFont| |
77 | 300 |
|
0 | 301 |
fontPanel := FontPanel new. |
415 | 302 |
fontPanel filter:aFilterBlock. |
413 | 303 |
someTitle notNil ifTrue:[ |
304 |
fontPanel label:someTitle |
|
305 |
]. |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
306 |
fontPanel action:[:aFontDescription | selectedFont := aFontDescription]. |
2849 | 307 |
initialFont notNil ifTrue:[ |
308 |
fontPanel initialFont:initialFont. |
|
410 | 309 |
]. |
310 |
||
0 | 311 |
fontPanel showAtPointer. |
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
312 |
fontPanel destroy. |
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
313 |
^ selectedFont |
0 | 314 |
|
77 | 315 |
" |
413 | 316 |
FontPanel fontFromUserInitial:(Font family:'courier' size:12) title:'select some font' |
77 | 317 |
" |
410 | 318 |
|
413 | 319 |
"Created: 27.2.1996 / 00:59:46 / cg" |
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
320 |
"Modified: 10.4.1997 / 09:53:03 / cg" |
0 | 321 |
! ! |
322 |
||
323 |
!FontPanel methodsFor:'accessing'! |
|
324 |
||
595 | 325 |
action:aFourArgBlock |
326 |
"set the action to be evaluated on ok. |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
327 |
The block will be evaluated with family, face, style, size and encoding." |
595 | 328 |
|
329 |
okAction := aFourArgBlock |
|
330 |
||
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
331 |
"Modified: 10.4.1997 / 09:49:58 / cg" |
197 | 332 |
! |
333 |
||
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
334 |
encoding:aPattern |
595 | 335 |
"set the encoding goal" |
336 |
||
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
337 |
encoding := aPattern. |
2843 | 338 |
encodingFilter contents:encoding. |
339 |
||
340 |
self encodingFilterSelected:encoding. |
|
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
341 |
shown ifTrue:[ |
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
342 |
self updateFamilyList |
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
343 |
]. |
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
344 |
|
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
345 |
"Created: 29.2.1996 / 04:05:31 / cg" |
595 | 346 |
"Modified: 29.4.1996 / 09:40:18 / cg" |
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
347 |
! |
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
348 |
|
415 | 349 |
filter:aOneArgBlock |
595 | 350 |
"set a filter; if non-nil, only fonts for which the filterBlock |
351 |
returns true will be offered" |
|
352 |
||
415 | 353 |
filter := aOneArgBlock. |
2826 | 354 |
familyList list:nil. |
415 | 355 |
shown ifTrue:[ |
356 |
self updateFamilyList |
|
357 |
]. |
|
358 |
||
359 |
"Created: 27.2.1996 / 01:40:08 / cg" |
|
595 | 360 |
"Modified: 29.4.1996 / 09:40:49 / cg" |
415 | 361 |
! |
362 |
||
0 | 363 |
initialFont:aFont |
128 | 364 |
"set the font to be selected initially" |
0 | 365 |
|
2849 | 366 |
|encoding| |
367 |
||
128 | 368 |
selectedFont := aFont. |
2849 | 369 |
encoding := aFont encoding. |
370 |
"/ self halt. |
|
371 |
encodingFilter contents:encoding. |
|
372 |
self encodingFilterSelected:encoding. |
|
382 | 373 |
self showSelectedFont. |
374 |
self showPreview |
|
375 |
||
376 |
"Modified: 23.2.1996 / 00:51:32 / cg" |
|
101 | 377 |
! ! |
378 |
||
77 | 379 |
!FontPanel methodsFor:'initialization'! |
380 |
||
381 |
initialize |
|
382 | 382 |
|familyLabel faceLabel sizeLabel panel fontBrowserView v1 v2 v3 |
2847 | 383 |
mm fH eH l box showFontNameLabel| |
77 | 384 |
|
385 |
super initialize. |
|
386 |
||
2847 | 387 |
showFontNameLabel := device platformName ~= 'WIN32'. |
388 |
||
382 | 389 |
mm := ViewSpacing. |
390 |
||
1763 | 391 |
self addAbortAndOkButtons. |
77 | 392 |
|
390
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
393 |
panel := View origin:0.0@0.0 corner:1.0@1.0 in:self. |
2847 | 394 |
panel bottomInset:(buttonPanel preferredExtent y |
395 |
+ (mm*3) |
|
396 |
+ (showFontNameLabel ifTrue:24 ifFalse:0) ). |
|
77 | 397 |
|
150 | 398 |
label := resources string:'Font dialog'. |
77 | 399 |
|
2842 | 400 |
box := HorizontalPanelView in:panel. |
401 |
box horizontalLayout:#leftFit. |
|
402 |
box origin:0.0@1.0 corner:0.6@1.0. |
|
403 |
||
404 |
l := Label label:(resources string:'Encoding:') in:box. |
|
405 |
l borderWidth:0. |
|
406 |
l adjust:#left. |
|
407 |
||
408 |
encodingFilter := ComboBoxView in:box. |
|
2826 | 409 |
encodingFilter level:-1. |
410 |
encodingFilter contents:'*'. |
|
2842 | 411 |
encodingFilter list:(self listOfEncodingsInFilterCombo). |
2826 | 412 |
encodingFilter action:[:pattern | self encodingFilterSelected:pattern]. |
413 |
encodingFilter immediateAccept:true. |
|
2842 | 414 |
encodingFilter font:l font. |
415 |
encodingFilter editor font:l font. |
|
416 |
||
417 |
eH := encodingFilter preferredExtent y. |
|
418 |
box topInset:(eH negated-1); horizontalInset:mm. |
|
419 |
||
2826 | 420 |
"/ encodingFilter acceptOnReturn:true. |
421 |
"/ encodingFilter acceptOnTab:true. |
|
422 |
"/ encodingFilter acceptOnLeave:true. |
|
423 |
"/ encodingFilter acceptOnLostFocus:true. |
|
424 |
"/ encodingFilter acceptOnPointerLeave:true. |
|
425 |
||
382 | 426 |
encodingLabel := Label label:' ' in:panel. |
2842 | 427 |
"/ eH := encodingLabel preferredExtent y. |
428 |
encodingLabel origin:0.6@1.0 corner:1.0@1.0. |
|
382 | 429 |
encodingLabel topInset:(eH negated); horizontalInset:mm. |
2842 | 430 |
encodingLabel level:0; adjust:#left. |
431 |
encodingLabel adjust:#right. |
|
382 | 432 |
|
2847 | 433 |
showFontNameLabel ifTrue:[ |
434 |
nameLabel := Label label:'' in:self. |
|
435 |
nameLabel origin:0.0@1.0 corner:1.0@1.0. |
|
436 |
nameLabel bottomInset:(buttonPanel preferredExtent y + (mm*2)). |
|
437 |
nameLabel topInset:(buttonPanel preferredExtent y + (mm*2) + 24) negated; horizontalInset:mm. |
|
438 |
nameLabel level:0; adjust:#left. |
|
439 |
nameLabel font:(FontDescription family:'helvetica' face:'medium' style:'roman' size:9). |
|
440 |
]. |
|
382 | 441 |
|
2842 | 442 |
previewField := HVScrollableView for:TextView in:panel. |
443 |
previewField origin:0.0@0.0 corner:1.0@0.4. |
|
444 |
previewField autoHideScrollBars:true. |
|
445 |
previewField := previewField scrolledView. |
|
382 | 446 |
previewField inset:mm. |
77 | 447 |
|
448 |
self is3D ifTrue:[ |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
449 |
previewField level:-1. |
77 | 450 |
] ifFalse:[ |
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
451 |
previewField borderWidth:1. |
77 | 452 |
]. |
453 |
||
390
1d54a9b41463
say Hello world in JIS font ;-)
Claus Gittinger <cg@exept.de>
parents:
382
diff
changeset
|
454 |
fontBrowserView := View origin:0.0@0.4 corner:1.0@1.0 in:panel. |
382 | 455 |
fontBrowserView bottomInset:(eH + mm). |
77 | 456 |
|
457 |
v1 := View origin:0.0@0.0 corner:0.4@1.0 in:fontBrowserView. |
|
458 |
||
2842 | 459 |
familyLabel := Label label:(resources string:'Family') in:v1. |
77 | 460 |
familyLabel borderWidth:0. |
461 |
familyLabel origin:(0.0 @ 0.0) extent:(1.0 @ nil). |
|
382 | 462 |
fH := familyLabel preferredExtent y. |
77 | 463 |
|
464 |
familyList := ScrollableView for:SelectionInListView in:v1. |
|
382 | 465 |
familyList origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
466 |
familyList inset:mm. |
|
467 |
familyList topInset:fH. |
|
468 |
||
128 | 469 |
familyList := familyList scrolledView. |
740
2d5cb01c7e11
no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents:
713
diff
changeset
|
470 |
self makeTabable:familyList. |
77 | 471 |
|
472 |
v2 := View origin:0.4@0.0 corner:0.8@1.0 |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
473 |
in:fontBrowserView. |
77 | 474 |
|
2842 | 475 |
faceLabel := Label label:(resources string:'Typeface') in:v2. |
77 | 476 |
faceLabel borderWidth:0. |
477 |
faceLabel origin:(0.0 @ 0.0) extent:(1.0 @ nil). |
|
478 |
||
479 |
faceList := ScrollableView for:SelectionInListView in:v2. |
|
382 | 480 |
faceList origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
481 |
faceList inset:mm. |
|
482 |
faceList topInset:fH. |
|
128 | 483 |
faceList := faceList scrolledView. |
740
2d5cb01c7e11
no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents:
713
diff
changeset
|
484 |
self makeTabable:faceList. |
77 | 485 |
|
2842 | 486 |
v3 := View origin:0.8@0.0 corner:1.0@1.0 in:fontBrowserView. |
77 | 487 |
|
2842 | 488 |
sizeLabel := Label label:(resources string:'Size') in:v3. |
77 | 489 |
sizeLabel borderWidth:0. |
490 |
sizeLabel origin:(0.0 @ 0.0)extent:(1.0 @ nil). |
|
491 |
||
492 |
sizeList := ScrollableView for:SelectionInListView in:v3. |
|
382 | 493 |
sizeList origin:(0.0 @ 0.0) corner:(1.0 @ 1.0). |
494 |
sizeList inset:mm. |
|
495 |
sizeList topInset:fH. |
|
128 | 496 |
sizeList := sizeList scrolledView. |
740
2d5cb01c7e11
no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents:
713
diff
changeset
|
497 |
self makeTabable:sizeList. |
77 | 498 |
|
499 |
familyList action:[:lineNr | self familySelected:(familyList selectionValue)]. |
|
500 |
faceList action:[:lineNr | self faceSelected:(faceList selectionValue)]. |
|
501 |
sizeList action:[:lineNr | self sizeSelected:(sizeList selectionValue)]. |
|
502 |
||
2852 | 503 |
previewField menuHolder:self previewMenu. |
504 |
||
77 | 505 |
" |
506 |
FontPanel new showAtPointer |
|
507 |
" |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
508 |
|
740
2d5cb01c7e11
no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents:
713
diff
changeset
|
509 |
"Modified: 31.5.1996 / 22:01:45 / cg" |
77 | 510 |
! |
511 |
||
2842 | 512 |
listOfEncodingsInFilterCombo |
513 |
|list availableEncodings| |
|
514 |
||
515 |
list := OrderedCollection new. |
|
2849 | 516 |
device platformName = 'WIN32' ifTrue:[ |
517 |
list |
|
518 |
addAll: |
|
519 |
#( |
|
520 |
'*' |
|
521 |
'ANSI' |
|
522 |
'RUSSIAN' |
|
523 |
nil |
|
524 |
). |
|
525 |
] ifFalse:[ |
|
526 |
list |
|
527 |
addAll: |
|
528 |
#( |
|
529 |
'*' |
|
530 |
'iso8859*' |
|
531 |
"/ 'iso8859-1' |
|
532 |
'iso10646-1' |
|
533 |
'koi8-r' |
|
534 |
'jis*' |
|
535 |
nil |
|
536 |
). |
|
537 |
]. |
|
2842 | 538 |
|
539 |
availableEncodings := Set new. |
|
2845 | 540 |
device listOfAvailableFonts do:[:f | availableEncodings add:(f encoding ? '?')]. |
2842 | 541 |
availableEncodings := availableEncodings asSortedCollection. |
542 |
list addAll:availableEncodings. |
|
543 |
^ list. |
|
544 |
! |
|
545 |
||
1277 | 546 |
postRealize |
197 | 547 |
"kludge for sco - xlsfont fails sometimes - try again here" |
548 |
||
415 | 549 |
self updateFamilyList. |
1277 | 550 |
super postRealize |
415 | 551 |
|
552 |
"Modified: 27.2.1996 / 01:40:47 / cg" |
|
1277 | 553 |
"Created: 24.7.1997 / 18:12:42 / cg" |
2852 | 554 |
! |
555 |
||
556 |
previewMenu |
|
557 |
<resource: #programMenu > |
|
558 |
||
559 |
|menu| |
|
560 |
||
561 |
menu := Menu new fromLiteralArrayEncoding:self class previewMenu. |
|
562 |
menu findGuiResourcesIn:self. |
|
563 |
menu receiver:self. |
|
564 |
^ menu |
|
77 | 565 |
! ! |
566 |
||
0 | 567 |
!FontPanel methodsFor:'private'! |
568 |
||
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
569 |
clearPreview |
595 | 570 |
"clear the preview subview" |
571 |
||
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
572 |
shown ifTrue:[ |
1297
f5ea02391a59
use #contents: instead of #clear
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
573 |
previewField contents:nil. |
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
574 |
encodingLabel label:''. |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
575 |
]. |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
576 |
|
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
577 |
"Created: 17.4.1996 / 15:19:16 / cg" |
1297
f5ea02391a59
use #contents: instead of #clear
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
578 |
"Modified: 11.8.1997 / 03:01:42 / cg" |
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
579 |
! |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
580 |
|
197 | 581 |
extractFaceAndStyleFrom:aString |
595 | 582 |
"given a string, extract currentFace and currentStyle" |
583 |
||
197 | 584 |
|index| |
585 |
||
586 |
index := aString indexOf:$-. |
|
587 |
(index ~~ 0) ifTrue:[ |
|
595 | 588 |
currentFaceAndStyle := aString. |
589 |
currentFace := aString copyTo:(index - 1). |
|
590 |
currentStyle := aString copyFrom:(index + 1) |
|
197 | 591 |
] |
592 |
||
595 | 593 |
"Modified: 29.4.1996 / 09:41:47 / cg" |
197 | 594 |
! |
595 |
||
596 |
showPreview |
|
595 | 597 |
"show the preview text" |
598 |
||
2843 | 599 |
|font deviceFont enc s allFonts fonts fontName| |
382 | 600 |
|
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
601 |
self clearPreview. |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
602 |
|
197 | 603 |
" |
604 |
show a wait cursor: for some fonts (kanji etc) the |
|
605 |
X-server needs quites some time to load the font |
|
606 |
" |
|
255 | 607 |
self withWaitCursorDo:[ |
2842 | 608 |
allFonts := device |
1257 | 609 |
fontsInFamily:(currentFamily ? '*') |
610 |
face:(currentFace ? '*') |
|
611 |
style:(currentStyle ? '*') |
|
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
612 |
filtering:filter. |
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
613 |
|
2848 | 614 |
fonts := allFonts select:[:f | f size = currentSize]. |
450 | 615 |
fonts notEmpty ifTrue:[ |
2843 | 616 |
font := fonts anElement. |
450 | 617 |
] ifFalse:[ |
2848 | 618 |
"/ mhmh: |
619 |
"/ size=0 is returned for scalable fonts. |
|
620 |
"/ Any size is possible. |
|
450 | 621 |
"/ |
2848 | 622 |
fonts := allFonts select:[:f | f size = 0]. |
450 | 623 |
fonts notEmpty ifTrue:[ |
2843 | 624 |
font := Font family:currentFamily |
450 | 625 |
face:currentFace |
626 |
style:currentStyle |
|
627 |
size:currentSize |
|
628 |
encoding:(fonts anElement encoding). |
|
629 |
] |
|
630 |
]. |
|
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
631 |
|
2843 | 632 |
font notNil ifTrue:[ |
633 |
deviceFont := font onDevice:device. |
|
634 |
previewField font:deviceFont. |
|
434
22586d8221e1
dont get confused by same-name but different encoding
Claus Gittinger <cg@exept.de>
parents:
415
diff
changeset
|
635 |
|
2843 | 636 |
enc := font encoding. |
2287
b33ad40d7538
preview fixed when font is bad
Claus Gittinger <cg@exept.de>
parents:
2286
diff
changeset
|
637 |
enc isNil ifTrue:[enc := 'ascii ?']. |
b33ad40d7538
preview fixed when font is bad
Claus Gittinger <cg@exept.de>
parents:
2286
diff
changeset
|
638 |
encodingLabel label:enc. |
2843 | 639 |
currentEncoding := enc. |
640 |
fontName := deviceFont fullName. |
|
382 | 641 |
|
2842 | 642 |
(enc notNil and:[enc startsWith:'jis']) ifTrue:[ |
643 |
s := self class defaultJISSampleString |
|
644 |
] ifFalse:[ |
|
2847 | 645 |
s := self class defaultLatin1SampleString. |
2842 | 646 |
]. |
647 |
previewField contents:s. |
|
382 | 648 |
] ifFalse:[ |
2842 | 649 |
previewField contents:nil. |
650 |
encodingLabel label:nil. |
|
2843 | 651 |
currentEncoding := nil. |
2842 | 652 |
fontName := nil. |
382 | 653 |
]. |
2842 | 654 |
nameLabel notNil ifTrue:[nameLabel label:fontName]. |
197 | 655 |
] |
255 | 656 |
|
1257 | 657 |
"Modified: 30.6.1997 / 17:26:22 / cg" |
197 | 658 |
! |
659 |
||
128 | 660 |
showSelectedFont |
2843 | 661 |
|fam face faceAndStyle style sz| |
128 | 662 |
|
663 |
fam := selectedFont family. |
|
2843 | 664 |
currentEncoding := selectedFont encoding. |
665 |
||
2842 | 666 |
self familySelected:fam. |
128 | 667 |
fam notNil ifTrue:[ |
2842 | 668 |
face := selectedFont face. |
669 |
(face notNil and:[(style := selectedFont style) notNil]) ifTrue:[ |
|
670 |
faceAndStyle := face , '-' , style. |
|
671 |
]. |
|
672 |
self faceSelected:faceAndStyle. |
|
673 |
faceAndStyle notNil ifTrue:[ |
|
674 |
sz := selectedFont size. |
|
675 |
self sizeSelected:sz. |
|
2843 | 676 |
|
2842 | 677 |
"/ sz notNil ifTrue:[ |
678 |
"/ enc := selectedFont encoding. |
|
679 |
"/ self encodingSelected:enc |
|
680 |
"/ ] |
|
681 |
] |
|
682 |
]. |
|
2826 | 683 |
! |
684 |
||
685 |
updateFamilyList |
|
686 |
"update the list of font families" |
|
687 |
||
688 |
|families| |
|
689 |
||
690 |
familyList list isNil ifTrue:[ |
|
691 |
families := device fontFamiliesFiltering:filter. |
|
692 |
families notNil ifTrue:[ |
|
693 |
families := families asOrderedCollection sort |
|
694 |
]. |
|
695 |
familyList list:families |
|
696 |
]. |
|
697 |
selectedFont notNil ifTrue:[ |
|
698 |
self showSelectedFont |
|
699 |
]. |
|
700 |
||
701 |
"Modified: 27.2.1996 / 01:39:42 / cg" |
|
702 |
"Created: 27.2.1996 / 01:40:37 / cg" |
|
197 | 703 |
! ! |
128 | 704 |
|
197 | 705 |
!FontPanel methodsFor:'queries'! |
0 | 706 |
|
197 | 707 |
preferredExtent |
595 | 708 |
"return the boxes preferredExtent" |
572 | 709 |
|
797 | 710 |
"/ If I have an explicit preferredExtent .. |
711 |
||
713
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
690
diff
changeset
|
712 |
preferredExtent notNil ifTrue:[ |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
690
diff
changeset
|
713 |
^ preferredExtent |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
690
diff
changeset
|
714 |
]. |
0c38ad51016d
care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents:
690
diff
changeset
|
715 |
|
2842 | 716 |
^ 450@350 |
572 | 717 |
|
797 | 718 |
"Modified: 19.7.1996 / 20:44:08 / cg" |
0 | 719 |
! ! |
77 | 720 |
|
721 |
!FontPanel methodsFor:'user interaction'! |
|
722 |
||
2826 | 723 |
encodingFilterSelected:anEncodingPattern |
724 |
"another encoding was selected; find available fonts and update lists" |
|
725 |
||
726 |
|pattern| |
|
727 |
||
2845 | 728 |
anEncodingPattern = '?' ifTrue:[ |
729 |
pattern := '' |
|
730 |
] ifFalse:[ |
|
731 |
pattern := (anEncodingPattern isEmptyOrNil ifTrue:'*' ifFalse:anEncodingPattern). |
|
732 |
]. |
|
2826 | 733 |
self |
734 |
filter: |
|
735 |
[:f | |
|
736 |
|encoding| |
|
737 |
||
738 |
encoding := f encoding ? ''. |
|
739 |
pattern match:encoding |
|
740 |
]. |
|
741 |
! |
|
742 |
||
197 | 743 |
faceSelected:aFaceAndStyleName |
2826 | 744 |
"a fonts face was selected; find available sizes and update lists" |
595 | 745 |
|
2842 | 746 |
self faceSelected:aFaceAndStyleName showPreview:true |
747 |
! |
|
748 |
||
749 |
faceSelected:aFaceAndStyleName showPreview:showPreview |
|
750 |
"a fonts face was selected; find available sizes and update lists" |
|
751 |
||
197 | 752 |
|sizes| |
753 |
||
754 |
aFaceAndStyleName notNil ifTrue:[ |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
755 |
self extractFaceAndStyleFrom:aFaceAndStyleName. |
197 | 756 |
]. |
757 |
sizes := device |
|
1257 | 758 |
sizesInFamily:(currentFamily ? '*') |
759 |
face:(currentFace ? '*') |
|
760 |
style:(currentStyle ? '*') |
|
415 | 761 |
filtering:filter. |
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
762 |
|
197 | 763 |
(sizes isNil or:[sizes isEmpty]) ifTrue:[ |
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
764 |
sizeList list:nil. |
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
765 |
currentSize := nil. |
2842 | 766 |
showPreview ifTrue:[ |
767 |
self showPreview. |
|
768 |
]. |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
769 |
^ self |
197 | 770 |
]. |
771 |
||
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
772 |
self clearPreview. |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
773 |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
774 |
sizes := (sizes asOrderedCollection sort) collect:[:entry | entry printString]. |
197 | 775 |
sizeList list:sizes. |
776 |
currentSize notNil ifTrue:[ |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
777 |
(sizes includes:(currentSize printString)) ifTrue:[ |
2170 | 778 |
sizeList setSelectElement:currentSize printString. |
2842 | 779 |
showPreview ifTrue:[ |
780 |
self showPreview |
|
781 |
] |
|
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
782 |
] |
197 | 783 |
] |
251
25f76efaa547
oops - dont pass a collection of numbers to the size-view
Claus Gittinger <cg@exept.de>
parents:
243
diff
changeset
|
784 |
|
1257 | 785 |
"Modified: 30.6.1997 / 17:25:46 / cg" |
197 | 786 |
! |
787 |
||
77 | 788 |
familySelected:aFamilyName |
2826 | 789 |
"a fonts family was selected; find available faces and update lists" |
595 | 790 |
|
2842 | 791 |
self familySelected:aFamilyName showPreview:true |
792 |
! |
|
793 |
||
794 |
familySelected:aFamilyName showPreview:showPreview |
|
795 |
"a fonts family was selected; find available faces and update lists" |
|
796 |
||
77 | 797 |
|faces styles list| |
798 |
||
690 | 799 |
familyList setSelectElement:aFamilyName. |
77 | 800 |
|
801 |
currentFamily := aFamilyName. |
|
415 | 802 |
faces := device facesInFamily:aFamilyName filtering:filter. |
2353 | 803 |
(faces size = 0) ifTrue:[ |
415 | 804 |
currentFace := currentStyle := currentFaceAndStyle := nil. |
805 |
faceList list:nil. |
|
2842 | 806 |
self faceSelected:nil showPreview:showPreview. |
415 | 807 |
^ self. |
77 | 808 |
]. |
809 |
||
2353 | 810 |
list := SortedCollection new. |
77 | 811 |
faces do:[:aFace | |
415 | 812 |
styles := device stylesInFamily:aFamilyName face:aFace filtering:filter. |
813 |
styles do:[:aStyle | |
|
814 |
list add:(aFace , '-' , aStyle) |
|
815 |
] |
|
77 | 816 |
]. |
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
817 |
|
77 | 818 |
faceList list:list. |
819 |
currentFaceAndStyle notNil ifTrue:[ |
|
415 | 820 |
(list includes:currentFaceAndStyle) ifTrue:[ |
690 | 821 |
faceList setSelectElement:currentFaceAndStyle. |
2842 | 822 |
self faceSelected:currentFaceAndStyle showPreview:showPreview. |
415 | 823 |
^ self |
824 |
] |
|
77 | 825 |
]. |
2842 | 826 |
|
541
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
827 |
sizeList list:nil. |
76018ea821ca
clear preview & encoding when no font is shown
Claus Gittinger <cg@exept.de>
parents:
540
diff
changeset
|
828 |
self clearPreview. |
415 | 829 |
|
690 | 830 |
"Modified: 26.5.1996 / 15:04:29 / cg" |
77 | 831 |
! |
832 |
||
833 |
okPressed |
|
595 | 834 |
"ok was pressed; hide myself and evaluate the okAction, passing |
835 |
family, face, style and size as arguments" |
|
836 |
||
77 | 837 |
self hide. |
838 |
okAction notNil ifTrue:[ |
|
410 | 839 |
currentFamily notNil ifTrue:[ |
2842 | 840 |
okAction |
841 |
value:(FontDescription |
|
842 |
family:currentFamily |
|
843 |
face:currentFace |
|
844 |
style:currentStyle |
|
845 |
size:currentSize |
|
2843 | 846 |
encoding:(currentEncoding ? encoding)). |
410 | 847 |
] |
77 | 848 |
] |
410 | 849 |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
850 |
"Modified: 10.4.1997 / 09:51:31 / cg" |
77 | 851 |
! |
852 |
||
2852 | 853 |
previewCopySelection |
854 |
previewField copySelection. |
|
855 |
! |
|
856 |
||
857 |
previewShowCharacterSet |
|
858 |
CharacterSetView openOn:(previewField font) |
|
859 |
! |
|
860 |
||
77 | 861 |
sizeSelected:aNumberOrString |
2826 | 862 |
"a size was selected; update preview" |
595 | 863 |
|
2842 | 864 |
self sizeSelected:aNumberOrString showPreview:true. |
865 |
! |
|
866 |
||
867 |
sizeSelected:aNumberOrString showPreview:showPreview |
|
868 |
"a size was selected; update preview" |
|
869 |
||
77 | 870 |
aNumberOrString isNumber ifTrue:[ |
595 | 871 |
currentSize := aNumberOrString |
77 | 872 |
] ifFalse:[ |
2826 | 873 |
currentSize := Number readFromString:aNumberOrString onError:nil |
77 | 874 |
]. |
2842 | 875 |
showPreview ifTrue:[self showPreview] |
595 | 876 |
|
877 |
"Modified: 29.4.1996 / 09:43:23 / cg" |
|
77 | 878 |
! ! |
197 | 879 |
|
1185
3b8bd5ea8d62
action block is evaluated with a fontDescription
Claus Gittinger <cg@exept.de>
parents:
797
diff
changeset
|
880 |
!FontPanel class methodsFor:'documentation'! |
243 | 881 |
|
882 |
version |
|
2852 | 883 |
^ '$Header: /cvs/stx/stx/libwidg/FontPanel.st,v 1.60 2004-02-09 20:16:18 cg Exp $' |
243 | 884 |
! ! |