Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Stefan Schimanski
Jean-Marc Lasgouttes schrieb: Martin Vermeer <[EMAIL PROTECTED]> writes: I am looking into this now. As I said, it is not complicated. But in InsetMathNest there is already an implementation: case LFUN_INSET_TOGGLE: cur.recordUndo(); lock(!lock()); cur.popForw

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Andre Poenitz
On Mon, Dec 10, 2007 at 03:11:13AM +0200, Martin Vermeer wrote: > On Mon, Dec 10, 2007 at 12:46:18AM +0100, Stefan Schimanski wrote: > > Jean-Marc Lasgouttes schrieb: > > > Stefan Schimanski <[EMAIL PROTECTED]> writes: > > > > > > > > >> If the cursor is in the cell with 42, the unfold command

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Andre Poenitz
On Mon, Dec 10, 2007 at 12:46:18AM +0100, Stefan Schimanski wrote: > Jean-Marc Lasgouttes schrieb: >> Stefan Schimanski <[EMAIL PROTECTED]> writes: >> >> >>> If the cursor is in the cell with 42, the unfold command will unfold >>> the \bar macro. Another press will unfold the \foo macro. Then a

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Jean-Marc Lasgouttes
Stefan Schimanski <[EMAIL PROTECTED]> writes: > But then why are math insets so special here? Only InsetBranch, > InsetCollapsable and InsetMathNest have an implementation. InsetCollapsable covers all text insets that can collapse. Math inset is the only other kind of inset that is highly editab

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Stefan Schimanski
Martin Vermeer schrieb: On Mon, Dec 10, 2007 at 12:46:18AM +0100, Stefan Schimanski wrote: Jean-Marc Lasgouttes schrieb: Stefan Schimanski <[EMAIL PROTECTED]> writes: If the cursor is in the cell with 42, the unfold command will unfold the \bar macro. Another press will unf

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-10 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: >> I am looking into this now. As I said, it is not complicated. But in >> InsetMathNest there is already an implementation: >> >> case LFUN_INSET_TOGGLE: >> cur.recordUndo(); >> lock(!lock()); >> cur.popForward(); >>

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-09 Thread Martin Vermeer
On Mon, Dec 10, 2007 at 12:46:18AM +0100, Stefan Schimanski wrote: > Jean-Marc Lasgouttes schrieb: > > Stefan Schimanski <[EMAIL PROTECTED]> writes: > > > > > >> If the cursor is in the cell with 42, the unfold command will unfold > >> the \bar macro. Another press will unfold the \foo macro. T

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-12-09 Thread Stefan Schimanski
Jean-Marc Lasgouttes schrieb: Stefan Schimanski <[EMAIL PROTECTED]> writes: If the cursor is in the cell with 42, the unfold command will unfold the \bar macro. Another press will unfold the \foo macro. Then a fold command will fold the \bar, and another will fold the \foo. The whole sense

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-23 Thread Stefan Schimanski
Am Freitag, den 23.11.2007, 16:56 +0100 schrieb Jean-Marc Lasgouttes: > Stefan Schimanski <[EMAIL PROTECTED]> writes: > > > If the cursor is in the cell with 42, the unfold command will unfold > > the \bar macro. Another press will unfold the \foo macro. Then a fold > > command will fold the \bar

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-23 Thread Jean-Marc Lasgouttes
Stefan Schimanski <[EMAIL PROTECTED]> writes: > If the cursor is in the cell with 42, the unfold command will unfold > the \bar macro. Another press will unfold the \foo macro. Then a fold > command will fold the \bar, and another will fold the \foo. > > The whole sense of this is that you can ver

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-16 Thread Stefan Schimanski
Am 16.11.2007 um 16:44 schrieb Jean-Marc Lasgouttes: Stefan Schimanski <[EMAIL PROTECTED]> writes: Because it is not a toggle behaviour. If you are inside nested macros you can unfold several time and the same for fold. Care to give an example? My point is that we should have the same funct

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-16 Thread Stefan Schimanski
Am 16.11.2007 um 15:47 schrieb Jean-Marc Lasgouttes: [EMAIL PROTECTED] writes: Author: sts Date: Thu Nov 1 12:08:04 2007 New Revision: 21327 URL: http://www.lyx.org/trac/changeset/21327 Log: * LFUNs for math macros and menu integration +# math-macros +\bind "C-plus" "math-macro-unfo

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-16 Thread Jean-Marc Lasgouttes
Stefan Schimanski <[EMAIL PROTECTED]> writes: > Because it is not a toggle behaviour. If you are inside nested macros > you can unfold several time and the same for fold. Care to give an example? My point is that we should have the same functions and shortcuts for collapsable insets and collapsab

Re: [Cvslog] r21327 - in /lyx-devel/trunk: lib/bind/math.bind lib/ui/s...

2007-11-16 Thread Jean-Marc Lasgouttes
[EMAIL PROTECTED] writes: > Author: sts > Date: Thu Nov 1 12:08:04 2007 > New Revision: 21327 > > URL: http://www.lyx.org/trac/changeset/21327 > Log: > * LFUNs for math macros and menu integration > +# math-macros > +\bind "C-plus" "math-macro-unfold" > +\bind "C-minus""math-macro