1 2002-07-09 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C: Further refactoring of the code. Should now be
6 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
7 past its sell-by date. The code to read the metrics file is now found
8 as a helper function in PreviewLoader.C.
10 * GraphicsImageXPM.C (scale): use boost::tie.
12 2002-07-08 Herbert Voss <voss@lyx.org>
14 * PreviewLoader.C: use of preview_size_factor to get the right
15 font-size! 0.9 is the default.
17 2002-07-08 Angus Leeming <leeming@lyx.org>
19 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
20 invocation of preview.sty.
21 Perform something of an internal clean-up.
23 2002-07-06 Angus Leeming <leeming@lyx.org>
25 * PreviewLoader.C: ensure that the metrics data is used by the
29 * PreviewImage.C: (Impl d-tor): remove all generated files that still
30 exist (perhaps because the process was curtailed before the images
33 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
35 2002-07-05 Angus Leeming <leeming@lyx.org>
44 * Previews.C: new files. The previewed LaTeX snippet stuff.
46 * Makefile.am: add these files.
48 2002-07-05 Angus Leeming <leeming@lyx.org>
50 * GraphicsLoader.h: whitespace.
52 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
54 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
55 boost::function from boost::signal.
57 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
59 * GraphicsConverter.C (convert): do not use ChangeExtension
60 because to_file_base may contain a dot.
62 2002-06-28 Angus Leeming <leeming@lyx.org>
64 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
65 by moving those SignalPtrs into the grfx::Image and grfx::Converter
66 classes where they really belong.
67 Use the Pimpl idiom to hide the class internals from public view.
69 * GraphicsTypes: remove the typedefs, leaving only the enums.
71 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
72 passed a reference to one in the load() method.
74 * GraphicsConverter.[Ch]: totally refactored. An instance of
75 grfx::Converter now represents a single conversion process.
76 Thus grfx::CachItem now has a grfx::Converter * that is set when the
77 conversion is initiated and destroyed on completion.
80 * GraphicsCacheItem.[Ch]:
81 * GraphicsConverter.[Ch]:
82 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
84 Note that I have done this only after making the above changes,
85 so not only should we have a clean, minimal and well documented
86 interface to these classes in the header files, but the class internals
87 should be much clearer too.
90 grfx::GCache -> grfx::Cache,
91 grfx::GCacheItem -> grfx::CacheItem,
92 grfx::GConverter -> grfx::Converter,
93 grfx::GImage -> grfx::Image,
94 grfx::GImageXPM -> grfx::ImageXPM,
95 grfx::GParams -> grfx::Params.
97 2002-06-26 Angus Leeming <leeming@lyx.org>
99 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
100 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
103 2002-06-26 Angus Leeming <leeming@lyx.org>
105 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
106 move the DisplayType enum out of grfx::GParams to here.
108 * GraphicsCacheItem.h: re-write preliminary description to reflect
111 * GraphicsParams.[Ch]:
112 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
113 grfx::DisplayType out of grfx::GParams.
115 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
116 that was in frontends/screen.C and insets/insetgraphics.C into a
117 single, easy-to-use class.
119 * Makefile.am: add these files.
121 2002-06-25 Angus Leeming <leeming@lyx.org>
123 * GraphicsCache.[Ch]:
124 * GraphicsCacheItem.[Ch]:
125 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
126 file into memory. The cache no longer controls the generation of the
127 pixmap. Instead, it just emits a signal when the loading status of an
129 The cache no longer stores InsetGraphics pointers and nor does it
130 assume responsibility for modifying an image (scaling, rotating etc).
131 Instead, that must now be performed elsewhere.
133 2002-06-19 Angus Leeming <leeming@lyx.org>
135 * GraphicsConverter.C: add using std::endl directive.
137 2002-06-17 Herbert Voss <voss@lyx.org>
139 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
140 default when nothing different was found
141 (convertToDisplayFormat): handle zipped files in the right way and
142 choose always convert as a default converter when no other
143 userdefined was found
145 * GraphicsConverter.C: add more lyxerr comments and choose
146 convert when no other userdefined converter was found
148 2002-06-10 Herbert Voss <voss@lyx.org>
150 * GraphicsImageXPM.C (convertTo7chars): get another special color
151 format from convert work in the right way
153 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
155 * GraphicsCache.C: use right colormap incantation
157 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
159 * GraphicsCache.C: use lyx_gui namespace
161 * GraphicsImageXPM.C: back down to using xforms
164 2002-06-07 Angus Leeming <leeming@lyx.org>
166 Fixes needed to compile with Compaq cxx 6.5.
167 * GraphicsConverter.h: forward declare class ConvProcess.
169 * GraphicsImageXPM.C:
170 all c-library variables have been moved into namespace std.
171 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
173 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
175 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
177 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
179 * GraphicsImageXPM.C: SigC to boot::signals changes.
180 (newImage): fix () bug when using new.
182 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
184 * switch from SigC signals to boost::signals.
186 2002-05-29 André Pönitz <poenitz@gmx.net>
188 * GraphicsParam.C: remove unneeded #include, move vomment
190 2002-05-28 André Pönitz <poenitz@gmx.net>
192 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
194 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
196 * GraphicsImageXPM.C: ColorHandler moved
198 2002-05-24 Juergen Vigna <jug@sad.it>
201 * GraphicsImage.h: include LString.h first.
203 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
205 * GraphicsCacheItem.h: use more specific smart_ptr header.
206 * GraphicsTypes.h: ditto
207 * GraphicsImage.h: ditto
208 * GraphicsConverter.h: ditto
210 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
212 * GraphicsImageXPM.C: understand convert's use of "opaque"
215 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
217 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
218 GImage::loadableFormats() that ensures that the signal is connected
219 to the derived class' method.
221 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
223 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
224 only work on the string.
226 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
228 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
229 the simple image loader when it encounters colour strings like
232 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
234 * GraphicsCacheItem.C (convertToDisplayFormat):
235 * GraphicsConverter.C (build_script): remove the Alerts when things go
236 wrong as the inset displays the message anyway. Moreover, Alert seems
237 pretty temperamemtal at the moment.
239 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
240 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
242 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
244 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
245 a reference to a temp object that's going out of scope...
247 2002-04-09 Herbert Voss <voss@lyx.org>
249 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
250 LyXLength::inBP instead of inPixels.
252 2002-04-10 Herbert Voss <voss@perce.de>
254 * GraphicsCache.[Ch]:
255 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
256 to read the "Bounding Box" from non (e)ps files.
258 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
260 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
261 the EPS file too, to ensure that the clipped Bounding Box is relative
262 to the original. (From Herbert.)
264 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
266 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
267 variables are initialised. Clean-up parsing of the string (with thanks
270 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
272 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
273 if the file can't be found.
275 * GraphicsParams.h (c-tor): remove string() as default argument.
277 * GraphicsCacheItem.C: a couple of changes as a result.
279 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
281 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
282 path to graphics file.
284 * GraphicsParams.[Ch] (c-tor): now passed filepath.
286 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
288 * most files: ws cleanup
290 * Makefile.am: remove ld -r stuff
292 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
294 * Makefile.am: special rules if partial linking
296 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
298 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
300 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
302 * GraphicsConverter.[Ch] (converted): make first arg const ref.
304 * GraphicsCacheItem.h: doxy change
306 * GraphicsCacheItem.C: ws change
308 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
310 * Makefile.am: if there is no image loading class leveraging the power
311 of the appropriate gui library, then compile the basic alternative
312 found in GraphicsImageXPM.[Ch].
314 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
316 * GraphicsCache.C: change associated with move of initialiseGraphics
319 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
321 * GraphicsParams.[Ch]:
323 * GraphicsImageXPM.C: properly resolve more warnings about comparison
324 between signed and unsigned integer expressions.
326 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
328 * GraphicsCache.C: move connections to the GImage-derived classes to
331 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
333 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
334 conversion, then do that.
336 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
338 * GraphicsCache.C: improve commentary to graphicsInit and where it
341 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
342 that became a memory leak properly. (Let the shared_c_ptr free the
344 (reset, mapcolor): tidy up and introduce a work around for XPM files
345 with crappy color entries. Print out a nice friendly message on what's
346 gone wrong and how to resolve it properly.
348 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
350 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
351 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
353 (unique_color_string): use the correct string c-tor.
355 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
358 * ImageLoaderXPM.[Ch]: removed.
360 * GraphicsConverter.[Ch]:
361 * GraphicsImage.[Ch]:
362 * GraphicsImageXPM.[Ch]:
363 * GraphicsParams.[Ch]:
364 * GraphicsTypes.h: new files.
366 * All files. A total re-write of the graphics cache. The cache now
367 supports asynchronous file conversion and file loading. Images
368 can be cropped, rotated and scaled for display on the LyX screen.
369 The old LyXImage and ImageLoader have been combined in a new class
370 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
373 2002-02-07 Herbert Voss <voss@lyx.org>
375 * GraphicsCacheItem.C: use unzipFile() from support/filetools
377 2002-01-31 Herbert Voss <voss@lyx.org>
379 * GraphicsCacheItem.h: handle filetype without the file extension;
380 getting type from contents; handle zipped files
382 2002-01-27 Herbert Voss <voss@lyx.org>
384 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
386 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
388 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
390 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
392 * GraphicsCacheItem.h: do not include <config.h> in header files
394 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
396 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
397 transparent colour, then set it to the colour of the background.
398 Also take account of the monochrome, grayscale of color
401 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
403 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
404 are different. Thus, don't delete the "to" if it's the original!
406 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
408 * ImageLoadXPM.C: remove setting of alloc colour mask,
409 led to crash as we don't define a callback
411 2001-07-29 Baruch Even <baruch@lyx.org>
413 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
414 colors with closeness of 10000.
416 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
418 2001-07-29 Baruch Even <baruch@lyx.org>
420 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
423 2001-07-23 Baruch Even <baruch@lyx.org>
425 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
426 the image after conversion.
428 2001-07-17 Baruch Even <baruch@lyx.org>
430 * GraphicsCacheItem.h:
431 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
432 from synchronous to asynchronous and to ease the coming changes.
434 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
436 * ImageLoaderXPM.C (runImageLoader): get display information from
439 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
442 * GraphicsCacheItem.C:
444 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
446 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
448 * GraphicsCache.h: inherit privately from noncopyable
449 * ImageLoader.h: ditto
450 * GraphicsCacheItem.h: ditto
452 2001-04-16 Allan Rae <rae@lyx.org>
454 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
455 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
458 2001-04-02 Baruch Even <baruch@lyx.org>
460 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
461 of hard coding ImageMagick.
463 2001-03-10 Baruch Even <baruch@lyx.org>
465 * GraphicsCache.C: Style change from (*it).field to it->field
467 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
469 * GraphicsCache.h: noncopyable is in namespace boost
470 * ImageLoader.h: ditto
471 * GraphicsCacheItem.h: ditto
473 2001-03-07 Baruch Even <baruch@lyx.org>
475 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
476 was false and it's not needed anyhow since the shared_ptr's in the cache
477 will destroy everything on exit.
479 2001-02-28 Baruch Even <baruch@ev-en.org>
482 * GraphicsCache.C: Changed the singleton pattern implementation, the
483 former version "leaked" in the sense that it was not deallocated at
486 2001-02-20 Baruch Even <baruch@ev-en.org>
488 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
489 instead of a pure pointer.
491 * GraphicsCacheItem.[Ch]:
492 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
493 removed the reference counting that was inside. Also fixed a bug where
494 a temporary file wouldn't get erased.
496 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
497 Ownership is now dropped when the caller requests the image_ pointer.
499 2001-02-20 Baruch Even <baruch@ev-en.org>
501 * GraphicsCache.C: Cleared up the confusion on when and how it is
504 * GraphicsCacheItem.C: Indentation change.
506 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
507 figure correctly when the image has been loaded successfully.
509 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
511 * ImageLoader.C: add a "using" directive.
513 * ImageLoader.h: remove extra comma at the end of enum; add an
514 std:: qualifier for vector.
516 2001-01-21 Baruch Even <baruch@ev-en.org>
518 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
519 height in the image itself and minor cleanups.
521 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
522 new ImageLoader class instead of the older Renderer class. This
523 means change of responsibilities.