> -----Original Message-----
> From: Christian Boulanger [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 22, 2008 11:30 AM
<snip>
> Please let us know if there is anything we can do to help
> your effort.
> Since the qxtransformer syntax is still not fully set in
> stone, we might
> be able to integrate functionality that helps to use the
> pythoncard gui
> resource file to produce qxml.
>
> Thanks for your efforts. If successful, this will certainly be a big
> step for qooxdoo gui creation.
>
> Christian
>
Well, there is really no big technology here. It's a simple matter of a 1 to 1
mapping between Pythoncard features and qxtransformer features.
For a single button within a resizable window, you pop-up the designer, draw a
window, drop a button in there, and move it to the position you like. Then the
designer generates the following Python dictionary:
========
{'application':{'type':'Application',
'name':'qxsample',
'backgrounds': [
{'type':'Background',
'name':'bgQxSample',
'title':'Standard qxTransformer Template with File->Exit menu',
'size':(400, 300),
'style':['resizeable'],
'menubar': {'type':'MenuBar',
'menus': [
{'type':'Menu',
'name':'menuFile',
'label':'&File',
'items': [
{'type':'MenuItem',
'name':'menuFileExit',
'label':'E&xit',
'command':'exit',
},
]
},
]
},
'components': [
{'type':'Button',
'name':'Button1',
'position':(243, 166),
'size':(93, -1),
'label':'Button1',
},
] # end components
} # end background
] # end backgrounds
} }
========
Here's the qxtransformer code created by my poor-man GUI designer (lots of
details still missing):
========
<?xml version="1.0" encoding="utf-8"?>
<qx:root
xmlns:qx="http://www.qxtransformer.org/qooxdoo"
xmlns:qxt="http://www.qxtransformer.org/extension"
qooxdooVersion="0.7"
>
<qx:application
namespace="qxsample"
authors="Author Name"
translate="false"
title="Standard qxTransformer Template with File->Exit menu"
>
<qx:window
id="bgQxSample"
width="400" height="300"
caption="Standard qxTransformer Template with File->Exit menu"
modal="false" showMinimize="false" showMaximize="false"
showClose="false" display="true" onAppear="this.leftToBrowser()"
>
<!-- add your code here -->
<qx:button
id="Button1"
label="Button1"
>
</qx:button>
</qx:window>
</qx:application>
</qx:root>
========
Of course, to complete the example code above, all I need is to figure out how
to specify initial position of the window (which Pythoncard allows), how to
specify position of the button within the window, and so on.
You guys did all the hi-tech stuff. I am only doing the rather boring low-tech
coding. :-)
--
John Henry
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel