Hi guys, during my train trip to Berlin I worked a bit on a module configuration for the GUI of qooxdoo using the powerful "part" system. This is currently a bit underdocumented and will definitely got more love in the future. It was mainly developed for one of the largest qooxdoo applications, the GMX web mail client. Still, for the moment it is quite cool as it can be used to create such modules with a less work than doing it completely manually. The basic idea is that one defines "parts" which refers to classes. The generator then automatically detects the dependencies of each entry and which classes they have in common and tries to place them outside so they can used by both modules (whichever is loaded first, also load this dependend module). OK, not sure if I really can explain this in one mail. So just have a look at the attached configuration. But it in a skeleton prepared by "create-application.py" and just call "./generate.py modules". After the run you find a 10 scripts for "dist" and "debug" in the build folder. The full package needs all of them, but it is possible to only use a few of them. But please take care. Some of them have depencies on each other. In the script file without a number (the loader) you can find a part where the parts are defined. Just look out / search for "window.qxloader = ...". The number in each array is the name of the script postfix e.g. "3" means file "dist-3" (or "debug-3" respectively). The order of these numbers is important. Load module "0" before "9" when it is listed this way! Normally these files are loaded automatically by qx.core.Package, but in this case, as one look out for a module like pattern it may be better to move the logic to the backend, select the needed scripts there, and basically omit the whole loader script. I would like to hear your feedback. Please experiment yourself with the settings inside the part declaration. Also some volunteers writing a paragraph or two to our wiki about such a possibility would be great. Thanks. Sebastian |
config.json
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel