2 2002-05-29 André Pönitz <poenitz@gmx.net>
4 * GraphicsParam.C: remove unneeded #include, move vomment
6 2002-05-28 André Pönitz <poenitz@gmx.net>
8 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
10 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
12 * GraphicsImageXPM.C: ColorHandler moved
14 2002-05-24 Juergen Vigna <jug@sad.it>
17 * GraphicsImage.h: include LString.h first.
19 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
21 * GraphicsCacheItem.h: use more specific smart_ptr header.
22 * GraphicsTypes.h: ditto
23 * GraphicsImage.h: ditto
24 * GraphicsConverter.h: ditto
26 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
28 * GraphicsImageXPM.C: understand convert's use of "opaque"
31 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
33 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
34 GImage::loadableFormats() that ensures that the signal is connected
35 to the derived class' method.
37 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
39 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
40 only work on the string.
42 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
44 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
45 the simple image loader when it encounters colour strings like
48 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
50 * GraphicsCacheItem.C (convertToDisplayFormat):
51 * GraphicsConverter.C (build_script): remove the Alerts when things go
52 wrong as the inset displays the message anyway. Moreover, Alert seems
53 pretty temperamemtal at the moment.
55 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
56 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
58 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
60 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
61 a reference to a temp object that's going out of scope...
63 2002-04-09 Herbert Voss <voss@lyx.org>
65 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
66 LyXLength::inBP instead of inPixels.
68 2002-04-10 Herbert Voss <voss@perce.de>
71 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
72 to read the "Bounding Box" from non (e)ps files.
74 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
76 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
77 the EPS file too, to ensure that the clipped Bounding Box is relative
78 to the original. (From Herbert.)
80 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
82 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
83 variables are initialised. Clean-up parsing of the string (with thanks
86 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
88 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
89 if the file can't be found.
91 * GraphicsParams.h (c-tor): remove string() as default argument.
93 * GraphicsCacheItem.C: a couple of changes as a result.
95 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
97 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
98 path to graphics file.
100 * GraphicsParams.[Ch] (c-tor): now passed filepath.
102 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
104 * most files: ws cleanup
106 * Makefile.am: remove ld -r stuff
108 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
110 * Makefile.am: special rules if partial linking
112 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
114 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
116 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
118 * GraphicsConverter.[Ch] (converted): make first arg const ref.
120 * GraphicsCacheItem.h: doxy change
122 * GraphicsCacheItem.C: ws change
124 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
126 * Makefile.am: if there is no image loading class leveraging the power
127 of the appropriate gui library, then compile the basic alternative
128 found in GraphicsImageXPM.[Ch].
130 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
132 * GraphicsCache.C: change associated with move of initialiseGraphics
135 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
137 * GraphicsParams.[Ch]:
139 * GraphicsImageXPM.C: properly resolve more warnings about comparison
140 between signed and unsigned integer expressions.
142 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
144 * GraphicsCache.C: move connections to the GImage-derived classes to
147 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
149 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
150 conversion, then do that.
152 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
154 * GraphicsCache.C: improve commentary to graphicsInit and where it
157 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
158 that became a memory leak properly. (Let the shared_c_ptr free the
160 (reset, mapcolor): tidy up and introduce a work around for XPM files
161 with crappy color entries. Print out a nice friendly message on what's
162 gone wrong and how to resolve it properly.
164 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
166 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
167 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
169 (unique_color_string): use the correct string c-tor.
171 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
174 * ImageLoaderXPM.[Ch]: removed.
176 * GraphicsConverter.[Ch]:
177 * GraphicsImage.[Ch]:
178 * GraphicsImageXPM.[Ch]:
179 * GraphicsParams.[Ch]:
180 * GraphicsTypes.h: new files.
182 * All files. A total re-write of the graphics cache. The cache now
183 supports asynchronous file conversion and file loading. Images
184 can be cropped, rotated and scaled for display on the LyX screen.
185 The old LyXImage and ImageLoader have been combined in a new class
186 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
189 2002-02-07 Herbert Voss <voss@lyx.org>
191 * GraphicsCacheItem.C: use unzipFile() from support/filetools
193 2002-01-31 Herbert Voss <voss@lyx.org>
195 * GraphicsCacheItem.h: handle filetype without the file extension;
196 getting type from contents; handle zipped files
198 2002-01-27 Herbert Voss <voss@lyx.org>
200 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
202 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
204 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
206 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
208 * GraphicsCacheItem.h: do not include <config.h> in header files
210 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
212 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
213 transparent colour, then set it to the colour of the background.
214 Also take account of the monochrome, grayscale of color
217 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
219 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
220 are different. Thus, don't delete the "to" if it's the original!
222 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
224 * ImageLoadXPM.C: remove setting of alloc colour mask,
225 led to crash as we don't define a callback
227 2001-07-29 Baruch Even <baruch@lyx.org>
229 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
230 colors with closeness of 10000.
232 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
234 2001-07-29 Baruch Even <baruch@lyx.org>
236 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
239 2001-07-23 Baruch Even <baruch@lyx.org>
241 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
242 the image after conversion.
244 2001-07-17 Baruch Even <baruch@lyx.org>
246 * GraphicsCacheItem.h:
247 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
248 from synchronous to asynchronous and to ease the coming changes.
250 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
252 * ImageLoaderXPM.C (runImageLoader): get display information from
255 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
258 * GraphicsCacheItem.C:
260 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
262 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
264 * GraphicsCache.h: inherit privately from noncopyable
265 * ImageLoader.h: ditto
266 * GraphicsCacheItem.h: ditto
268 2001-04-16 Allan Rae <rae@lyx.org>
270 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
271 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
274 2001-04-02 Baruch Even <baruch@lyx.org>
276 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
277 of hard coding ImageMagick.
279 2001-03-10 Baruch Even <baruch@lyx.org>
281 * GraphicsCache.C: Style change from (*it).field to it->field
283 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
285 * GraphicsCache.h: noncopyable is in namespace boost
286 * ImageLoader.h: ditto
287 * GraphicsCacheItem.h: ditto
289 2001-03-07 Baruch Even <baruch@lyx.org>
291 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
292 was false and it's not needed anyhow since the shared_ptr's in the cache
293 will destroy everything on exit.
295 2001-02-28 Baruch Even <baruch@ev-en.org>
298 * GraphicsCache.C: Changed the singleton pattern implementation, the
299 former version "leaked" in the sense that it was not deallocated at
302 2001-02-20 Baruch Even <baruch@ev-en.org>
304 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
305 instead of a pure pointer.
307 * GraphicsCacheItem.[Ch]:
308 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
309 removed the reference counting that was inside. Also fixed a bug where
310 a temporary file wouldn't get erased.
312 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
313 Ownership is now dropped when the caller requests the image_ pointer.
315 2001-02-20 Baruch Even <baruch@ev-en.org>
317 * GraphicsCache.C: Cleared up the confusion on when and how it is
320 * GraphicsCacheItem.C: Indentation change.
322 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
323 figure correctly when the image has been loaded successfully.
325 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
327 * ImageLoader.C: add a "using" directive.
329 * ImageLoader.h: remove extra comma at the end of enum; add an
330 std:: qualifier for vector.
332 2001-01-21 Baruch Even <baruch@ev-en.org>
334 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
335 height in the image itself and minor cleanups.
337 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
338 new ImageLoader class instead of the older Renderer class. This
339 means change of responsibilities.