|
Class: CharacterSetView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--CharacterSetView
- Package:
- stx:libwidg2
- Category:
- Views-Special
- Version:
- rev:
1.47
date: 2019/08/11 17:46:50
- user: cg
- file: CharacterSetView.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
Can be used both as an informative display of a font's characters
(opened via the fontPanels-preview-popUpMenu)
or to insert characters into a textView
(opened by a textEditors misc-specialCharacters menu).
Author:
Claus Gittinger
instance creation
-
new
-
startup
-
open
-
self open
-
openAsInputFor: aView label: viewLabel clickLabel: clickLabel
-
-
openOn: aFont
-
self openOn:(View defaultFont).
-
openOn: aFont in: aTopView label: viewLabel clickLabel: clickLabel asInputFor: aConsumingView encoder: aCharacterEncoderOrNil
-
actions
usage example(s):
self openOn:(View defaultFont).
self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').
|
-
openOn: aFont label: viewLabel clickLabel: clickLabel
-
-
openOn: aFont label: viewLabel clickLabel: clickLabel asInputFor: aView
-
self openOn:(View defaultFont).
self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').
-
openOn: aFont label: viewLabel clickLabel: clickLabel asInputFor: aConsumingView encoder: aCharacterEncoderOrNil
-
top extent:(top preferredExtent).
usage example(s):
self openOn:(View defaultFont).
self openOn:(Font family:'courier' face:'medium' style:'roman' size:12 encoding:'iso10646-1').
|
accessing
-
codePage
-
-
codePage: pageNr
-
-
codePageHolder
-
-
consumingView
-
-
encoder: aCharacterEncoder
-
-
selectedCodePoint
-
-
selectedCodePointHolder
-
change & update
-
update: something with: aParameter from: changedObject
-
drawing
-
redraw
-
(self extent:300@600) open
-
sizeChanged: how
-
event handling
-
buttonPress: button x: x y: y
-
-
codePageChanged
-
self clear.
-
keyPress: key x: x y: y
-
others are forwarded to the controlled view
-
selectedCodePointChanged
-
initialization & release
-
consumingView: aView
-
-
destroy
-
-
initialize
-
Modified (format): / 08-01-2019 / 14:26:23 / Claus Gittinger
-
useSameFontAs: aView
-
queries
-
computePreferredExtent
-
(comment from inherited method)
return my computed preferred extent - this is the minimum size I would like to have.
If there are any components, a rectangle enclosing them
is returned. Otherwise, the actual extent is returned.
CharacterSetView openOn:(Button defaultFont).
CharacterSetView
openAsInputFor:Transcript
label:'Input to Transcript'
clickLabel:'Click to input character'
|