On Apr 25, 7:46 am, "Edward K. Ream" <[email protected]> wrote:

> To repeat, substantial work remains, but everything is straightforward now  
> in the new approach.

A short progress report re rev 1732:

- createMainWindow and its helpers now contain the refactored code
from the updated qt_main.py. The short summary of why I like explicit
code is that it can be refactored and generalized.

- I cleaned the helper functions as much as possible.  They use only
local vars now.  At the end of each helper is a list of "official
ivars".  The ivars will change, but they will be the basis for a
generalized api.  I want to limit the official ivars to those that are
actually useful.

Still to do:

1. Generalize what the tree, body and log panes can contain.  This
will involve creating a hierarchy of container widgets such as
QStackedWidget and QTabWidget.  Probably the top-level will be a
QStackedWidget offering differing views of the pane.  One of those
views will be a QTabWidget. Another view will be the pane's default
widget.  A third view might be an empty view for use as people see
fit. The idea is to allow the user (plugin, command) to switch between
these various views easily.

2. Refactor the code so that it uses a helper function to create the
widgets described in 1.

3. Create an api of helper functions to switch between various views
of each pane.  In particular, the api must support multiple body
editors.

Important:  I do not plan to alter the tk plugin to make it compatible
with the new api.  The tk plugin will probably remain unchanged. The
base-class convenience methods in Leo's core may allow some
compatibility between the tk and qt plugins, but I won't sacrifice
power in the qt plugin for compatibility with the tk plugin.

Edward
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to