Hello everybody, in the true spirit of open source collaboration, here comes another fruit of this weekend's hard labor. In 0.7, I had written a mixin that provided drag & drop for the TreeVirtual widget. This mixin broke in the 0.8 version and I never had time to work on that. In the meantime, saaj thankfully took the code and created a widget (instead of a mixin) from it that worked with 1.0:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=1215 Pressed by my users who missed the D&D they got used to in the 0.7 version of my app, I finally decided to revisit the issue and reworked saaj's code for my needs. To implement D&D within the current TreeVirtual is somewhat painful, and the code has to be patched in order for it to work at all (see below). But first, for the good part, it works (more or less): You can find a demo here: http://cboulanger.users.sourceforge.net/qooxdoo-contrib/qcl/trunk/demo/dragdroptree/build/ The widget code can be looked at here: http://tinyurl.com/323ow8s For those who are curious to see how to use the widget, the application code is here: http://tinyurl.com/2v4bc8w The drag experience is less than perfect, but it works in principle. I think the sluggishness is probably partly due to the overhead of the event system, and partly to the fact that the virtual widgets were not designed with drag & drop in mind. I hope the new virtual widget infrastructure will change all that when it arrives. Finally there is certainly room for improvement in our own code. In the meantime, the situation that the code must be patched is really bad (see the _patchCodebase() method). I wonder if anyone (Derrell?) would be willing to look into it and see whether the TreeVirtual code could be adapted so that this hack can be taken out. A good start into the working week! Christian -- View this message in context: http://qooxdoo.678.n2.nabble.com/Re-implemented-Drag-Drop-for-TreeVirtual-tp5174546p5174546.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
