Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread franck34
I've added #asset(qx/icon/Tango/22/actions/dialog-apply.png) #asset(qx/icon/Tango/22/actions/dialog-cancel.png) and then rebuild, it's ok now. Need to go deeper in reading your links Thanks a lot franck -- View this message in context: http://qooxdoo.678.n2.nabble.com/Problem-with-images-pa

Re: [qooxdoo-devel] Where is the widget ID Set?

2011-08-16 Thread Derrell Lipman
On Tue, Aug 16, 2011 at 20:34, Simon White wrote: > Hi > > I was assuming that each control had an "ID" property similar to > properties like height and width etc. Now I see I was mistaken. > > Is there a method to retrieve a child control similar to javascript's > get document.getElementById() m

Re: [qooxdoo-devel] Where is the widget ID Set?

2011-08-16 Thread Simon White
Hi I was assuming that each control had an "ID" property similar to properties like height and width etc. Now I see I was mistaken. Is there a method to retrieve a child control similar to javascript's get document.getElementById() method? I was thinking of something like mywindow.getElement

[qooxdoo-devel] Original image size

2011-08-16 Thread Seldaiendil D. Flourite
Hi all, I have a really basic problem but can't found the solution, I have a qx.ui.basic.Image object and I want allow the user to set and open any url image. But I need to center (keep size), scale (keep ratio) or expand (to any width or height) depending of the user. I mean, the user has a TextF

Re: [qooxdoo-devel] Where is the widget ID Set?

2011-08-16 Thread Seldaiendil D. Flourite
By the way, to see already defined child controls you can use the API, at the bottom of the page. Child controls are not shown over inheritance, you must see all base classes to know existing child controls. http://demo.qooxdoo.org/1.5.x/apiviewer/#qx.ui.basic.Atom 2011/8/16 Seldaiendil D. Flo

Re: [qooxdoo-devel] Where is the widget ID Set?

