UnitedLexCorp / SimpleTalk

An implementation of HyperTalk in Ohm-js
Apache License 2.0
7 stars 1 forks source link

TextView superclass #72

Open dkrasner opened 3 years ago

dkrasner commented 3 years ago

Main Points

There are a number of part views where editing text is or will be useful. These include FieldView and ButtonView (for the button name), and to some extent WindowView (for the window name). They should all share basic text editing functionality (font, underline, bold, etc) but also have some that is specific to the part view.

Proposal

Create a TextView ABC class, never to be directly instantiated, to handle this. (other names for this class are welcome)

(the option of using FieldView inside the ButtonView seems less optimal, since we would have to override/turn-off some of the field view functionality and generally we'd introduce too much logical dependency between part views).

darth-cheney commented 3 years ago

@dkrasner Do we still want to go down this path or are we OK with the current Field and related?