Re: [qooxdoo-devel] how do I dispose a qx.ui.window.Window in qx 3.0.1?

2013-11-28 Thread Marc Puts
Hi Dietrich, Have you tried myWindowInstance.destroy() ? As a rule of thumb, when you want to dispose of a descendent of qx.ui.core.Widget (which the Window is) you should use .destroy() instead of .dispose(). The difference is that destroy() will also remove the widget from its parent and

Re: [qooxdoo-devel] Using source version with a web server (qx resources issue)

2013-05-13 Thread Marc Puts
Hi Ripston, The actual path from your source to the SDK is probably something like ../../../../../qooxdoo-2.1.1-sdk, which is why the server looks at /qooxdoo-2.1.1-sdk. The source version just references the needed SDK files with relative paths, so those files *will* need to be served by th

Re: [qooxdoo-devel] About accessing parameter

2013-05-06 Thread Marc Puts
You can access idx straight away, no extra work required :) On 06-05-13 16:14, fei wang wrote: Hi, Any one can help me about accessing function parameter ? I have the follow function. requsetProject : function(pid, idx) { var req = new qx.io.request.Xhr("/hrm/services/Act

Re: [qooxdoo-devel] TypeError: bp is null

2013-04-18 Thread Marc Puts
Hi Tobi, This often happens if you try access a private variable (prefixed with two underscores) from outside a class (thus violating access rules). You should go through your code to find where that happens and fix that. The build version of the generator optimizes private variables by rena

Re: [qooxdoo-devel] How to add new item to qx.data.marshal.Json.createModel(def.model)

2013-02-14 Thread Marc Puts
Hi Baskar, You could create a mixin that contain the additional properties (in your case, the address property), then have have the marshaller include that mixin in the classes it creates. To do this, you cou can provide the marshaller with a delegate [1] to let it know about the mixins. [1]

Re: [qooxdoo-devel] initializiation of static members

2012-12-14 Thread Marc Puts
Hi Michael, Did you try running the generator (./generate.py) again? Regards, Marc On 12/14/2012 11:01 AM, Michael wrote: > Hi, > > I wanted some ListItems of my SelectBox to be static members, so they > are generated only once. > But this does not work: > > statics: { > __item1: new qx.

Re: [qooxdoo-devel] Data binding question

2012-11-30 Thread Marc Puts
On 11/28/2012 10:52 PM, angelo wrote: > BTW - is this playground >

Re: [qooxdoo-devel] Crash in _applyCursor in widget

2012-11-30 Thread Marc Puts
The first thing I notice is that you're destroying the window by calling dispose(), where calling destroy() would be better. The difference is that destroy() does not only dispose the object, but also removes it from the layout system. I think that not using destroy() is what might be causing y

Re: [qooxdoo-devel] Too many resources (build)

2012-11-30 Thread Marc Puts
Hi Peter, I don't know what causes your issue, but git has a very nice command that you can use to find which commit to blame: git bisect [1] Maybe that will help you pinpoint the problem. [1] http://git-scm.com/book/en/Git-Tools-Debugging-with-Git#Binary-Search Regards, Marc On 11/30/2012

Re: [qooxdoo-devel] wanted : scroll bars for list that contains label and text elements

2012-11-30 Thread Marc Puts
Hi Raymond, You can place your widgets into a scroll container (qx.ui.container.Scroll) to do that. Regards, Marc On 11/29/2012 09:45 PM, qdev wrote: > Hi, > > I am on the way to develop a core app. I need to display a rather long > list of labels and text fields in a page. The amount of items

Re: [qooxdoo-devel] Problem with qx.ui.form.DateField() vs qx.lang.Json.stringify()

2012-11-26 Thread Marc Puts
Hi Khoa Tran, You're dealing with different timezones. The values are the same, but they are in different timezones. The datetimes in your debug are in GMT +07:00. The datetimes returned from qx.lang.Json.stringify() are in GMT +00:00 (Zulu time, as indicated by the Z at the end of the string

Re: [qooxdoo-devel] Qooxdoo Close Event

2012-11-21 Thread Marc Puts
Your issue exists because the following addEventListener call: execElem.addEventListener("change", handleExecFile, false); does not set "this" for the handleExecFile function. To get around that, you can use the qx.lang.Function.bind method (as Fritz suggested). Change the addEventListener

Re: [qooxdoo-devel] Qooxdoo Close Event

2012-11-21 Thread Marc Puts
Hmm, I see nothing wrong with your code. I just tried it myself and got true all the time. Either some other part of your code is causing trouble or something really strange is happening. What qooxdoo version are you using? Does it work if you disable all code except for the part you pasted? If

Re: [qooxdoo-devel] Qooxdoo Close Event

2012-11-21 Thread Marc Puts
Can you show some more of your code? (e.g. the entire class or at least the relevant methods / fields) Maybe then we can find the problem. Regards, Marc On 11/20/2012 11:00 PM, 689137 wrote: > Marc, > > thank you for your reply. > I tried adding listener as you advised to this, this.getRoot() an

Re: [qooxdoo-devel] Qooxdoo Close Event

2012-11-20 Thread Marc Puts
The close function probably is called with the wrong context. When you attach your event listener, always make sure you supply the correct object as the 3rd parameter (self):       someObject.addListener("close", this.close, this);   This will make sure that when "someObject" fires the "close

Re: [qooxdoo-devel] SingleValueBinding: Converter not called when property chain breaks

2012-10-05 Thread Marc Puts
Thanks, Dietrich. I opened a bug report: http://bugzilla.qooxdoo.org/show_bug.cgi?id=6880 I took the liberty of also adding your reply to the bug report. Regards, Marc On 10/04/2012 04:49 PM, Dietrich Streifert wrote: > I'm observing the same misbehaviour (or bug). > > I'm trying to bind

Re: [qooxdoo-devel] Constructor error

2012-08-15 Thread Marc Puts
Hi Kay, Did you run the generator (./generate.py source)? This error typically happens if you forget to do that after including a new class, because the class won't be loaded then. Regards, Marc On 08/15/2012 11:31 AM, kay wrote: > Hi There > > I have a construcotr defined already,what I want i

Re: [qooxdoo-devel] Desktop app layout question

2012-07-31 Thread Marc Puts
Hi Elemer,   Instead of adding your composite directly to the left pane, you can add it to a scroll container [1], after which you add the scroll container to the left pane.   The scroll container will then take up the available space in the left pane, and when that space becomes too small to

Re: [qooxdoo-devel] VirtualComboBox converting values

2012-07-08 Thread Marc Puts
Could someone shed some light on this one, please? (I think this one is for Martin?) We expect it to be a bug, but it could be that we're doing something wrong. Thanks, Marc On 07/05/2012 06:20 PM, marv wrote: > Hi, > > In de virtualComboBox class the following function is defined: > > __convert

Re: [qooxdoo-devel] Call qooxdoo function from jquery callback function

2012-03-28 Thread Marc Puts
Hi Schnatter, Hurray for javascript closures :) You can do something like this: load : function() { // Some other stuff $("#dragTarget").draggable({ var testfunc = this.test; snap: "#dropTarget", stop: function(event, ui) { testfunc(); //call the function } // end st

Re: [qooxdoo-devel] Qooxdoo has any support for canvas, like a canvas library?

2012-03-27 Thread Marc Puts
Maybe SVG instead of canvas is an option for you, as it has all those features? http://qooxdoo.org/contrib/project/svg On 03/26/2012 01:24 PM, totty wrote: > In order to draw objects, listen to events for clicks, mouseovers and so on? > (crossbrowser) > thanks > > -- > View this message in cont

Re: [qooxdoo-devel] How to make widget take up 100% of space in Page

2012-03-06 Thread Marc Puts
Hi Scott, You can use the Grow layout on the Page (qx.ui.layout.Grow). Then you don't have to specify the size of the widget, it will automatically grow to the size of the Page. Regards, Marc On 03/06/2012 10:19 PM, Scott Chapman wrote: > I have a Page > > qx.Class.define("kiosk_portal.Op

Re: [qooxdoo-devel] Build broken - How to debug?

2012-02-27 Thread Marc Puts
Hi Christof, Great to hear you found the problem. But I'm puzzled... wouldn't accessing a non-existing object member cause a javascript error in the console, even in the build version? On 02/27/2012 02:30 PM, Christof Rodejohann wrote: > Hi, > > thank you all for your help. It was like Fritz su

Re: [qooxdoo-devel] remove Listener`?

2012-02-23 Thread Marc Puts
On 02/23/2012 01:11 PM, smisonli...@googlemail.com wrote: > what ist the id of the listener? The listener id is returned by the addListener function. var listenerId = this.widgets["datum"].addListener("changeValue", this.loadShopData, this); this.widgets["datum"].removeListenerBy Id(listenerId

Re: [qooxdoo-devel] Qooxdoo simple grapics

2012-01-19 Thread Marc Puts
Hi Vladimir, Did you have a look at the html Canvas (qx.html.Canvas) instead? Regards, Marc On 01/19/2012 12:30 PM, Vladimir Lipets wrote: > Hi Robert, > > thank you for this response. > > We checked out SVG, it seems that it is to much for our case. > We just need an ability do draw colored re

Re: [qooxdoo-devel] Community poll: Pretty-printing

2012-01-18 Thread Marc Puts
Hi Thomas, On 01/18/2012 11:08 AM, thron7 wrote: > members : > { //<- on new line, for class-level map > foo : function () { //<- on same line, for member functions > var bar = function () > { //<- on new line, for "normal" functions > > ??? - That looks demanding. Also, it wo

Re: [qooxdoo-devel] Community poll: Pretty-printing

2012-01-17 Thread Marc Puts
Hi Thomas, On 01/17/2012 04:31 PM, thron7 wrote: > Marc, thanks. Bug #5424 has been fixed, but you are probably referring > to the other issue you mentioned in a comment there, where comments are > moved outside their lexical block. Fortunately, Christian has meanwhile > opened a bug for this (bu

Re: [qooxdoo-devel] Community poll: Pretty-printing

2012-01-17 Thread Marc Puts
[ ] I don't use pretty-printing, and don't intend to. [ ] I use it with its default settings. [ ] I change the indent width. [ ] I change the placement of curly braces (next line, with indent, ...). [ ] I change the columns where line comments ("// ...") are positioned. [x] I change the insertion o

Re: [qooxdoo-devel] svg drag and shape selection

2012-01-04 Thread Marc Puts
On 01/04/2012 02:46 AM, Marc Puts wrote: > As for selecting a shape by clicking on it, I think that requires a tiny bit > of qooxdoo magic that I'll post tomorrow, when I'm back at my development > pc. > And here's the promised example of how to get back the shape

Re: [qooxdoo-devel] svg drag and shape selection

2012-01-03 Thread Marc Puts
Oops, there was an error in my code. The last line should be:    var draggable = new svg.behavior.PatchedDraggable(PV, translationForDragging);   -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a compl

Re: [qooxdoo-devel] svg drag and shape selection

2012-01-03 Thread Marc Puts
Hi Pielle, This is a known limitation of the Draggable class. The problem is that the Draggable class used a transformation internally and overwrites the transform property of the dragged element. Therefore it can't be used with other transformations. The API doc of the Draggable class also mentio

Re: [qooxdoo-devel] qooxdoo and svg transformation

2012-01-03 Thread Marc Puts
On 01/03/2012 12:41 AM, pielle wrote: > this is my code: > var PV = new svg.shape.Rect(); > var h = data['h']; > var w = data['w']; > PV.setId("PV_"+data['id']); > PV.setWidth(w); >

Re: [qooxdoo-devel] How to access the classname of a widget?

2011-12-23 Thread Marc Puts
On 12/23/2011 06:00 PM, Derrell Lipman wrote: > On Fri, Dec 23, 2011 at 11:57, Simon White > > wrote: > > Hi > > Thank-you that works fine. I was assuming that accessing properties > directly was not the correct way to handle this so I was lo

Re: [qooxdoo-devel] app is acting like a breakpoint has been set withFirebug.

2011-12-21 Thread Marc Puts
Firebug has soms options like 'break on JavaScript error' and such. Maybe it's breaking on that? -Oorspronkelijk bericht- Van: Scott Chapman Verzonden: 21-12-2011 2:20 Aan: qoxdoo-devel Onderwerp: [qooxdoo-devel] app is acting like a breakpoint has been set withFirebug. I'm using Firefo

Re: [qooxdoo-devel] How to tell if tree node clicked on is a leaf or not?

2011-12-20 Thread Marc Puts
It's probably easier than you think. :) var treeItem = e.getTarget(); if (treeItem instanceof qx.ui.tree.TreeFolder) { //treeItem is not a leaf } else if (treeItem instanceof qx.ui.tree.TreeFile) { //treeItem is a leaf } -- View this message in context: http://qooxdoo.678.n2.nabble.com/How-

Re: [qooxdoo-devel] Poll: Usage of Demo Browser

2011-12-16 Thread Marc Puts
[ ] I don't use the Demo Browser at all. [x] I use it to discover framework features. [x] I use is to see code samples. [ ] I use it bring sample code to the Playground. [ ] (fill in other use case) When I first started learning qooxdoo, it took me a while to realize

Re: [qooxdoo-devel] Connection reset by peer of contribution code at sourceforge

2011-12-14 Thread Marc Puts
Bug #4740 [1] deals with this, by the way. http://bugzilla.qooxdoo.org/show_bug.cgi?id=4740 On 12/14/2011 12:42 PM, Marc Puts wrote: > It's a known problem and it's caused by sourceforge which at times is > very unstable. I don't think there's much the qooxdoo team

Re: [qooxdoo-devel] Connection reset by peer of contribution code at sourceforge

2011-12-14 Thread Marc Puts
It's a known problem and it's caused by sourceforge which at times is very unstable. I don't think there's much the qooxdoo team can do about it, except for moving away from sourceforge. The best available workaround is the one mentioned by Omri -- downloading the contribs manually and use the

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-13 Thread Marc Puts
On 12/13/2011 02:53 PM, omrihar wrote: > I have created a group with several elements and added it to the main svg > object. > I am now trying to modify the group (i.e. remove it or its children from the > svg and recreate it with different content) - however I am unable to remove > the group. > I

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-13 Thread Marc Puts
On 12/13/2011 03:42 PM, omrihar wrote: > I'm not sure what's exactly going on, but I think I am either not getting > something or there is a bug somewhere. > I have a pretty simple SVG, in which I defined two gradients in the main > section. > I added one Rect which is in a group and which has o

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-12 Thread Marc Puts
On 12/12/2011 05:33 PM, omrihar wrote: > an additional question if I may: > 3. I would like to create a bounding box with small rectangles at the > corners to indicate that the boxes are resizable. Is this done using > svg.paint.Marker? I have been trying unsuccessfully to understand what > marker

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-12 Thread Marc Puts
Hi Omri, On 12/12/2011 05:04 PM, omrihar wrote: > (I finally attached a listener to the > "resize" event of the widget and set its height according to its custom > width). Sounds like a workable solution. :) > 1. I managed to get the draggable behavior working without a problem which > is grea

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-12 Thread Marc Puts
On 12/12/2011 03:48 PM, omrihar wrote: > The first problem I am having now is that I'm trying to control the size of > the SVG inside the widget (or for that matter, of the entire widget). I want > to have a specific width/height ratio which is converted from "physical" > units (i.e. I call the

Re: [qooxdoo-devel] Canvas vs. SVG

2011-12-12 Thread Marc Puts
Hi Omri, On 12/12/2011 01:04 PM, omrihar wrote: > My question is this - I want to capture the mousedown, mousemove and mouseup > events to create a new widget by dragging it across the canvas. If I understand it right, you want to create new widgets (like a window?) by "drawing" them on the scre

Re: [qooxdoo-devel] Converting a project in qooxdoo-contrib to an independent git repository

2011-12-12 Thread Marc Puts
Thank you, Derrell, for taking the time to document this. I'm planning to do the same with the SVG contrib soon, as it's the only project on my system that's still in SVN. Your pointers are likely to save me quite some time. :) Cheers, Marc On 12/12/2011 03:27 AM, Derrell Lipman wrote: > I'm

Re: [qooxdoo-devel] slowdown the browser?

2011-11-25 Thread Marc Puts
No event that I know of, but the destructors of all your objects *will* be called. On 11/24/2011 09:26 PM, smisonli...@googlemail.com wrote: > is their any event thats appear on a app reload, so i can use this > clearup garbage > > qx.core.ObjectRegistry.shutdown(); > > ? > >> Sounds like your ap

Re: [qooxdoo-devel] slowdown the browser?

2011-11-24 Thread Marc Puts
Sounds like your app may have some memory leaks. You should probably check your destructors. Qooxdoo has some features that can help you finding leaks. Did you have a look at [1]? [1] http://manual.qooxdoo.org/current/pages/development/memory_management.html Marc On 11/24/2011 12:07 PM, smi

Re: [qooxdoo-devel] qooxdoo time

2011-11-07 Thread Marc Puts
Hi, Not sure if this is your problem, but the following threads may cover your question: http://qooxdoo.678.n2.nabble.com/Stop-running-this-script-alert-in-IE-8-td6814731.html http://qooxdoo.678.n2.nabble.com/qooxdoo-your-script-is-running-too-slowly-td5733059.html Regards, Marc On 1

Re: [qooxdoo-devel] Custom Mouse Events in SVG

2011-10-04 Thread Marc Puts
Hi Eric, The values that you put into the args array of fireEvent, will be used to call the event's init() method. So you should put the arguments to qx.event.type.Mouse.init() in it. I can't test this right now, but I think the following should work: this.fireEvent("doubleclick", qx.event.t

Re: [qooxdoo-devel] Poll: Generator "source" jobs (promotion of "source-hybrid" to "source")

2011-09-26 Thread Marc Puts
Hi Tino, Like Norbert, I was already using the source-hybrid most of the time, so for me this change is ok. I don't mind it either way. But I think that it's a nice improvement for new users who might not know about the existence of the source-hybrid job. On 09/26/2011 02:05 PM, Derrell Lipma

Re: [qooxdoo-devel] Antw: Qooxdoo developement in Eclipse for SDK 1.5?

2011-09-22 Thread Marc Puts
To get Spket working with qooxdoo, this ML thread from earlier this year is very helpful: [1] http://qooxdoo.678.n2.nabble.com/Qooxdoo-IDE-td6193372.html Marc On 09/22/2011 12:51 PM, thron7 wrote: > Hi, > > you can find some hints here: > > http://qooxdoo.org/documentation/general/development_

Re: [qooxdoo-devel] adding a dynamic component to a static website

2011-09-12 Thread Marc Puts
Hi Terrence, With qooxdoo you can create a few kinds of applications. [1] With qooxdoo you can create an "inline" application [2] (see bottom of page) that you can embed anywhere in your web page. See [3] for some more info. With this you can add some qooxdoo widgets to your otherwise static web

Re: [qooxdoo-devel] Adding "modelPath" property to qx.data.controller.List

2011-09-12 Thread Marc Puts
Hi, I don't think that a modelPath property is a good idea, because IMO it solves the wrong issue. The need for a modelPath comes from another problem: the plain data in gimmi's code is hard to apply to data binding. This is because of the need for "same" model objects to be equal by identity, so

Re: [qooxdoo-devel] list controller doubt/weird behaviour

2011-09-06 Thread Marc Puts
On 09/06/2011 12:56 PM, Guillermo C. Martínez wrote: > If I run this one, I get an error. > If I set the labelPath in the controller constructor as > var ctrlList = new qx.data.controller.List(peopleData,listData, "name") > > it works ok, the list is filled with names. I suppossed the labelPath

Re: [qooxdoo-devel] qx.core.variant?

2011-09-04 Thread Marc Puts
qx.core.Variant and qx.core.Setting have been deprecated in 1.4, and then removed in 1.5, in favor of qx.core.Environment. See this news post about it: http://news.qooxdoo.org/variants-settings-and-the-lot You can run a "generate.py migration" to automatically migrate to the new structure. --

Re: [qooxdoo-devel] what is 'arguments'?

2011-09-01 Thread Marc Puts
Hi John, "arguments" is feature of the javascript language. You can use it in a function if you want to know exactly what arguments were passed to that function. It's often used to write functions that have dynamic parameter lists. For example: f = function() { for (var i=0; i < arguments

Re: [qooxdoo-devel] login page

2011-08-31 Thread Marc Puts
Hi John, You can move your GUI loading code into a function/listener that is called only after the user logs in. For example, by doing something like this: members : { main : function() { var form = new LoginForm; form.addListener("success", this.__buildGUI, this

Re: [qooxdoo-devel] Add vadilation to property

2011-08-24 Thread Marc Puts
Ah, now I see what you mean. You're right, I think this is not supported right now. At least not without doing some ugly hacks. You could create an enhancement bug for this. I'm curious about what the qooxdoo team has to say about it. :) Marc -

Re: [qooxdoo-devel] Add vadilation to property

2011-08-24 Thread Marc Puts
Hi Seldaiendil, On 24-8-2011 18:04, Seldaiendil D. Flourite wrote: > I found this terrible for programming! isn't there another way to just > add a validation to an inherited property? Why I can't use > > properties: { > value: { > refine: true, > validate: function() { ... } > } > }

Re: [qooxdoo-devel] Appending a value to an Array property - possible bug/unexpected behavior?

2011-08-24 Thread Marc Puts
Hi Omri, On 24-8-2011 17:29, omrihar wrote: > The problem with this code is that the apply method does not get called, > even though the contents of the array has changed. I suspect this is because > the pointer to the array has not changed. Correct! > Is this the best way to go about > appendi

Re: [qooxdoo-devel] Variable Variable name

2011-08-23 Thread Marc Puts
On 23-8-2011 17:02, Hansjoerg Schock wrote: > it is no problem because user can not click twice on the menu. > But how can you check a opened window if it is open ? > I have looked into the window.window api but I can't find something to > check. > It tried it with > > alert(jobinfo.isDisposed())

Re: [qooxdoo-devel] Variable Variable name

2011-08-22 Thread Marc Puts
I could not spot any context errors, but I do see some inconsistencies with how you name your variables. Besides what Thomas mentioned, you're also mixin __txtJobInfo, _txtJobInfo, etc., and in the members section you're declaring everything as public. The class members should also be prefixed wit

Re: [qooxdoo-devel] Variable Variable name

2011-08-22 Thread Marc Puts
Is your code executed in the right context? In other words, what is "this"? -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion a

Re: [qooxdoo-devel] Variable Variable name

2011-08-22 Thread Marc Puts
> how can you do the "getValue" later in for a remote request? > I tired: > > for (var i = 0; i < 14; i++) { > req.setParameter("IS"+i, this.__txtJobInfo[i].getValue()); > > }//for > > But this does not work and shows "this.__sE[i] is undefined" in the > firebug console. > Sounds like you

Re: [qooxdoo-devel] List and Selection

2011-08-19 Thread Marc Puts
Rafael Ibraim wrote: > > Many thanks Daniel, that does the trick. > However, I'm wondering *why* I need to do this... and why this isn't > used in the twitter tutorial(bugged tutorial, maybe?) > Hi Rafael, You normally don't need to do that, except when you use the bindItem delegate. The defa

Re: [qooxdoo-devel] Using a converter within a bindItem within a List controller problem

2011-08-19 Thread Marc Puts
Hi Omri, Make sure you call "bindDefaultProperties" on the controller, inside the bindItem delegate. Or, if you don't, you need to call bindProperty manually for all the standard properties (model, label, icon). The manual has a brief mention [1] about this. Regards, Marc [1] http://manual.

Re: [qooxdoo-devel] Problem with a contribution

2011-08-17 Thread Marc Puts
Hi Omri, Two questions: 1. Did you include the contrib with a contrib:// url, or by downloading and linking it as a library? 2. Are you running the source version on a web server? -- View this message in context: http://qooxdoo.678.n2.nabble.com/Problem-with-a-contribution-tp6695066p6695371.html

Re: [qooxdoo-devel] Problem with a contribution

2011-08-17 Thread Marc Puts
There's the problem. The contrib:// url downloads the contrib to a temp folder (usually your system temp folder). That folder needs to be accessible through your web server. You have 2 options: 1. In config.json, set the cache/downloads generator option (see [1]) to a folder that's accesible thro

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] resize re-entrancy problem in table

2011-08-12 Thread Marc Puts
Hi Jeroen, Looks like a framework bug to me. Can you reproduce it in the playground? > When I now resize the browser window and reduce the height > significantly I can CPU usage go up to 100% (no matter which kind of > browser I use). While debugging I found that I am constantly entering > “qx

Re: [qooxdoo-devel] Nabble

2011-08-05 Thread Marc Puts
On 5-8-2011 12:10, thron7 wrote: > What I fixed was actually the link on forum.qooxdoo.org, but now I'm no > longer sure this is what Marc meant :). > > T. > Heh, yes, I actually ment that forum.qooxdoo.org was not working (fixed now). Now I see that page that Tristan mentioned [1] points direct

Re: [qooxdoo-devel] Nabble

2011-08-05 Thread Marc Puts
On 5-8-2011 11:52, Tristan Koch wrote: > Hi Marc, > > what page of qooxdoo.org are you referring to? > > Checked > http://qooxdoo.org/community/mailing_lists#general_list_for_users_and_developers > which points to http://qooxdoo.678.n2.nabble.com/. > > Am 05.08.2011

Re: [qooxdoo-devel] Proposal: return "this" in generated setters for properties

2011-08-05 Thread Marc Puts
The current behaviour is that setters return the setted value. If that would change, I think it could potentially break a lot of non-framework code. I think it's dangerous. Also, IMO it would counter-intuitive, because I view setters more like an assignment statement (var x = 3), which do retur

[qooxdoo-devel] Nabble

2011-08-05 Thread Marc Puts
The qooxdoo forum link on the homepage currently doesn't work. It points to http://n2.nabble.com/qooxdoo-f678.html which gives a Not Found page. The following url (found on Nabble.com by searching for qooxdoo) works: http://qooxdoo.678.n2.nabble.com/ Seems like Nabble changed some url's

Re: [qooxdoo-devel] Tree Controller and binding a context menu

2011-08-01 Thread Marc Puts
Hi Daniel, That makes sense. I see you already fixed the issue too, so I'll pull the latest changes from trunk and be happy. ;) Thanks! Marc On 1-8-2011 8:51, Daniel Wagner wrote: > Hi again Marc, > > the TreeFolder is disposed like you'd expect. The problem is that when > you call setContextMe

Re: [qooxdoo-devel] Tree Controller and binding a context menu

2011-07-29 Thread Marc Puts
ayground example. > You'd get this warning if you didn't remove the reference to the menu > from the TreeFolder before disposing the corresponding item, but you're > doing that in deleteItem. I don't get it :( > > Regards, > Daniel > > On 07/29/2011 04:43

Re: [qooxdoo-devel] OT: Qooxdoo inspired by Guy Steele?

2011-07-28 Thread Marc Puts
On 07/28/2011 08:58 PM, aditya siram wrote: > Just out of curiosity, it the name "qooxdoo" a reference to Guy Steele > being called "The Great Quux" [1]? > -deech > > [1] http://en.wikipedia.org/wiki/Guy_L._Steele,_Jr. Afaik not. The qooxdoo website says that it's the phonetic writing of the Germ

Re: [qooxdoo-devel] Few questions - how to build samples, compiling in browser, etc.

2011-07-26 Thread Marc Puts
; T. > > On 07/26/2011 05:36 PM, Marc Puts wrote: >> Hi Thomas, >> >> I just ran into this issue as well, trying to build the widget browser from >> the Git master. >> >> In this case, the problem is that the (empty) resources folder of >> /componen

Re: [qooxdoo-devel] Few questions - how to build samples, compiling in browser, etc.

2011-07-26 Thread Marc Puts
Hi Thomas, I just ran into this issue as well, trying to build the widget browser from the Git master. In this case, the problem is that the (empty) resources folder of /components/library/formdemo has not been checked in. For comparison: svn --> http://qooxdoo.svn.sourceforge.net/viewvc/qooxdoo

Re: [qooxdoo-devel] Error with json marshaller after migration to 1.5

2011-07-19 Thread Marc Puts
Hi lgxco, I can see the issue too, your code works in 1.4.x but not in 1.5. It's a bit easier to reproduce with this line: qx.data.marshal.Json.createModel({"$$0" : "test"}); This may have to do with the following bug (which was fixed in 1.4.2 and 1.5): http://bugzilla.qooxdoo.org/show_b

Re: [qooxdoo-devel] Function proposition

2011-07-13 Thread Marc Puts
On 07/13/2011 03:27 PM, Benjamin Dreux wrote: > For this one, it is already in the qx.type.BaseArray, and by > inheritance, it is in the qx.type.Array Of course. I knew that! *cough* -- AppSumo Presents a FREE Video for

Re: [qooxdoo-devel] Function proposition

2011-07-13 Thread Marc Puts
+1 I like the idea, and can see this being used a lot. :) To take it one step further, why not introduce a filter method as well, which would return an array containing all the 'found' elements. Regards, Marc On 07/13/2011 02:04 PM, Benjamin Dreux wrote: > Hi > Before filling a enhancement req

[qooxdoo-devel] Trap double clicks on button

2011-07-13 Thread Marc Puts
Hi, This is a usability question. I'm looking for a way to trap double clicks on a button. Basically I want a double click to be handled like it were a single click. The reason is that I notice that some users double click a (regular) button instead of the expected single click. Of course we d

Re: [qooxdoo-devel] SVG contrib

2011-07-08 Thread Marc Puts
> The text to render is set via the "value" property for svg.text.Text (acquired from svg.core.MTextContainer mixin). > I doesn't show up in the API docs for svg.text.Text, but it works. The setValue and getValue methods are indeed the ones to use for text content. I'm not sure why you don't see t

Re: [qooxdoo-devel] Ideas to draw on top of a picture

2011-07-01 Thread Marc Puts
Hey, On 1-7-2011 17:14, Eduard Gamonal wrote: > If I build numSlides groups of {slideImage, attendeesDoodles, > myDoodles} i'll have to refactor too much code for my taste and too > many requests may be sent at once to the server, to fetch the slides. > how about: > - a group for a svg.struct.Imag

Re: [qooxdoo-devel] Ideas to draw on top of a picture

2011-07-01 Thread Marc Puts
Hi Eduard, Great to hear that things are working. :) On 07/01/2011 12:14 PM, Eduard Gamonal wrote: > I guess I have to serialize the svg element of the svg widget, right? > ( svgWidget.getSvg() ). I tried this in a sandbox and it was ok. > However, I can't figure out how to use it once it's been

Re: [qooxdoo-devel] upgrading an old version...

2011-07-01 Thread Marc Puts
Hi Ingrid, There's a good chance that your app is not working in FF5 because of the XUL removal in Firefox 4, which is a feature that qooxdoo was depending on. Upgrading to the latest qooxdoo should indeed solve that. Have you seen the migration guide on the qooxdoo website? [1]. Make sure that yo

Re: [qooxdoo-devel] svg contrib: set bounds of canvas

2011-06-28 Thread Marc Puts
Hi Eduard, On 28-6-2011 15:10, Eduard Gamonal wrote: > >> The contrib provides a conversion class [2] that you can use to convert >> client coordinates to svg coordinates and vice versa. The functions here >> take in account any transformations and viewboxes that were applied. > I read somewhere

Re: [qooxdoo-devel] svg contrib: set bounds of canvas

2011-06-28 Thread Marc Puts
Hi Eduard, On 06/28/2011 01:14 PM, Eduard Gamonal wrote: > 1. > I'd like to allow the user to paint *only* on given area, for example > on a rectangle region that fills 2/3 of the window. > I create an svg.embed.Svg() widget and I can draw, but the canvas > expands automatically and annoys me. I'

Re: [qooxdoo-devel] why does source/index.html not work on server?

2011-06-24 Thread Marc Puts
Hi Milo, This is because the source version needs the qooxdoo framework to run. If you want to run the source version on a web server, the qooxdoo framework needs to be on the same web server, on the same relative path as it is on your file system. So, if on your file system, the path from you

Re: [qooxdoo-devel] draw vectors

2011-06-23 Thread Marc Puts
Hi Narven, Have a look at the Canvas widget (which embed the HTML5 canvas element): http://demo.qooxdoo.org/1.4.x/apiviewer/#qx.html.Canvas Or the SVG contribution: http://qooxdoo.org/contrib/project/svg Regards, Marc -- View this message in context: http://qooxdoo.678.n2.nabble.com/draw

Re: [qooxdoo-devel] How to forward dynamically setted arguments (function parameters) to another function

2011-06-23 Thread Marc Puts
Hi Mustafa, I think that what you're looking for is the "apply" method that every javascript function has. The apply method takes 2 parameters: the first is the context in which it should be executed, the second is an array of arguments to provide. In your example, you want to send the argu

Re: [qooxdoo-devel] "inherited" in API documentation

2011-06-20 Thread Marc Puts
On 06/20/2011 12:04 PM, thron7 wrote: > > On 06/20/2011 08:47 AM, Martin Wittemann wrote: >> Hey Derrell, >> we moved that button in the Includes menu. The button should be there, is it? >> Enable it by default... hm I guess the only way is to tweak the API-Viewers >> code in the component > If it

Re: [qooxdoo-devel] Widget not displaying

2011-06-15 Thread Marc Puts
Hi Hortence, Welcome to qooxdoo! :) At first glance, I think the problem is on line 65 of your widget class. I think it will work when you replace: mainContainer.show(); with: this._add(mainContainer); Note the underscore; _add is a protected method. The are only a few widgets (Composit

Re: [qooxdoo-devel] Serialize SVG graphic

2011-06-14 Thread Marc Puts
Hi Flo, It depends on how you included the SVG in the document. If you used the SVG contrib for it, you can pass svgElement.getDomElement() to the qx.xml.Element.serialize function. Regards, Marc On 06/13/2011 06:14 PM, Flo Wohlfart wrote: > Hi, > > I want to export an SVG graphic in the cur

Re: [qooxdoo-devel] Ideas to draw on top of a picture

2011-06-10 Thread Marc Puts
ace it on top of an image and set the background to transparent. > It'd be great if Marc Puts saw this e-mail and could confirm it. My > worries aren't about developing but about chosing the wrong solution. > Unfortunately I don't have much time left for this project :( Yes

Re: [qooxdoo-devel] Pretty print: suppress docblock creation

2011-06-08 Thread Marc Puts
On 06/08/2011 03:43 PM, thron7 wrote: > Yes, with trunk/upcoming 1.5 you will be able to say > > pretty-print/comments/block/add : false > > in the config.json, to achieve that :). > > T. That's great! The addition of docblocks were the only reason I don't use the pretty printer, so I'm happ

Re: [qooxdoo-devel] Json marshaller: numeric keys

2011-06-08 Thread Marc Puts
Hi Adrian, Thanks for your answer. I filed a bug report: #5223. http://bugzilla.qooxdoo.org/show_bug.cgi?id=5223 Regards, Marc On 06/08/2011 03:41 PM, Adrian Olaru wrote: > IMO is a bug. As long as is valid JSON I don't see why this shouldn't work. > Nevertheless, you should open a bug with thi

[qooxdoo-devel] Pretty print: suppress docblock creation

2011-06-08 Thread Marc Puts
Hi all, The pretty print job will automatically add /** TODOC **/ docblocks to any method that has not yet been documented. Is there a way to suppress this behaviour? Regards, Marc -- EditLive Enterprise is the world's

[qooxdoo-devel] Json marshaller: numeric keys

2011-06-08 Thread Marc Puts
Hi all, The following line will throw an assertion error: "The key '0' is not a valid JavaScript identifier." qx.data.marshal.Json.createModel({"0" : "test"}); I can see why this error is thrown, but I think the marshaller should be able to handle this special case, especially since the fo

  1   2   >