Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Mon, Dec 08, 2003 at 02:08:03PM -0500, Kuba Ober wrote: Oh yes, then certainly it will work like that. Another way of doing it is instead of having character style insets just have character style flags and have the core do the job. I.e. have bold on and bold off flags. This does not work

Re: CharStyle discussion

2003-12-09 Thread Martin Vermeer
On Tue, Dec 09, 2003 at 08:18:34AM +0100, Andre Poenitz spake thusly: On Mon, Dec 08, 2003 at 02:08:03PM -0500, Kuba Ober wrote: Oh yes, then certainly it will work like that. Another way of doing it is instead of having character style insets just have character style flags and have

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Martin Vermeer
On Mon, Dec 08, 2003 at 11:40:48AM +0100, Andre Poenitz spake thusly: Index: math_cursor.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v retrieving revision 1.368 diff -u -p -r1.368 math_cursor.C ---

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 11:04:41AM +0200, Martin Vermeer wrote: On Mon, Dec 08, 2003 at 11:40:48AM +0100, Andre Poenitz spake thusly: Index: math_cursor.C === RCS file:

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Martin Vermeer
On Tue, Dec 09, 2003 at 10:31:51AM +0100, Andre Poenitz spake thusly: BTW should we have symmetric behaviour? I.e. pressing 'delete' on the inside of the right of a parentheses pair would 'melt' the pair. But it seems this is already bound... bound? What? To deleting a matrix row if

Thoughts on InsetExternal

2003-12-09 Thread Angus Leeming
Here is my list of things to do with InsetExternal, together with a rationale for my preference. * What should we do if generation of the output file fails? My choice is to do nothing. If the external_templates file defines the generated latex as '\includegraphics[options]{your_file}' or as

Re: Compilation failure in checkedwodgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
Jean-Marc == Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Jean-Marc I get the following error when compiling: Angus' fix allowed me to go further, and then I needed the patch below (already committed) to finish. The problem now is that with lyx-qt, I get a crash as soon as I try to create an

Re: word-backward/forward in mathed

2003-12-09 Thread Jean-Marc Lasgouttes
Andre == Andre Poenitz [EMAIL PROTECTED] writes: Andre On Mon, Dec 08, 2003 at 10:12:16AM +0100, Jean-Marc Lasgouttes Andre wrote: What word-backward/forward could to is jump over insets instead of entering them. The equivalent of a 'word' in mathed is an inset (a block) IMO. Andre It does

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: While on the subject, something's rotten in Denmark.. mathed, since line-beginning/end behave the same as word-backward/forward as far as I can tell. Such things could be proven quickly by looking at the source.

Re: Compilation failure in checkedwodgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: The problem now is that with lyx-qt, I get a crash as soon as I try to create an external inset. The relevant part of the backtrace is Does the attached cure it? -- AngusIndex: src/frontends/qt2/QExternal.C

Re: CharStyle discussion

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: On Fri, Dec 05, 2003 at 08:19:16PM +0100, Christian Ridderström wrote: You need to fix your window manager? SCNR Indeed. Save a few small changes I use the same configuration as 14 years ago. ok... and all new WM features since then are

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Jean-Marc Lasgouttes wrote: The problem now is that with lyx-qt, I get a crash as soon as I try to create an external inset. The relevant part of the backtrace is Angus Does the attached cure it? It cures the crash, but there is still a

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: In fact, even inside \textrm{adsfas asdf asfd} word-backward/forward doesn't work (i.e. go to the next word separated by a space). Mathed has almost no idea what a 'word' or a 'space' is. With the risk of being troublemaker, maybe \textrm{}

Re: Thoughts on InsetExternal

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 12:15:46PM +, Angus Leeming wrote: Here is my list of things to do with InsetExternal, together with a rationale for my preference. * What should we do if generation of the output file fails? My choice is to do nothing. If the external_templates file defines the

Re: word-backward/forward in mathed

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:28:42PM +0100, Christian Ridderström wrote: I will use a '|' to indicate the cursor position, so: a|+ ( b + c ) + d means that the cursor is just after the first 'a'. I'll use the following notation to indicate the cursor position before a movement, the

Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:46:35PM +0100, Christian Ridderström wrote: On Mon, 8 Dec 2003, Andre Poenitz wrote: On Fri, Dec 05, 2003 at 08:19:16PM +0100, Christian Ridderström wrote: You need to fix your window manager? SCNR Indeed. Save a few small changes I use the same

