Re: Move background colour to layout files -- for _all_ collapsables

2007-08-26 Thread Andre Poenitz
On Sun, Aug 26, 2007 at 03:46:51PM +0300, Martin Vermeer wrote: > Rather trivial actually. See attached. Nice. Andre'

Re: Move background colour to layout files -- for _all_ collapsables

2007-08-26 Thread Martin Vermeer
On Sun, Aug 26, 2007 at 12:17:56PM -0400, Richard Heck wrote: > > It just keeps getting better and better > > Richard Yes, and what I like is that the LOC count goes down all the time... This is code that I worked on earlier so it is familiar (and I see how clumsy I was a couple years ago)

Re: Move background colour to layout files -- for _all_ collapsables

2007-08-26 Thread Richard Heck
It just keeps getting better and better Richard Martin Vermeer wrote: Rather trivial actually. See attached. - Martin Index: src/TextClass.cpp ===

Move background colour to layout files -- for _all_ collapsables

2007-08-26 Thread Martin Vermeer
Rather trivial actually. See attached. - Martin Index: src/TextClass.cpp === --- src/TextClass.cpp (revision 19790) +++ src/TextClass.cpp (working copy) @@ -598,6 +598,7 @@ enum InsetLayoutTags { IL_FONT = 1, + I

Re: [patch] autoclose collapsables

2004-12-01 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: >>>>>> "Juergen" == Juergen Spitzmueller >>>>>> <[EMAIL PROTECTED]> writes: > > Juergen> Alfredo Braunstein wrote: >>> This is quick implementation of a long-standing feature request: >>>

Re: [patch] autoclose collapsables

2004-12-01 Thread Jean-Marc Lasgouttes
>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Alfredo Braunstein wrote: >> This is quick implementation of a long-standing feature request: >> autoopening/closing collapsables. Juergen> What is the difference to the

Re: [patch] autoclose collapsables

2004-12-01 Thread Juergen Spitzmueller
Alfredo Braunstein wrote: > This is quick implementation of a long-standing feature request: > autoopening/closing collapsables. What is the difference to the LFUN ALL_INSETS_TOGGLE, which Angus has implemented? If it would be that insets would be closed again after f&r or spellcheckin

Re: [patch] autoclose collapsables

2004-12-01 Thread Alfredo Braunstein
Lars Gullik BjÃnnes wrote: > Alfredo Braunstein <[EMAIL PROTECTED]> writes: > > | This is quick implementation of a long-standing feature request: > | autoopening/closing collapsables. This is really easy with the new > | scheme (most of this patch is a replace of status_ -&

Re: [patch] autoclose collapsables

2004-12-01 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | This is quick implementation of a long-standing feature request: | autoopening/closing collapsables. This is really easy with the new scheme | (most of this patch is a replace of status_ -> status()) No no no :-) We had that and we r

[patch] autoclose collapsables

2004-11-30 Thread Alfredo Braunstein
This is quick implementation of a long-standing feature request: autoopening/closing collapsables. This is really easy with the new scheme (most of this patch is a replace of status_ -> status()) On a side note, we should keep the following tree bools of insetcollapsable.h inside a "metri

Re: collapsables

2004-03-27 Thread Andre Poenitz
On Fri, Mar 26, 2004 at 08:39:11PM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > >> So: either we add an insetdim_ member in InsetCollapsable and store the > >> InsetText's dimension there, and we continue to overwrite dim_ (I have a > >> patch for this), > > > > InsetCollapsable's

Re: collapsables

2004-03-26 Thread Alfredo Braunstein
Andre Poenitz wrote: >> So: either we add an insetdim_ member in InsetCollapsable and store the >> InsetText's dimension there, and we continue to overwrite dim_ (I have a >> patch for this), > > InsetCollapsable's dim should be the dimension of the InsetCollapsable. > It could be created by call

Re: collapsables

2004-03-26 Thread Andre Poenitz
On Thu, Mar 25, 2004 at 05:34:32PM +0100, Alfredo Braunstein wrote: > Making collapsables derive from InsetText raises some problems, mainly there > is one cached dimension/position missing. This problem is semi-addressed in > insettext by not using its cached dim_ but use instead the dim

Re: collapsables

2004-03-26 Thread Andre Poenitz
On Thu, Mar 25, 2004 at 04:53:15PM +, Angus Leeming wrote: > Alfredo Braunstein wrote: > > All this raises some doubts about the 'cleaningness' of deriving > > collapsables from insettext IMHO. > > Agreed. Even the statement InsetCollapsable IS-A InsetText is wr

Re: collapsables

2004-03-26 Thread Andre Poenitz
On Fri, Mar 26, 2004 at 10:15:33AM +0100, Alfredo Braunstein wrote: > Angus Leeming wrote: > > > Agreed. Even the statement InsetCollapsable IS-A InsetText is wrong. > > I guess we'd have to wait for André to explain his reasons. In the cvs log > it says it's for getting rid of the 'inset owner'

Re: [patch] collapsables

2004-03-26 Thread Alfredo Braunstein
Andre Poenitz wrote: > Well, it's a matter of '#if 0' or '#if 1'. I was just indicating that > DEPM works with the new ParagraphList now. > > What do you suggest as replacement for DEPM? > > Drop it completely? This changes The LyX Experience a bit... Now that we have a centralized cursor, som

Re: [patch] collapsables

2004-03-26 Thread Andre Poenitz
On Wed, Mar 24, 2004 at 08:56:38AM +0100, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > On Mon, Mar 22, 2004 at 02:29:10PM +0100, Alfredo Braunstein wrote: > >> [which reminds me: maybe it's time to talk about DEPM again? *ducking*] > > > > What about it? It's back to life after applying

Re: collapsables

2004-03-26 Thread Alfredo Braunstein
Angus Leeming wrote: > Agreed. Even the statement InsetCollapsable IS-A InsetText is wrong. I guess we'd have to wait for Andrà to explain his reasons. In the cvs log it says it's for getting rid of the 'inset owner' pointer, which I think was used for disallowing the insertion of certain types o

Re: collapsables

2004-03-25 Thread Angus Leeming
Alfredo Braunstein wrote: > All this raises some doubts about the 'cleaningness' of deriving > collapsables from insettext IMHO. Agreed. Even the statement InsetCollapsable IS-A InsetText is wrong. --

collapsables

2004-03-25 Thread Alfredo Braunstein
Making collapsables derive from InsetText raises some problems, mainly there is one cached dimension/position missing. This problem is semi-addressed in insettext by not using its cached dim_ but use instead the dimension of its LyXText. dim_ is then overwritten in InsetCollapsable. The problem

Re: [patch] collapsables

2004-03-24 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Mon, Mar 22, 2004 at 02:00:04PM +0100, Alfredo Braunstein wrote: > > + if (!pit->isInset(i) || pit->getInset(i)->isChar()) { > + // some insets are line separators too > + if (pit->isLineSeparator(i)) { > +

Re: [patch] collapsables

2004-03-24 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Mon, Mar 22, 2004 at 02:29:10PM +0100, Alfredo Braunstein wrote: >> [which reminds me: maybe it's time to talk about DEPM again? *ducking*] > > What about it? It's back to life after applying the 'patch previews' > which I am probably going to do on Thursday. A real pit

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:29:10PM +0100, Alfredo Braunstein wrote: > [which reminds me: maybe it's time to talk about DEPM again? *ducking*] What about it? It's back to life after applying the 'patch previews' which I am probably going to do on Thursday. Andre'

Re: [patch] collapsables

2004-03-23 Thread Andre Poenitz
On Mon, Mar 22, 2004 at 02:00:04PM +0100, Alfredo Braunstein wrote: + if (!pit->isInset(i) || pit->getInset(i)->isChar()) { + // some insets are line separators too + if (pit->isLineSeparator(i)) { + // registe

Re: [patch] collapsables

2004-03-22 Thread Angus Leeming
Alfredo Braunstein wrote: > [which reminds me: maybe it's time to talk about DEPM again? > [*ducking*] I stayed out of the conversation last time(s) so suggest that you start... -- Angus

Re: [patch] collapsables

2004-03-22 Thread Alfredo Braunstein
Angus Leeming wrote: > Alfredo Braunstein wrote: > >> This is the patch, for if someone wants to test it and tell me how >> it feels like. > > Do things like math insets in display mode also return true for > breakAfter? Right now these two go in parallel. display = break after + break before

Re: [patch] collapsables

2004-03-22 Thread Angus Leeming
Alfredo Braunstein wrote: > This is the patch, for if someone wants to test it and tell me how > it feels like. Do things like math insets in display mode also return true for breakAfter? -- Angus

[patch] collapsables

2004-03-22 Thread Alfredo Braunstein
This is the patch, for if someone wants to test it and tell me how it feels like. Alfredo ? ChangeLog-old ? PosIterator.C-save ? PosIterator.h-save ? bfri.C ? safe ? textcursor.C-save ? textcursor.h-save ? insets/insetcollapsable-save.C ? insets/insettext-save.C Index: cursor.C ===

autocollapsing collapsables

2003-11-12 Thread Alfredo Braunstein
It was recently removed a 1.3.x feature of collapsables that was considered useful with spellchecking. The feature consisted of the following: on an edit event, a bool first_after_edit was set to true. On any other event it was set to false. Then on the search code, if nothing (more) was found