Sounds very good; it may not be as fast as sci but certainly a better fit for leo. Note that if you use threads, you might want to use qthread because you can use cross thread signals. Not much time to go in depth - line to vatican museums (and 16t chapel) is long, but not *that* long ;)
On 10/24/08, Edward K. Ream <[EMAIL PROTECTED]> wrote: > > On Oct 23, 1:21 pm, "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > >> I am in the process of making the threading colorizer work for Qt. > > Rev 1369 demonstrates all essential features of syntax coloring > QTextEdit with the the threading colorizer. This is very cool, and > was easier than I expected: > > - Key parts of the threading colorizer are considerably simpler when > qt gui is in effect. Rather than slavishly following the Tk calls, > the colorizer simply tells leoQtBody what should be done. These > methods called by the colorizer are in the node 'class leoQtBody > (leoBody)-->Coloring' > > - leoQtBody.tag_add colorizes a range of text with a color specified > by a tag_name. At present, the code only colorizers 'comment1' tags > with the color 'red'. Generalizing this to arbitrary tags and colors > will be straightforward. > > The important thing is that the tag_add method demonstrates that > QTextEdit can colorize text. It took some experimenting, but in the > end the result is flicker-free colorizing. Once again, qt shows itself > to be an excellent platform. The performance of colorizing is > determined by the threading colorizer, and is exactly as it has always > been. > > Today's work is very important: We can use QTextEdit for Leo's body > pane while we wait for the next Qt release that will fix QScintilla > bugs. All of Leo's commands should now work, because QTextEdit uses > the same (character) indices used throughout Leo's core. This means > that the qt plugin can use "official" Leo bindings for all keys, > including tab and backspace, which in turn means that these characters > will work exactly as in the Tk version of Leo. > > We are just a day or three away from having a qt plugin that will feel > right at home. > > Edward > > > -- Sent from Gmail for mobile | mobile.google.com Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
