Hello,

  Gerald Combs has created a Python XUL Code Generator
for Win32 C SDK prototype.

  Gerald Combs writes:

  As a proof of concept I've cobbled together some
Python code that reads XUL interface definitions and
generates native Windows C SDK code.  It combines the
redeeming (to me, at least) aspects of Mozilla's XPFE
and AbiWords Application Framework.

  The autogenerated code has been combined with some
hand-written code and linked with the rest of Ethereal
to create an application with a native look and feel.
It isn't much more than a toy at the moment -- it can
only open a file and display a packet list, but it
looks promising.

  This method has the following advantages:

  - The interface layout is easy to change, since it's
defined by the XUL files.

  - Much (but not all) of the code is automatically
generated.

  - Frontends are truly native, and can be tweaked
extensively.

  New features will require new code for each
platform, but this can hopefully be minimized with the
use of generated code.


  You can download Gerald Comb's Python XUL Code
Generator @
http://www.ethereal.com/~gerald/ui-poc.tar.gz  It's
less than 20k and includes samples such as:

<dialog id="about-dialog" title="About Ethereal"
width="250" height="100">

  <vbox>
    <description>
      The Ethereal Network Protocol Analyzer

      Version 0.99.0 (C) 1998-2003, Gerald Combs
&lt;[EMAIL PROTECTED]&gt;
    </description>

    <hbox>

      <spacer flex="1" />
      <button id="ok-button" label="OK" default="True"
/>

    </hbox>
  </vbox>
</dialog>

   
  Full story @
http://www.ethereal.com/lists/ethereal-dev/200311/msg00481.html

  - Gerald (Bauer)


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
xul-announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-announce

Reply via email to