On 09/12/2011 09:08 AM, Richard Heck wrote: > On 09/12/2011 04:24 AM, Michel Lavaud wrote: >> Le 11/09/2011 22:37, Xu Wang a écrit : >>> exactly what I was looking for, thanks! I'm guessing if there hasn't >>> been much movement in 3 years then I'm out of luck. Oh well. >>> >>> On Sun, Sep 11, 2011 at 4:42 AM, Jürgen Spitzmüller<sp...@lyx.org >>> <mailto:sp...@lyx.org>> wrote: >>> >>> Xu Wang wrote: >>> > bump >>> >>> http://www.lyx.org/trac/ticket/5778 >>> >>> Jürgen >> I had asked for something close in may 2011 (cf. below), and J. Rioux >> had pointed out it was also linked to tickets 6061 and 6675. So, it >> seems to be a rather formidable task within LyX. >> > I don't know how formidable it is. It may not be very hard at all. Qt > certainly provides support for drag and drop, and the page "Using Drag > and Drop with Item Views", in the Qt documentation, seems to give most > of the information one would need. > > As always with open source projects, the issue here is who wants to > scratch which itch and how much time we all do (or, better, don't) > have to work on LyX. If one of the developers really needed this > functionality, I'm sure it would have gotten done a long time ago; but > none of us do, it would seem, and we're all focused on other things we > do feel like we need, or feel like LyX needs more. E.g., if I had time > to do something besides fix bugs, I'd be working on BibLaTeX integration. > > If anyone does want to have a go at this, as I said, I think the > instructions in the Qt docs are probably quite easy to follow. The > class that manages the outline is in GuiToc.cpp. > >From what I can see, enabling the drag function itself is quite simple. The trick then is to respond to it appropriately.
I guess one would also need to limit this behavior to the TOC view. It makes no sense to drag and drop the other stuff. Richard