On Wednesday, 9. May 2007 19:37, Jim Hunter wrote:
> You have to have everything in harmony. The MAKE file needs to know the
> name of your application and where to look for the files. The name of the
> folder where the files are located should, IMHO, match the name of your
> application (it's not required but it makes things easier to deal with).
> Etc. What is the directory structure for your code files? And what does
> your MAKE file look like? What name do you want to give to your
> application?
Well I am using the skeleton tgz file, which creates a source/class/custom/
folder with an Application.js file in it. This file contains
qx.OO.defineClass("custom.Application" ...
so I assume this name has to be in line with the directory structure. Changing
it to say "mailCenter.planning" would require to put it into a folder named
mailCenter/planning. A typical java-ish idiom I never really liked, but
hey...
The generated Makefile contains things like
APPLICATION_NAMESPACE = custom
APPLICATION_MAKE_TITLE = CUSTOM
APPLICATION_API_TITLE = Custom
I do not know how these are related to the folder and class names. It gives me
the impression that the java-ish folder naming convention is not really a
must, otherwise what would be the point in having three settings here, where
one would suffice?
The generated index.html file contains
qx.core.Init.getInstance().setApplication(custom.Application);
so I guess I have to change this as well to mailCenter.planning.
Then there is the source/custom.js file which contains
<script type="text/javascript"
src="./class/custom/Application.js"></script>
so I believe I have to change this as well. I assume the name of the script
itself does not matter much as long as it is in line with index.html where I
find
<script type="text/javascript" src="script/custom.js"></script>
To be honest, I don't understand the purpose of custom.js at all, or more
precicely: part of the loading and invoking logic is in index.html and part
of it is in custom.js and I don't quite undestand the rationale behind it.
Finally there is the toplevel directory (the one containing "source"), but it
seems like its name does not matter much.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel