1 2002-05-24 Juergen Vigna <jug@sad.it>
4 * GraphicsImage.h: include LString.h first.
6 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
8 * GraphicsCacheItem.h: use more specific smart_ptr header.
9 * GraphicsTypes.h: ditto
10 * GraphicsImage.h: ditto
11 * GraphicsConverter.h: ditto
13 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
15 * GraphicsImageXPM.C: understand convert's use of "opaque"
18 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
20 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
21 GImage::loadableFormats() that ensures that the signal is connected
22 to the derived class' method.
24 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
26 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
27 only work on the string.
29 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
31 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
32 the simple image loader when it encounters colour strings like
35 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
37 * GraphicsCacheItem.C (convertToDisplayFormat):
38 * GraphicsConverter.C (build_script): remove the Alerts when things go
39 wrong as the inset displays the message anyway. Moreover, Alert seems
40 pretty temperamemtal at the moment.
42 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
43 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
45 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
47 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
48 a reference to a temp object that's going out of scope...
50 2002-04-09 Herbert Voss <voss@lyx.org>
52 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
53 LyXLength::inBP instead of inPixels.
55 2002-04-10 Herbert Voss <voss@perce.de>
58 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
59 to read the "Bounding Box" from non (e)ps files.
61 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
63 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
64 the EPS file too, to ensure that the clipped Bounding Box is relative
65 to the original. (From Herbert.)
67 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
69 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
70 variables are initialised. Clean-up parsing of the string (with thanks
73 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
75 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
76 if the file can't be found.
78 * GraphicsParams.h (c-tor): remove string() as default argument.
80 * GraphicsCacheItem.C: a couple of changes as a result.
82 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
84 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
85 path to graphics file.
87 * GraphicsParams.[Ch] (c-tor): now passed filepath.
89 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
91 * most files: ws cleanup
93 * Makefile.am: remove ld -r stuff
95 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
97 * Makefile.am: special rules if partial linking
99 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
101 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
103 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
105 * GraphicsConverter.[Ch] (converted): make first arg const ref.
107 * GraphicsCacheItem.h: doxy change
109 * GraphicsCacheItem.C: ws change
111 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
113 * Makefile.am: if there is no image loading class leveraging the power
114 of the appropriate gui library, then compile the basic alternative
115 found in GraphicsImageXPM.[Ch].
117 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
119 * GraphicsCache.C: change associated with move of initialiseGraphics
122 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
124 * GraphicsParams.[Ch]:
126 * GraphicsImageXPM.C: properly resolve more warnings about comparison
127 between signed and unsigned integer expressions.
129 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
131 * GraphicsCache.C: move connections to the GImage-derived classes to
134 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
136 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
137 conversion, then do that.
139 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
141 * GraphicsCache.C: improve commentary to graphicsInit and where it
144 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
145 that became a memory leak properly. (Let the shared_c_ptr free the
147 (reset, mapcolor): tidy up and introduce a work around for XPM files
148 with crappy color entries. Print out a nice friendly message on what's
149 gone wrong and how to resolve it properly.
151 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
153 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
154 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
156 (unique_color_string): use the correct string c-tor.
158 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
161 * ImageLoaderXPM.[Ch]: removed.
163 * GraphicsConverter.[Ch]:
164 * GraphicsImage.[Ch]:
165 * GraphicsImageXPM.[Ch]:
166 * GraphicsParams.[Ch]:
167 * GraphicsTypes.h: new files.
169 * All files. A total re-write of the graphics cache. The cache now
170 supports asynchronous file conversion and file loading. Images
171 can be cropped, rotated and scaled for display on the LyX screen.
172 The old LyXImage and ImageLoader have been combined in a new class
173 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
176 2002-02-07 Herbert Voss <voss@lyx.org>
178 * GraphicsCacheItem.C: use unzipFile() from support/filetools
180 2002-01-31 Herbert Voss <voss@lyx.org>
182 * GraphicsCacheItem.h: handle filetype without the file extension;
183 getting type from contents; handle zipped files
185 2002-01-27 Herbert Voss <voss@lyx.org>
187 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
189 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
191 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
193 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
195 * GraphicsCacheItem.h: do not include <config.h> in header files
197 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
199 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
200 transparent colour, then set it to the colour of the background.
201 Also take account of the monochrome, grayscale of color
204 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
206 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
207 are different. Thus, don't delete the "to" if it's the original!
209 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
211 * ImageLoadXPM.C: remove setting of alloc colour mask,
212 led to crash as we don't define a callback
214 2001-07-29 Baruch Even <baruch@lyx.org>
216 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
217 colors with closeness of 10000.
219 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
221 2001-07-29 Baruch Even <baruch@lyx.org>
223 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
226 2001-07-23 Baruch Even <baruch@lyx.org>
228 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
229 the image after conversion.
231 2001-07-17 Baruch Even <baruch@lyx.org>
233 * GraphicsCacheItem.h:
234 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
235 from synchronous to asynchronous and to ease the coming changes.
237 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
239 * ImageLoaderXPM.C (runImageLoader): get display information from
242 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
245 * GraphicsCacheItem.C:
247 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
249 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
251 * GraphicsCache.h: inherit privately from noncopyable
252 * ImageLoader.h: ditto
253 * GraphicsCacheItem.h: ditto
255 2001-04-16 Allan Rae <rae@lyx.org>
257 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
258 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
261 2001-04-02 Baruch Even <baruch@lyx.org>
263 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
264 of hard coding ImageMagick.
266 2001-03-10 Baruch Even <baruch@lyx.org>
268 * GraphicsCache.C: Style change from (*it).field to it->field
270 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
272 * GraphicsCache.h: noncopyable is in namespace boost
273 * ImageLoader.h: ditto
274 * GraphicsCacheItem.h: ditto
276 2001-03-07 Baruch Even <baruch@lyx.org>
278 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
279 was false and it's not needed anyhow since the shared_ptr's in the cache
280 will destroy everything on exit.
282 2001-02-28 Baruch Even <baruch@ev-en.org>
285 * GraphicsCache.C: Changed the singleton pattern implementation, the
286 former version "leaked" in the sense that it was not deallocated at
289 2001-02-20 Baruch Even <baruch@ev-en.org>
291 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
292 instead of a pure pointer.
294 * GraphicsCacheItem.[Ch]:
295 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
296 removed the reference counting that was inside. Also fixed a bug where
297 a temporary file wouldn't get erased.
299 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
300 Ownership is now dropped when the caller requests the image_ pointer.
302 2001-02-20 Baruch Even <baruch@ev-en.org>
304 * GraphicsCache.C: Cleared up the confusion on when and how it is
307 * GraphicsCacheItem.C: Indentation change.
309 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
310 figure correctly when the image has been loaded successfully.
312 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
314 * ImageLoader.C: add a "using" directive.
316 * ImageLoader.h: remove extra comma at the end of enum; add an
317 std:: qualifier for vector.
319 2001-01-21 Baruch Even <baruch@ev-en.org>
321 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
322 height in the image itself and minor cleanups.
324 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
325 new ImageLoader class instead of the older Renderer class. This
326 means change of responsibilities.