defineAlias does actually work, unfortunately the themes overwrite
application values when loaded. Hypothetically you could get around
this by forcing a load of the theme (create a widget with an icon),
then invoking defineAlias although I haven't tested this approach.
Like Erich, I've been using a less than desirable work-around. Mine is
to use aliases that won't clash with the themes. So, I alias "icons"
instead of "icon" and reference images that way.
Example:
var foo = new qx.ui.toolbar.ToolBarButton("Add Image", "icons/22/up.png")
This likely won't work if you need to switch themes (you'd have to
re-alias in addition to the switch) and it's partially broken with
tree views due to another bug in the tree impl (which I have a patch
for I think but I need an answer to the OP before I post).
None of these approaches are ideal and a good fix is needed.
-erik
Jim Hunter wrote:
> OK, since the defineAlias doesn't seem to work and since paths were moved
> around in one of the latest builds, what is the officially recommended set
> of paths for the images and themes right now? I have tried moving
> directories around all morning and I can't get them to work and I finally
> gave up and want to know what is going to work if we don't make any
> defineAlias changes?
> My images worked just fine until about 4 or 5 days ago, now my app looks
> horrible and I really would like to get past this.
>
> Thanks,
> Jim
>
>
> On 8/3/06, Erich Konicek <[EMAIL PROTECTED]> wrote:
>>
>> Erik A. Onnen schrieb:
>>
>> The storage of Qooxdoo on my webserver is not in a standard location
>> and cannot be for various reasons.
>>
>> I had the same problem.
>> My solution is a own Makefile with runtine-setting as shown below.
>>
>> generate-script-build:
>> @$(GENERATE) \
>> --script-input $(FRAMEWORK)/source/class \
>> --generate-compiled-script \
>> --compiled-script-file qx/script/qx.js \
>> --copy-resource \
>> --resource-input $(FRAMEWORK)/source/resource \
>> --resource-output qx/resource \
>> * --define-runtime-setting
>> qx.theme.icon.CrystalSvgIconTheme.imageUri:/qooxdoo.resource/icon/crystalsvg\
>>
>> --define-runtime-setting
>> qx.theme.icon.NuvolaIconTheme.imageUri:/qooxdoo/resource/icon/nuvola \
>> --define-runtime-setting
>> qx.theme.widget.WindowsWidgetTheme.imageUri:/qooxdoo/resource/widget/windows\
>>
>> --define-runtime-setting
>> qx.manager.object.ImageManager.staticUri:/qooxdoo/resource/static \
>> * --cache-directory $(CACHE)
>>
>> The result is a qx.js with the given location (e.g.
>> /qooxdoo/resource/...)
>> for the themes.
>> You don't have to set aliases then.
>>
>> But I am not happy about this, because for each new theme I have to
>> change
>> my Makefile.
>>
>> - Erich
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel