For the last several days I have been reorganizing the text class. That 
work is now complete.
leo/plugins/qt_text.py contains reorganized code that depends not at all on 
leoFrame.py.

The result is much cleaner code, but it could have introduced subtle bugs. 
Please report any problems immediately.

The immediate reason for this change was to make it easier to support 
Scintilla widgets in Leo.  At present, it displays text properly, using 
Scintilla's syntax coloring.  But key bindings don't work and changes to 
body text don't "stick".  To see for yourself, set @bool qt-use-scintilla = 
True and restart Leo.

Some checkin logs, in reverse chronological order:

Rev 164784e Sunday, August 31, 2014 8:57:33 PM
QQQ (revised)
A grand renaming and reorganization of text and wrapper classes:
- All wrapper classes define self.widget for external use.
- Replaced bodyCtrl by wrapper everywhere.
Leo build: 20140831205734
QQQ

Rev 45ca11a: Monday, September 01, 2014 12:58:24 PM
QQQ
A major reorg of Qt text class: they now use QTextMixin rather than 
leoFrame.BaseTextWrapper.
This clarifies the code considerably and in any case was required for 
QScintilla support.
All tests pass. Still somewhat experimental code.

Leo build: 20140901125824
QQQ

Rev 907038c Monday, September 01, 2014 7:19:16 PM
QQQ
A massive, important simplification: qt_text.py is now independent of 
leoFrame.py.
The QTextMixin class now contains most of the Qt-widget-independent code.
This eliminates lots of pointless redirection.  In fact, most of the 
so-called "base-class" code in leoFrame.py could disappear.

Leo build: 20140901191916
QQQ

Rev 8b6be83 Monday, September 01, 2014 7:52:43 PM
QQQ
The QHeadlineWrapper class is now  subclass of QLineEditWrapper.
This removes lots of duplicate code.
All tests pass.

Leo build: 20140901195244
QQQ

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to