XRC xml-parsed to Javascript and eval() make GUI?

50 views
Skip to first unread message

PaulANormanNZ

unread,
Sep 27, 2011, 11:32:05 PM9/27/11
to glues...@googlegroups.com
HI,

Looking at http://docs.wxwidgets.org/2.9.2/overview_xrcformat.html and the various things that would export XRC from a GUI for wxWidgets, is it conceiveable to write an XML parser to proces a Xxxx.xrc and eval() some code to make the necessary code for setting up the GLUEscript's gui?

Or is the used format for GLUEscript differ a bit from what XRC might make available by GUI designer applications?

Paul

Franky Braem

unread,
Sep 28, 2011, 2:31:30 AM9/28/11
to GLUEscript
XRC is not (yet) available in GLUEscript. I'm not familiar with using
XRC to create GUI's.
I don't think it's necessary to write an XML parser. It's
wxXMLResource that needs to be ported to JavaScript.
Note: to use XML in GLUEscript, we have E4X which is built-in
SpiderMonkey or the glue to Expat. The XML DOM API in POCO is planned
to be ported to GLUEscript (someday ...)

Franky

On 28 sep, 05:32, PaulANormanNZ <paul.a.nor...@gmail.com> wrote:
> HI,
>
> Looking athttp://docs.wxwidgets.org/2.9.2/overview_xrcformat.htmland the

Paul A Norman

unread,
Sep 28, 2011, 4:43:58 AM9/28/11
to glues...@googlegroups.com
Franky,

You have a lot on your hands!

I've had a look, and it would not be direct, as some of the approach
between XRC and GLUEscript is just slightly different, but if possible
it would allow the use of some sort of a GUI to create widgets on
frames for use in GLUEscript projects.

I had a look at wxFormBuilder but they use Java like placement rules,
with layouts and stretchers, and not fixed position layouts as far as
I can tell.

The wxPhp project have just announced some sort of plugin for
wxFormBuilder, which if accepted into wxFormBuilder's trunk will make
it possible for GUI code to be exported from wxFormBuilder for wxPhp -
so its possible for something like GLUEscript to have a plugin too it
would seem.

wxFormBuilder can directly export XRC representation of of wx GUI as
XML anyway, so parsing that file may still be an option, but it
appears at first glance as I said above, that there are some obvious
immediate issues, like layout, and naming conventions.

I''l keep my eyes open and see if there is anything out there more
"ready to go".

Paul

> --
> You received this message because you are subscribed to the Google Groups "GLUEscript" group.
> To post to this group, send email to glues...@googlegroups.com.
> To unsubscribe from this group, send email to gluescript+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/gluescript?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages