1 2002-10-18 Angus Leeming <leeming@lyx.org>
3 * GraphicsCacheItem.C (findTargetFormat): add debug message.
5 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
7 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
9 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
11 * GraphicsConverter.C (build_script): do not use ChangeExtension
15 2002-09-05 Angus Leeming <leeming@lyx.org>
17 * all files: modify the headers as discussed on the list.
19 2002-09-04 Angus Leeming <leeming@lyx.org>
21 * PreviewLoader.C (startLoading): pass the desired output format to the
24 2002-09-04 Angus Leeming <leeming@lyx.org>
26 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
28 2002-09-03 Angus Leeming <leeming@lyx.org>
30 * PreviewLoader.C: fix crash reported by Norbert Koksch when
31 generating more than 999 preview snippets. Use filenames with 5 digit
32 numbers, not 3, in the first instance, although more general code is
33 commented out. I don't suppose /anyone/ has 100000 formulae in one
36 2002-09-03 Angus Leeming <leeming@lyx.org>
38 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
40 2002-09-03 Angus Leeming <leeming@lyx.org>
42 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
44 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
46 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
47 convertDefault command with "sh ".
49 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
51 * GraphicsImage.C: small style fix to width/height setting.
53 * GraphicsTypes.h: have a displayTranslator here.
56 * GraphicsTypes.C: new file added for the setDisplayTranslator();
58 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
61 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
62 because this input has gone from the graphics dialog.
64 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
66 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
68 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
69 for support/smart_ptr.h, switch to boost smart ptr.
71 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
72 (~Data): let the smart_ptr handle cleanup
73 (reset): use nifty 3rd arg
75 (free_color_table): free the table manually
77 2002-08-09 Angus Leeming <leeming@lyx.org>
79 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
80 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
81 input@path is now set correctly.
83 2002-08-06 Angus Leeming <leeming@lyx.org>
85 * PreviewLoader.C: add support for preview.sty 0.73 (currently
86 #ifdef-ed out, awaiting the formal release).
88 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
89 the contents of a file that has changed.
91 2002-08-05 Angus Leeming <leeming@lyx.org>
93 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
94 to preview.sty. Works only for versions of preview.sty > 0.72b but
95 doesn't hurt earlier versions. Allows me to test the new parsing of
96 LyX-specific data from the generated log file.
98 2002-08-02 Angus Leeming <leeming@lyx.org>
100 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
102 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
103 (add): don't add empty snippets.
105 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
106 (view, setView): access to to the cache_.
108 2002-08-02 Angus Leeming <leeming@lyx.org>
110 * PreviewedInset.[Ch]: cache the LaTeX snippet.
112 2002-08-01 Angus Leeming <leeming@lyx.org>
114 * PreviewedInset.[Ch]: new files. An abstract base class that can help
115 insets to generate previews.
116 The daughter class must instantiate three small methods.
117 The Inset would own an instance of this daughter class and invoke it
118 as necessary. For example, mathd/formula.C gets previews at the cost
119 of 15 or so lines of code.
121 * Makefile.am: add PreviewedInset.[Ch].
123 * PreviewLoader.C (add): add debug message.
125 * Previews.C (generateBufferPreviews): remove if-block from loop.
127 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
129 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
131 (setAscentFractions): ditto
133 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
135 * PreviewLoader.C (setAscentFractions): modify because of strip
138 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
140 * GraphicsConverter.C (build_script): take a ostream as a more
141 general argument than ostringstream.
143 2002-07-22 Herbert Voss <voss@lyx.org>
145 * GraphicsConverter.C: get the "default converter" run again
147 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
149 * PreviewLoader.C: use BufferParams::getLyXTextClass
151 2002-07-21 Herbert Voss <voss@lyx.org>
153 * GraphicsImage.C: get the LyXAspectRatio run.
155 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
157 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
159 * PreviewLoader.C (startLoading): pass an interger as resolution
160 to the lyxpreview converter
162 * GraphicsParams.C: include <cstdlib>
164 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
166 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
167 preview converter script
169 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
171 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
174 2002-07-18 Angus Leeming <leeming@lyx.org>
176 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
178 (startMonitoring, monitoring, checksum): new methods to interact with
181 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
182 methods invoking the CacheItem methods of the same name.
183 (resetFile): if monitoring and the file changes, start monitoring this
186 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
188 * Makefile.am: remove FileMonitor.[Ch]
190 2002-06-17 Herbert Voss <voss@lyx.org>
192 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
193 for old ps-files (Garst). It's now handled by defining a converter and
194 disabling the ps-support of xforms.
196 2002-07-17 Angus Leeming <leeming@lyx.org>
198 Be true to the Pimpl idiom, moving all signals into the respective
199 Impl classes and defining methods to connect them to an outside slot.
200 Const-ify all visible class methods as they act only on a const pimpl_.
202 * GraphicsCache.[Ch] (add, remove): const-ify.
204 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
205 (statusChanged): move the signal into the Impl class.
206 (connect): new method, enabling a listener to connect to this signal.
208 * GraphicsConverter.[Ch]: (startConversion): const-ify.
209 (finishedConversion): move the signal into the Impl class.
210 (connect): new method, enabling a listener to connect to this signal.
212 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
213 (statusChanged): move the signal into the Impl class.
214 (connect): new method, enabling a listener to connect to this signal.
216 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
217 (imageReady): move the signal into the Impl class.
218 (connect): new method, enabling a listener to connect to this signal.
219 (emitSignal): new method, enabling PreviewImage to tell the outside
220 world that the file has been loaded into memory.
222 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
226 * GraphicsCacheItem.C:
227 * GraphicsConverter.[Ch]:
229 * GraphicsImageXPM.C:
231 * PreviewLoader.[Ch]: whitespace clean-up.
233 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
235 * PreviewLoader.C (setConverter): remove unused variable
237 * GraphicsImageXPM.C (isDrawable): implement
238 (setPixmap): the opaque color is black, not white
240 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
242 * GraphicsImageXPM.C (color_none_id):
243 (contains_color_none): use ascii_lowercase instead of lowercase
245 2002-07-16 Angus Leeming <leeming@lyx.org>
247 * PreviewLoader.C: greater use of STL algorithms.
249 * Previews.[Ch]: use const in more places.
250 (generateBufferPreviews): now takes a Buffer const & argument, not a
253 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
255 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
257 2002-07-12 Angus Leeming <leeming@lyx.org>
259 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
260 if visible 2 secs after the call to load them is first made.
262 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
263 BufferView to ascertain whether the inset is visible or not.
265 * Makefile.am: added GraphicsSupport.[Ch].
267 * PreviewImage.[Ch]: use this smart loader.
269 * PreviewLoader.C: don't load generated image files indiscimminantly.
270 Instead emit the imageReady signal and allow the image owner to decide.
272 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
274 * GraphicsCache.C: remove init_graphics()
276 2002-07-09 Angus Leeming <leeming@lyx.org>
278 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
279 arithmetic when it should be floating.
281 2002-07-09 Angus Leeming <leeming@lyx.org>
283 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
284 Output equation labels as "(#)" if lyxrc preference is set.
285 (setFontScalingFactor): use lyxrc variable preview_scale_factor
286 rather than hard-coding this.
288 2002-07-09 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C: Further refactoring of the code. Should now be
293 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
294 past its sell-by date. The code to read the metrics file is now found
295 as a helper function in PreviewLoader.C.
297 * GraphicsImageXPM.C (scale): use boost::tie.
299 2002-07-08 Herbert Voss <voss@lyx.org>
301 * PreviewLoader.C: use of preview_size_factor to get the right
302 font-size! 0.9 is the default.
304 2002-07-08 Angus Leeming <leeming@lyx.org>
306 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
307 invocation of preview.sty.
308 Perform something of an internal clean-up.
310 2002-07-06 Angus Leeming <leeming@lyx.org>
312 * PreviewLoader.C: ensure that the metrics data is used by the
316 * PreviewImage.C: (Impl d-tor): remove all generated files that still
317 exist (perhaps because the process was curtailed before the images
320 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
322 2002-07-05 Angus Leeming <leeming@lyx.org>
331 * Previews.C: new files. The previewed LaTeX snippet stuff.
333 * Makefile.am: add these files.
335 2002-07-05 Angus Leeming <leeming@lyx.org>
337 * GraphicsLoader.h: whitespace.
339 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
341 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
342 boost::function from boost::signal.
344 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
346 * GraphicsConverter.C (convert): do not use ChangeExtension
347 because to_file_base may contain a dot.
349 2002-06-28 Angus Leeming <leeming@lyx.org>
351 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
352 by moving those SignalPtrs into the grfx::Image and grfx::Converter
353 classes where they really belong.
354 Use the Pimpl idiom to hide the class internals from public view.
356 * GraphicsTypes: remove the typedefs, leaving only the enums.
358 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
359 passed a reference to one in the load() method.
361 * GraphicsConverter.[Ch]: totally refactored. An instance of
362 grfx::Converter now represents a single conversion process.
363 Thus grfx::CachItem now has a grfx::Converter * that is set when the
364 conversion is initiated and destroyed on completion.
366 * GraphicsCache.[Ch]:
367 * GraphicsCacheItem.[Ch]:
368 * GraphicsConverter.[Ch]:
369 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
371 Note that I have done this only after making the above changes,
372 so not only should we have a clean, minimal and well documented
373 interface to these classes in the header files, but the class internals
374 should be much clearer too.
377 grfx::GCache -> grfx::Cache,
378 grfx::GCacheItem -> grfx::CacheItem,
379 grfx::GConverter -> grfx::Converter,
380 grfx::GImage -> grfx::Image,
381 grfx::GImageXPM -> grfx::ImageXPM,
382 grfx::GParams -> grfx::Params.
384 2002-06-26 Angus Leeming <leeming@lyx.org>
386 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
387 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
390 2002-06-26 Angus Leeming <leeming@lyx.org>
392 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
393 move the DisplayType enum out of grfx::GParams to here.
395 * GraphicsCacheItem.h: re-write preliminary description to reflect
398 * GraphicsParams.[Ch]:
399 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
400 grfx::DisplayType out of grfx::GParams.
402 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
403 that was in frontends/screen.C and insets/insetgraphics.C into a
404 single, easy-to-use class.
406 * Makefile.am: add these files.
408 2002-06-25 Angus Leeming <leeming@lyx.org>
410 * GraphicsCache.[Ch]:
411 * GraphicsCacheItem.[Ch]:
412 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
413 file into memory. The cache no longer controls the generation of the
414 pixmap. Instead, it just emits a signal when the loading status of an
416 The cache no longer stores InsetGraphics pointers and nor does it
417 assume responsibility for modifying an image (scaling, rotating etc).
418 Instead, that must now be performed elsewhere.
420 2002-06-19 Angus Leeming <leeming@lyx.org>
422 * GraphicsConverter.C: add using std::endl directive.
424 2002-06-17 Herbert Voss <voss@lyx.org>
426 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
427 default when nothing different was found
428 (convertToDisplayFormat): handle zipped files in the right way and
429 choose always convert as a default converter when no other
430 userdefined was found
432 * GraphicsConverter.C: add more lyxerr comments and choose
433 convert when no other userdefined converter was found
435 2002-06-10 Herbert Voss <voss@lyx.org>
437 * GraphicsImageXPM.C (convertTo7chars): get another special color
438 format from convert work in the right way
440 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
442 * GraphicsCache.C: use right colormap incantation
444 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
446 * GraphicsCache.C: use lyx_gui namespace
448 * GraphicsImageXPM.C: back down to using xforms
451 2002-06-07 Angus Leeming <leeming@lyx.org>
453 Fixes needed to compile with Compaq cxx 6.5.
454 * GraphicsConverter.h: forward declare class ConvProcess.
456 * GraphicsImageXPM.C:
457 all c-library variables have been moved into namespace std.
458 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
460 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
462 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
464 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
466 * GraphicsImageXPM.C: SigC to boot::signals changes.
467 (newImage): fix () bug when using new.
469 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
471 * switch from SigC signals to boost::signals.
473 2002-05-29 André Pönitz <poenitz@gmx.net>
475 * GraphicsParam.C: remove unneeded #include, move vomment
477 2002-05-28 André Pönitz <poenitz@gmx.net>
479 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
481 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
483 * GraphicsImageXPM.C: ColorHandler moved
485 2002-05-24 Juergen Vigna <jug@sad.it>
488 * GraphicsImage.h: include LString.h first.
490 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
492 * GraphicsCacheItem.h: use more specific smart_ptr header.
493 * GraphicsTypes.h: ditto
494 * GraphicsImage.h: ditto
495 * GraphicsConverter.h: ditto
497 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
499 * GraphicsImageXPM.C: understand convert's use of "opaque"
502 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
504 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
505 GImage::loadableFormats() that ensures that the signal is connected
506 to the derived class' method.
508 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
510 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
511 only work on the string.
513 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
515 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
516 the simple image loader when it encounters colour strings like
519 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
521 * GraphicsCacheItem.C (convertToDisplayFormat):
522 * GraphicsConverter.C (build_script): remove the Alerts when things go
523 wrong as the inset displays the message anyway. Moreover, Alert seems
524 pretty temperamemtal at the moment.
526 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
528 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
530 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
532 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
533 a reference to a temp object that's going out of scope...
535 2002-04-09 Herbert Voss <voss@lyx.org>
537 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
538 LyXLength::inBP instead of inPixels.
540 2002-04-10 Herbert Voss <voss@perce.de>
542 * GraphicsCache.[Ch]:
543 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
544 to read the "Bounding Box" from non (e)ps files.
546 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
548 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
549 the EPS file too, to ensure that the clipped Bounding Box is relative
550 to the original. (From Herbert.)
552 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
554 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
555 variables are initialised. Clean-up parsing of the string (with thanks
558 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
560 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
561 if the file can't be found.
563 * GraphicsParams.h (c-tor): remove string() as default argument.
565 * GraphicsCacheItem.C: a couple of changes as a result.
567 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
569 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
570 path to graphics file.
572 * GraphicsParams.[Ch] (c-tor): now passed filepath.
574 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
576 * most files: ws cleanup
578 * Makefile.am: remove ld -r stuff
580 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
582 * Makefile.am: special rules if partial linking
584 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
586 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
588 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
590 * GraphicsConverter.[Ch] (converted): make first arg const ref.
592 * GraphicsCacheItem.h: doxy change
594 * GraphicsCacheItem.C: ws change
596 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
598 * Makefile.am: if there is no image loading class leveraging the power
599 of the appropriate gui library, then compile the basic alternative
600 found in GraphicsImageXPM.[Ch].
602 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
604 * GraphicsCache.C: change associated with move of initialiseGraphics
607 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
609 * GraphicsParams.[Ch]:
611 * GraphicsImageXPM.C: properly resolve more warnings about comparison
612 between signed and unsigned integer expressions.
614 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
616 * GraphicsCache.C: move connections to the GImage-derived classes to
619 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
621 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
622 conversion, then do that.
624 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
626 * GraphicsCache.C: improve commentary to graphicsInit and where it
629 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
630 that became a memory leak properly. (Let the shared_c_ptr free the
632 (reset, mapcolor): tidy up and introduce a work around for XPM files
633 with crappy color entries. Print out a nice friendly message on what's
634 gone wrong and how to resolve it properly.
636 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
638 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
639 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
641 (unique_color_string): use the correct string c-tor.
643 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
646 * ImageLoaderXPM.[Ch]: removed.
648 * GraphicsConverter.[Ch]:
649 * GraphicsImage.[Ch]:
650 * GraphicsImageXPM.[Ch]:
651 * GraphicsParams.[Ch]:
652 * GraphicsTypes.h: new files.
654 * All files. A total re-write of the graphics cache. The cache now
655 supports asynchronous file conversion and file loading. Images
656 can be cropped, rotated and scaled for display on the LyX screen.
657 The old LyXImage and ImageLoader have been combined in a new class
658 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
661 2002-02-07 Herbert Voss <voss@lyx.org>
663 * GraphicsCacheItem.C: use unzipFile() from support/filetools
665 2002-01-31 Herbert Voss <voss@lyx.org>
667 * GraphicsCacheItem.h: handle filetype without the file extension;
668 getting type from contents; handle zipped files
670 2002-01-27 Herbert Voss <voss@lyx.org>
672 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
674 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
676 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
678 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
680 * GraphicsCacheItem.h: do not include <config.h> in header files
682 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
684 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
685 transparent colour, then set it to the colour of the background.
686 Also take account of the monochrome, grayscale of color
689 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
691 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
692 are different. Thus, don't delete the "to" if it's the original!
694 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
696 * ImageLoadXPM.C: remove setting of alloc colour mask,
697 led to crash as we don't define a callback
699 2001-07-29 Baruch Even <baruch@lyx.org>
701 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
702 colors with closeness of 10000.
704 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
706 2001-07-29 Baruch Even <baruch@lyx.org>
708 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
711 2001-07-23 Baruch Even <baruch@lyx.org>
713 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
714 the image after conversion.
716 2001-07-17 Baruch Even <baruch@lyx.org>
718 * GraphicsCacheItem.h:
719 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
720 from synchronous to asynchronous and to ease the coming changes.
722 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
724 * ImageLoaderXPM.C (runImageLoader): get display information from
727 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
730 * GraphicsCacheItem.C:
732 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
734 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
736 * GraphicsCache.h: inherit privately from noncopyable
737 * ImageLoader.h: ditto
738 * GraphicsCacheItem.h: ditto
740 2001-04-16 Allan Rae <rae@lyx.org>
742 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
743 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
746 2001-04-02 Baruch Even <baruch@lyx.org>
748 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
749 of hard coding ImageMagick.
751 2001-03-10 Baruch Even <baruch@lyx.org>
753 * GraphicsCache.C: Style change from (*it).field to it->field
755 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
757 * GraphicsCache.h: noncopyable is in namespace boost
758 * ImageLoader.h: ditto
759 * GraphicsCacheItem.h: ditto
761 2001-03-07 Baruch Even <baruch@lyx.org>
763 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
764 was false and it's not needed anyhow since the shared_ptr's in the cache
765 will destroy everything on exit.
767 2001-02-28 Baruch Even <baruch@ev-en.org>
770 * GraphicsCache.C: Changed the singleton pattern implementation, the
771 former version "leaked" in the sense that it was not deallocated at
774 2001-02-20 Baruch Even <baruch@ev-en.org>
776 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
777 instead of a pure pointer.
779 * GraphicsCacheItem.[Ch]:
780 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
781 removed the reference counting that was inside. Also fixed a bug where
782 a temporary file wouldn't get erased.
784 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
785 Ownership is now dropped when the caller requests the image_ pointer.
787 2001-02-20 Baruch Even <baruch@ev-en.org>
789 * GraphicsCache.C: Cleared up the confusion on when and how it is
792 * GraphicsCacheItem.C: Indentation change.
794 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
795 figure correctly when the image has been loaded successfully.
797 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
799 * ImageLoader.C: add a "using" directive.
801 * ImageLoader.h: remove extra comma at the end of enum; add an
802 std:: qualifier for vector.
804 2001-01-21 Baruch Even <baruch@ev-en.org>
806 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
807 height in the image itself and minor cleanups.
809 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
810 new ImageLoader class instead of the older Renderer class. This
811 means change of responsibilities.