Re: [qooxdoo-devel] Drag & drop on tree

2010-09-01 Thread mmbolido Gazeta.pl
Hi:-) A correct this issues. In drag listener I change line: this.indicator.setWidth(treeFolder.getBounds().width); to: this.indicator.setWidth(this.tree.getPaneSize().width); Now indicator size is correct:-) Best regards, Adam, 2010/9/1 mmbolido Gazeta.pl > Hi again, > > I see one more p

Re: [qooxdoo-devel] Drag & drop on tree

2010-09-01 Thread mmbolido Gazeta.pl
Hi Daniel, Thanks for answer:-) I use 1.2 release, but Christian's example doesn't work:-( But sample from your source work perfect. Thanks a lot:-) Best regards, Adam 2010/9/1 Daniel Wagner > Hi Adam, > > there was a bug relating to this that got fixed after the 1.2 release[1]. > As a workar

Re: [qooxdoo-devel] Drag & drop on tree

2010-09-01 Thread mmbolido Gazeta.pl
Hi again, I see one more problem - indicator width:-) A try add this.indicator.setWidth(...) in createIndicator function, but it doesn't help. See attachment. Best Regards, Adam > 2010/9/1 Daniel Wagner > > Hi Adam, >> >> there was a bug relating to this that got fixed after the 1.2 release[1]

Re: [qooxdoo-devel] Drag & drop on tree

2010-09-01 Thread Daniel Wagner
Hi Adam, there was a bug relating to this that got fixed after the 1.2 release[1]. As a workaround, you can modify the "drop" handler from Christian's example application so that the target folder is removed before it is inserted at the new position. I've attached the modified file. Let me k

[qooxdoo-devel] Drag & drop on tree

2010-08-31 Thread mmbolido Gazeta.pl
Hi, I try make drag&drop on tree (now I need drag only TreeFolder). I found thread http://www.mail-archive.com/qooxdoo-devel@lists.sourceforge.net/msg20278.htmland solution http://www.mail-archive.com/qooxdoo-devel@lists.sourceforge.net/msg20379.html. But it's doesn't work:/ Any one have working s

Re: [qooxdoo-devel] Drag/drop on Tree

2010-01-04 Thread Nick Glencross
Hi All, On Mon, Jan 4, 2010 at 6:36 PM, lp1051 wrote: > > Hi T., > > ok, I reported it as bugs, for those who are interested: > > http://bugzilla.qooxdoo.org/show_bug.cgi?id=3297 > http://bugzilla.qooxdoo.org/show_bug.cgi?id=3298 > > (What I'm about to write may not be relevant to the thread, s

Re: [qooxdoo-devel] Drag/drop on Tree

2010-01-04 Thread lp1051
Hi T., ok, I reported it as bugs, for those who are interested: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3297 http://bugzilla.qooxdoo.org/show_bug.cgi?id=3298 L. thron7-2 wrote: > > Luke, > > I'm not in the situation where I can oversee all of what you are > writing, but if you have rea

Re: [qooxdoo-devel] Drag/drop on Tree

2010-01-04 Thread thron7
Luke, I'm not in the situation where I can oversee all of what you are writing, but if you have reasonable concerns about some behaviours of qooxdoo I strongly urge you to open a bug report. Just write the things as you have found them, and attach any code that might reproduce the issue. This

Re: [qooxdoo-devel] Drag/drop on Tree

2009-12-26 Thread lp1051
Hi, I would like to re-open this thread and add the results of my investigations. Even if it is a quite old theme, it helped me most with drag&drop on tree. I am attaching the original file from Christian with changes that solves most of the problems I have found in this thread. In my case, I wan

Re: [qooxdoo-devel] Drag/drop on Tree

