1 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
3 * PreviewLoader.C (IncrementedFileName): STRCONV
6 * GraphicsConverter.C (Impl): STRCONV
9 * GraphicsTypes.C: include config.h
11 2002-10-25 Angus Leeming <leeming@lyx.org>
13 * GraphicsConverter.C (Impl::converted)
14 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
15 string as first arg, reflecting change in ForkedCall interface.
17 * PreviewLoader.C: use pid rather than command as identifier in
20 2002-10-18 Angus Leeming <leeming@lyx.org>
22 * GraphicsCacheItem.C (findTargetFormat): add debug message.
24 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
26 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
28 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
30 * GraphicsConverter.C (build_script): do not use ChangeExtension
34 2002-09-05 Angus Leeming <leeming@lyx.org>
36 * all files: modify the headers as discussed on the list.
38 2002-09-04 Angus Leeming <leeming@lyx.org>
40 * PreviewLoader.C (startLoading): pass the desired output format to the
43 2002-09-04 Angus Leeming <leeming@lyx.org>
45 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
47 2002-09-03 Angus Leeming <leeming@lyx.org>
49 * PreviewLoader.C: fix crash reported by Norbert Koksch when
50 generating more than 999 preview snippets. Use filenames with 5 digit
51 numbers, not 3, in the first instance, although more general code is
52 commented out. I don't suppose /anyone/ has 100000 formulae in one
55 2002-09-03 Angus Leeming <leeming@lyx.org>
57 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
59 2002-09-03 Angus Leeming <leeming@lyx.org>
61 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
63 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
65 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
66 convertDefault command with "sh ".
68 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
70 * GraphicsImage.C: small style fix to width/height setting.
72 * GraphicsTypes.h: have a displayTranslator here.
75 * GraphicsTypes.C: new file added for the setDisplayTranslator();
77 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
80 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
81 because this input has gone from the graphics dialog.
83 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
85 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
87 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
88 for support/smart_ptr.h, switch to boost smart ptr.
90 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
91 (~Data): let the smart_ptr handle cleanup
92 (reset): use nifty 3rd arg
94 (free_color_table): free the table manually
96 2002-08-09 Angus Leeming <leeming@lyx.org>
98 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
99 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
100 input@path is now set correctly.
102 2002-08-06 Angus Leeming <leeming@lyx.org>
104 * PreviewLoader.C: add support for preview.sty 0.73 (currently
105 #ifdef-ed out, awaiting the formal release).
107 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
108 the contents of a file that has changed.
110 2002-08-05 Angus Leeming <leeming@lyx.org>
112 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
113 to preview.sty. Works only for versions of preview.sty > 0.72b but
114 doesn't hurt earlier versions. Allows me to test the new parsing of
115 LyX-specific data from the generated log file.
117 2002-08-02 Angus Leeming <leeming@lyx.org>
119 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
121 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
122 (add): don't add empty snippets.
124 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
125 (view, setView): access to to the cache_.
127 2002-08-02 Angus Leeming <leeming@lyx.org>
129 * PreviewedInset.[Ch]: cache the LaTeX snippet.
131 2002-08-01 Angus Leeming <leeming@lyx.org>
133 * PreviewedInset.[Ch]: new files. An abstract base class that can help
134 insets to generate previews.
135 The daughter class must instantiate three small methods.
136 The Inset would own an instance of this daughter class and invoke it
137 as necessary. For example, mathd/formula.C gets previews at the cost
138 of 15 or so lines of code.
140 * Makefile.am: add PreviewedInset.[Ch].
142 * PreviewLoader.C (add): add debug message.
144 * Previews.C (generateBufferPreviews): remove if-block from loop.
146 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
148 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
150 (setAscentFractions): ditto
152 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
154 * PreviewLoader.C (setAscentFractions): modify because of strip
157 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
159 * GraphicsConverter.C (build_script): take a ostream as a more
160 general argument than ostringstream.
162 2002-07-22 Herbert Voss <voss@lyx.org>
164 * GraphicsConverter.C: get the "default converter" run again
166 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
168 * PreviewLoader.C: use BufferParams::getLyXTextClass
170 2002-07-21 Herbert Voss <voss@lyx.org>
172 * GraphicsImage.C: get the LyXAspectRatio run.
174 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
176 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
178 * PreviewLoader.C (startLoading): pass an interger as resolution
179 to the lyxpreview converter
181 * GraphicsParams.C: include <cstdlib>
183 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
185 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
186 preview converter script
188 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
190 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
193 2002-07-18 Angus Leeming <leeming@lyx.org>
195 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
197 (startMonitoring, monitoring, checksum): new methods to interact with
200 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
201 methods invoking the CacheItem methods of the same name.
202 (resetFile): if monitoring and the file changes, start monitoring this
205 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
207 * Makefile.am: remove FileMonitor.[Ch]
209 2002-06-17 Herbert Voss <voss@lyx.org>
211 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
212 for old ps-files (Garst). It's now handled by defining a converter and
213 disabling the ps-support of xforms.
215 2002-07-17 Angus Leeming <leeming@lyx.org>
217 Be true to the Pimpl idiom, moving all signals into the respective
218 Impl classes and defining methods to connect them to an outside slot.
219 Const-ify all visible class methods as they act only on a const pimpl_.
221 * GraphicsCache.[Ch] (add, remove): const-ify.
223 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
224 (statusChanged): move the signal into the Impl class.
225 (connect): new method, enabling a listener to connect to this signal.
227 * GraphicsConverter.[Ch]: (startConversion): const-ify.
228 (finishedConversion): move the signal into the Impl class.
229 (connect): new method, enabling a listener to connect to this signal.
231 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
232 (statusChanged): move the signal into the Impl class.
233 (connect): new method, enabling a listener to connect to this signal.
235 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
236 (imageReady): move the signal into the Impl class.
237 (connect): new method, enabling a listener to connect to this signal.
238 (emitSignal): new method, enabling PreviewImage to tell the outside
239 world that the file has been loaded into memory.
241 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
245 * GraphicsCacheItem.C:
246 * GraphicsConverter.[Ch]:
248 * GraphicsImageXPM.C:
250 * PreviewLoader.[Ch]: whitespace clean-up.
252 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
254 * PreviewLoader.C (setConverter): remove unused variable
256 * GraphicsImageXPM.C (isDrawable): implement
257 (setPixmap): the opaque color is black, not white
259 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
261 * GraphicsImageXPM.C (color_none_id):
262 (contains_color_none): use ascii_lowercase instead of lowercase
264 2002-07-16 Angus Leeming <leeming@lyx.org>
266 * PreviewLoader.C: greater use of STL algorithms.
268 * Previews.[Ch]: use const in more places.
269 (generateBufferPreviews): now takes a Buffer const & argument, not a
272 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
274 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
276 2002-07-12 Angus Leeming <leeming@lyx.org>
278 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
279 if visible 2 secs after the call to load them is first made.
281 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
282 BufferView to ascertain whether the inset is visible or not.
284 * Makefile.am: added GraphicsSupport.[Ch].
286 * PreviewImage.[Ch]: use this smart loader.
288 * PreviewLoader.C: don't load generated image files indiscimminantly.
289 Instead emit the imageReady signal and allow the image owner to decide.
291 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
293 * GraphicsCache.C: remove init_graphics()
295 2002-07-09 Angus Leeming <leeming@lyx.org>
297 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
298 arithmetic when it should be floating.
300 2002-07-09 Angus Leeming <leeming@lyx.org>
302 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
303 Output equation labels as "(#)" if lyxrc preference is set.
304 (setFontScalingFactor): use lyxrc variable preview_scale_factor
305 rather than hard-coding this.
307 2002-07-09 Angus Leeming <leeming@lyx.org>
309 * PreviewLoader.C: Further refactoring of the code. Should now be
312 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
313 past its sell-by date. The code to read the metrics file is now found
314 as a helper function in PreviewLoader.C.
316 * GraphicsImageXPM.C (scale): use boost::tie.
318 2002-07-08 Herbert Voss <voss@lyx.org>
320 * PreviewLoader.C: use of preview_size_factor to get the right
321 font-size! 0.9 is the default.
323 2002-07-08 Angus Leeming <leeming@lyx.org>
325 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
326 invocation of preview.sty.
327 Perform something of an internal clean-up.
329 2002-07-06 Angus Leeming <leeming@lyx.org>
331 * PreviewLoader.C: ensure that the metrics data is used by the
335 * PreviewImage.C: (Impl d-tor): remove all generated files that still
336 exist (perhaps because the process was curtailed before the images
339 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
341 2002-07-05 Angus Leeming <leeming@lyx.org>
350 * Previews.C: new files. The previewed LaTeX snippet stuff.
352 * Makefile.am: add these files.
354 2002-07-05 Angus Leeming <leeming@lyx.org>
356 * GraphicsLoader.h: whitespace.
358 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
360 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
361 boost::function from boost::signal.
363 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
365 * GraphicsConverter.C (convert): do not use ChangeExtension
366 because to_file_base may contain a dot.
368 2002-06-28 Angus Leeming <leeming@lyx.org>
370 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
371 by moving those SignalPtrs into the grfx::Image and grfx::Converter
372 classes where they really belong.
373 Use the Pimpl idiom to hide the class internals from public view.
375 * GraphicsTypes: remove the typedefs, leaving only the enums.
377 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
378 passed a reference to one in the load() method.
380 * GraphicsConverter.[Ch]: totally refactored. An instance of
381 grfx::Converter now represents a single conversion process.
382 Thus grfx::CachItem now has a grfx::Converter * that is set when the
383 conversion is initiated and destroyed on completion.
385 * GraphicsCache.[Ch]:
386 * GraphicsCacheItem.[Ch]:
387 * GraphicsConverter.[Ch]:
388 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
390 Note that I have done this only after making the above changes,
391 so not only should we have a clean, minimal and well documented
392 interface to these classes in the header files, but the class internals
393 should be much clearer too.
396 grfx::GCache -> grfx::Cache,
397 grfx::GCacheItem -> grfx::CacheItem,
398 grfx::GConverter -> grfx::Converter,
399 grfx::GImage -> grfx::Image,
400 grfx::GImageXPM -> grfx::ImageXPM,
401 grfx::GParams -> grfx::Params.
403 2002-06-26 Angus Leeming <leeming@lyx.org>
405 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
406 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
409 2002-06-26 Angus Leeming <leeming@lyx.org>
411 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
412 move the DisplayType enum out of grfx::GParams to here.
414 * GraphicsCacheItem.h: re-write preliminary description to reflect
417 * GraphicsParams.[Ch]:
418 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
419 grfx::DisplayType out of grfx::GParams.
421 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
422 that was in frontends/screen.C and insets/insetgraphics.C into a
423 single, easy-to-use class.
425 * Makefile.am: add these files.
427 2002-06-25 Angus Leeming <leeming@lyx.org>
429 * GraphicsCache.[Ch]:
430 * GraphicsCacheItem.[Ch]:
431 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
432 file into memory. The cache no longer controls the generation of the
433 pixmap. Instead, it just emits a signal when the loading status of an
435 The cache no longer stores InsetGraphics pointers and nor does it
436 assume responsibility for modifying an image (scaling, rotating etc).
437 Instead, that must now be performed elsewhere.
439 2002-06-19 Angus Leeming <leeming@lyx.org>
441 * GraphicsConverter.C: add using std::endl directive.
443 2002-06-17 Herbert Voss <voss@lyx.org>
445 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
446 default when nothing different was found
447 (convertToDisplayFormat): handle zipped files in the right way and
448 choose always convert as a default converter when no other
449 userdefined was found
451 * GraphicsConverter.C: add more lyxerr comments and choose
452 convert when no other userdefined converter was found
454 2002-06-10 Herbert Voss <voss@lyx.org>
456 * GraphicsImageXPM.C (convertTo7chars): get another special color
457 format from convert work in the right way
459 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
461 * GraphicsCache.C: use right colormap incantation
463 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
465 * GraphicsCache.C: use lyx_gui namespace
467 * GraphicsImageXPM.C: back down to using xforms
470 2002-06-07 Angus Leeming <leeming@lyx.org>
472 Fixes needed to compile with Compaq cxx 6.5.
473 * GraphicsConverter.h: forward declare class ConvProcess.
475 * GraphicsImageXPM.C:
476 all c-library variables have been moved into namespace std.
477 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
479 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
481 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
483 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
485 * GraphicsImageXPM.C: SigC to boot::signals changes.
486 (newImage): fix () bug when using new.
488 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
490 * switch from SigC signals to boost::signals.
492 2002-05-29 André Pönitz <poenitz@gmx.net>
494 * GraphicsParam.C: remove unneeded #include, move vomment
496 2002-05-28 André Pönitz <poenitz@gmx.net>
498 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
500 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
502 * GraphicsImageXPM.C: ColorHandler moved
504 2002-05-24 Juergen Vigna <jug@sad.it>
507 * GraphicsImage.h: include LString.h first.
509 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
511 * GraphicsCacheItem.h: use more specific smart_ptr header.
512 * GraphicsTypes.h: ditto
513 * GraphicsImage.h: ditto
514 * GraphicsConverter.h: ditto
516 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
518 * GraphicsImageXPM.C: understand convert's use of "opaque"
521 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
523 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
524 GImage::loadableFormats() that ensures that the signal is connected
525 to the derived class' method.
527 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
529 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
530 only work on the string.
532 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
534 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
535 the simple image loader when it encounters colour strings like
538 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
540 * GraphicsCacheItem.C (convertToDisplayFormat):
541 * GraphicsConverter.C (build_script): remove the Alerts when things go
542 wrong as the inset displays the message anyway. Moreover, Alert seems
543 pretty temperamemtal at the moment.
545 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
547 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
549 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
551 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
552 a reference to a temp object that's going out of scope...
554 2002-04-09 Herbert Voss <voss@lyx.org>
556 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
557 LyXLength::inBP instead of inPixels.
559 2002-04-10 Herbert Voss <voss@perce.de>
561 * GraphicsCache.[Ch]:
562 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
563 to read the "Bounding Box" from non (e)ps files.
565 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
567 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
568 the EPS file too, to ensure that the clipped Bounding Box is relative
569 to the original. (From Herbert.)
571 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
573 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
574 variables are initialised. Clean-up parsing of the string (with thanks
577 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
579 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
580 if the file can't be found.
582 * GraphicsParams.h (c-tor): remove string() as default argument.
584 * GraphicsCacheItem.C: a couple of changes as a result.
586 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
588 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
589 path to graphics file.
591 * GraphicsParams.[Ch] (c-tor): now passed filepath.
593 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
595 * most files: ws cleanup
597 * Makefile.am: remove ld -r stuff
599 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
601 * Makefile.am: special rules if partial linking
603 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
605 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
607 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
609 * GraphicsConverter.[Ch] (converted): make first arg const ref.
611 * GraphicsCacheItem.h: doxy change
613 * GraphicsCacheItem.C: ws change
615 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
617 * Makefile.am: if there is no image loading class leveraging the power
618 of the appropriate gui library, then compile the basic alternative
619 found in GraphicsImageXPM.[Ch].
621 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
623 * GraphicsCache.C: change associated with move of initialiseGraphics
626 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
628 * GraphicsParams.[Ch]:
630 * GraphicsImageXPM.C: properly resolve more warnings about comparison
631 between signed and unsigned integer expressions.
633 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
635 * GraphicsCache.C: move connections to the GImage-derived classes to
638 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
640 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
641 conversion, then do that.
643 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
645 * GraphicsCache.C: improve commentary to graphicsInit and where it
648 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
649 that became a memory leak properly. (Let the shared_c_ptr free the
651 (reset, mapcolor): tidy up and introduce a work around for XPM files
652 with crappy color entries. Print out a nice friendly message on what's
653 gone wrong and how to resolve it properly.
655 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
657 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
658 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
660 (unique_color_string): use the correct string c-tor.
662 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
665 * ImageLoaderXPM.[Ch]: removed.
667 * GraphicsConverter.[Ch]:
668 * GraphicsImage.[Ch]:
669 * GraphicsImageXPM.[Ch]:
670 * GraphicsParams.[Ch]:
671 * GraphicsTypes.h: new files.
673 * All files. A total re-write of the graphics cache. The cache now
674 supports asynchronous file conversion and file loading. Images
675 can be cropped, rotated and scaled for display on the LyX screen.
676 The old LyXImage and ImageLoader have been combined in a new class
677 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
680 2002-02-07 Herbert Voss <voss@lyx.org>
682 * GraphicsCacheItem.C: use unzipFile() from support/filetools
684 2002-01-31 Herbert Voss <voss@lyx.org>
686 * GraphicsCacheItem.h: handle filetype without the file extension;
687 getting type from contents; handle zipped files
689 2002-01-27 Herbert Voss <voss@lyx.org>
691 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
693 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
695 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
697 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
699 * GraphicsCacheItem.h: do not include <config.h> in header files
701 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
703 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
704 transparent colour, then set it to the colour of the background.
705 Also take account of the monochrome, grayscale of color
708 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
710 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
711 are different. Thus, don't delete the "to" if it's the original!
713 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
715 * ImageLoadXPM.C: remove setting of alloc colour mask,
716 led to crash as we don't define a callback
718 2001-07-29 Baruch Even <baruch@lyx.org>
720 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
721 colors with closeness of 10000.
723 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
725 2001-07-29 Baruch Even <baruch@lyx.org>
727 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
730 2001-07-23 Baruch Even <baruch@lyx.org>
732 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
733 the image after conversion.
735 2001-07-17 Baruch Even <baruch@lyx.org>
737 * GraphicsCacheItem.h:
738 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
739 from synchronous to asynchronous and to ease the coming changes.
741 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
743 * ImageLoaderXPM.C (runImageLoader): get display information from
746 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
749 * GraphicsCacheItem.C:
751 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
753 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
755 * GraphicsCache.h: inherit privately from noncopyable
756 * ImageLoader.h: ditto
757 * GraphicsCacheItem.h: ditto
759 2001-04-16 Allan Rae <rae@lyx.org>
761 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
762 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
765 2001-04-02 Baruch Even <baruch@lyx.org>
767 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
768 of hard coding ImageMagick.
770 2001-03-10 Baruch Even <baruch@lyx.org>
772 * GraphicsCache.C: Style change from (*it).field to it->field
774 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
776 * GraphicsCache.h: noncopyable is in namespace boost
777 * ImageLoader.h: ditto
778 * GraphicsCacheItem.h: ditto
780 2001-03-07 Baruch Even <baruch@lyx.org>
782 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
783 was false and it's not needed anyhow since the shared_ptr's in the cache
784 will destroy everything on exit.
786 2001-02-28 Baruch Even <baruch@ev-en.org>
789 * GraphicsCache.C: Changed the singleton pattern implementation, the
790 former version "leaked" in the sense that it was not deallocated at
793 2001-02-20 Baruch Even <baruch@ev-en.org>
795 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
796 instead of a pure pointer.
798 * GraphicsCacheItem.[Ch]:
799 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
800 removed the reference counting that was inside. Also fixed a bug where
801 a temporary file wouldn't get erased.
803 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
804 Ownership is now dropped when the caller requests the image_ pointer.
806 2001-02-20 Baruch Even <baruch@ev-en.org>
808 * GraphicsCache.C: Cleared up the confusion on when and how it is
811 * GraphicsCacheItem.C: Indentation change.
813 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
814 figure correctly when the image has been loaded successfully.
816 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
818 * ImageLoader.C: add a "using" directive.
820 * ImageLoader.h: remove extra comma at the end of enum; add an
821 std:: qualifier for vector.
823 2001-01-21 Baruch Even <baruch@ev-en.org>
825 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
826 height in the image itself and minor cleanups.
828 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
829 new ImageLoader class instead of the older Renderer class. This
830 means change of responsibilities.