PluggableTextMorph
Last updated at 11:28 am UTC on 6 October 2020
- PluggableTextMorph objects are workhorses for displaying and editing text in Morphic [1].
- Such an object wraps a TextMorph object.
- It does quite a bit more than a basic TextMorph... it supports scrolling, and text menu operations, and more.
The class was originally created to be the Morphic equivalent of the PluggableTextView class from MVC.
A Workspace window in Morphic will contain a PluggableTextMorph, while a Workspace window in MVC will contain a PluggableTextView.
They both use Workspace as a Model.
Object hierarchy: (Squeak 5.2)
MorphicModel #(''model'' ''slotName'' ''open'')
ScrollPane #(''scrollBar'' ''scroller'' ''retractableScrollBar'' ''scrollBarOnLeft'' ''getMenuSelector'' ''getMenuTitleSelector'' ''hasFocus'' ''hScrollBar''
''hScrollBarPolicy'' ''vScrollBarPolicy'' ''scrollBarThickness'')
PluggableTextMorph #(''textMorph'' ''getTextSelector'' ''setTextSelector'' ''getSelectionSelector'' ''hasUnacceptedEdits'' ''askBeforeDiscardingEdits''
''selectionInterval'' ''hasEditingConflicts'' ''editTextSelector'' ''wantsWrapBorder'')
PluggableTextMorph questions
See also:
See also PluggableTextMorphPlus
[1] Editing does not work in Squeak 3.10.2 but for example in Squeak 5.2