2009-11-24 Thread phill54
Thank you, Christian. for the moment, I need to head on with my project using some buttons to implement tree reordering. If I have time left in the end of the project I'll have a look at the implementation of 0.7. Thank you for the link. I've already lost too much time on this :-( It would be ki

Re: [qooxdoo-devel] Drag/drop on Tree

2009-11-24 Thread panyasan
I don't know if it helps (probably not) but I had drag & drop implemented for the TreeVirtual widget in 0.7. It is no longer working because of the changes to the framework in 0.8, but some concepts might be interesting: http://qooxdoo.svn.sourceforge.net/viewvc/qooxdoo/trunk/qooxdoo/framework/so

Re: [qooxdoo-devel] Drag/drop on Tree

2009-11-24 Thread phill54
Hi Chris and everyone else who has had Drag'n'Drop problems using the tree object. Me too, I've had several Problems implementing a Drag'n'Drop solution on a tree but I'm not happy with my solution so far. Me too, I've had problems with the wrong object catching the drop event (Label instead of T

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Amit Rana
Hi, Sorry for so many mails but I can't help it as I keep discovering new things in Qooxdoo. :-) I was not getting the indicator at the correct position in the playground application. But, when I integrated the same in my actual code, I am getting the indicator correctly (except when I hover o

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Christian Schmidt
Hi Fritz, I'm working on an example for that, but it isn't very well. I have attached my current solution. Have a look into the "drag" listener, it shows how to get the correct TreeFolder for the indicator possition. Cheers, Chris Fritz Zaucker schrieb: Hi Amit, cool, all solved except

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Amit Rana
Hi, I noticed a bug and would like to highlight it. In the tree, if you do parent.addBefore(src, dest), the actually the new node src gets added AFTER dest and not before as desired. The solution is to do: parent.remove(src); parent.addBefore(src, dest); Now, my tree drag-drop is working almos

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Fritz Zaucker
Hi Amit, On Tue, 24 Mar 2009, Amit Rana wrote: >> 3) The for loop in the drop listener is probably not needed, as in a tree >> only one Folder can be selected at a time, so sel.length is always 1. So >> I guess this could be simplified a bit. >> >> > Yeah... I changed it to orig.getParent

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Fritz Zaucker
Hi Amit, cool, all solved except for the indicator position. May be the Qooxdoo-gods of 1&1 will be able to help ... Chris? Thanks, Fritz On Tue, 24 Mar 2009, Amit Rana wrote: > Hi, > > Amit Rana wrote: >> Hi Fritz, >> >> Fritz Zaucker wrote: >> >>> Hi Amit, >>> >>> thanks for coming up with

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Amit Rana
Hi, Amit Rana wrote: Hi Fritz, Fritz Zaucker wrote: Hi Amit, thanks for coming up with the code snippet. For dropping to work in the drop-listener you must replace the line this.addBefore(sel[i], orig); //error - this.addBefore is not a function with orig.getParent().addBefor

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-24 Thread Amit Rana
Hi Fritz, Fritz Zaucker wrote: > Hi Amit, > > thanks for coming up with the code snippet. > > For dropping to work in the drop-listener you must replace the line > > this.addBefore(sel[i], orig); //error - this.addBefore is not a function > > with > > orig.getParent().addBefore(sel[i], o

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Fritz Zaucker
Hi Amit, thanks for coming up with the code snippet. For dropping to work in the drop-listener you must replace the line this.addBefore(sel[i], orig); //error - this.addBefore is not a function with orig.getParent().addBefore(sel[i], orig); You must drop (e.g. add) to the parentFold

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Fritz Zaucker
Hi Amit, at least your point 2. is probably the same as mine. So you are welcome to stay with me ... :-) Cheers, Fritz On Mon, 23 Mar 2009, Amit Rana wrote: > Hi, > > As mentioned before, I am also working on drag-drop feature on tree. I have > made a sample code, but I am stuck up with : > >

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Amit Rana
Hi, As mentioned before, I am also working on drag-drop feature on tree. I have made a sample code, but I am stuck up with : 1. moving the folder at the right place (How to get the list of parsed nodes - I tried to add them to an array on "dragover" event but same node gets added multiple ti

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Fritz Zaucker
Hi Amit, I'll have to extract the relevant code from my application (I currently use a class derived from TreeFolder and a somewhat complex code to dynamically create the Folders). I'll post the snippet on the mailing list asap. Cheers, Fritz On Mon, 23 Mar 2009, Amit Rana wrote: > Hi Fritz, >

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Amit Rana
Hi Fritz, I am also trying to implement the drag-drop feature on tree but the script hangs if I try in playground application. Can you please pass me your code snippet ? BR Amit Christian Schmidt wrote: > Hi Fritz, > > could you please send a code snipped or an example, that would make it >

Re: [qooxdoo-devel] Drag/drop on Tree

2009-03-23 Thread Christian Schmidt
Hi Fritz, could you please send a code snipped or an example, that would make it easier to help you by this problem. Thanks, Chris Fritz Zaucker schrieb: > Hi, > > I have started to implement drag/drop in my application for the > qx .ui.tree.TreeFolder()s of a qx.ui.tree.Tree(). I followed the

[qooxdoo-devel] Drag/drop on Tree

2009-03-19 Thread Fritz Zaucker
Hi, I have started to implement drag/drop in my application for the qx .ui.tree.TreeFolder()s of a qx.ui.tree.Tree(). I followed the Drag/Drop-Demo for Lists in the demobrowser. I had to change the line orig.addBefore(sel[i], orig); to orig.getParent().addBefore(sel[i], orig); to d