Background
I've been trying to utilize a custom icon theme in an application. As a
proof of concept, I've simply been trying to set up a slightly modified
skeleton to use a custom theme that utilizes application-specific icons.
The custom theme ("VistaInspirate2" for now) tries to utilize a icons in a
resource folder that reside inside my skeleton. Right now, the theme is
just a copy of VistaInspirate.
here's my skeleton:
skeleton
+ source
...+ class
......+ custom
........+ theme ...
...+ resource
......+ icon
.........+ VistaInspirate2 (this is just a copy of VistaInspirate icons for
now)
......+ image
......+ widget
...+ script
The Problem
I am able to accomplish my stated goal, as long as I hard-code the resource
path and do NOT use Qooxdoo's settings capabilities to create a custom
resourceURI. From my version of the Application.js application class in the
"custom" skeleton:
...
main : function()
{
this.base(arguments);
//qooxdoo article has incorrect documentation. states this setting is
qx.Settings.setDefault, which also does not work
//qx.Settings.setDefault("resourceUri", "./resource");
qx.core.Setting.define("resourceUri", "./resource");
qx.io.Alias.getInstance().add("custom",
qx.core.Setting.get("custom.resourceUri"));
...
Part of my problem is that I had been relying on an article on the Qooxdoo
site that I believe has some inaccuracies. The article:
http://qooxdoo.org/documentation/0.7/configuring_custom_resources
states that settings are added like this
"qx.Settings.setDefault("resourceUri", "./resource");"
That appears to be incorrect, and settings should be added like this:
"qx.core.Setting.define("resourceUri", "./resource");"
When I found this discrepancy between the API and the documentation, I
thought I'd found the root cause of my problem, but even after making this
change, I am unable to get an application to load with a custom resourceUri
setting employed. The error I get in the debugger says: "Setting
"custom.resourceUri" is not supported by API."
If anybody has attempted a similar exercise, and has a working skeleton app
they could share, I'd really appreciate it.
My skeleton application is zipped and attached. I also posted it at
www.tartansolutions.com/dev.
Many thanks in advance.
-Mike
http://www.nabble.com/file/p12927207/skeleton.zip skeleton.zip
--
View this message in context:
http://www.nabble.com/Problem-using-custom-resource-capability-in-0.72-tf4530081.html#a12927207
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel