Hello,

great work!!! That is what some other people and me were looking for... And
it is related to my previous message on another subject.

However I see that you encode part of stuff in the XML file, but the rest is
still hardcoded, like the signal-slot information. So these things are
missing from your WBuilder. And that is to specify datasources for the
widgets and the connection between signals and slots. I think that would be
challenging...




mobi
mobiphil.com


On Mon, Mar 16, 2009 at 3:06 AM, Daniel Cavalcanti
<[email protected]>wrote:

> Hello all!
>
> I`ve created this Wt helper widget and named it WBuilder. Given a XML file
> with an hierarchical widget content, WBuilder will generate the WWidget tree
> for the executable. The XML parsing is done by mini-xml (so it may be
> incorporated by Wt without problems).
>
> The typical usage is this, wherever you would create and insert widgets
> into root() or any other container widget, you use this:
>
> WBuilder builder;
> builder.load(your-xml-filename);
> builder.build(your-widget-tree-name, root());
>
> And thats it! root() has all the content defined by your-xml-filename.
> Widgets are defined in the xml by the name, for example:
> <WContainerWidget name="my-tree-name"></WContainerWidget>
>
> Will generate a WContainerWidget named (please do not confuse a widget
> "name" with it`s Id) "my-tree-name".
>
> I understand that there will be those who will ask "But whats the point if
> we can just add stuff by hand?", well the entire point of the widget is that
> you can compile your application just once and perform all of your
> divs/buttons/text changes associated with CSS on external files which
> require no compilation at all. This has been saving me a lot of time on Wt
> application development.
>
>
>
> To those who wish to take a quick peek at the widget`s source code:
> http://necrotoolz.sourceforge.net/wbuilder/WBuilder.h
>
> I adapted Wt`s helloworld example to use this widget.
>
> To those who wish to take a quick peek at helloworld.xml used by the
> example:
> http://necrotoolz.sourceforge.net/wbuilder/helloworld.xml
>
> To those who wish to take a quick peek at hello.C (a nice example on how to
> use the widget):
> http://necrotoolz.sourceforge.net/wbuilder/hello.C
>
> To those who wish the working example with helloworld:
> http://necrotoolz.sourceforge.net/wbuilder/helloworld-wbuilder.rar
>
> And by last, those who wish the working example binaries (for win32):
> http://necrotoolz.sourceforge.net/wbuilder/helloworld-wbuilder-win32.rar
>
>
> yippee-kay-ay
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to