[PATCH] Re: graphics cache file path horkage

2003-05-30 Thread John Levon
On Fri, May 30, 2003 at 02:24:22AM +0100, John Levon wrote: I believe we should *always* store an absolute path at runtime. At save time, we can convert it to a relative path. Fixed patch. It seems to work for me. It fixes the Save As bug. Please please test. john p.s. sorry, no, I'm not

[PATCH] Re: graphics cache file path horkage

2003-05-30 Thread John Levon
On Fri, May 30, 2003 at 02:24:22AM +0100, John Levon wrote: > > I believe we should *always* store an absolute path at > > runtime. At save time, we can convert it to a relative path. Fixed patch. It seems to work for me. It fixes the Save As bug. Please please test. john p.s. sorry, no, I'm

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-21 Thread Herbert Voss
R. Lahaye wrote: In addition, I have patched lib/configure.m4 further by adding more conversion-schemes for Grace. From Grace (agr) to EPS, PDF, PNG and JPEG (only if Grace itself and each of these output formats are available). Would that be of help? when does LyX needs a conversion

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-21 Thread R. Lahaye
Herbert Voss wrote: R. Lahaye wrote: In addition, I have patched lib/configure.m4 further by adding more conversion-schemes for Grace. From Grace (agr) to EPS, PDF, PNG and JPEG (only if Grace itself and each of these output formats are available). Would that be of help? when

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-21 Thread Herbert Voss
R. Lahaye wrote: > In addition, I have patched lib/configure.m4 further by adding > more conversion-schemes for Grace. From Grace (agr) to EPS, > PDF, PNG and JPEG (only if Grace itself and each of these output > formats are available). > > Would that be of help? when does LyX needs a

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-21 Thread R. Lahaye
Herbert Voss wrote: > > R. Lahaye wrote: > > > In addition, I have patched lib/configure.m4 further by adding > > more conversion-schemes for Grace. From Grace (agr) to EPS, > > PDF, PNG and JPEG (only if Grace itself and each of these output > > formats are available). > > > > Would that be of

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-20 Thread R. Lahaye
R. Lahaye wrote: [Adding xpm to eps] Hi, I have modified lib/configure.m4 so that it also includes the conversion from XPM to EPS by default, at least for ImageMagick's convert: convert XPM:$$i EPS:$$o Do we also need a netpbm equivalent? Angus? This conversion is required,