Re: word-backward/forward in mathed

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:53:49PM +0100, Christian Ridderström wrote: On Mon, 8 Dec 2003, Andre Poenitz wrote: In fact, even inside \textrm{adsfas asdf asfd} word-backward/forward doesn't work (i.e. go to the next word separated by a space). Mathed has almost no idea what a 'word'

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: It cures the crash, but there is still a problem: template popup shows an empty entry, but the help text is the chess one. We have to find out why the popup is not initialized correctly, instead of trying to workaround bad values. Sure. I thought you wanted to

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Tue, 9 Dec 2003, Andre Poenitz wrote: With the risk of being troublemaker, maybe \textrm{} should induce an editing mode that's more like in TextEd? I really like what we have so far, i.e. you press C-m and get a text-like inset, where Space works etc. But icing on the cake would

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Jean-Marc Lasgouttes wrote: It cures the crash, but there is still a problem: template popup shows an empty entry, but the help text is the chess one. We have to find out why the popup is not initialized correctly, instead of trying to

Re: Thoughts on InsetExternal

2003-12-09 Thread Angus Leeming
Andre Poenitz wrote: * If the user specifies that he'd like to see a preview of the external file and if the generation of the preview fails, then he's left with an incorrect diagnostic message. The preview code needs re-working if this is to be corrected. Well, minor annoyance... You'd be

Re: Thoughts on InsetExternal

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:22:10PM +, Angus Leeming wrote: You'd be amazed at how many complaints I used to get (mainly from John ;-) Probably not. Andre'

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Jean-Marc Lasgouttes wrote: It cures the crash, but there is still a problem: template popup shows an empty entry, but the help text is the chess one. We have to find out why the popup is not initialized

Re: CharStyle discussion

2003-12-09 Thread Christian Ridderström
On Tue, 9 Dec 2003, Andre Poenitz wrote: Yes, I run into this regularly myself. But that's just the usual 2 point box space acculmulated by nested boxes... Maybe going down to 1 would help already... I'm not sure if I was clear enough, but I was worried that we might get into

Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 03:41:47PM +0100, Christian Ridderström wrote: On Tue, 9 Dec 2003, Andre Poenitz wrote: Yes, I run into this regularly myself. But that's just the usual 2 point box space acculmulated by nested boxes... Maybe going down to 1 would help already... I'm

Re: [PATCH] Inset VSpace for tex2lyx

2003-12-09 Thread Georg Baum
Am Montag, 8. Dezember 2003 10:20 schrieb Andre Poenitz: On Sat, Dec 06, 2003 at 10:16:01PM +0100, Georg Baum wrote: Comments? Looks good. Attached is a rediffed version against current cvs. Could you please apply this one? Georg Index: lib/ChangeLog

Hmmm. One for JMarc

2003-12-09 Thread Angus Leeming
So, it appears that things have changed siznce qt-2.3.x: g++ -DHAVE_CONFIG_H -I. -I../../../../src/frontends/qt2 -I../../../src -I../../../../src/ -I../../../../src/frontends/ -I../../../../images -I/usr/lib/qt3-gcc3.2/include -I../../../../boost -I../../../../src/frontends/controllers

Re: Hmmm. One for JMarc

