1 2002-11-21 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C (build_script, move_file):
4 Don't use "if [ $? -ne 0 ]; then..."
6 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
8 * PreviewLoader.C (IncrementedFileName): STRCONV
11 * GraphicsConverter.C (Impl): STRCONV
14 * GraphicsTypes.C: include config.h
16 2002-10-25 Angus Leeming <leeming@lyx.org>
18 * GraphicsConverter.C (Impl::converted)
19 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
20 string as first arg, reflecting change in ForkedCall interface.
22 * PreviewLoader.C: use pid rather than command as identifier in
25 2002-10-18 Angus Leeming <leeming@lyx.org>
27 * GraphicsCacheItem.C (findTargetFormat): add debug message.
29 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
31 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
33 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
35 * GraphicsConverter.C (build_script): do not use ChangeExtension
39 2002-09-05 Angus Leeming <leeming@lyx.org>
41 * all files: modify the headers as discussed on the list.
43 2002-09-04 Angus Leeming <leeming@lyx.org>
45 * PreviewLoader.C (startLoading): pass the desired output format to the
48 2002-09-04 Angus Leeming <leeming@lyx.org>
50 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
52 2002-09-03 Angus Leeming <leeming@lyx.org>
54 * PreviewLoader.C: fix crash reported by Norbert Koksch when
55 generating more than 999 preview snippets. Use filenames with 5 digit
56 numbers, not 3, in the first instance, although more general code is
57 commented out. I don't suppose /anyone/ has 100000 formulae in one
60 2002-09-03 Angus Leeming <leeming@lyx.org>
62 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
64 2002-09-03 Angus Leeming <leeming@lyx.org>
66 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
68 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
70 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
71 convertDefault command with "sh ".
73 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
75 * GraphicsImage.C: small style fix to width/height setting.
77 * GraphicsTypes.h: have a displayTranslator here.
80 * GraphicsTypes.C: new file added for the setDisplayTranslator();
82 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
85 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
86 because this input has gone from the graphics dialog.
88 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
90 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
92 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
93 for support/smart_ptr.h, switch to boost smart ptr.
95 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
96 (~Data): let the smart_ptr handle cleanup
97 (reset): use nifty 3rd arg
99 (free_color_table): free the table manually
101 2002-08-09 Angus Leeming <leeming@lyx.org>
103 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
104 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
105 input@path is now set correctly.
107 2002-08-06 Angus Leeming <leeming@lyx.org>
109 * PreviewLoader.C: add support for preview.sty 0.73 (currently
110 #ifdef-ed out, awaiting the formal release).
112 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
113 the contents of a file that has changed.
115 2002-08-05 Angus Leeming <leeming@lyx.org>
117 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
118 to preview.sty. Works only for versions of preview.sty > 0.72b but
119 doesn't hurt earlier versions. Allows me to test the new parsing of
120 LyX-specific data from the generated log file.
122 2002-08-02 Angus Leeming <leeming@lyx.org>
124 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
126 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
127 (add): don't add empty snippets.
129 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
130 (view, setView): access to to the cache_.
132 2002-08-02 Angus Leeming <leeming@lyx.org>
134 * PreviewedInset.[Ch]: cache the LaTeX snippet.
136 2002-08-01 Angus Leeming <leeming@lyx.org>
138 * PreviewedInset.[Ch]: new files. An abstract base class that can help
139 insets to generate previews.
140 The daughter class must instantiate three small methods.
141 The Inset would own an instance of this daughter class and invoke it
142 as necessary. For example, mathd/formula.C gets previews at the cost
143 of 15 or so lines of code.
145 * Makefile.am: add PreviewedInset.[Ch].
147 * PreviewLoader.C (add): add debug message.
149 * Previews.C (generateBufferPreviews): remove if-block from loop.
151 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
153 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
155 (setAscentFractions): ditto
157 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
159 * PreviewLoader.C (setAscentFractions): modify because of strip
162 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
164 * GraphicsConverter.C (build_script): take a ostream as a more
165 general argument than ostringstream.
167 2002-07-22 Herbert Voss <voss@lyx.org>
169 * GraphicsConverter.C: get the "default converter" run again
171 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
173 * PreviewLoader.C: use BufferParams::getLyXTextClass
175 2002-07-21 Herbert Voss <voss@lyx.org>
177 * GraphicsImage.C: get the LyXAspectRatio run.
179 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
181 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
183 * PreviewLoader.C (startLoading): pass an interger as resolution
184 to the lyxpreview converter
186 * GraphicsParams.C: include <cstdlib>
188 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
190 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
191 preview converter script
193 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
195 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
198 2002-07-18 Angus Leeming <leeming@lyx.org>
200 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
202 (startMonitoring, monitoring, checksum): new methods to interact with
205 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
206 methods invoking the CacheItem methods of the same name.
207 (resetFile): if monitoring and the file changes, start monitoring this
210 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
212 * Makefile.am: remove FileMonitor.[Ch]
214 2002-06-17 Herbert Voss <voss@lyx.org>
216 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
217 for old ps-files (Garst). It's now handled by defining a converter and
218 disabling the ps-support of xforms.
220 2002-07-17 Angus Leeming <leeming@lyx.org>
222 Be true to the Pimpl idiom, moving all signals into the respective
223 Impl classes and defining methods to connect them to an outside slot.
224 Const-ify all visible class methods as they act only on a const pimpl_.
226 * GraphicsCache.[Ch] (add, remove): const-ify.
228 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
229 (statusChanged): move the signal into the Impl class.
230 (connect): new method, enabling a listener to connect to this signal.
232 * GraphicsConverter.[Ch]: (startConversion): const-ify.
233 (finishedConversion): move the signal into the Impl class.
234 (connect): new method, enabling a listener to connect to this signal.
236 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
237 (statusChanged): move the signal into the Impl class.
238 (connect): new method, enabling a listener to connect to this signal.
240 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
241 (imageReady): move the signal into the Impl class.
242 (connect): new method, enabling a listener to connect to this signal.
243 (emitSignal): new method, enabling PreviewImage to tell the outside
244 world that the file has been loaded into memory.
246 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
250 * GraphicsCacheItem.C:
251 * GraphicsConverter.[Ch]:
253 * GraphicsImageXPM.C:
255 * PreviewLoader.[Ch]: whitespace clean-up.
257 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
259 * PreviewLoader.C (setConverter): remove unused variable
261 * GraphicsImageXPM.C (isDrawable): implement
262 (setPixmap): the opaque color is black, not white
264 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
266 * GraphicsImageXPM.C (color_none_id):
267 (contains_color_none): use ascii_lowercase instead of lowercase
269 2002-07-16 Angus Leeming <leeming@lyx.org>
271 * PreviewLoader.C: greater use of STL algorithms.
273 * Previews.[Ch]: use const in more places.
274 (generateBufferPreviews): now takes a Buffer const & argument, not a
277 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
279 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
281 2002-07-12 Angus Leeming <leeming@lyx.org>
283 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
284 if visible 2 secs after the call to load them is first made.
286 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
287 BufferView to ascertain whether the inset is visible or not.
289 * Makefile.am: added GraphicsSupport.[Ch].
291 * PreviewImage.[Ch]: use this smart loader.
293 * PreviewLoader.C: don't load generated image files indiscimminantly.
294 Instead emit the imageReady signal and allow the image owner to decide.
296 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
298 * GraphicsCache.C: remove init_graphics()
300 2002-07-09 Angus Leeming <leeming@lyx.org>
302 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
303 arithmetic when it should be floating.
305 2002-07-09 Angus Leeming <leeming@lyx.org>
307 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
308 Output equation labels as "(#)" if lyxrc preference is set.
309 (setFontScalingFactor): use lyxrc variable preview_scale_factor
310 rather than hard-coding this.
312 2002-07-09 Angus Leeming <leeming@lyx.org>
314 * PreviewLoader.C: Further refactoring of the code. Should now be
317 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
318 past its sell-by date. The code to read the metrics file is now found
319 as a helper function in PreviewLoader.C.
321 * GraphicsImageXPM.C (scale): use boost::tie.
323 2002-07-08 Herbert Voss <voss@lyx.org>
325 * PreviewLoader.C: use of preview_size_factor to get the right
326 font-size! 0.9 is the default.
328 2002-07-08 Angus Leeming <leeming@lyx.org>
330 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
331 invocation of preview.sty.
332 Perform something of an internal clean-up.
334 2002-07-06 Angus Leeming <leeming@lyx.org>
336 * PreviewLoader.C: ensure that the metrics data is used by the
340 * PreviewImage.C: (Impl d-tor): remove all generated files that still
341 exist (perhaps because the process was curtailed before the images
344 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
346 2002-07-05 Angus Leeming <leeming@lyx.org>
355 * Previews.C: new files. The previewed LaTeX snippet stuff.
357 * Makefile.am: add these files.
359 2002-07-05 Angus Leeming <leeming@lyx.org>
361 * GraphicsLoader.h: whitespace.
363 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
365 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
366 boost::function from boost::signal.
368 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
370 * GraphicsConverter.C (convert): do not use ChangeExtension
371 because to_file_base may contain a dot.
373 2002-06-28 Angus Leeming <leeming@lyx.org>
375 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
376 by moving those SignalPtrs into the grfx::Image and grfx::Converter
377 classes where they really belong.
378 Use the Pimpl idiom to hide the class internals from public view.
380 * GraphicsTypes: remove the typedefs, leaving only the enums.
382 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
383 passed a reference to one in the load() method.
385 * GraphicsConverter.[Ch]: totally refactored. An instance of
386 grfx::Converter now represents a single conversion process.
387 Thus grfx::CachItem now has a grfx::Converter * that is set when the
388 conversion is initiated and destroyed on completion.
390 * GraphicsCache.[Ch]:
391 * GraphicsCacheItem.[Ch]:
392 * GraphicsConverter.[Ch]:
393 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
395 Note that I have done this only after making the above changes,
396 so not only should we have a clean, minimal and well documented
397 interface to these classes in the header files, but the class internals
398 should be much clearer too.
401 grfx::GCache -> grfx::Cache,
402 grfx::GCacheItem -> grfx::CacheItem,
403 grfx::GConverter -> grfx::Converter,
404 grfx::GImage -> grfx::Image,
405 grfx::GImageXPM -> grfx::ImageXPM,
406 grfx::GParams -> grfx::Params.
408 2002-06-26 Angus Leeming <leeming@lyx.org>
410 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
411 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
414 2002-06-26 Angus Leeming <leeming@lyx.org>
416 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
417 move the DisplayType enum out of grfx::GParams to here.
419 * GraphicsCacheItem.h: re-write preliminary description to reflect
422 * GraphicsParams.[Ch]:
423 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
424 grfx::DisplayType out of grfx::GParams.
426 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
427 that was in frontends/screen.C and insets/insetgraphics.C into a
428 single, easy-to-use class.
430 * Makefile.am: add these files.
432 2002-06-25 Angus Leeming <leeming@lyx.org>
434 * GraphicsCache.[Ch]:
435 * GraphicsCacheItem.[Ch]:
436 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
437 file into memory. The cache no longer controls the generation of the
438 pixmap. Instead, it just emits a signal when the loading status of an
440 The cache no longer stores InsetGraphics pointers and nor does it
441 assume responsibility for modifying an image (scaling, rotating etc).
442 Instead, that must now be performed elsewhere.
444 2002-06-19 Angus Leeming <leeming@lyx.org>
446 * GraphicsConverter.C: add using std::endl directive.
448 2002-06-17 Herbert Voss <voss@lyx.org>
450 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
451 default when nothing different was found
452 (convertToDisplayFormat): handle zipped files in the right way and
453 choose always convert as a default converter when no other
454 userdefined was found
456 * GraphicsConverter.C: add more lyxerr comments and choose
457 convert when no other userdefined converter was found
459 2002-06-10 Herbert Voss <voss@lyx.org>
461 * GraphicsImageXPM.C (convertTo7chars): get another special color
462 format from convert work in the right way
464 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
466 * GraphicsCache.C: use right colormap incantation
468 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
470 * GraphicsCache.C: use lyx_gui namespace
472 * GraphicsImageXPM.C: back down to using xforms
475 2002-06-07 Angus Leeming <leeming@lyx.org>
477 Fixes needed to compile with Compaq cxx 6.5.
478 * GraphicsConverter.h: forward declare class ConvProcess.
480 * GraphicsImageXPM.C:
481 all c-library variables have been moved into namespace std.
482 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
484 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
486 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
488 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
490 * GraphicsImageXPM.C: SigC to boot::signals changes.
491 (newImage): fix () bug when using new.
493 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
495 * switch from SigC signals to boost::signals.
497 2002-05-29 André Pönitz <poenitz@gmx.net>
499 * GraphicsParam.C: remove unneeded #include, move vomment
501 2002-05-28 André Pönitz <poenitz@gmx.net>
503 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
505 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
507 * GraphicsImageXPM.C: ColorHandler moved
509 2002-05-24 Juergen Vigna <jug@sad.it>
512 * GraphicsImage.h: include LString.h first.
514 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
516 * GraphicsCacheItem.h: use more specific smart_ptr header.
517 * GraphicsTypes.h: ditto
518 * GraphicsImage.h: ditto
519 * GraphicsConverter.h: ditto
521 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
523 * GraphicsImageXPM.C: understand convert's use of "opaque"
526 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
528 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
529 GImage::loadableFormats() that ensures that the signal is connected
530 to the derived class' method.
532 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
534 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
535 only work on the string.
537 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
539 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
540 the simple image loader when it encounters colour strings like
543 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
545 * GraphicsCacheItem.C (convertToDisplayFormat):
546 * GraphicsConverter.C (build_script): remove the Alerts when things go
547 wrong as the inset displays the message anyway. Moreover, Alert seems
548 pretty temperamemtal at the moment.
550 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
552 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
554 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
556 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
557 a reference to a temp object that's going out of scope...
559 2002-04-09 Herbert Voss <voss@lyx.org>
561 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
562 LyXLength::inBP instead of inPixels.
564 2002-04-10 Herbert Voss <voss@perce.de>
566 * GraphicsCache.[Ch]:
567 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
568 to read the "Bounding Box" from non (e)ps files.
570 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
572 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
573 the EPS file too, to ensure that the clipped Bounding Box is relative
574 to the original. (From Herbert.)
576 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
578 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
579 variables are initialised. Clean-up parsing of the string (with thanks
582 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
584 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
585 if the file can't be found.
587 * GraphicsParams.h (c-tor): remove string() as default argument.
589 * GraphicsCacheItem.C: a couple of changes as a result.
591 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
593 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
594 path to graphics file.
596 * GraphicsParams.[Ch] (c-tor): now passed filepath.
598 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
600 * most files: ws cleanup
602 * Makefile.am: remove ld -r stuff
604 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
606 * Makefile.am: special rules if partial linking
608 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
610 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
612 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
614 * GraphicsConverter.[Ch] (converted): make first arg const ref.
616 * GraphicsCacheItem.h: doxy change
618 * GraphicsCacheItem.C: ws change
620 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
622 * Makefile.am: if there is no image loading class leveraging the power
623 of the appropriate gui library, then compile the basic alternative
624 found in GraphicsImageXPM.[Ch].
626 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
628 * GraphicsCache.C: change associated with move of initialiseGraphics
631 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
633 * GraphicsParams.[Ch]:
635 * GraphicsImageXPM.C: properly resolve more warnings about comparison
636 between signed and unsigned integer expressions.
638 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
640 * GraphicsCache.C: move connections to the GImage-derived classes to
643 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
645 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
646 conversion, then do that.
648 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
650 * GraphicsCache.C: improve commentary to graphicsInit and where it
653 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
654 that became a memory leak properly. (Let the shared_c_ptr free the
656 (reset, mapcolor): tidy up and introduce a work around for XPM files
657 with crappy color entries. Print out a nice friendly message on what's
658 gone wrong and how to resolve it properly.
660 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
662 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
663 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
665 (unique_color_string): use the correct string c-tor.
667 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
670 * ImageLoaderXPM.[Ch]: removed.
672 * GraphicsConverter.[Ch]:
673 * GraphicsImage.[Ch]:
674 * GraphicsImageXPM.[Ch]:
675 * GraphicsParams.[Ch]:
676 * GraphicsTypes.h: new files.
678 * All files. A total re-write of the graphics cache. The cache now
679 supports asynchronous file conversion and file loading. Images
680 can be cropped, rotated and scaled for display on the LyX screen.
681 The old LyXImage and ImageLoader have been combined in a new class
682 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
685 2002-02-07 Herbert Voss <voss@lyx.org>
687 * GraphicsCacheItem.C: use unzipFile() from support/filetools
689 2002-01-31 Herbert Voss <voss@lyx.org>
691 * GraphicsCacheItem.h: handle filetype without the file extension;
692 getting type from contents; handle zipped files
694 2002-01-27 Herbert Voss <voss@lyx.org>
696 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
698 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
700 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
702 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
704 * GraphicsCacheItem.h: do not include <config.h> in header files
706 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
708 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
709 transparent colour, then set it to the colour of the background.
710 Also take account of the monochrome, grayscale of color
713 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
715 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
716 are different. Thus, don't delete the "to" if it's the original!
718 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
720 * ImageLoadXPM.C: remove setting of alloc colour mask,
721 led to crash as we don't define a callback
723 2001-07-29 Baruch Even <baruch@lyx.org>
725 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
726 colors with closeness of 10000.
728 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
730 2001-07-29 Baruch Even <baruch@lyx.org>
732 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
735 2001-07-23 Baruch Even <baruch@lyx.org>
737 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
738 the image after conversion.
740 2001-07-17 Baruch Even <baruch@lyx.org>
742 * GraphicsCacheItem.h:
743 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
744 from synchronous to asynchronous and to ease the coming changes.
746 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
748 * ImageLoaderXPM.C (runImageLoader): get display information from
751 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
754 * GraphicsCacheItem.C:
756 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
758 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
760 * GraphicsCache.h: inherit privately from noncopyable
761 * ImageLoader.h: ditto
762 * GraphicsCacheItem.h: ditto
764 2001-04-16 Allan Rae <rae@lyx.org>
766 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
767 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
770 2001-04-02 Baruch Even <baruch@lyx.org>
772 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
773 of hard coding ImageMagick.
775 2001-03-10 Baruch Even <baruch@lyx.org>
777 * GraphicsCache.C: Style change from (*it).field to it->field
779 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
781 * GraphicsCache.h: noncopyable is in namespace boost
782 * ImageLoader.h: ditto
783 * GraphicsCacheItem.h: ditto
785 2001-03-07 Baruch Even <baruch@lyx.org>
787 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
788 was false and it's not needed anyhow since the shared_ptr's in the cache
789 will destroy everything on exit.
791 2001-02-28 Baruch Even <baruch@ev-en.org>
794 * GraphicsCache.C: Changed the singleton pattern implementation, the
795 former version "leaked" in the sense that it was not deallocated at
798 2001-02-20 Baruch Even <baruch@ev-en.org>
800 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
801 instead of a pure pointer.
803 * GraphicsCacheItem.[Ch]:
804 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
805 removed the reference counting that was inside. Also fixed a bug where
806 a temporary file wouldn't get erased.
808 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
809 Ownership is now dropped when the caller requests the image_ pointer.
811 2001-02-20 Baruch Even <baruch@ev-en.org>
813 * GraphicsCache.C: Cleared up the confusion on when and how it is
816 * GraphicsCacheItem.C: Indentation change.
818 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
819 figure correctly when the image has been loaded successfully.
821 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
823 * ImageLoader.C: add a "using" directive.
825 * ImageLoader.h: remove extra comma at the end of enum; add an
826 std:: qualifier for vector.
828 2001-01-21 Baruch Even <baruch@ev-en.org>
830 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
831 height in the image itself and minor cleanups.
833 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
834 new ImageLoader class instead of the older Renderer class. This
835 means change of responsibilities.