I have transfered this thread to lyx-devel where it belongs.
Andre Poenitz a écrit :
On Tue, Jan 10, 2006 at 02:26:48PM +0100, Abdel wrote:
This functionality could be implemneted in the Navigate menu in the
Qt frontend: Make the menu a list view, allowm multiple selection,
create and connect actions to movce things a level in or out.
I was thinking about modifying the TOC dialog to do exactly this: allow
moving a section and all it's dependencies to any upper or lower node
you want. The TOC could even become a dock widget on the left "a la
MSWord" and allow on-the-fly updating. Do you reckon the Navigate-Menu
code is cleaner for this?
The current Navigate menu?
Well this use the Lyx Menu Backend which I have great difficulty to
understand. It keeps crashing a lot so I gave up on that (But I have
ported the menubar to Qt4.1).
I'd think this is pure GUI stuff and should only call a few (new)
LFUNs (section-depth-{in,de}crease or similar) working on a selection
or something.
Yep, the idea would be to expand the QTocDialog functionality for doing
these (new) calls. I have already ported that to the new QTreeWidget
with a nice recursive function to go down the sections.
Could be extended to shift whole sections up and down.
I guess we could re-use cut&paste for this, couldn't we?
Probably, yes. But c&p is close to the dirty corners in LyX, so
'obvious' stuff might not be implemnetable as easy as it looks.
Anyway, this will have to wait until the main developers have time to
help me. I hope you deliver 1.4.0 very soon guys.
Abdel.
Less than 200 lines for the in/out part I'd bet.
Once you know what to do, it's always short to implement it ;-)
It usually is ;-}
Andre'