no bites?
Jeremy Hahn wrote:
> Im just stepping into the world of qooxdoo (very nice!) and trying to
> use the hello world skeletion to load a custom namespace resource. i can
> get the app to work as long as its a single top level namespace
> (mycustom.foo) however, when i attempt to go another level down, the
> image and button does not display. here is the code:
>
> /* ************************************************************************
>
> Copyright:
>
> License:
>
> Authors:
>
> ************************************************************************ */
>
> /* ************************************************************************
>
> #resource(custom.image:image)
>
> // List all static resources that should be copied into the build version,
> // if the resource filter option is enabled (default: disabled)
> #embed(qx.icontheme/32/status/dialog-information.png)
> #embed(custom.image/test.png)
>
> ************************************************************************ */
>
> /**
> * Your custom application
> */
> qx.Class.define("foo.bar.Application",
> {
> extend : qx.application.Gui,
>
> /*
>
> *****************************************************************************
> MEMBERS
>
> *****************************************************************************
> */
>
> members :
> {
> /**
> * TODOC
> *
> * @type member
> */
> main : function()
> {
> this.base(arguments);
>
> // Define alias for custom resource path
> qx.io.Alias.getInstance().add("custom",
> qx.core.Setting.get("foo.bar.resourceUri") );
>
> // Create button
> var button1 = new qx.ui.form.Button("First Button",
> "custom/image/test.png");
>
> // Set button location
> button1.setTop(50);
> button1.setLeft(50);
>
> // Add button to document
> button1.addToDocument();
>
> // Attach a tooltip
> button1.setToolTip(new qx.ui.popup.ToolTip("A nice tooltip",
> "icon/32/status/dialog-information.png"));
>
> // Add an event listener
> button1.addEventListener("execute", function(e) {
> alert("Hello World!");
> });
> },
>
>
> /**
> * TODOC
> *
> * @type member
> */
> close : function()
> {
> this.base(arguments);
>
> // Prompt user
> // return "Do you really want to close the application?";
> },
>
>
> /**
> * TODOC
> *
> * @type member
> */
> terminate : function() {
> this.base(arguments);
> }
> },
>
>
>
>
> /*
>
> *****************************************************************************
> SETTINGS
>
> *****************************************************************************
> */
>
> settings : {
> "foo.bar.resourceUri" : "./resource"
> }
> });
>
>
> Make file is:
>
> ################################################################################
> #
> # qooxdoo - the new era of web development
> #
> # http://qooxdoo.org
> #
> # Copyright:
> # 2006-2007 1&1 Internet AG, Germany, http://www.1and1.org
> #
> # License:
> # LGPL: http://www.gnu.org/licenses/lgpl.html
> # EPL: http://www.eclipse.org/org/documents/epl-v10.php
> # See the LICENSE file in the project's top-level directory for details.
> #
> # Authors:
> # * Sebastian Werner (wpbasti)
> # * Andreas Ecker (ecker)
> # * Fabian Jakobs (fjakobs)
> #
> ################################################################################
>
> ################################################################################
> # SETTINGS
> ################################################################################
>
> #
> # Path to the folder of your qooxdoo distribution.
> # Can either be
> # a) a relative path to the location of this Makefile (preferred) or
> # b) an absolute path starting at the root of your file system
> # Example: If you put the skeleton folder next to the qooxdoo SDK folder,
> # you can use the following relative path:
> # QOOXDOO_PATH = ../../qooxdoo-0.7-sdk
> # Please note that Windows users should always use relative paths.
> # It should end with the last directory. Please omit a trailing slash.
> #
> QOOXDOO_PATH = ../qooxdoo-0.7.2-sdk
>
> #
> # Namespace of your application e.g. custom
> # Even complexer stuff is possible like: net.sf.custom
> #
> APPLICATION_NAMESPACE = foo.bar
>
> #
> # Files that will be copied from the source directory into the build
> # directory (space separated list). The default list is empty.
> #
> APPLICATION_FILES = index.html
>
> #-------------------------------------------------------------------------------
> # For a full list and description of available application settings, please
> # see the APPLICATION variables in file
> # $(QOOXDOO_PATH)/frontend/framework/tool/make/application.mk
> # Add any of those variables for your custom configuration here:
> #-------------------------------------------------------------------------------
>
>
>
>
> ################################################################################
> # INTERNALS (PLEASE DO NOT CHANGE)
> ################################################################################
>
> ifneq ($(QOOXDOO_PATH),PLEASE_DEFINE_QOOXDOO_PATH)
> include $(QOOXDOO_PATH)/frontend/framework/tool/make/targets.mk
> include $(QOOXDOO_PATH)/frontend/framework/tool/make/application.mk
> endif
>
> error:
> @echo " * Please configure QOOXDOO_PATH"
>
>
>
> my class structure looks like this:
>
> class/foo/bar/Application.js
>
> Script structure after make is:
>
> script/foo.bar.js
>
> Index includes script file script/foo.bar.js
>
>
>
> The application loads and the debugger says:
>
>
> 004074 DEBUG: qx.core.Init[4]: qooxdoo 0.0
> 004082 DEBUG: qx.core.Init[4]: loaded 0 old classes
> 004084 DEBUG: qx.core.Init[4]: loaded 326 classes
> 004084 DEBUG: qx.core.Init[4]: loaded 8 interfaces
> 004085 DEBUG: qx.core.Init[4]: loaded 9 mixins
> 004086 DEBUG: qx.core.Init[4]: loaded 26 themes
> 004087 DEBUG: qx.core.Init[4]: loaded 8 locales
> 004088 DEBUG: qx.core.Init[4]: client: gecko-1.8/unix/en
> 004089 DEBUG: qx.core.Init[4]: browser: firefox/svg
> 004091 DEBUG: qx.core.Init[4]: application: qx.application.Gui[16]
> 004153 INFO: qx.core.Init[4]: main runtime: 61ms
> 004237 DEBUG: qx.application.Gui[16]: preloading visible images...
> 004243 INFO: qx.application.Gui[16]: render runtime: 4ms
> 004299 DEBUG: qx.application.Gui[16]: preloading hidden images...
>
>
> however, i dont see the button or image load.
>
> if i remove the foo and just use bar then everything works fine. what do
> i need to do differently to make it work?
>
>
> thanks
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel