Re: Help: GraphicCache - reload graphic file

2002-09-09 Thread Angus Leeming
On Monday 09 September 2002 10:11, Marco Morandini wrote: > Angus Leeming wrote: > > There are two problems to address. > > 1. Updating the image on screen. > > > > I think you should just use the FileMonitor.[Ch] files that > > we use in 1.3.0cvs because I know that they work and they're > > a cl

Re: Help: GraphicCache - reload graphic file

2002-09-09 Thread Marco Morandini
Angus Leeming wrote: > > There are two problems to address. > 1. Updating the image on screen. > > I think you should just use the FileMonitor.[Ch] files that we use in > 1.3.0cvs because I know that they work and they're a clean and minimal > solution. I attach them for your perusal. You'll

Re: Help: GraphicCache - reload graphic file

2002-09-05 Thread Angus Leeming
On Thursday 05 September 2002 1:04 pm, Jean-Marc Lasgouttes wrote: > Marco Morandini wrote: > > Jean-Marc Lasgouttes wrote: > >> I would certainly like to have something like that in 1.2.2, since > >> several people have complained about it already. However, Angus, I > >> would appreciate if you

Re: Help: GraphicCache - reload graphic file

2002-09-05 Thread Jean-Marc Lasgouttes
Marco Morandini wrote: > Jean-Marc Lasgouttes wrote: > >> >> I would certainly like to have something like that in 1.2.2, since >> several people have complained about it already. However, Angus, I >> would appreciate if you could read it and see if you find no >> obvious error. >> >> Marco, I a

Re: Help: GraphicCache - reload graphic file

2002-09-05 Thread Marco Morandini
Jean-Marc Lasgouttes wrote: > > I would certainly like to have something like that in 1.2.2, since > several people have complained about it already. However, Angus, I > would appreciate if you could read it and see if you find no > obvious error. > > Marco, I assume you have tested it hard :)

Re: Help: GraphicCache - reload graphic file

2002-09-05 Thread Jean-Marc Lasgouttes
Angus Leeming wrote: > On Friday 30 August 2002 3:21 pm, Marco Morandini wrote: > >>This draft patch should detect when a graphic file is changed, >>and rebuild the cache. > > > We can already detect that the file has changed in 1.3 cvs. > > I won't comment about the suitability of the patch f

Re: Help: GraphicCache - reload graphic file

2002-08-30 Thread Marco Morandini
Angus Leeming wrote: > On Friday 30 August 2002 3:21 pm, Marco Morandini wrote: > >>This draft patch should detect when a graphic file is changed, >>and rebuild the cache. > > > We can already detect that the file has changed in 1.3 cvs. > Great! Thanks, I'll look there. Marco Morandini

Re: Help: GraphicCache - reload graphic file

2002-08-30 Thread Angus Leeming
On Friday 30 August 2002 3:21 pm, Marco Morandini wrote: > This draft patch should detect when a graphic file is changed, > and rebuild the cache. We can already detect that the file has changed in 1.3 cvs. I won't comment about the suitability of the patch for 1.2, but will leave this for Jean

Help: GraphicCache - reload graphic file

2002-08-30 Thread Marco Morandini
This draft patch should detect when a graphic file is changed, and rebuild the cache. A time_t variable (filemodtime_) is added to GraphicsCacheItem it is set to the ModificationTime of the graphic file each time the GraphicsCacheItem is modified. Each time insetgraphics performs a setCache, it c