Re: [PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-20 Thread R. Lahaye
R. Lahaye wrote: > [Adding xpm to eps] > > Hi, > > I have modified lib/configure.m4 so that it also includes the conversion > from XPM to EPS by default, at least for ImageMagick's convert: > > convert XPM:$$i EPS:$$o > > Do we also need a netpbm equivalent? Angus? > > This conversion is

[PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-17 Thread R. Lahaye
[Adding xpm to eps] Hi, I have modified lib/configure.m4 so that it also includes the conversion from XPM to EPS by default, at least for ImageMagick's convert: convert XPM:$$i EPS:$$o Do we also need a netpbm equivalent? Angus? This conversion is required, when loading XPM files and

[PATCH] Re: Graphics: Viewing XPM and stray-EPS files ?!?!

2002-04-17 Thread R. Lahaye
[Adding xpm to eps] Hi, I have modified lib/configure.m4 so that it also includes the conversion from XPM to EPS by default, at least for ImageMagick's convert: convert XPM:$$i EPS:$$o Do we also need a netpbm equivalent? Angus? This conversion is required, when loading XPM files and

[PATCH] Re: Graphics: file loading problems

2002-04-15 Thread R. Lahaye
Angus Leeming wrote: Bingo! xforms 0.88 has noimage support. You're using the image loader I wrote based on the libXpm library. The relevant code is to be found in src/graphics/GraphicsImageXPM.C. $Bingo^2$ !! Thanks for your hints and help. Instead of dimension const * start_row =

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread Angus Leeming
On Monday 15 April 2002 4:22 pm, R. Lahaye wrote: Angus Leeming wrote: Bingo! xforms 0.88 has noimage support. You're using the image loader I wrote based on the libXpm library. The relevant code is to be found in src/graphics/GraphicsImageXPM.C. $Bingo^2$ !! Thanks for your hints and

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread R. Lahaye
Angus Leeming wrote: On Monday 15 April 2002 4:22 pm, R. Lahaye wrote: Angus Leeming wrote: Bingo! xforms 0.88 has noimage support. You're using the image loader I wrote based on the libXpm library. The relevant code is to be found in src/graphics/GraphicsImageXPM.C. $Bingo^2$

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread Angus Leeming
On Monday 15 April 2002 5:37 pm, R. Lahaye wrote: Excuse me a momement, but why is that: (image_.height() - params.bb.yt) not params.bb.yb ? Ah, took me also some time to realize. The picture is stored in memory from upper-left to lower-right (see attachement).

[PATCH] Re: Graphics: file loading problems

2002-04-15 Thread R. Lahaye
Angus Leeming wrote: > > Bingo! xforms 0.88 has noimage support. You're using the image loader I > wrote based on the libXpm library. The relevant code is to be found in > src/graphics/GraphicsImageXPM.C. $Bingo^2$ !! Thanks for your hints and help. Instead of dimension const *

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread Angus Leeming
On Monday 15 April 2002 4:22 pm, R. Lahaye wrote: > Angus Leeming wrote: > > Bingo! xforms 0.88 has noimage support. You're using the image loader I > > wrote based on the libXpm library. The relevant code is to be found in > > src/graphics/GraphicsImageXPM.C. > > $Bingo^2$ !! Thanks for your

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread R. Lahaye
Angus Leeming wrote: > > On Monday 15 April 2002 4:22 pm, R. Lahaye wrote: > > Angus Leeming wrote: > > > Bingo! xforms 0.88 has noimage support. You're using the image loader I > > > wrote based on the libXpm library. The relevant code is to be found in > > > src/graphics/GraphicsImageXPM.C. >

Re: [PATCH] Re: Graphics: file loading problems

2002-04-15 Thread Angus Leeming
On Monday 15 April 2002 5:37 pm, R. Lahaye wrote: > > Excuse me a momement, but why is that: > > (image_.height() - params.bb.yt) > > not > > params.bb.yb > > ? > > Ah, took me also some time to realize. > The picture is stored in memory from upper-left to lower-right > (see

[PATCH] Re: Graphics: file loading problems

2002-04-12 Thread Herbert Voss
Angus Leeming wrote: I'm sure someone, somewhere, will tell us to use the std algorithms, rather than roll our own loops, but the above (or something close to it) should work. Alternatively, why not just add agr to that string! here is the alternative: Herbert --

[PATCH] Re: Graphics: file loading problems

2002-04-12 Thread Herbert Voss
Angus Leeming wrote: > I'm sure someone, somewhere, will tell us to use the std algorithms, rather > than roll our own loops, but the above (or something close to it) should work. > > Alternatively, why not just add "agr" to that string! here is the alternative: Herbert --

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Jean-Marc Lasgouttes
Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert R. Lahaye wrote: Talking about conversions again: do you know why we have two Grace formats listed in Preferences-Conversion-Formats? There is an entry for GRACE and for agr. What is the difference between the two? Moreover, only agr

[PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: Or call them raw_dimensions and return a pairuint, uint. Your call. please apply. Herbert -- http://www.lyx.org/help/ Index: src/frontends/controllers/ChangeLog === RCS file:

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 4:19 pm, Herbert Voss wrote: Angus Leeming wrote: Or call them raw_dimensions and return a pairuint, uint. Your call. please apply. Herbert I've done so. Needless to say I tweaked it a little. I decided that the graphics dialog could access the graphics cache

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: I've done so. Needless to say I tweaked it a little. I decided that the graphics dialog could access the graphics cache direct and not go through the inset. ok, good idea. Angus, what is with the former graphics patch? Herbert -- http://www.lyx.org/help/

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 7:54 pm, Herbert Voss wrote: Angus Leeming wrote: I've done so. Needless to say I tweaked it a little. I decided that the graphics dialog could access the graphics cache direct and not go through the inset. ok, good idea. Angus, what is with the former

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: I'm looking at it at this instant. I'll address my issues and commit it in the next 20 mins or so. ok Angus, I forgot to ask for the sense of this message: Received unhandled X11 event Type: 0xd Target: 0x35f happens, when applying a graphic from the gui.

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 8:08 pm, Herbert Voss wrote: Angus Leeming wrote: I'm looking at it at this instant. I'll address my issues and commit it in the next 20 mins or so. ok Angus, I forgot to ask for the sense of this message: Received unhandled X11 event Type: 0xd Target:

Re: [PATCH] Re: Graphics: Get boundingbox from file for non-eps ?

2002-04-11 Thread John Levon
On Thu, Apr 11, 2002 at 07:07:48PM +0100, Angus Leeming wrote: Received unhandled X11 event Type: 0xd Target: 0x35f I know little or nothing about such X11 messages. John Levon is the guru! *cough* Anyway, it's just the remnants of the BadWindow xforms bug, it looks like. It can be

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> R. Lahaye wrote: >> Talking about conversions again: do you know why we have two Grace >> formats listed in Preferences->Conversion->Formats? There is an >> entry for "GRACE" and for "agr". What is the difference between the >>

[PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > > Or call them raw_dimensions and return a pair. Your call. please apply. Herbert -- http://www.lyx.org/help/ Index: src/frontends/controllers/ChangeLog === RCS file:

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 4:19 pm, Herbert Voss wrote: > Angus Leeming wrote: > > Or call them raw_dimensions and return a pair. Your call. > > please apply. > > Herbert I've done so. Needless to say I tweaked it a little. I decided that the graphics dialog could access the graphics

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > I've done so. Needless to say I tweaked it a little. I decided that the > graphics dialog could access the graphics cache direct and not go through the > inset. ok, good idea. Angus, what is with the former graphics patch? Herbert -- http://www.lyx.org/help/

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 7:54 pm, Herbert Voss wrote: > Angus Leeming wrote: > > I've done so. Needless to say I tweaked it a little. I decided that the > > graphics dialog could access the graphics cache direct and not go through > > the inset. > > ok, good idea. > > > Angus, what is with the

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Herbert Voss
Angus Leeming wrote: > > I'm looking at it at this instant. I'll address my issues and commit it in > the next 20 mins or so. ok Angus, I forgot to ask for the sense of this message: Received unhandled X11 event Type: 0xd Target: 0x35f happens, when applying a graphic from the gui.

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread Angus Leeming
On Thursday 11 April 2002 8:08 pm, Herbert Voss wrote: > Angus Leeming wrote: > > I'm looking at it at this instant. I'll address my issues and commit it > > in the next 20 mins or so. > > ok > > Angus, I forgot to ask for the sense of this message: > > Received unhandled X11 event > Type: 0xd

Re: [PATCH] Re: Graphics: "Get boundingbox from file" for non-eps ?

2002-04-11 Thread John Levon
On Thu, Apr 11, 2002 at 07:07:48PM +0100, Angus Leeming wrote: > > Received unhandled X11 event > > Type: 0xd Target: 0x35f > > I know little or nothing about such X11 messages. John Levon is the guru! *cough* Anyway, it's just the remnants of the BadWindow xforms bug, it looks like. It

Re: [patch] Re: graphics

2002-02-15 Thread Jean-Marc Lasgouttes
Herbert == Herbert Voss [EMAIL PROTECTED] writes: Herbert Andre Poenitz wrote: [...] [new lyx file, insert graphics (doesn't matter whether it exists, 'latex size' to 'custom' and '55%', click ok, click right on the picture. boom.] Herbert [..] Herbert there is a bug in

Re: [patch] Re: graphics

2002-02-15 Thread Jean-Marc Lasgouttes
> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes: Herbert> Andre Poenitz wrote: [...] >> [new lyx file, insert graphics (doesn't matter whether it exists, >> 'latex size' to 'custom' and '55%', click ok, click right on the >> picture. boom.] Herbert> [..] Herbert> there is a bug in

Re: [patch] Re: graphics

2002-02-14 Thread Angus Leeming
On Thursday 14 February 2002 5:21 pm, Herbert Voss wrote: Andre Poenitz wrote: [...] [new lyx file, insert graphics (doesn't matter whether it exists, 'latex size' to 'custom' and '55%', click ok, click right on the picture. boom.] [..] there is a bug in UpdateWidgetsFromLength

Re: [patch] Re: graphics

2002-02-14 Thread Angus Leeming
On Thursday 14 February 2002 5:21 pm, Herbert Voss wrote: > Andre Poenitz wrote: > [...] > > > [new lyx file, insert graphics (doesn't matter whether it exists, 'latex > > size' to 'custom' and '55%', click ok, click right on the picture. boom.] > [..] > > > there is a bug in