1 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
2 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
4 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
6 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
7 a reference to a temp object that's going out of scope...
9 2002-04-09 Herbert Voss <voss@lyx.org>
11 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
12 LyXLength::inBP instead of inPixels.
14 2002-04-10 Herbert Voss <voss@perce.de>
17 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
18 to read the "Bounding Box" from non (e)ps files.
20 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
22 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
23 the EPS file too, to ensure that the clipped Bounding Box is relative
24 to the original. (From Herbert.)
26 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
28 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
29 variables are initialised. Clean-up parsing of the string (with thanks
32 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
34 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
35 if the file can't be found.
37 * GraphicsParams.h (c-tor): remove string() as default argument.
39 * GraphicsCacheItem.C: a couple of changes as a result.
41 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
43 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
44 path to graphics file.
46 * GraphicsParams.[Ch] (c-tor): now passed filepath.
48 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
50 * most files: ws cleanup
52 * Makefile.am: remove ld -r stuff
54 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
56 * Makefile.am: special rules if partial linking
58 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
60 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
62 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
64 * GraphicsConverter.[Ch] (converted): make first arg const ref.
66 * GraphicsCacheItem.h: doxy change
68 * GraphicsCacheItem.C: ws change
70 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
72 * Makefile.am: if there is no image loading class leveraging the power
73 of the appropriate gui library, then compile the basic alternative
74 found in GraphicsImageXPM.[Ch].
76 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
78 * GraphicsCache.C: change associated with move of initialiseGraphics
81 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
83 * GraphicsParams.[Ch]:
85 * GraphicsImageXPM.C: properly resolve more warnings about comparison
86 between signed and unsigned integer expressions.
88 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
90 * GraphicsCache.C: move connections to the GImage-derived classes to
93 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
95 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
96 conversion, then do that.
98 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
100 * GraphicsCache.C: improve commentary to graphicsInit and where it
103 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
104 that became a memory leak properly. (Let the shared_c_ptr free the
106 (reset, mapcolor): tidy up and introduce a work around for XPM files
107 with crappy color entries. Print out a nice friendly message on what's
108 gone wrong and how to resolve it properly.
110 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
112 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
113 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
115 (unique_color_string): use the correct string c-tor.
117 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
120 * ImageLoaderXPM.[Ch]: removed.
122 * GraphicsConverter.[Ch]:
123 * GraphicsImage.[Ch]:
124 * GraphicsImageXPM.[Ch]:
125 * GraphicsParams.[Ch]:
126 * GraphicsTypes.h: new files.
128 * All files. A total re-write of the graphics cache. The cache now
129 supports asynchronous file conversion and file loading. Images
130 can be cropped, rotated and scaled for display on the LyX screen.
131 The old LyXImage and ImageLoader have been combined in a new class
132 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
135 2002-02-07 Herbert Voss <voss@lyx.org>
137 * GraphicsCacheItem.C: use unzipFile() from support/filetools
139 2002-01-31 Herbert Voss <voss@lyx.org>
141 * GraphicsCacheItem.h: handle filetype without the file extension;
142 getting type from contents; handle zipped files
144 2002-01-27 Herbert Voss <voss@lyx.org>
146 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
148 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
150 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
152 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
154 * GraphicsCacheItem.h: do not include <config.h> in header files
156 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
158 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
159 transparent colour, then set it to the colour of the background.
160 Also take account of the monochrome, grayscale of color
163 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
165 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
166 are different. Thus, don't delete the "to" if it's the original!
168 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
170 * ImageLoadXPM.C: remove setting of alloc colour mask,
171 led to crash as we don't define a callback
173 2001-07-29 Baruch Even <baruch@lyx.org>
175 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
176 colors with closeness of 10000.
178 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
180 2001-07-29 Baruch Even <baruch@lyx.org>
182 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
185 2001-07-23 Baruch Even <baruch@lyx.org>
187 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
188 the image after conversion.
190 2001-07-17 Baruch Even <baruch@lyx.org>
192 * GraphicsCacheItem.h:
193 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
194 from synchronous to asynchronous and to ease the coming changes.
196 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
198 * ImageLoaderXPM.C (runImageLoader): get display information from
201 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
204 * GraphicsCacheItem.C:
206 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
208 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
210 * GraphicsCache.h: inherit privately from noncopyable
211 * ImageLoader.h: ditto
212 * GraphicsCacheItem.h: ditto
214 2001-04-16 Allan Rae <rae@lyx.org>
216 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
217 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
220 2001-04-02 Baruch Even <baruch@lyx.org>
222 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
223 of hard coding ImageMagick.
225 2001-03-10 Baruch Even <baruch@lyx.org>
227 * GraphicsCache.C: Style change from (*it).field to it->field
229 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
231 * GraphicsCache.h: noncopyable is in namespace boost
232 * ImageLoader.h: ditto
233 * GraphicsCacheItem.h: ditto
235 2001-03-07 Baruch Even <baruch@lyx.org>
237 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
238 was false and it's not needed anyhow since the shared_ptr's in the cache
239 will destroy everything on exit.
241 2001-02-28 Baruch Even <baruch@ev-en.org>
244 * GraphicsCache.C: Changed the singleton pattern implementation, the
245 former version "leaked" in the sense that it was not deallocated at
248 2001-02-20 Baruch Even <baruch@ev-en.org>
250 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
251 instead of a pure pointer.
253 * GraphicsCacheItem.[Ch]:
254 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
255 removed the reference counting that was inside. Also fixed a bug where
256 a temporary file wouldn't get erased.
258 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
259 Ownership is now dropped when the caller requests the image_ pointer.
261 2001-02-20 Baruch Even <baruch@ev-en.org>
263 * GraphicsCache.C: Cleared up the confusion on when and how it is
266 * GraphicsCacheItem.C: Indentation change.
268 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
269 figure correctly when the image has been loaded successfully.
271 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
273 * ImageLoader.C: add a "using" directive.
275 * ImageLoader.h: remove extra comma at the end of enum; add an
276 std:: qualifier for vector.
278 2001-01-21 Baruch Even <baruch@ev-en.org>
280 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
281 height in the image itself and minor cleanups.
283 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
284 new ImageLoader class instead of the older Renderer class. This
285 means change of responsibilities.