Re: drag in outline panel?

2011-09-13 Thread Richard Heck
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üllersp...@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



Re: drag in outline panel?

2011-09-13 Thread Rob Oakes
I've done some work on this in the Outline enhancements branch. I've got a 
class of helper functions which implement the changes to the underlying 
document. If you're interested in seeing what I've done, take a look at the 
DataManager.h  
(http://bazaar.launchpad.net/~lyx-outline-devel/lyx-outline/trunk/view/head:/src/frontends/qt4/DataManager.h)
 and DataManager.cpp 
(http://bazaar.launchpad.net/~lyx-outline-devel/lyx-outline/trunk/view/head:/src/frontends/qt4/DataManager.cpp)
 files in the outline branch.

The branch in the link also has implementations for most of the Outline 
enhancements I originally proposed for LyX. I just haven't had time to 
sufficiently clean them up and submit code patches in bite sized intervals.

Cheers,

Rob

Re: drag in outline panel?

2011-09-13 Thread Richard Heck
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>> >  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



Re: drag in outline panel?

2011-09-13 Thread Rob Oakes
I've done some work on this in the Outline enhancements branch. I've got a 
class of helper functions which implement the changes to the underlying 
document. If you're interested in seeing what I've done, take a look at the 
"DataManager.h"  
(http://bazaar.launchpad.net/~lyx-outline-devel/lyx-outline/trunk/view/head:/src/frontends/qt4/DataManager.h)
 and DataManager.cpp 
(http://bazaar.launchpad.net/~lyx-outline-devel/lyx-outline/trunk/view/head:/src/frontends/qt4/DataManager.cpp)
 files in the outline branch.

The branch in the link also has implementations for most of the Outline 
enhancements I originally proposed for LyX. I just haven't had time to 
sufficiently clean them up and submit code patches in bite sized intervals.

Cheers,

Rob

Re: drag in outline panel?

2011-09-12 Thread Michel Lavaud
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.

Best wishes
Michel Lavaud



On 04.05.2011 00:50, Vincent van Ravesteijn wrote:
  Hi everyone,
 
  As a typical start of a new release cycle I want to poll
  - what features are a must in the next release;
  - what work do you think you will be doing;
  - what do you hope to see somebody else to do (please keep it
  realistic) ?
 
  I will compose a list of things afterwards and keep this in sight
  during the
  2.1 cycle.
 
  Vincent
I would find it an improvement if, in the Plan window, the sequence
chapter / section/ etc. currently opened remained opened when opening
another chapter or section, etc. I think this was already suggested by
somebody else a long time ago. I don't know how this could be
implemented, maybe by adding an attribute Open (yes/no) to sectioning
commands like \chapter and \section, etc. and stripping it out when
exporting to LaTeX (since it's not included in LaTeX); or adding a
commented line before the line \chapter, containing the current state in
LyX (open or closed) of the sectioning command ?

Best wishes
Michel Lavaud




Re: drag in outline panel?

2011-09-12 Thread Richard Heck

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üllersp...@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.


Richard



Re: drag in outline panel?

2011-09-12 Thread Xu Wang
Thank you, Richard, for the explanation. It makes sense that convenience
feature requests are not high on anyone's priority list. Xu

On Mon, Sep 12, 2011 at 9:08 AM, Richard Heck rgh...@comcast.net 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üllersp...@lyx.org
 mailto:sp...@lyx.org  wrote:

 Xu Wang wrote:
   bump

 
 http://www.lyx.org/trac/**ticket/5778http://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.

 Richard




Re: drag in outline panel?

2011-09-12 Thread Michel Lavaud
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  > 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.

Best wishes
Michel Lavaud



On 04.05.2011 00:50, Vincent van Ravesteijn wrote:
> > Hi everyone,
> >
> > As a typical start of a new release cycle I want to poll
> > - what features are a must in the next release;
> > - what work do you think you will be doing;
> > - what do you hope to see somebody else to do (please keep it
> > realistic) ?
> >
> > I will compose a list of things afterwards and keep this in sight
> > during the
> > 2.1 cycle.
> >
> > Vincent
I would find it an improvement if, in the "Plan" window, the sequence
chapter / section/ etc. currently opened remained opened when opening
another chapter or section, etc. I think this was already suggested by
somebody else a long time ago. I don't know how this could be
implemented, maybe by adding an attribute "Open" (yes/no) to sectioning
commands like \chapter and \section, etc. and stripping it out when
exporting to LaTeX (since it's not included in LaTeX); or adding a
commented line before the line \chapter, containing the current state in
LyX (open or closed) of the sectioning command ?

Best wishes
Michel Lavaud




Re: drag in outline panel?

2011-09-12 Thread Richard Heck

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>  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.


Richard



Re: drag in outline panel?

2011-09-12 Thread Xu Wang
Thank you, Richard, for the explanation. It makes sense that convenience
feature requests are not high on anyone's priority list. Xu

On Mon, Sep 12, 2011 at 9: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>> >  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.
>
> Richard
>
>


Re: drag in outline panel?

2011-09-11 Thread Jürgen Spitzmüller
Xu Wang wrote:
 bump

http://www.lyx.org/trac/ticket/5778

Jürgen


Re: drag in outline panel?

2011-09-11 Thread Xu Wang
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 wrote:

 Xu Wang wrote:
  bump

 http://www.lyx.org/trac/ticket/5778

 Jürgen



Re: drag in outline panel?

2011-09-11 Thread Jürgen Spitzmüller
Xu Wang wrote:
> bump

http://www.lyx.org/trac/ticket/5778

Jürgen


Re: drag in outline panel?

2011-09-11 Thread Xu Wang
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  wrote:

> Xu Wang wrote:
> > bump
>
> http://www.lyx.org/trac/ticket/5778
>
> Jürgen
>


Re: drag in outline panel?

2011-09-10 Thread Xu Wang
bump

On Wed, Sep 7, 2011 at 7:36 PM, Xu Wang xuwang...@gmail.com wrote:

 Would it be difficult in Qt to allow dragging of elements in the outline
 panel? Sometimes it's annoying to keep pushing the up or down buttons.

 Thanks,

 Xu



Re: drag in outline panel?

2011-09-10 Thread Xu Wang
bump

On Wed, Sep 7, 2011 at 7:36 PM, Xu Wang  wrote:

> Would it be difficult in Qt to allow dragging of elements in the outline
> panel? Sometimes it's annoying to keep pushing the "up" or "down" buttons.
>
> Thanks,
>
> Xu
>


drag in outline panel?

2011-09-07 Thread Xu Wang
Would it be difficult in Qt to allow dragging of elements in the outline
panel? Sometimes it's annoying to keep pushing the up or down buttons.

Thanks,

Xu


drag in outline panel?

2011-09-07 Thread Xu Wang
Would it be difficult in Qt to allow dragging of elements in the outline
panel? Sometimes it's annoying to keep pushing the "up" or "down" buttons.

Thanks,

Xu