Sure.
Here's my config.json:
{
"name" : "custom",
"include" :
[
{
"path" : "../qooxdoo-0.8-sdk/tool/data/config/application.json"
}
],
//Changed "QOOXDOO_URI" : "../${QOOXDOO_PATH}", to "QOOXDOO_URI" :
"./${QOOXDOO_PATH}",
"let" :
{
"APPLICATION" : "custom",
"QOOXDOO_PATH" : "../qooxdoo-0.8-sdk/framework",
"QOOXDOO_URI" : "./${QOOXDOO_PATH}",
"QXTHEME" : "qx.theme.Modern",
"API_EXCLUDE" : ["qx.legacy.*"],
"LOCALES" : [ "en" ],
"ROOT" : "."
}
}
Here's the slightly condensed code from my modified Application.js for Hello
World (interesting parts in Bold):
/* ************************************************************************
#asset(custom/*)
#asset(qx/icon/${qx.icontheme}/*)
************************************************************************ */
/**
* This is the main application class of your custom application "custom"
*/
qx.Class.define("custom.Application",
{
extend : qx.application.Standalone,
/*
*****************************************************************************
MEMBERS
*****************************************************************************
*/
members :
{
/**
* This method contains the initial application code and gets called
* during startup of the application
*/
main : function()
{
// Call super class
this.base(arguments);
// Enable logging in debug variant
if (qx.core.Variant.isSet("qx.debug", "on"))
{
// support native logging capabilities, e.g. Firebug for Firefox
qx.log.appender.Native;
// support additional cross-browser console. Press F7 to toggle
visibility
qx.log.appender.Console;
}
/*
-------------------------------------------------------------------------
Below is your actual application code...
-------------------------------------------------------------------------
*/
// Create a button
var button1 = new qx.ui.form.Button("First Button",
"custom/test.png");
// Create a second button
var button2 = new qx.ui.form.Button("Second Button",
"icon/16/apps/utilities-terminal.png");
// Document is the application root
var doc = this.getRoot();
// Add button to document at fixed coordinates
doc.add(button1, {left: 100, top: 50});
doc.add(button2, {left: 100, top: 150});
// Add an event listener
button1.addListener("execute", function(e) {
alert("Hello World!");
});
// Add an event listener
button2.addListener("execute", function(e) {
alert("Second Button!");
});
}
}
});
Christian Schmidt-18 wrote:
>
> Hi Mike,
>
> I have tried to reproduce the problem, but I can't reproduce it. I use the
> asset "#asset(qx/icon/Tango/32/categories/office.png)" to import an icon
> as resource. With the code "var button = new qx.ui.form.Button("First
> Button", "icon/32/categories/office.png");" I can create a button with the
> icon.
>
> Can you explane please, how you import icons?
>
> Thanks,
> Chris
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Mike Rea [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 1. Oktober 2008 22:04
> An: [email protected]
> Betreff: [qooxdoo-devel] 0.8 Hello World -- small bug & resolution
>
>
> I was trying out 0.8 by adding more widgets to the hello world application
> in 0.8, and I was having trouble getting icons to show up. The original
> hello world app contains only 1 widget, a button. This button has an
> icon, but it is a custom resource; thus it is not pulled from an icon
> theme folder.
>
> The reason I couldn't get icons to show up is that there was a small bug
> in the config.json file in my custom application, which I created based on
> the instructions found here:
> http://qooxdoo.org/documentation/0.8/helloworld
>
> The problem with config.json is the QOOXDOO_URI setting. It reads as
> follows:
>
> "QOOXDOO_URI" : "../${QOOXDOO_PATH}",
>
> Based on how QOOXDOO_PATH has been defined in this case, the QOOXDOO_URI
> setting should be as follows:
>
> "QOOXDOO_URI" : "./${QOOXDOO_PATH}",
>
> (./ not ../)
>
> With this change, icons are now showing up in widgets specify icons from
> the icon theme.
>
> -Mike
> --
> View this message in context:
> http://www.nabble.com/0.8-Hello-World----small-bug---resolution-tp19768036p19768036.html
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/0.8-Hello-World----small-bug---resolution-tp19768036p19789977.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel