[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

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

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 po

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

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 -I/usr/X

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

books (was Re: CharStyle discussion)

2003-12-09 Thread Christian Ridderström
On Tue, 9 Dec 2003, Andre Poenitz wrote: > > > > Anyway, to illustrate what I mean, look at this link: > > > > http://www.baen.com/chapters/W29/0671319590___2.htm > > > > > > > > The first italic word is in the 4th paragraph, and the next in the 5th, > > > > and then in the 7th. > >

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

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 ge

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 po

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: 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: 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, >> i

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 ca

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 t

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 w

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

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, t

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

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: 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 the

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 featur

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

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

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 '\

Correct filenames for TeX picture

2003-12-09 Thread Vitaly Lipatov
I guess we have to convert filenames of any graphics in 7 bit clean form like this path does. It resolves problems with russian names of files with graphics inserted in LyX. --- /home/lav/RPM/BUILD/lyx-1.3.3/src/insets/insetgraphics.C 2003-09-30 23:55:18 +0400 +++ src/insets/insetgraphics.C

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 ro

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: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_

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: 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 > > h

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 no