1 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
3 * GraphicsTypes.C: include config.h
5 2002-10-25 Angus Leeming <leeming@lyx.org>
7 * GraphicsConverter.C (Impl::converted)
8 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
9 string as first arg, reflecting change in ForkedCall interface.
11 * PreviewLoader.C: use pid rather than command as identifier in
14 2002-10-18 Angus Leeming <leeming@lyx.org>
16 * GraphicsCacheItem.C (findTargetFormat): add debug message.
18 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
20 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
22 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
24 * GraphicsConverter.C (build_script): do not use ChangeExtension
28 2002-09-05 Angus Leeming <leeming@lyx.org>
30 * all files: modify the headers as discussed on the list.
32 2002-09-04 Angus Leeming <leeming@lyx.org>
34 * PreviewLoader.C (startLoading): pass the desired output format to the
37 2002-09-04 Angus Leeming <leeming@lyx.org>
39 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
41 2002-09-03 Angus Leeming <leeming@lyx.org>
43 * PreviewLoader.C: fix crash reported by Norbert Koksch when
44 generating more than 999 preview snippets. Use filenames with 5 digit
45 numbers, not 3, in the first instance, although more general code is
46 commented out. I don't suppose /anyone/ has 100000 formulae in one
49 2002-09-03 Angus Leeming <leeming@lyx.org>
51 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
53 2002-09-03 Angus Leeming <leeming@lyx.org>
55 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
57 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
59 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
60 convertDefault command with "sh ".
62 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
64 * GraphicsImage.C: small style fix to width/height setting.
66 * GraphicsTypes.h: have a displayTranslator here.
69 * GraphicsTypes.C: new file added for the setDisplayTranslator();
71 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
74 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
75 because this input has gone from the graphics dialog.
77 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
79 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
81 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
82 for support/smart_ptr.h, switch to boost smart ptr.
84 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
85 (~Data): let the smart_ptr handle cleanup
86 (reset): use nifty 3rd arg
88 (free_color_table): free the table manually
90 2002-08-09 Angus Leeming <leeming@lyx.org>
92 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
93 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
94 input@path is now set correctly.
96 2002-08-06 Angus Leeming <leeming@lyx.org>
98 * PreviewLoader.C: add support for preview.sty 0.73 (currently
99 #ifdef-ed out, awaiting the formal release).
101 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
102 the contents of a file that has changed.
104 2002-08-05 Angus Leeming <leeming@lyx.org>
106 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
107 to preview.sty. Works only for versions of preview.sty > 0.72b but
108 doesn't hurt earlier versions. Allows me to test the new parsing of
109 LyX-specific data from the generated log file.
111 2002-08-02 Angus Leeming <leeming@lyx.org>
113 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
115 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
116 (add): don't add empty snippets.
118 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
119 (view, setView): access to to the cache_.
121 2002-08-02 Angus Leeming <leeming@lyx.org>
123 * PreviewedInset.[Ch]: cache the LaTeX snippet.
125 2002-08-01 Angus Leeming <leeming@lyx.org>
127 * PreviewedInset.[Ch]: new files. An abstract base class that can help
128 insets to generate previews.
129 The daughter class must instantiate three small methods.
130 The Inset would own an instance of this daughter class and invoke it
131 as necessary. For example, mathd/formula.C gets previews at the cost
132 of 15 or so lines of code.
134 * Makefile.am: add PreviewedInset.[Ch].
136 * PreviewLoader.C (add): add debug message.
138 * Previews.C (generateBufferPreviews): remove if-block from loop.
140 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
142 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
144 (setAscentFractions): ditto
146 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
148 * PreviewLoader.C (setAscentFractions): modify because of strip
151 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
153 * GraphicsConverter.C (build_script): take a ostream as a more
154 general argument than ostringstream.
156 2002-07-22 Herbert Voss <voss@lyx.org>
158 * GraphicsConverter.C: get the "default converter" run again
160 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
162 * PreviewLoader.C: use BufferParams::getLyXTextClass
164 2002-07-21 Herbert Voss <voss@lyx.org>
166 * GraphicsImage.C: get the LyXAspectRatio run.
168 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
170 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
172 * PreviewLoader.C (startLoading): pass an interger as resolution
173 to the lyxpreview converter
175 * GraphicsParams.C: include <cstdlib>
177 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
179 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
180 preview converter script
182 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
184 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
187 2002-07-18 Angus Leeming <leeming@lyx.org>
189 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
191 (startMonitoring, monitoring, checksum): new methods to interact with
194 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
195 methods invoking the CacheItem methods of the same name.
196 (resetFile): if monitoring and the file changes, start monitoring this
199 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
201 * Makefile.am: remove FileMonitor.[Ch]
203 2002-06-17 Herbert Voss <voss@lyx.org>
205 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
206 for old ps-files (Garst). It's now handled by defining a converter and
207 disabling the ps-support of xforms.
209 2002-07-17 Angus Leeming <leeming@lyx.org>
211 Be true to the Pimpl idiom, moving all signals into the respective
212 Impl classes and defining methods to connect them to an outside slot.
213 Const-ify all visible class methods as they act only on a const pimpl_.
215 * GraphicsCache.[Ch] (add, remove): const-ify.
217 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
218 (statusChanged): move the signal into the Impl class.
219 (connect): new method, enabling a listener to connect to this signal.
221 * GraphicsConverter.[Ch]: (startConversion): const-ify.
222 (finishedConversion): move the signal into the Impl class.
223 (connect): new method, enabling a listener to connect to this signal.
225 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
226 (statusChanged): move the signal into the Impl class.
227 (connect): new method, enabling a listener to connect to this signal.
229 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
230 (imageReady): move the signal into the Impl class.
231 (connect): new method, enabling a listener to connect to this signal.
232 (emitSignal): new method, enabling PreviewImage to tell the outside
233 world that the file has been loaded into memory.
235 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
239 * GraphicsCacheItem.C:
240 * GraphicsConverter.[Ch]:
242 * GraphicsImageXPM.C:
244 * PreviewLoader.[Ch]: whitespace clean-up.
246 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
248 * PreviewLoader.C (setConverter): remove unused variable
250 * GraphicsImageXPM.C (isDrawable): implement
251 (setPixmap): the opaque color is black, not white
253 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
255 * GraphicsImageXPM.C (color_none_id):
256 (contains_color_none): use ascii_lowercase instead of lowercase
258 2002-07-16 Angus Leeming <leeming@lyx.org>
260 * PreviewLoader.C: greater use of STL algorithms.
262 * Previews.[Ch]: use const in more places.
263 (generateBufferPreviews): now takes a Buffer const & argument, not a
266 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
268 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
270 2002-07-12 Angus Leeming <leeming@lyx.org>
272 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
273 if visible 2 secs after the call to load them is first made.
275 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
276 BufferView to ascertain whether the inset is visible or not.
278 * Makefile.am: added GraphicsSupport.[Ch].
280 * PreviewImage.[Ch]: use this smart loader.
282 * PreviewLoader.C: don't load generated image files indiscimminantly.
283 Instead emit the imageReady signal and allow the image owner to decide.
285 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
287 * GraphicsCache.C: remove init_graphics()
289 2002-07-09 Angus Leeming <leeming@lyx.org>
291 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
292 arithmetic when it should be floating.
294 2002-07-09 Angus Leeming <leeming@lyx.org>
296 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
297 Output equation labels as "(#)" if lyxrc preference is set.
298 (setFontScalingFactor): use lyxrc variable preview_scale_factor
299 rather than hard-coding this.
301 2002-07-09 Angus Leeming <leeming@lyx.org>
303 * PreviewLoader.C: Further refactoring of the code. Should now be
306 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
307 past its sell-by date. The code to read the metrics file is now found
308 as a helper function in PreviewLoader.C.
310 * GraphicsImageXPM.C (scale): use boost::tie.
312 2002-07-08 Herbert Voss <voss@lyx.org>
314 * PreviewLoader.C: use of preview_size_factor to get the right
315 font-size! 0.9 is the default.
317 2002-07-08 Angus Leeming <leeming@lyx.org>
319 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
320 invocation of preview.sty.
321 Perform something of an internal clean-up.
323 2002-07-06 Angus Leeming <leeming@lyx.org>
325 * PreviewLoader.C: ensure that the metrics data is used by the
329 * PreviewImage.C: (Impl d-tor): remove all generated files that still
330 exist (perhaps because the process was curtailed before the images
333 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
335 2002-07-05 Angus Leeming <leeming@lyx.org>
344 * Previews.C: new files. The previewed LaTeX snippet stuff.
346 * Makefile.am: add these files.
348 2002-07-05 Angus Leeming <leeming@lyx.org>
350 * GraphicsLoader.h: whitespace.
352 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
354 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
355 boost::function from boost::signal.
357 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
359 * GraphicsConverter.C (convert): do not use ChangeExtension
360 because to_file_base may contain a dot.
362 2002-06-28 Angus Leeming <leeming@lyx.org>
364 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
365 by moving those SignalPtrs into the grfx::Image and grfx::Converter
366 classes where they really belong.
367 Use the Pimpl idiom to hide the class internals from public view.
369 * GraphicsTypes: remove the typedefs, leaving only the enums.
371 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
372 passed a reference to one in the load() method.
374 * GraphicsConverter.[Ch]: totally refactored. An instance of
375 grfx::Converter now represents a single conversion process.
376 Thus grfx::CachItem now has a grfx::Converter * that is set when the
377 conversion is initiated and destroyed on completion.
379 * GraphicsCache.[Ch]:
380 * GraphicsCacheItem.[Ch]:
381 * GraphicsConverter.[Ch]:
382 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
384 Note that I have done this only after making the above changes,
385 so not only should we have a clean, minimal and well documented
386 interface to these classes in the header files, but the class internals
387 should be much clearer too.
390 grfx::GCache -> grfx::Cache,
391 grfx::GCacheItem -> grfx::CacheItem,
392 grfx::GConverter -> grfx::Converter,
393 grfx::GImage -> grfx::Image,
394 grfx::GImageXPM -> grfx::ImageXPM,
395 grfx::GParams -> grfx::Params.
397 2002-06-26 Angus Leeming <leeming@lyx.org>
399 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
400 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
403 2002-06-26 Angus Leeming <leeming@lyx.org>
405 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
406 move the DisplayType enum out of grfx::GParams to here.
408 * GraphicsCacheItem.h: re-write preliminary description to reflect
411 * GraphicsParams.[Ch]:
412 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
413 grfx::DisplayType out of grfx::GParams.
415 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
416 that was in frontends/screen.C and insets/insetgraphics.C into a
417 single, easy-to-use class.
419 * Makefile.am: add these files.
421 2002-06-25 Angus Leeming <leeming@lyx.org>
423 * GraphicsCache.[Ch]:
424 * GraphicsCacheItem.[Ch]:
425 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
426 file into memory. The cache no longer controls the generation of the
427 pixmap. Instead, it just emits a signal when the loading status of an
429 The cache no longer stores InsetGraphics pointers and nor does it
430 assume responsibility for modifying an image (scaling, rotating etc).
431 Instead, that must now be performed elsewhere.
433 2002-06-19 Angus Leeming <leeming@lyx.org>
435 * GraphicsConverter.C: add using std::endl directive.
437 2002-06-17 Herbert Voss <voss@lyx.org>
439 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
440 default when nothing different was found
441 (convertToDisplayFormat): handle zipped files in the right way and
442 choose always convert as a default converter when no other
443 userdefined was found
445 * GraphicsConverter.C: add more lyxerr comments and choose
446 convert when no other userdefined converter was found
448 2002-06-10 Herbert Voss <voss@lyx.org>
450 * GraphicsImageXPM.C (convertTo7chars): get another special color
451 format from convert work in the right way
453 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
455 * GraphicsCache.C: use right colormap incantation
457 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
459 * GraphicsCache.C: use lyx_gui namespace
461 * GraphicsImageXPM.C: back down to using xforms
464 2002-06-07 Angus Leeming <leeming@lyx.org>
466 Fixes needed to compile with Compaq cxx 6.5.
467 * GraphicsConverter.h: forward declare class ConvProcess.
469 * GraphicsImageXPM.C:
470 all c-library variables have been moved into namespace std.
471 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
473 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
475 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
477 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
479 * GraphicsImageXPM.C: SigC to boot::signals changes.
480 (newImage): fix () bug when using new.
482 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
484 * switch from SigC signals to boost::signals.
486 2002-05-29 André Pönitz <poenitz@gmx.net>
488 * GraphicsParam.C: remove unneeded #include, move vomment
490 2002-05-28 André Pönitz <poenitz@gmx.net>
492 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
494 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
496 * GraphicsImageXPM.C: ColorHandler moved
498 2002-05-24 Juergen Vigna <jug@sad.it>
501 * GraphicsImage.h: include LString.h first.
503 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
505 * GraphicsCacheItem.h: use more specific smart_ptr header.
506 * GraphicsTypes.h: ditto
507 * GraphicsImage.h: ditto
508 * GraphicsConverter.h: ditto
510 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
512 * GraphicsImageXPM.C: understand convert's use of "opaque"
515 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
517 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
518 GImage::loadableFormats() that ensures that the signal is connected
519 to the derived class' method.
521 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
523 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
524 only work on the string.
526 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
528 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
529 the simple image loader when it encounters colour strings like
532 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
534 * GraphicsCacheItem.C (convertToDisplayFormat):
535 * GraphicsConverter.C (build_script): remove the Alerts when things go
536 wrong as the inset displays the message anyway. Moreover, Alert seems
537 pretty temperamemtal at the moment.
539 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
541 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
543 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
545 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
546 a reference to a temp object that's going out of scope...
548 2002-04-09 Herbert Voss <voss@lyx.org>
550 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
551 LyXLength::inBP instead of inPixels.
553 2002-04-10 Herbert Voss <voss@perce.de>
555 * GraphicsCache.[Ch]:
556 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
557 to read the "Bounding Box" from non (e)ps files.
559 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
561 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
562 the EPS file too, to ensure that the clipped Bounding Box is relative
563 to the original. (From Herbert.)
565 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
567 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
568 variables are initialised. Clean-up parsing of the string (with thanks
571 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
573 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
574 if the file can't be found.
576 * GraphicsParams.h (c-tor): remove string() as default argument.
578 * GraphicsCacheItem.C: a couple of changes as a result.
580 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
582 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
583 path to graphics file.
585 * GraphicsParams.[Ch] (c-tor): now passed filepath.
587 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
589 * most files: ws cleanup
591 * Makefile.am: remove ld -r stuff
593 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
595 * Makefile.am: special rules if partial linking
597 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
599 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
601 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
603 * GraphicsConverter.[Ch] (converted): make first arg const ref.
605 * GraphicsCacheItem.h: doxy change
607 * GraphicsCacheItem.C: ws change
609 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
611 * Makefile.am: if there is no image loading class leveraging the power
612 of the appropriate gui library, then compile the basic alternative
613 found in GraphicsImageXPM.[Ch].
615 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
617 * GraphicsCache.C: change associated with move of initialiseGraphics
620 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
622 * GraphicsParams.[Ch]:
624 * GraphicsImageXPM.C: properly resolve more warnings about comparison
625 between signed and unsigned integer expressions.
627 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
629 * GraphicsCache.C: move connections to the GImage-derived classes to
632 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
634 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
635 conversion, then do that.
637 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
639 * GraphicsCache.C: improve commentary to graphicsInit and where it
642 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
643 that became a memory leak properly. (Let the shared_c_ptr free the
645 (reset, mapcolor): tidy up and introduce a work around for XPM files
646 with crappy color entries. Print out a nice friendly message on what's
647 gone wrong and how to resolve it properly.
649 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
651 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
652 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
654 (unique_color_string): use the correct string c-tor.
656 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
659 * ImageLoaderXPM.[Ch]: removed.
661 * GraphicsConverter.[Ch]:
662 * GraphicsImage.[Ch]:
663 * GraphicsImageXPM.[Ch]:
664 * GraphicsParams.[Ch]:
665 * GraphicsTypes.h: new files.
667 * All files. A total re-write of the graphics cache. The cache now
668 supports asynchronous file conversion and file loading. Images
669 can be cropped, rotated and scaled for display on the LyX screen.
670 The old LyXImage and ImageLoader have been combined in a new class
671 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
674 2002-02-07 Herbert Voss <voss@lyx.org>
676 * GraphicsCacheItem.C: use unzipFile() from support/filetools
678 2002-01-31 Herbert Voss <voss@lyx.org>
680 * GraphicsCacheItem.h: handle filetype without the file extension;
681 getting type from contents; handle zipped files
683 2002-01-27 Herbert Voss <voss@lyx.org>
685 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
687 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
689 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
691 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
693 * GraphicsCacheItem.h: do not include <config.h> in header files
695 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
697 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
698 transparent colour, then set it to the colour of the background.
699 Also take account of the monochrome, grayscale of color
702 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
704 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
705 are different. Thus, don't delete the "to" if it's the original!
707 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
709 * ImageLoadXPM.C: remove setting of alloc colour mask,
710 led to crash as we don't define a callback
712 2001-07-29 Baruch Even <baruch@lyx.org>
714 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
715 colors with closeness of 10000.
717 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
719 2001-07-29 Baruch Even <baruch@lyx.org>
721 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
724 2001-07-23 Baruch Even <baruch@lyx.org>
726 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
727 the image after conversion.
729 2001-07-17 Baruch Even <baruch@lyx.org>
731 * GraphicsCacheItem.h:
732 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
733 from synchronous to asynchronous and to ease the coming changes.
735 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
737 * ImageLoaderXPM.C (runImageLoader): get display information from
740 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
743 * GraphicsCacheItem.C:
745 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
747 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
749 * GraphicsCache.h: inherit privately from noncopyable
750 * ImageLoader.h: ditto
751 * GraphicsCacheItem.h: ditto
753 2001-04-16 Allan Rae <rae@lyx.org>
755 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
756 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
759 2001-04-02 Baruch Even <baruch@lyx.org>
761 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
762 of hard coding ImageMagick.
764 2001-03-10 Baruch Even <baruch@lyx.org>
766 * GraphicsCache.C: Style change from (*it).field to it->field
768 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
770 * GraphicsCache.h: noncopyable is in namespace boost
771 * ImageLoader.h: ditto
772 * GraphicsCacheItem.h: ditto
774 2001-03-07 Baruch Even <baruch@lyx.org>
776 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
777 was false and it's not needed anyhow since the shared_ptr's in the cache
778 will destroy everything on exit.
780 2001-02-28 Baruch Even <baruch@ev-en.org>
783 * GraphicsCache.C: Changed the singleton pattern implementation, the
784 former version "leaked" in the sense that it was not deallocated at
787 2001-02-20 Baruch Even <baruch@ev-en.org>
789 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
790 instead of a pure pointer.
792 * GraphicsCacheItem.[Ch]:
793 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
794 removed the reference counting that was inside. Also fixed a bug where
795 a temporary file wouldn't get erased.
797 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
798 Ownership is now dropped when the caller requests the image_ pointer.
800 2001-02-20 Baruch Even <baruch@ev-en.org>
802 * GraphicsCache.C: Cleared up the confusion on when and how it is
805 * GraphicsCacheItem.C: Indentation change.
807 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
808 figure correctly when the image has been loaded successfully.
810 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
812 * ImageLoader.C: add a "using" directive.
814 * ImageLoader.h: remove extra comma at the end of enum; add an
815 std:: qualifier for vector.
817 2001-01-21 Baruch Even <baruch@ev-en.org>
819 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
820 height in the image itself and minor cleanups.
822 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
823 new ImageLoader class instead of the older Renderer class. This
824 means change of responsibilities.