Hello,
I had been thinking about a way to automate even more the process of
creating user interfaces in Wt.
If we could define widgets on the XML file like this for example:

> <Widget type="WTextEdit" name="foo" value="bar" />
>

It would make development of user interfaces much easier and even cheaper as
regular web developers could just do it themselves.
It will also allow us to create the Wt Creator much more easily.

*How to achieve this?
*

   - By creating a compile time tool that will generate the necessary
   functions from the xml file.
   - By replacing the Widget node with a placeholder like replacing the
   widget node with  {$foo} in our example and generating a production use
   xml file.
   - Using a small set of macros
   - Using the RapidXML parser that wt already uses

*Main features
*

   - The system shall create and bind widgets to the template, even nested
   widgets (like containers) can be created.
   - The system shall allow to bind JavaScript or C++ code to events like
   this:

<Widget type="WSilder" name="foo" value="bar">

   <Event name="valueChanged" language="JavaScript">
>
      function handler(value) { alert (value); }
>
    </Event>
>
</Widget>
>

It shouldn't be very hard to maintain and create, as there are so many
setters and events for each widget.
If someone is interested in helping me coding this, I'll be glad.

Thanks for reading and best regards,
Omer Katz

>
------------------------------------------------------------------------------

_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to