Quoting Pascal Bauermeister <[EMAIL PROTECTED]>:

...
> 
> May I just add this:
> 
> - currently the Waba port using PicoGUI mimics the Waba Palm port,
> i.e.
>   the object model is the ui and fx classes. Widgets are drawn by the
> VM
>   directly in a pgui canvas. Layout is extremely simple, mostly by
> placing
>   widgets at absolute coordinates; rendering does not therefore
> benefit
>   from the theme system. The whole looks very Palm-ish.

Right. This is good for compatibility... Actually, once there is a way of
calling PicoGUI APIs from Waba, we could theoretically rewrite the 'ui' code to
use PicoGUI's theme rendering to draw the buttons. They wouldn't be real PicoGUI
buttons, but they would look like them :)
Just a thought.

> 
> - having an object model that better uses the features of the
> underlaying
>   GUI system is slightly more complex, as one should either invent an
>   appropriate object model, or better, implement a standard one. Shane
>   Nay has done a port of AWT for another VM (not WABA). Let me also
>   mention the MIDp object model from Sun Microsystems, which has
>   currently no known port on Waba.

Why implement another layer? PicoGUI's API is already basically object-oriented
C. I'm rusty on the syntax of Java/C++, but you could easily make
object-oriented bindings for the PicoGUI API:

b = new pgWidget(PG_WIDGET_BUTTON);
b->Set(PG_WP_TEXT,new pgString("foo"));
b->Bind(PG_WP_ACTIVATE, myHandler);

... or something like that ...
PicoGUI's architecture is different from any existing standards, or the whole
interface would have probably been designed to conform to an existing standard.
Forcing the API to use a standard designed for a different type of GUI would be
like using a compatibility layer. Waba already has that, it needs an interface
to the native PicoGUI API.

> 
> Regards,
> 
>   Pascal
> 
> 
> -- 
>   Pascal Bauermeister
>   Head of Software Development
> 
>   SMARTDATA
>   PSE-A / EPFL
>   CH-1015 Lausanne
> 
>   http://www.smartdata.ch
>   mailto:[EMAIL PROTECTED]
>   Phone: +41 (21) 693 84 98
>   fax:   +41 (21) 693 84 91
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
> 



--
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to