well things seem to have changed in the current revision of namespace
branch.
I tried to set the paths like this with no success:
qx.manager.object.ImageManager.defineAlias("corePath",
"/qooxdoo/build/resources");
qx.manager.object.ImageManager.defineAlias("localPath", "/nra/i");
The debug window gives the following output which seems to indicate
that the aliases are not updated:
002234 INFO: qx.component.InitUiComponent(50): initialize
runtime: 16ms
003172 INFO: qx.component.InitUiComponent(50): main runtime: 922ms
003172 DEBUG:
qx.component.InitUiComponent(50): preloading visible images...
003281 DEBUG:
qx.io.image.ImagePreloader(1402): Could not load:
../../resources/icon/crystalsvg/16/help.png
003281 DEBUG:
qx.io.image.ImagePreloader(1405): Could not load:
../../resources/widget/windows/arrows/down.gif
What is the even righter way to do it ;-)
Andreas Ecker schrieb:
Hi,
to wrap it up:
- You should not try to manipulate qx.core.Settings directly. It only
worked in 0.5.x to set a custom QxSettings before loading qooxdoo.js.
This will not work in the namespaces branch or any future qooxdoo.
- Use the methods available for such custom settings, e.g.
qx.manager.object.ImageManager.setIconPath(). You should do this in the
initialization phase of your application which is executed before your
main function. Please don't place it anywhere between in the global
scope. Simply put it into your qx.core.Init.defineInitialize(function(){
//HERE } );
- What you should never do is to change the original DefaultSettings.js
file. While it may have been convenient for some users in the past to
configure their local application by changing this file, it is strongly
discouraged to do so. Future checkouts may break your configuration.
It would be great if any volunteers could transfer and adjust the old
article
http://old.qooxdoo.org/documentation/modify-image-paths
to the new homepage:
http://qooxdoo.org/documentation/user/modify_image_path
Bye,
Andreas
Sebastian Werner wrote:
It's enough to use the setters. But it's even better to place them
inside defineInitialize instead directly in the global environment.
Sebastian
Dietrich Streifert schrieb:
Are the changed values in qx.core.Settings ever processed or do you
change them for completeness?
Lothar Kaiser schrieb:
Hi Dietrich,
this is the way it works with us. Just load qooxdoo.js or includer.js
and immediately after that change the paths.
<script type='text/_javascript_' src=''></script>
<script type='text/_javascript_'>
qx.core.Settings['imageCorePath'] =
'http://server.com/images';
qx.core.Settings['imageIconPath'] =
'http://server.com/themes/icons';
qx.core.Settings['imageWidgetPath'] =
'http://server.com/themes/widgets';
qx.manager.object.ImageManager.setCorePath(qx.core.Settings.imageCorePath);
qx.manager.object.ImageManager.setLocalPath(qx.core.Settings.imageLocalPath);
qx.manager.object.ImageManager.setIconPath(qx.core.Settings.imageIconPath);
qx.manager.object.ImageManager.setWidgetPath(qx.core.Settings.imageWidgetPath);
</script>
Hope this helps,
cheers,
Lothar
Am Mittwoch, den 19.07.2006, 08:53 +0200 schrieb Dietrich Streifert:
I tried setting:
qx.core.Settings.imageWidgetPath =
"qooxdoo/build/themes/widget";
qx.core.Settings.imageIconPath =
"qooxdoo/build/themes/icon/crystalsvg/";
qx.core.Settings.imageLocalPath = "/nra/i/";
qx.core.Settings.imageCorePath = "qooxdoo/build/images";
with no success. The new values seem to be ignored.
[EMAIL PROTECTED] schrieb:
Dietrich Streifert <[EMAIL PROTECTED]> writes:
Hello List,
how can I change the default paths to the icons?
In the source I found the definition of qx.core.DefaultSettings where
the image paths are defined as:
imageCorePath : "../../images",
imageLocalPath : "./",
imageIconPath : "../../themes/icons",
imageWidgetPath : "../../themes/widgets",
So after loading qooxdoo.js I tried the following without success:
The default settings get copied to Settings. (Look at qx.core.Settings.js)
You need to make your changes to Settings, after having loaded qooxdoo.js.
Derrell
-------------------------------------------------------------------------
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
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
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
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
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
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
|
-------------------------------------------------------------------------
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