2003-12-09 Thread Angus Leeming
Angus Leeming wrote: So, it appears that things have changed siznce qt-2.3.x: ../../../../src/frontends/qt2/lengthvalidator.C: In constructor `LengthValidator::LengthValidator(QWidget*, const char*)': ../../../../src/frontends/qt2/lengthvalidator.C:28: no matching function for call

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Jean-Marc Lasgouttes wrote: It cures the crash, but there is still a problem: template popup shows an empty entry, but the help text is the chess one. We have to find out why the popup is not initialized

EDITABLE

2003-12-09 Thread Michael Schmitt
Just a short question (and hopefully also a short answer): What is the difference between a noneditable, and editable, and a highly editable inset? Please enlighten me, Michael

[patch] selection

2003-12-09 Thread Alfredo Braunstein
this patch reworks selection handling a bit: - eliminates TextCursor::selection::start/end, in favour of TextCursor::selStart()/selEnd(), that compute the start and end of the selection on the fly from cursor and selection.cursor. - moves xsel_cache to Bufferview (only the one in the top LyXText

Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Mon, Dec 08, 2003 at 02:08:03PM -0500, Kuba Ober wrote: > Oh yes, then certainly it will work like that. Another way of doing it is > instead of having character style insets just have character style flags and > have the core do the job. I.e. have "bold on" and "bold off" flags. This does

Re: CharStyle discussion

2003-12-09 Thread Martin Vermeer
On Tue, Dec 09, 2003 at 08:18:34AM +0100, Andre Poenitz spake thusly: > On Mon, Dec 08, 2003 at 02:08:03PM -0500, Kuba Ober wrote: > > Oh yes, then certainly it will work like that. Another way of doing it is > > instead of having character style insets just have character style flags and > >

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Martin Vermeer
On Mon, Dec 08, 2003 at 11:40:48AM +0100, Andre Poenitz spake thusly: > Index: math_cursor.C > === > RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v > retrieving revision 1.368 > diff -u -p -r1.368 math_cursor.C

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 11:04:41AM +0200, Martin Vermeer wrote: > On Mon, Dec 08, 2003 at 11:40:48AM +0100, Andre Poenitz spake thusly: > > > Index: math_cursor.C > > === > > RCS file:

Re: annoying mathed-behaviour (was Re: The current char style UI)

2003-12-09 Thread Martin Vermeer
On Tue, Dec 09, 2003 at 10:31:51AM +0100, Andre Poenitz spake thusly: > > BTW should we have symmetric behaviour? I.e. pressing 'delete' on the > > inside of the right of a parentheses pair would 'melt' the pair. But > > it seems this is already bound... > > bound? What? To deleting a matrix

Thoughts on InsetExternal

2003-12-09 Thread Angus Leeming
Here is my list of things to do with InsetExternal, together with a rationale for my preference. * What should we do if generation of the output file fails? My choice is to do nothing. If the external_templates file defines the generated latex as '\includegraphics[options]{your_file}' or as

Re: Compilation failure in checkedwodgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> I get the following error when compiling: Angus' fix allowed me to go further, and then I needed the patch below (already committed) to finish. The problem now is that with lyx-qt, I get a crash as soon as I try to

Re: word-backward/forward in mathed

2003-12-09 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Mon, Dec 08, 2003 at 10:12:16AM +0100, Jean-Marc Lasgouttes Andre> wrote: >> What word-backward/forward could to is jump over insets instead of >> entering them. The equivalent of a 'word' in mathed is an inset (a >> block) IMO.

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: > > While on the subject, something's rotten in Denmark.. mathed, since > > > > line-beginning/end > > > > behave the same as > > > > word-backward/forward > > > > as far as I can tell. > > Such things could be proven quickly by

Re: Compilation failure in checkedwodgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > The problem now is that with lyx-qt, I get a crash as soon as I try > to create an external inset. The relevant part of the backtrace is Does the attached cure it? -- AngusIndex: src/frontends/qt2/QExternal.C

Re: CharStyle discussion

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: > On Fri, Dec 05, 2003 at 08:19:16PM +0100, Christian Ridderström wrote: > > > > You need to fix your window manager? SCNR > > > > > > Indeed. Save a few small changes I use the same configuration as 14 > > > years ago. > > > > ok... and all new WM

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> The problem now is that with lyx-qt, I get a crash as soon as I try >> to create an external inset. The relevant part of the backtrace is Angus> Does the attached cure it? It cures the crash, but

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Mon, 8 Dec 2003, Andre Poenitz wrote: > > > In fact, even inside \textrm{adsfas asdf asfd} word-backward/forward > > doesn't work (i.e. go to the next word separated by a space). > > Mathed has almost no idea what a 'word' or a 'space' is. With the risk of being troublemaker, maybe

Re: Thoughts on InsetExternal

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 12:15:46PM +, Angus Leeming wrote: > Here is my list of things to do with InsetExternal, together with a > rationale for my preference. > > * What should we do if generation of the output file fails? My choice > is to do nothing. If the external_templates file

Re: word-backward/forward in mathed

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:28:42PM +0100, Christian Ridderström wrote: > I will use a '|' to indicate the cursor position, so: > > a|+ ( b + c ) + d > > means that the cursor is just after the first 'a'. I'll use the following > notation to indicate the cursor position before a movement,

Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:46:35PM +0100, Christian Ridderström wrote: > On Mon, 8 Dec 2003, Andre Poenitz wrote: > > > On Fri, Dec 05, 2003 at 08:19:16PM +0100, Christian Ridderström wrote: > > > > > You need to fix your window manager? SCNR > > > > > > > > Indeed. Save a few small changes I

Re: word-backward/forward in mathed

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:53:49PM +0100, Christian Ridderström wrote: > On Mon, 8 Dec 2003, Andre Poenitz wrote: > > > > > In fact, even inside \textrm{adsfas asdf asfd} word-backward/forward > > > doesn't work (i.e. go to the next word separated by a space). > > > > Mathed has almost no idea

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > It cures the crash, but there is still a problem: template popup > shows an empty entry, but the help text is the chess one. > > We have to find out why the popup is not initialized correctly, > instead of trying to workaround bad values. Sure. I thought you wanted

Re: word-backward/forward in mathed

2003-12-09 Thread Christian Ridderström
On Tue, 9 Dec 2003, Andre Poenitz wrote: > > With the risk of being troublemaker, maybe \textrm{} should induce an > > editing mode that's more like in TextEd? I really like what we have so > > far, i.e. you press C-m and get a text-like inset, where Space works etc. > > > > But icing on the

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >> It cures the crash, but there is still a problem: template popup >> shows an empty entry, but the help text is the chess one. >> >> We have to find out why the popup is not initialized correctly, >>

Re: Thoughts on InsetExternal

2003-12-09 Thread Angus Leeming
Andre Poenitz wrote: >> * If the user specifies that he'd like to see a preview of the >> external file and if the generation of the preview fails, then he's >> left with an incorrect diagnostic message. The preview code needs >> re-working if this is to be corrected. > > Well, minor annoyance...

Re: Thoughts on InsetExternal

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 02:22:10PM +, Angus Leeming wrote: > You'd be amazed at how many complaints I used to get (mainly from John > ;-) Probably not. Andre'

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Jean-Marc Lasgouttes wrote: >>> It cures the crash, but there is still a problem: template popup >>> shows an empty entry, but the help text is the chess one. >>> >>> We have to find out why the

Re: CharStyle discussion

2003-12-09 Thread Christian Ridderström
On Tue, 9 Dec 2003, Andre Poenitz wrote: > > > Yes, I run into this regularly myself. But that's just the usual 2 point > > > box space acculmulated by nested boxes... Maybe going down to 1 would > > > help already... > > > > I'm not sure if I was clear enough, but I was worried that we might

Re: CharStyle discussion

2003-12-09 Thread Andre Poenitz
On Tue, Dec 09, 2003 at 03:41:47PM +0100, Christian Ridderström wrote: > On Tue, 9 Dec 2003, Andre Poenitz wrote: > > > > > Yes, I run into this regularly myself. But that's just the usual 2 point > > > > box space acculmulated by nested boxes... Maybe going down to 1 would > > > > help

Re: [PATCH] Inset VSpace for tex2lyx

2003-12-09 Thread Georg Baum
Am Montag, 8. Dezember 2003 10:20 schrieb Andre Poenitz: > On Sat, Dec 06, 2003 at 10:16:01PM +0100, Georg Baum wrote: > > Comments? > > Looks good. Attached is a rediffed version against current cvs. Could you please apply this one? Georg Index: lib/ChangeLog

Hmmm. One for JMarc

2003-12-09 Thread Angus Leeming
So, it appears that things have changed siznce qt-2.3.x: g++ -DHAVE_CONFIG_H -I. -I../../../../src/frontends/qt2 -I../../../src -I../../../../src/ -I../../../../src/frontends/ -I../../../../images -I/usr/lib/qt3-gcc3.2/include -I../../../../boost -I../../../../src/frontends/controllers

Re: Hmmm. One for JMarc

2003-12-09 Thread Angus Leeming
Angus Leeming wrote: > So, it appears that things have changed siznce qt-2.3.x: > ../../../../src/frontends/qt2/lengthvalidator.C: In constructor >`LengthValidator::LengthValidator(QWidget*, const char*)': > ../../../../src/frontends/qt2/lengthvalidator.C:28: no matching > function for >

Re: Compilation failure in checkedwidgets.C with qt 2.3.0

2003-12-09 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Jean-Marc Lasgouttes wrote: >>> It cures the crash, but there is still a problem: template popup >>> shows an empty entry, but the help text is the chess one. >>> >>> We have to find out why the

EDITABLE

2003-12-09 Thread Michael Schmitt
Just a short question (and hopefully also a short answer): What is the difference between a noneditable, and editable, and a highly editable inset? Please enlighten me, Michael

[patch] selection

2003-12-09 Thread Alfredo Braunstein
this patch reworks selection handling a bit: - eliminates TextCursor::selection::start/end, in favour of TextCursor::selStart()/selEnd(), that compute the start and end of the selection on the fly from cursor and selection.cursor. - moves xsel_cache to Bufferview (only the one in the top LyXText