[Y-devel] Random thoughts
Jerome Laheurte jerome at gandalf.fraca7.homeunix.net
Sun Feb 22 15:33:34 GMT 2004
On Fri, 20 Feb 2004, Mark Thomas wrote:
> Hi,
>
> On Fri, 20 Feb 2004, Jason Miller wrote:
>
> > I've been considering one of the issues related to server side widgets,
> > and one idea came to mind. Someone commented in another email that
> > loading client code to the server was undesirable, and I absolutely
> > agree.
>
> Yes, I'd like to keep Y as language-agnostic as possible, and that means
> not requiring people to use a server-scripting-language.
>
> There's a lot of talk about "custom widgets", but when you think about it
> carefully, there is really only ever one good reason to make a "custom
> widget" and that is when you are displaying client-specific data on the
> screen, for example a Gantt chart in a scheduling application.
I'm thinking of another use for custom widgets. I once wrote a GUI
editor (à la QTDesigner) for a toolkit, and this kind of application
needs to extend in some way every widget in the toolkit (to replace
the default behaviour with something like 'move when I drag you').
> In these situations, there is usally a *lot* of client-side data that
> needs to be displayed, which we don't want to be throwing over the network
> connection every time it changes, so it seems that this is the one case
> where having the widget server-side would be a bad thing. Which is lucky
> for us, since it's easier to let the clients subclass "Canvas" on the
> client side and do the drawing themselves.
That's a solution, but I think there could be something in-between for
applications like a GUI builder. Here is my suggestion: extend the
protocol to support a YMO_VIRTUAL_CALL message, which would mean 'OK,
the server code is calling the foobar() virtual method of object O,
here are the parameters, handle it yourself'.
That would happen for specific methods, previously registered with the
server, not unlike the signal mechanism.
--
Jérôme Laheurte <fraca7 at free.fr>
Too often I find that the volume of paper expands to fill the
available briefcases.
-- Governor Jerry Brown
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved