On Mon, Dec 1, 2008 at 6:49 PM, leo_hag <[EMAIL PROTECTED]> wrote:

> It turns out that it's very easy indeed. As a demo I have done a find-
> form similar to the leo find tab. Different versions and multiple
> copies can exist providing there is a good underlying data model.
> Different versions could be selected using an @setting for each ui
> component, including the main window.

I kind miss of this experiment, at least as far as reconfigurable user
interfaces go. Is it a general demo of how to isolate parts the gui
from the core? If that is the case, it certainly has its merits, and
is along the lines of what I've been thinking about earlier, i.e leo
MVC could be easier to grasp if it dispatched everything with hooks
(http://pydispatcher.sourceforge.net/ could be of interest here as
well).

When I think of dynamic user interface, I'm thinking of a menu item
Window->Change Ui, that opens up a file selector that you point to
MyWhizzyUi.ui (created in the ui designer, probably forked from
qt_main.ui). This would then nuke the current ui, and change the .ui
ivar of DynamicWindow to point to the new ui. More like what your
previous demo did, only from an .ui file :-)

Core could then be asked to repopulate all the widgets with current
values (redraw the tree, set body, set check boxes in find tab). I
don't think being able to configure the find tab (or spell tab) is
that interesting in the first place, since if I wanted a better find
tab, I'd rather used a completely new one (i.e. reimplement something
from the scratch). Something along the lines of my early "QuickSearch"
experiment, try it by executing this script in a node:

g.insqs(c)

Then look for "QuickSearch" tab.

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

Reply via email to