it's exactly like the example app from Christian, just modified the app
namespace. Footer and body components are stripped down to a composite /
hbox combination.
Application.xml:
> <?xml version="1.0" encoding="utf-8"?>
> <qx:application
> xmlns:qx="http://www.qxtransformer.org/qooxdoo"
> xmlns:qxt="http://www.qxtransformer.org/extension"
> xmlns:qcl="http://www.qooxdoo.org/contrib/qcl/trunk"
> xmlns:components="demo.components.*"
> className="demo.Application"
> author="Oliver Friedrich"
> extend="demo.Main">
>
>
> <!-- main layout -->
>
> <qcl:loginDialog
> image="access/qooxdoo-logo.gif"
> widgetId="loginDialog"
> callback="{js}this.checkLogin"
> message="Please log in."
> text="qcl demo application"
> />
>
> <qx:composite qxt:edge="0">
> <qx:vbox>
>
> <!-- menu -->
>
>
> <!-- toolbar -->
> <!--<components:toolBar/>-->
>
> <qx:composite margin="30">
> <qx:vbox spacing="10">
>
> <!-- application body -->
> <components:body/>
>
> <!-- source code buttons -->
> <components:footer/>
>
> </qx:vbox>
> </qx:composite>
>
> </qx:vbox>
> </qx:composite>
> </qx:application>Thanks for
Footer.xml and Body.xml (just different in the class name):
> <?xml version="1.0" encoding="utf-8"?>
> <qxt:component
> xmlns:qx="http://www.qxtransformer.org/qooxdoo"
> xmlns:qxt="http://www.qxtransformer.org/extension"
> xmlns:qcl="http://www.qooxdoo.org/contrib/qcl/trunk"
> author=""
> className="demo.components.Footer"
> tagName="footer">
>
> <qx:composite margin="30">
> <qx:vbox>
>
>
> </qx:vbox>
> </qx:composite>
>
> </qxt:component>
I hope, that i haven't build an error into these realy simple XML files ;)
Cheers,
Oliver
>>>>> contrib/QxTransformer/trunk/tool/bin/qxtransformer.py --dir
>>>>> source/class --out source/class -v 'main:DEBUG;dev:INFO;' -D
have played a little with my project and the Application.xml...
If i remove the attribute
xmlns:components="demo.components.*"
from tag <qx:aplication> the lxml error is gone, but (as expected) the
components are missing so the transform also fails.
In a second try i have removed the Application.xml completly from the
project. QxTransformer now creates the JS-files in the
components-subdir. So these files should be ok.
Perhaps i should open a new discussion about it, but it is normal that
QxTransformer creates redundant code for setting the properties of an
element?
Example:
> var qxMenuButton2 = new qx.ui.menu.Button("Note sheet", "icon/16/mimetypes/audio-x-generic.png", null, null);
> qxMenuButton2.setLabel("Note sheet");
> qxMenuButton2.setIcon("icon/16/mimetypes/audio-x-generic.png");
Cheers,
Oliver
Am 21.04.2010 16:53, schrieb Siarhei Barysiuk:
>>>>> contrib/QxTransformer/trunk/tool/bin/qxtransformer.py --dir
>>>>> source/class --out source/class -v 'main:DEBUG;dev:INFO;' -D
>> qxtransforme...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/qxtransformer?hl=en.
>>
>
--
Oliver Friedrich
Hammerschmidtstr. 39 | oli...@familie-friedrich.de
50999 Köln-Sürth | http://familie-friedrich.de
fon +49.(0)2236.5093052 | Skype: o.friedrich
fax +49.(0)2264.286479 | ICQ: 33857371
Secure Mail via PGP Signing & Encryption (Info: www.gnupg.org)
PGP ID: 0x5FBEE7EC