You are correct that the file structure is similar to Java. Your files go
into a specific directory based on the name of your application. You have
seen the structure in the Custom sample you tried out. For your need your
needs you would create a folder structure like:
qooxdoo/frontend/application/mailcenter/source/class/mailcenter
I think, others can correct me if I am wrong on this, that the startup JS
file/class can be anything you want. It doesn't have to be
Application.jsbut in your
index.html file you reference the routine that you have set as your startup
class:
qx.core.Init.getInstance().setApplication(mailcenter.planning);
Here is a link to everything that you might want to know about the Make
file:
http://qooxdoo.org/documentation/user_manual/application_mk?s=make%20build
You need an HTM file in order to load the JS file and to some extent to
start your application. I know that you can have the code to start your app
be part of the JS and get executed automatically, but that's not the way the
skeleton system was written. Look at the other examples like the APIViewer
and FeedReader to see how the Make file differ and you will begin to get the
feel for how things are done. Once you get the hang of it it's pretty easy
to use.
Jim
On 5/9/07, Martin Drautzburg <[EMAIL PROTECTED]> wrote:
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
-------------------------------------------------------------------------
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