2011-08-16 Thread Seldaiendil D. Flourite
Hi, Child controls are managed internally by widget class. To create child controls you must override widget method *_createChildControlImpl*, add your child controls and call the base class *_createChildControlImpl* method: *qx.Class.define('myapp.MyWidget', { > * * extend: qx.ui.core.Widget

[qooxdoo-devel] Where is the widget ID Set?

2011-08-16 Thread Simon White
Hi I can see that there is a qx.ui.core.Widget.getChildControl(string id, boolean notcreate) method but I have not found where the ID of a widget is set. Therefore I do not know what value to supply for the ID. Can someone enlighten me? Thanks, Simon ---

Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread franck34
Thank you for links. What i don't understand is that i've got 404 not found for ok button, and ok for cancel button. But in my code, path is the same .. I'll take a look at assets stuff in few minutes, it's new for me. I think the problem has been already known: http://qooxdoo.678.n2.nabble.com

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread thron7
On 08/16/2011 06:25 PM, Norbert Schröder wrote: > Interesting. Your hint just made me aware of the fact that I may know > one thing or another about qooxdoo and how to use it - but I know > virtually nothing about pure JavaScript (except for some very basic > principles). I thought as much, and

Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread thron7
On 08/16/2011 06:35 PM, Marc Puts wrote: > /* > #asset(icon/22/actions/dialog-apply.png) > #asset(icon/22/actions/dialog-cancel.png) > */ > I think you need to use resource id's here, not aliases. T. -- uberSVN's rich s

Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread thron7
The base line is: You must declare resources, like images, that your code uses, with a #asset declaration at the top of the class file [1]. In this case e.g. #asset(qx/icon/Tango/22/actions/dialog-apply.png) #asset(qx/icon/Tango/22/actions/dialog-cancel.png) (Why you get two different paths fro

Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread Marc Puts
Hi Franck, Did you add the images as assets to your class file? If not, add the following lines before the class definition: /* #asset(icon/22/actions/dialog-apply.png) #asset(icon/22/actions/dialog-cancel.png) */ qx.Class.define(... Then rerun "gene

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread Norbert Schröder
Interesting. Your hint just made me aware of the fact that I may know one thing or another about qooxdoo and how to use it - but I know virtually nothing about pure JavaScript (except for some very basic principles). Thanks for the clarification, Norbert Am 16.08.2011 18:03, schrieb thron7

Re: [qooxdoo-devel] Problem with images path

2011-08-16 Thread franck34
What is the supposed good path (for sources) ? -- View this message in context: http://qooxdoo.678.n2.nabble.com/Problem-with-images-path-tp6691933p6691937.html Sent from the qooxdoo mailing list archive at Nabble.com. -

[qooxdoo-devel] Problem with images path

2011-08-16 Thread franck34
Got a really simple app with that : var okButton = new qx.ui.form.Button('OK',"icon/22/actions/dialog-apply.png"); container.add(okButton,{top:100,left:100}); var cancelButton = new qx.ui.form.Button('Annuler',"icon/22/actions/dialog-cancel.png"); container.add(cancelButton,{top:100,left:150});

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread thron7
On 08/16/2011 05:32 PM, Daniel Wagner wrote: > window and document are just the global objects provided by the browser, > no magic involved :) Meaning you can read about them in any decent JavaScript reference. T. --

[qooxdoo-devel] Dialog: patch to handle Enter key for Alert

2011-08-16 Thread franck34
Here is the patch : qx.Mixin.define("myApp.patchDialog", { members:{ show : function() { if ( this.isUseBlocker() ) { var root = this.getApplicationRoot(); root.setBlockerOpacity( this.getBlockerOpacity() ); root.setBlockerC

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread Daniel Wagner
window and document are just the global objects provided by the browser, no magic involved :) Regards, Daniel On 08/16/2011 05:05 PM, Norbert Schröder wrote: > Hi Daniel, > > I've copied your solution into my application - and yes, it works!! I'm > using a timeout within a "changeHtml" event li

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread Norbert Schröder
Hi Daniel, I've copied your solution into my application - and yes, it works!! I'm using a timeout within a "changeHtml" event listener like so: htmlWidget.addListener("changeHtml", function(e) { window.setTimeout(function() { var selection = document.getElementById("selection");

Re: [qooxdoo-devel] Reduce framework size and load time.

2011-08-16 Thread linucos
Hi, Thanks. I will try *Parts* deeply. I will do some research on this topic. Thank you again. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Reduce-framework-size-and-load-time-tp6690403p6691616.html Sent from the qooxdoo mailing list archive at Nabble.com. -

Re: [qooxdoo-devel] howto: my first qooxdoo "patch"

2011-08-16 Thread franck34
You win ;) Thanks a lot ! i've replaced qx.Class.define("tradingactive.patchDialog", { with qx.Mixin.define("tradingactive.patchDialog", { and it's ok On Tue, Aug 16, 2011 at 4:08 PM, Seldaiendil D. Flourite < seldaiend...@gmail.com> wrote: > Mixin

Re: [qooxdoo-devel] howto: my first qooxdoo "patch"

2011-08-16 Thread Seldaiendil D. Flourite
Hi, I haven't many experience on Qooxdoo, but in the API the patch method recives a Class and a Mixin Class.patch(Class clazz, Mixin mixin) Maybe the problem is you are trying to patch one cl

[qooxdoo-devel] howto: my first qooxdoo "patch"

2011-08-16 Thread franck34
I need to patch dialog.Dialog. In my application, i have : Application.js, containing "qx.Class.patch(dialog.Dialog, tradingactive.patchDialog);" and patchDialog.js, containing the code below, which is the same as the original one, but i just added console.log('here'): qx.Class.define("tradin

[qooxdoo-devel] Antw: Re: howto: make a simple xhr generic class

2011-08-16 Thread Robert Nimax
Hi, sorry for disturbing, but thron7 remarked: [...] It's not unclean what you are doing. I just don't like objects dashing ahead by only creating them. When I create them I want them to do nothing, just be ready. Among other things, this allows me to pass those objects around, store them in data

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
I think i get it, great ;) Thanks for your help !! On Tue, Aug 16, 2011 at 2:56 PM, thron7 wrote: > ** > > > On 08/16/2011 02:34 PM, franck34 wrote: > > > > > >> > var req = new qx.io.request.Xhr(url,'POST'); >> >> To do everything in the constructor is ok if you intend to throw eac

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 02:34 PM, franck34 wrote: > var req = new qx.io.request.Xhr(url,'POST'); To do everything in the constructor is ok if you intend to throw each UtilXhr instance away after its instantiation. Notice i'm noob in OO too so ... what do you mean ? need i

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Updated version: https://gist.github.com/1148887 qx.Class.define("tradingactive.UtilXhr", { extend : qx.core.Object, construct: function(url,data,cb,caller) { var req = new qx.io.request.Xhr(url,'POST'); if (data) req.setRequestData(data); req.addListener("succe

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
On Tue, Aug 16, 2011 at 2:06 PM, thron7 wrote: > > > On 08/16/2011 01:36 PM, franck34 wrote: > > Here is the "good" one : > > > > https://gist.github.com/1148887 > > > > -- > > > > qx.Class.define("tradingactive.UtilXhr", { > > extend : qx.application.Standalone, /

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 01:36 PM, franck34 wrote: > Here is the "good" one : > > https://gist.github.com/1148887 > > -- > > qx.Class.define("tradingactive.UtilXhr", { > extend : qx.application.Standalone, /* BUG: not the good class to > extend, which one ?? */ qx.core.Obje

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Here is the "good" one : https://gist.github.com/1148887 -- qx.Class.define("tradingactive.UtilXhr", { extend : qx.application.Standalone, /* BUG: not the good class to extend, which one ?? */ construct : function() { this.base(arguments);

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Mmmm sorry i forgot comments. Please wait. -- View this message in context: http://qooxdoo.678.n2.nabble.com/howto-make-a-simple-xhr-generic-class-tp6690748p6690989.html Sent from the qooxdoo mailing list archive at Nabble.com.

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Seem's raw tag are only available for viewable version of my email. Here is the code : https://gist.github.com/1148887 --- qx.Class.define("tradingactive.UtilXhr", { extend : qx.application.Standalone, construct : function() { this.base(arguments);

Re: [qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread thron7
On 08/16/2011 12:09 PM, franck34 wrote: > Here is my actual code, Where is your actual code?! T. -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying

Re: [qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread thron7
Norbert, could you put up a little Playground example that showcases what you want to do. That would be easier to work with. T. On 08/16/2011 09:59 AM, Norbert Schröder wrote: > Hi, > > can anybody help me with qx.ui.embed.Html and scrolling? My scenario is > this: > > I have some HTML-formatted

Re: [qooxdoo-devel] Reduce framework size and load time.

2011-08-16 Thread thron7
On 08/16/2011 10:01 AM, linucos wrote: > 2. Parts. > >> As we know, the core library's size is the biggest sometime, so > can we parts the framework? >like qx.js in build-all job. No, the core library's size is not "the biggest sometime". The framework provides cl

[qooxdoo-devel] Antw: howto: make a simple xhr generic class

2011-08-16 Thread Robert Nimax
Hi, what about implemeting a singleton class that encapsulates the qx.io.* ? You can access that instance from everywhere. >>> franck34 8/16/2011 12:09 >>> Hello, I've started learning qooxdoo since 3 days now. After playing with widgets, i'm trying to apply "best practices" In my application,

[qooxdoo-devel] howto: make a simple xhr generic class

2011-08-16 Thread franck34
Hello, I've started learning qooxdoo since 3 days now. After playing with widgets, i'm trying to apply "best practices" In my application, i'm using lot's of xhr requests. Every server response must send a json string. If not, there is a fault server side. Every client request are always POST, da

Re: [qooxdoo-devel] translating celleditor.SelectBox and cellrenderer.Replace

2011-08-16 Thread thron7
On 08/16/2011 11:13 AM, Piotr Pietrzak wrote: > >> You might also have to take care of the changeLocale event, to actually >> invoke LocalizedString.translate(). > Sure thing. If there is no other option I'll probably go into this, but > I hope there is more generic approach (built-in solution) f

Re: [qooxdoo-devel] translating celleditor.SelectBox and cellrenderer.Replace

2011-08-16 Thread Piotr Pietrzak
Hi, > Well, for one thing you should take care not to pass simple strings to a > widget, as they have no intelligence on their own concerning locale > switches. Try qx.locale.LocalizedString instead. These *are* LocalizedStrings, or at least this.debug says so... > You might also have to take car

Re: [qooxdoo-devel] Adding new key to property

2011-08-16 Thread thron7
On 08/15/2011 11:55 PM, Waxolunist wrote: > Hello > > I am writing on an interface to couchdb. Therefore I wanted to add a new > allowedkey to the properties. The interface works. But if I want to keep > that change to qx.core.Property I have to store the complete qooxdoo > framework in my cvs. >

Re: [qooxdoo-devel] decorator: qx.ui.decoration.MDoubleBorderdon't create an inner border

2011-08-16 Thread thron7
On 08/15/2011 05:20 PM, Mustafa Sak wrote: Hi martin, Without setting qx.ui.decoration.MBackgroundImage background image was set as well. But I did what you said but no effort. So open a bug for it, as Martin said. I don't know but it's possible to set theme at runtime? No. I guess

[qooxdoo-devel] HTML-Widget and scrolling

2011-08-16 Thread Norbert Schröder
Hi, can anybody help me with qx.ui.embed.Html and scrolling? My scenario is this: I have some HTML-formatted text which I load into a qx.ui.embed.Html widget via setHtml. Within this text there is a tag with an ID which I would like to scroll into view after the text has been loaded. How do

[qooxdoo-devel] Reduce framework size and load time.

2011-08-16 Thread linucos
hi all, How to reduce the app size?How to reduce time to load app? I think this is a always asked question. From the manual and ML, i got steps : 1. Dose the server support "gzip"? Open it and speed up the load-time. >> Always, we just get a web host and the server is NOT going