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