well I have a really hacky patch to remove all the forms stuff and only
use Qt. It doesn't do anything yet but I did it to see where we need to
make changes.

The big one turns out to be the relationships between BufferView_pimpl,
WorkArea, and lyxscreen.

Currently a redraw looks something like this :

1. expose event on workarea gets sent to buffer_pimpl
2. which then asks lyxscreen to draw what's needed
3. which then uses lyxtext to draw using bufferview's painter

Well this doesn't really work sensibly with qt. The workarea widget
itself has to be responsible for drawing siimply because the painter to
use is dependent upon the widget. The current scheme would require
exposing this widget/paint device as global to allow lyxtext to use it.

Also to conveniently use QScrollView or whatever, we need to have one
long canvas of a known size, and be able to respond to draw requests of
an arbitrary row in that canvas. This looks a little painful with
the current code.

Ideas on where we want to go with this ?

Here is my current list of tasks necessary :

1. guii minibuffer
2. guii colorhandler
3. small changes to bufferview_pimpl to remove X dependences
4. guii fontloader/font
5. guii lyxlookup stuff 
6. small guii's in lyxfunc
7. NO X headers in core at all - this means guiizing insetKeyPress etc.
8. guii painter (kind of done)
9. guii qtview (kind of done)
10. guii screen (see above)
11. finish dialogs


My hack patch currently brings up a main window with an almost empty
menubar, and a main widget (no scrollbar etc.) that does nothing but
have a red background and passes expose events / button presses to the
bufferview_pimpl

regards
john

-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.

Reply via email to