Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl writes: This patch enables to show even disabled OptItems. I found that this is wanted sometimes. Example: An inlined equation does not have a label and thus no copy as reference, so these can be hidden. When the equation is displayed, you

RE: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn - TNW
This patch enables to show even disabled OptItems. I found that this is wanted sometimes. Example: An inlined equation does not have a label and thus no copy as reference, so these can be hidden. When the equation is displayed, you can insert a label. But, as long as there is no label

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn - TNW v.f.vanraveste...@tudelft.nl writes: What is the difference with an Item then? An Item can be on/off, an OptItem can be on/hidden, but sometimes you might want an item to be on/off/hidden. In what situation would your item be hidden then? Sorry if I am a bit dense

RE: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn - TNW
What is the difference with an Item then? An Item can be on/off, an OptItem can be on/hidden, but sometimes you might want an item to be on/off/hidden. In what situation would your item be hidden then? Sorry if I am a bit dense today :) Jmarc It would be hidden by default if the item is

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn - TNW v.f.vanraveste...@tudelft.nl writes: It would be hidden by default if the item is disabled, unless you call status.showAlways(true) (or another name). OK. An inline equation can't have a label, so in the context menu, the items Equation Label and Copy as Ref are

Re: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn
An inline equation can't have a label, so in the context menu, the items Equation Label and Copy as Ref are hidden. When you change the equation to a display Equation, both items will appear, but Copy as Ref will be disabled as long as you don't insert a label. What if the inset says

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn v.f.vanraveste...@tudelft.nl writes: I think the distinction between 'do not handle' and 'handle but is disabled' captures what you want. It might even be that all uses of OptItem could be replaced by that in the code. Well, it's a not-so-very-well-defined difference in

Re: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn
Jean-Marc Lasgouttes schreef: Does the attached patch make sense? It does not work (yet) but I did not have time to debug it. It makes sense, but it doesn't work because BufferView::getStatus() always returns true for LFUN_LABEL_COPY_AS_REF. Second, when InsetMathHull is asked for the

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Le 27 mai 09 à 23:08, Vincent van Ravesteijn a écrit : It makes sense, but it doesn't work because BufferView::getStatus() always returns true for LFUN_LABEL_COPY_AS_REF. Second, when InsetMathHull is asked for the status of LABEL_INSERT, it _should_ return that it handles the LFUN, even

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn writes: > This patch enables to show even disabled OptItems. > > I found that this is wanted sometimes. Example: An inlined equation > does not have a label and thus no copy as reference, so these can be > hidden. When the equation is

RE: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn - TNW
>> This patch enables to show even disabled OptItems. >> >> I found that this is wanted sometimes. Example: An inlined equation >> does not have a label and thus no copy as reference, so these can be >> hidden. When the equation is displayed, you can insert a label. But, >> as long as there

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
"Vincent van Ravesteijn - TNW" writes: >>What is the difference with an "Item" then? > > An Item can be on/off, an OptItem can be on/hidden, but sometimes you > might want an item to be on/off/hidden. In what situation would your item be hidden then? Sorry if I am a

RE: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn - TNW
>>>What is the difference with an "Item" then? >> >> An Item can be on/off, an OptItem can be on/hidden, but sometimes you >> might want an item to be on/off/hidden. > >In what situation would your item be hidden then? Sorry if I am a bit dense today :) > >Jmarc > It would be hidden by default

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
"Vincent van Ravesteijn - TNW" writes: > It would be hidden by default if the item is disabled, unless you call > status.showAlways(true) (or another name). OK. > An inline equation can't have a label, so in the context menu, the items > "Equation Label" and "Copy

Re: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn
An inline equation can't have a label, so in the context menu, the items "Equation Label" and "Copy as Ref" are hidden. When you change the equation to a display Equation, both items will appear, but "Copy as Ref" will be disabled as long as you don't insert a label. What if the inset

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn writes: >> I think the distinction between 'do not handle' and 'handle but is >> disabled' captures what you want. It might even be that all uses of >> OptItem could be replaced by that in the code. > > Well, it's a not-so-very-well-defined

Re: Show disabled OptItems

2009-05-27 Thread Vincent van Ravesteijn
Jean-Marc Lasgouttes schreef: Does the attached patch make sense? It does not work (yet) but I did not have time to debug it. It makes sense, but it doesn't work because BufferView::getStatus() always returns true for LFUN_LABEL_COPY_AS_REF. Second, when InsetMathHull is asked for the

Re: Show disabled OptItems

2009-05-27 Thread Jean-Marc Lasgouttes
Le 27 mai 09 à 23:08, Vincent van Ravesteijn a écrit : It makes sense, but it doesn't work because BufferView::getStatus() always returns true for LFUN_LABEL_COPY_AS_REF. Second, when InsetMathHull is asked for the status of LABEL_INSERT, it _should_ return that it handles the LFUN, even