On 06-04-16 19:31, Sean P. DeNigris wrote:
[rant]I find the whole text system very confusing. What the heck does a paragraph know about insertion points?? A view has one paragraph object, even if there are several paragraphs (as understood by the rest of humanity as a block of text with breaks between the adjoining ones. Editors and Paragraphs are thrown out and replaced on a whim. I'm finding it very hard to understand and modify[/rant] [1] [rant] Of course, the instant I touched Paragraph/XxxEditor, and friends I got lost down the rabbit hole of incomprehensibility... like Paragraph, which draws the cursor and keeps track of the selection, obviously... not! wtf ?!
There is both a lot of inherent, as well as accidental complexity there. Paragraph is obviously not such a good name for what it does, but at least it has a clear comment saying what it's for. It seems the right place to deal with the display parts of selection, though delegating that to a separate class might clean up things a bit. The number of things that are just broken is rather annoying as is the lack of tests and examples. Stephan
