1 2002-06-26 Angus Leeming <leeming@lyx.org>
3 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
4 move the DisplayType enum out of grfx::GParams to here.
6 * GraphicsCacheItem.h: re-write preliminary description to reflect
10 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
11 grfx::DisplayType out of grfx::GParams.
13 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
14 that was in frontends/screen.C and insets/insetgraphics.C into a
15 single, easy-to-use class.
17 * Makefile.am: add these files.
19 2002-06-25 Angus Leeming <leeming@lyx.org>
22 * GraphicsCacheItem.[Ch]:
23 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
24 file into memory. The cache no longer controls the generation of the
25 pixmap. Instead, it just emits a signal when the loading status of an
27 The cache no longer stores InsetGraphics pointers and nor does it
28 assume responsibility for modifying an image (scaling, rotating etc).
29 Instead, that must now be performed elsewhere.
31 2002-06-19 Angus Leeming <leeming@lyx.org>
33 * GraphicsConverter.C: add using std::endl directive.
35 2002-06-17 Herbert Voss <voss@lyx.org>
37 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
38 default when nothing different was found
39 (convertToDisplayFormat): handle zipped files in the right way and
40 choose always convert as a default converter when no other
43 * GraphicsConverter.C: add more lyxerr comments and choose
44 convert when no other userdefined converter was found
46 2002-06-10 Herbert Voss <voss@lyx.org>
48 * GraphicsImageXPM.C (convertTo7chars): get another special color
49 format from convert work in the right way
51 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
53 * GraphicsCache.C: use right colormap incantation
55 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
57 * GraphicsCache.C: use lyx_gui namespace
59 * GraphicsImageXPM.C: back down to using xforms
62 2002-06-07 Angus Leeming <leeming@lyx.org>
64 Fixes needed to compile with Compaq cxx 6.5.
65 * GraphicsConverter.h: forward declare class ConvProcess.
68 all c-library variables have been moved into namespace std.
69 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
71 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
73 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
75 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
77 * GraphicsImageXPM.C: SigC to boot::signals changes.
78 (newImage): fix () bug when using new.
80 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
82 * switch from SigC signals to boost::signals.
84 2002-05-29 André Pönitz <poenitz@gmx.net>
86 * GraphicsParam.C: remove unneeded #include, move vomment
88 2002-05-28 André Pönitz <poenitz@gmx.net>
90 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
92 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
94 * GraphicsImageXPM.C: ColorHandler moved
96 2002-05-24 Juergen Vigna <jug@sad.it>
99 * GraphicsImage.h: include LString.h first.
101 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
103 * GraphicsCacheItem.h: use more specific smart_ptr header.
104 * GraphicsTypes.h: ditto
105 * GraphicsImage.h: ditto
106 * GraphicsConverter.h: ditto
108 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
110 * GraphicsImageXPM.C: understand convert's use of "opaque"
113 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
115 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
116 GImage::loadableFormats() that ensures that the signal is connected
117 to the derived class' method.
119 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
121 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
122 only work on the string.
124 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
126 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
127 the simple image loader when it encounters colour strings like
130 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
132 * GraphicsCacheItem.C (convertToDisplayFormat):
133 * GraphicsConverter.C (build_script): remove the Alerts when things go
134 wrong as the inset displays the message anyway. Moreover, Alert seems
135 pretty temperamemtal at the moment.
137 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
138 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
140 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
142 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
143 a reference to a temp object that's going out of scope...
145 2002-04-09 Herbert Voss <voss@lyx.org>
147 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
148 LyXLength::inBP instead of inPixels.
150 2002-04-10 Herbert Voss <voss@perce.de>
152 * GraphicsCache.[Ch]:
153 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
154 to read the "Bounding Box" from non (e)ps files.
156 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
158 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
159 the EPS file too, to ensure that the clipped Bounding Box is relative
160 to the original. (From Herbert.)
162 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
164 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
165 variables are initialised. Clean-up parsing of the string (with thanks
168 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
170 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
171 if the file can't be found.
173 * GraphicsParams.h (c-tor): remove string() as default argument.
175 * GraphicsCacheItem.C: a couple of changes as a result.
177 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
179 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
180 path to graphics file.
182 * GraphicsParams.[Ch] (c-tor): now passed filepath.
184 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
186 * most files: ws cleanup
188 * Makefile.am: remove ld -r stuff
190 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
192 * Makefile.am: special rules if partial linking
194 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
196 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
198 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
200 * GraphicsConverter.[Ch] (converted): make first arg const ref.
202 * GraphicsCacheItem.h: doxy change
204 * GraphicsCacheItem.C: ws change
206 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
208 * Makefile.am: if there is no image loading class leveraging the power
209 of the appropriate gui library, then compile the basic alternative
210 found in GraphicsImageXPM.[Ch].
212 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
214 * GraphicsCache.C: change associated with move of initialiseGraphics
217 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
219 * GraphicsParams.[Ch]:
221 * GraphicsImageXPM.C: properly resolve more warnings about comparison
222 between signed and unsigned integer expressions.
224 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
226 * GraphicsCache.C: move connections to the GImage-derived classes to
229 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
231 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
232 conversion, then do that.
234 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
236 * GraphicsCache.C: improve commentary to graphicsInit and where it
239 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
240 that became a memory leak properly. (Let the shared_c_ptr free the
242 (reset, mapcolor): tidy up and introduce a work around for XPM files
243 with crappy color entries. Print out a nice friendly message on what's
244 gone wrong and how to resolve it properly.
246 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
248 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
249 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
251 (unique_color_string): use the correct string c-tor.
253 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
256 * ImageLoaderXPM.[Ch]: removed.
258 * GraphicsConverter.[Ch]:
259 * GraphicsImage.[Ch]:
260 * GraphicsImageXPM.[Ch]:
261 * GraphicsParams.[Ch]:
262 * GraphicsTypes.h: new files.
264 * All files. A total re-write of the graphics cache. The cache now
265 supports asynchronous file conversion and file loading. Images
266 can be cropped, rotated and scaled for display on the LyX screen.
267 The old LyXImage and ImageLoader have been combined in a new class
268 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
271 2002-02-07 Herbert Voss <voss@lyx.org>
273 * GraphicsCacheItem.C: use unzipFile() from support/filetools
275 2002-01-31 Herbert Voss <voss@lyx.org>
277 * GraphicsCacheItem.h: handle filetype without the file extension;
278 getting type from contents; handle zipped files
280 2002-01-27 Herbert Voss <voss@lyx.org>
282 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
284 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
286 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
288 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
290 * GraphicsCacheItem.h: do not include <config.h> in header files
292 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
294 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
295 transparent colour, then set it to the colour of the background.
296 Also take account of the monochrome, grayscale of color
299 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
301 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
302 are different. Thus, don't delete the "to" if it's the original!
304 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
306 * ImageLoadXPM.C: remove setting of alloc colour mask,
307 led to crash as we don't define a callback
309 2001-07-29 Baruch Even <baruch@lyx.org>
311 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
312 colors with closeness of 10000.
314 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
316 2001-07-29 Baruch Even <baruch@lyx.org>
318 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
321 2001-07-23 Baruch Even <baruch@lyx.org>
323 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
324 the image after conversion.
326 2001-07-17 Baruch Even <baruch@lyx.org>
328 * GraphicsCacheItem.h:
329 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
330 from synchronous to asynchronous and to ease the coming changes.
332 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
334 * ImageLoaderXPM.C (runImageLoader): get display information from
337 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
340 * GraphicsCacheItem.C:
342 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
344 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
346 * GraphicsCache.h: inherit privately from noncopyable
347 * ImageLoader.h: ditto
348 * GraphicsCacheItem.h: ditto
350 2001-04-16 Allan Rae <rae@lyx.org>
352 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
353 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
356 2001-04-02 Baruch Even <baruch@lyx.org>
358 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
359 of hard coding ImageMagick.
361 2001-03-10 Baruch Even <baruch@lyx.org>
363 * GraphicsCache.C: Style change from (*it).field to it->field
365 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
367 * GraphicsCache.h: noncopyable is in namespace boost
368 * ImageLoader.h: ditto
369 * GraphicsCacheItem.h: ditto
371 2001-03-07 Baruch Even <baruch@lyx.org>
373 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
374 was false and it's not needed anyhow since the shared_ptr's in the cache
375 will destroy everything on exit.
377 2001-02-28 Baruch Even <baruch@ev-en.org>
380 * GraphicsCache.C: Changed the singleton pattern implementation, the
381 former version "leaked" in the sense that it was not deallocated at
384 2001-02-20 Baruch Even <baruch@ev-en.org>
386 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
387 instead of a pure pointer.
389 * GraphicsCacheItem.[Ch]:
390 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
391 removed the reference counting that was inside. Also fixed a bug where
392 a temporary file wouldn't get erased.
394 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
395 Ownership is now dropped when the caller requests the image_ pointer.
397 2001-02-20 Baruch Even <baruch@ev-en.org>
399 * GraphicsCache.C: Cleared up the confusion on when and how it is
402 * GraphicsCacheItem.C: Indentation change.
404 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
405 figure correctly when the image has been loaded successfully.
407 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
409 * ImageLoader.C: add a "using" directive.
411 * ImageLoader.h: remove extra comma at the end of enum; add an
412 std:: qualifier for vector.
414 2001-01-21 Baruch Even <baruch@ev-en.org>
416 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
417 height in the image itself and minor cleanups.
419 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
420 new ImageLoader class instead of the older Renderer class. This
421 means change of responsibilities.