|
Class: FontMenu
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--MenuPanel
|
+--FontMenu
- Package:
- stx:libwidg2
- Category:
- Interface-UIPainter
- Version:
- rev:
1.40
date: 2021/08/25 15:27:47
- user: cg
- file: FontMenu.st directory: libwidg2
- module: stx stc-classLibrary: libwidg2
FontMenu used by UIPainter
copyrightCOPYRIGHT (c) 1995 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
menu specs
-
menu
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FontMenu andSelector:#menu
(Menu new fromLiteralArrayEncoding:(FontMenu menu)) startUp
|
accessing
-
allowSymbolicFonts
-
-
allowSymbolicFonts: aBoolean
-
-
fontDescription
-
get the current font description
-
fontDescription: aFontDesc
-
set the font description
-
fontIsSymbolic
-
-
fontIsSymbolic: aBoolean
-
-
fontSymbol
-
-
fontSymbol: aSymbolOrMenuItem
-
-
labelsAreEmphasized
-
-
labelsAreEmphasized: aBoolean
-
accessing-channels
-
allowSymbolicFontsAndEnabledHolder
-
-
allowSymbolicFontsAndFontIsSymbolicHolder
-
-
allowSymbolicFontsHolder
-
-
enabledAndFontIsNotSymbolicHolder
-
-
enabledChannel
-
-
enabledChannel: aValueHolder
-
-
fontIsNotSymbolicHolder
-
-
fontIsSymbolicHolder
-
-
model: aValueHolder
-
set my model
aspects
-
fontAspectAt: key put: value
-
-
fontEncoding
-
-
fontEncoding: anEncodingSymbol
-
-
fontFace
-
-
fontFace: aFace
-
-
fontFamily
-
-
fontFamily: aFamily
-
-
fontSize
-
-
fontSize: aSize
-
-
fontStyle
-
-
fontStyle: aStyle
-
change & update
-
updateFromModel
-
(comment from inherited method)
to be redefined in subclasses
-
updateModel
-
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
initialization
-
destroy
-
release dependencies
-
initialize
-
setup menu
menu spec
-
symbolicFontsMenu
-
user actions
-
launchFontEncodingDialog
-
launch dialog to get a font encoding
-
launchFontFaceDialog
-
launch dialog to get a font face
-
launchFontFamilyDialog
-
launch dialog to get a font family
-
launchFontSizeDialog
-
launch dialog to get a font size
-
launchFontStyleDialog
-
launch dialog to get a font style
-
launchFontSymbolDialog
-
launch dialog to get a font symbol
-
openFontChooser
-
simple example
|top menu model|
model := #labelFont asValue.
top := StandardSystemView new.
top extent:250@200.
menu := FontMenu origin:0.0@0.4 extent:1.0@30 in:top.
menu allowSymbolicFonts:true.
menu fontIsSymbolic:true.
menu model:model.
top open.
top waitUntilVisible.
[ |new old|
old := model value.
[ top shown] whileTrue:[
new := model value.
new ~= old ifTrue:[
old := new.
old notNil ifTrue:[ Transcript showCR:(old userFriendlyName) ]
ifFalse:[ Transcript showCR:'---------' ]
].
Delay waitForSeconds:0.2.
]
] forkAt:8.
|
|