SWP-Ubau-SoSe2014-Haskell / SWPSoSe14

Rail compiler written in Haskell
MIT License
3 stars 1 forks source link

New architecture for editor #139

Closed xconnect closed 10 years ago

xconnect commented 10 years ago

The editor has to be refactored into a concept with strong cohesion. Each submodul has to be rewritten to gain lossless git-merges.

xconnect commented 10 years ago
xconnect commented 10 years ago

Implementation done.

Branch: NewEditor

Bubu commented 10 years ago

The Highlighter is not imported from anywhere. We want to tell the highlighter to start working on certain conditions, so we would need to call it from the KeyHandler and possibly from UndoRedo. Also from Editor.hs when loading a new file. Am I missing something?

Another thing, when the highlighter has finished updating the highlight, we need to redraw the screen. So the highlighter has to call a redraw function in Textarea/Editor? Then we have a circular import again. :-/

MrM0nkey commented 10 years ago

The highlighter don't have to call a redraw function at the moment this is handeled by the window it self. What i want to say you just use the show function on a widget once and it will be updated automatically.

Krisselchen commented 10 years ago

the editor only works on TextAreaContent and I guess it should be the KeyPressEvents. How that whole thing with showing works is not clear yet I think. But the idea is, that the highliting is completely independent from show.