1 2002-09-05 Angus Leeming <leeming@lyx.org>
3 * all files: modify the headers as discussed on the list.
5 2002-09-04 Angus Leeming <leeming@lyx.org>
7 * PreviewLoader.C (startLoading): pass the desired output format to the
10 2002-09-04 Angus Leeming <leeming@lyx.org>
12 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
14 2002-09-03 Angus Leeming <leeming@lyx.org>
16 * PreviewLoader.C: fix crash reported by Norbert Koksch when
17 generating more than 999 preview snippets. Use filenames with 5 digit
18 numbers, not 3, in the first instance, although more general code is
19 commented out. I don't suppose /anyone/ has 100000 formulae in one
22 2002-09-03 Angus Leeming <leeming@lyx.org>
24 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
26 2002-09-03 Angus Leeming <leeming@lyx.org>
28 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
30 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
32 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
33 convertDefault command with "sh ".
35 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
37 * GraphicsImage.C: small style fix to width/height setting.
39 * GraphicsTypes.h: have a displayTranslator here.
42 * GraphicsTypes.C: new file added for the setDisplayTranslator();
44 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
47 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
48 because this input has gone from the graphics dialog.
50 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
52 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
54 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
55 for support/smart_ptr.h, switch to boost smart ptr.
57 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
58 (~Data): let the smart_ptr handle cleanup
59 (reset): use nifty 3rd arg
61 (free_color_table): free the table manually
63 2002-08-09 Angus Leeming <leeming@lyx.org>
65 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
66 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
67 input@path is now set correctly.
69 2002-08-06 Angus Leeming <leeming@lyx.org>
71 * PreviewLoader.C: add support for preview.sty 0.73 (currently
72 #ifdef-ed out, awaiting the formal release).
74 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
75 the contents of a file that has changed.
77 2002-08-05 Angus Leeming <leeming@lyx.org>
79 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
80 to preview.sty. Works only for versions of preview.sty > 0.72b but
81 doesn't hurt earlier versions. Allows me to test the new parsing of
82 LyX-specific data from the generated log file.
84 2002-08-02 Angus Leeming <leeming@lyx.org>
86 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
88 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
89 (add): don't add empty snippets.
91 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
92 (view, setView): access to to the cache_.
94 2002-08-02 Angus Leeming <leeming@lyx.org>
96 * PreviewedInset.[Ch]: cache the LaTeX snippet.
98 2002-08-01 Angus Leeming <leeming@lyx.org>
100 * PreviewedInset.[Ch]: new files. An abstract base class that can help
101 insets to generate previews.
102 The daughter class must instantiate three small methods.
103 The Inset would own an instance of this daughter class and invoke it
104 as necessary. For example, mathd/formula.C gets previews at the cost
105 of 15 or so lines of code.
107 * Makefile.am: add PreviewedInset.[Ch].
109 * PreviewLoader.C (add): add debug message.
111 * Previews.C (generateBufferPreviews): remove if-block from loop.
113 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
115 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
117 (setAscentFractions): ditto
119 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
121 * PreviewLoader.C (setAscentFractions): modify because of strip
124 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
126 * GraphicsConverter.C (build_script): take a ostream as a more
127 general argument than ostringstream.
129 2002-07-22 Herbert Voss <voss@lyx.org>
131 * GraphicsConverter.C: get the "default converter" run again
133 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
135 * PreviewLoader.C: use BufferParams::getLyXTextClass
137 2002-07-21 Herbert Voss <voss@lyx.org>
139 * GraphicsImage.C: get the LyXAspectRatio run.
141 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
143 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
145 * PreviewLoader.C (startLoading): pass an interger as resolution
146 to the lyxpreview converter
148 * GraphicsParams.C: include <cstdlib>
150 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
152 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
153 preview converter script
155 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
157 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
160 2002-07-18 Angus Leeming <leeming@lyx.org>
162 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
164 (startMonitoring, monitoring, checksum): new methods to interact with
167 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
168 methods invoking the CacheItem methods of the same name.
169 (resetFile): if monitoring and the file changes, start monitoring this
172 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
174 * Makefile.am: remove FileMonitor.[Ch]
176 2002-06-17 Herbert Voss <voss@lyx.org>
178 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
179 for old ps-files (Garst). It's now handled by defining a converter and
180 disabling the ps-support of xforms.
182 2002-07-17 Angus Leeming <leeming@lyx.org>
184 Be true to the Pimpl idiom, moving all signals into the respective
185 Impl classes and defining methods to connect them to an outside slot.
186 Const-ify all visible class methods as they act only on a const pimpl_.
188 * GraphicsCache.[Ch] (add, remove): const-ify.
190 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
191 (statusChanged): move the signal into the Impl class.
192 (connect): new method, enabling a listener to connect to this signal.
194 * GraphicsConverter.[Ch]: (startConversion): const-ify.
195 (finishedConversion): move the signal into the Impl class.
196 (connect): new method, enabling a listener to connect to this signal.
198 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
199 (statusChanged): move the signal into the Impl class.
200 (connect): new method, enabling a listener to connect to this signal.
202 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
203 (imageReady): move the signal into the Impl class.
204 (connect): new method, enabling a listener to connect to this signal.
205 (emitSignal): new method, enabling PreviewImage to tell the outside
206 world that the file has been loaded into memory.
208 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
212 * GraphicsCacheItem.C:
213 * GraphicsConverter.[Ch]:
215 * GraphicsImageXPM.C:
217 * PreviewLoader.[Ch]: whitespace clean-up.
219 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
221 * PreviewLoader.C (setConverter): remove unused variable
223 * GraphicsImageXPM.C (isDrawable): implement
224 (setPixmap): the opaque color is black, not white
226 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
228 * GraphicsImageXPM.C (color_none_id):
229 (contains_color_none): use ascii_lowercase instead of lowercase
231 2002-07-16 Angus Leeming <leeming@lyx.org>
233 * PreviewLoader.C: greater use of STL algorithms.
235 * Previews.[Ch]: use const in more places.
236 (generateBufferPreviews): now takes a Buffer const & argument, not a
239 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
241 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
243 2002-07-12 Angus Leeming <leeming@lyx.org>
245 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
246 if visible 2 secs after the call to load them is first made.
248 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
249 BufferView to ascertain whether the inset is visible or not.
251 * Makefile.am: added GraphicsSupport.[Ch].
253 * PreviewImage.[Ch]: use this smart loader.
255 * PreviewLoader.C: don't load generated image files indiscimminantly.
256 Instead emit the imageReady signal and allow the image owner to decide.
258 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
260 * GraphicsCache.C: remove init_graphics()
262 2002-07-09 Angus Leeming <leeming@lyx.org>
264 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
265 arithmetic when it should be floating.
267 2002-07-09 Angus Leeming <leeming@lyx.org>
269 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
270 Output equation labels as "(#)" if lyxrc preference is set.
271 (setFontScalingFactor): use lyxrc variable preview_scale_factor
272 rather than hard-coding this.
274 2002-07-09 Angus Leeming <leeming@lyx.org>
276 * PreviewLoader.C: Further refactoring of the code. Should now be
279 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
280 past its sell-by date. The code to read the metrics file is now found
281 as a helper function in PreviewLoader.C.
283 * GraphicsImageXPM.C (scale): use boost::tie.
285 2002-07-08 Herbert Voss <voss@lyx.org>
287 * PreviewLoader.C: use of preview_size_factor to get the right
288 font-size! 0.9 is the default.
290 2002-07-08 Angus Leeming <leeming@lyx.org>
292 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
293 invocation of preview.sty.
294 Perform something of an internal clean-up.
296 2002-07-06 Angus Leeming <leeming@lyx.org>
298 * PreviewLoader.C: ensure that the metrics data is used by the
302 * PreviewImage.C: (Impl d-tor): remove all generated files that still
303 exist (perhaps because the process was curtailed before the images
306 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
308 2002-07-05 Angus Leeming <leeming@lyx.org>
317 * Previews.C: new files. The previewed LaTeX snippet stuff.
319 * Makefile.am: add these files.
321 2002-07-05 Angus Leeming <leeming@lyx.org>
323 * GraphicsLoader.h: whitespace.
325 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
327 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
328 boost::function from boost::signal.
330 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
332 * GraphicsConverter.C (convert): do not use ChangeExtension
333 because to_file_base may contain a dot.
335 2002-06-28 Angus Leeming <leeming@lyx.org>
337 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
338 by moving those SignalPtrs into the grfx::Image and grfx::Converter
339 classes where they really belong.
340 Use the Pimpl idiom to hide the class internals from public view.
342 * GraphicsTypes: remove the typedefs, leaving only the enums.
344 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
345 passed a reference to one in the load() method.
347 * GraphicsConverter.[Ch]: totally refactored. An instance of
348 grfx::Converter now represents a single conversion process.
349 Thus grfx::CachItem now has a grfx::Converter * that is set when the
350 conversion is initiated and destroyed on completion.
352 * GraphicsCache.[Ch]:
353 * GraphicsCacheItem.[Ch]:
354 * GraphicsConverter.[Ch]:
355 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
357 Note that I have done this only after making the above changes,
358 so not only should we have a clean, minimal and well documented
359 interface to these classes in the header files, but the class internals
360 should be much clearer too.
363 grfx::GCache -> grfx::Cache,
364 grfx::GCacheItem -> grfx::CacheItem,
365 grfx::GConverter -> grfx::Converter,
366 grfx::GImage -> grfx::Image,
367 grfx::GImageXPM -> grfx::ImageXPM,
368 grfx::GParams -> grfx::Params.
370 2002-06-26 Angus Leeming <leeming@lyx.org>
372 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
373 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
376 2002-06-26 Angus Leeming <leeming@lyx.org>
378 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
379 move the DisplayType enum out of grfx::GParams to here.
381 * GraphicsCacheItem.h: re-write preliminary description to reflect
384 * GraphicsParams.[Ch]:
385 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
386 grfx::DisplayType out of grfx::GParams.
388 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
389 that was in frontends/screen.C and insets/insetgraphics.C into a
390 single, easy-to-use class.
392 * Makefile.am: add these files.
394 2002-06-25 Angus Leeming <leeming@lyx.org>
396 * GraphicsCache.[Ch]:
397 * GraphicsCacheItem.[Ch]:
398 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
399 file into memory. The cache no longer controls the generation of the
400 pixmap. Instead, it just emits a signal when the loading status of an
402 The cache no longer stores InsetGraphics pointers and nor does it
403 assume responsibility for modifying an image (scaling, rotating etc).
404 Instead, that must now be performed elsewhere.
406 2002-06-19 Angus Leeming <leeming@lyx.org>
408 * GraphicsConverter.C: add using std::endl directive.
410 2002-06-17 Herbert Voss <voss@lyx.org>
412 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
413 default when nothing different was found
414 (convertToDisplayFormat): handle zipped files in the right way and
415 choose always convert as a default converter when no other
416 userdefined was found
418 * GraphicsConverter.C: add more lyxerr comments and choose
419 convert when no other userdefined converter was found
421 2002-06-10 Herbert Voss <voss@lyx.org>
423 * GraphicsImageXPM.C (convertTo7chars): get another special color
424 format from convert work in the right way
426 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
428 * GraphicsCache.C: use right colormap incantation
430 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
432 * GraphicsCache.C: use lyx_gui namespace
434 * GraphicsImageXPM.C: back down to using xforms
437 2002-06-07 Angus Leeming <leeming@lyx.org>
439 Fixes needed to compile with Compaq cxx 6.5.
440 * GraphicsConverter.h: forward declare class ConvProcess.
442 * GraphicsImageXPM.C:
443 all c-library variables have been moved into namespace std.
444 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
446 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
448 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
450 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
452 * GraphicsImageXPM.C: SigC to boot::signals changes.
453 (newImage): fix () bug when using new.
455 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
457 * switch from SigC signals to boost::signals.
459 2002-05-29 André Pönitz <poenitz@gmx.net>
461 * GraphicsParam.C: remove unneeded #include, move vomment
463 2002-05-28 André Pönitz <poenitz@gmx.net>
465 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
467 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
469 * GraphicsImageXPM.C: ColorHandler moved
471 2002-05-24 Juergen Vigna <jug@sad.it>
474 * GraphicsImage.h: include LString.h first.
476 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
478 * GraphicsCacheItem.h: use more specific smart_ptr header.
479 * GraphicsTypes.h: ditto
480 * GraphicsImage.h: ditto
481 * GraphicsConverter.h: ditto
483 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
485 * GraphicsImageXPM.C: understand convert's use of "opaque"
488 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
490 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
491 GImage::loadableFormats() that ensures that the signal is connected
492 to the derived class' method.
494 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
496 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
497 only work on the string.
499 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
501 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
502 the simple image loader when it encounters colour strings like
505 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
507 * GraphicsCacheItem.C (convertToDisplayFormat):
508 * GraphicsConverter.C (build_script): remove the Alerts when things go
509 wrong as the inset displays the message anyway. Moreover, Alert seems
510 pretty temperamemtal at the moment.
512 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
514 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
516 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
518 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
519 a reference to a temp object that's going out of scope...
521 2002-04-09 Herbert Voss <voss@lyx.org>
523 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
524 LyXLength::inBP instead of inPixels.
526 2002-04-10 Herbert Voss <voss@perce.de>
528 * GraphicsCache.[Ch]:
529 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
530 to read the "Bounding Box" from non (e)ps files.
532 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
534 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
535 the EPS file too, to ensure that the clipped Bounding Box is relative
536 to the original. (From Herbert.)
538 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
540 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
541 variables are initialised. Clean-up parsing of the string (with thanks
544 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
546 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
547 if the file can't be found.
549 * GraphicsParams.h (c-tor): remove string() as default argument.
551 * GraphicsCacheItem.C: a couple of changes as a result.
553 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
555 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
556 path to graphics file.
558 * GraphicsParams.[Ch] (c-tor): now passed filepath.
560 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
562 * most files: ws cleanup
564 * Makefile.am: remove ld -r stuff
566 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
568 * Makefile.am: special rules if partial linking
570 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
572 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
574 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
576 * GraphicsConverter.[Ch] (converted): make first arg const ref.
578 * GraphicsCacheItem.h: doxy change
580 * GraphicsCacheItem.C: ws change
582 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
584 * Makefile.am: if there is no image loading class leveraging the power
585 of the appropriate gui library, then compile the basic alternative
586 found in GraphicsImageXPM.[Ch].
588 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
590 * GraphicsCache.C: change associated with move of initialiseGraphics
593 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
595 * GraphicsParams.[Ch]:
597 * GraphicsImageXPM.C: properly resolve more warnings about comparison
598 between signed and unsigned integer expressions.
600 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
602 * GraphicsCache.C: move connections to the GImage-derived classes to
605 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
607 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
608 conversion, then do that.
610 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
612 * GraphicsCache.C: improve commentary to graphicsInit and where it
615 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
616 that became a memory leak properly. (Let the shared_c_ptr free the
618 (reset, mapcolor): tidy up and introduce a work around for XPM files
619 with crappy color entries. Print out a nice friendly message on what's
620 gone wrong and how to resolve it properly.
622 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
624 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
625 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
627 (unique_color_string): use the correct string c-tor.
629 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
632 * ImageLoaderXPM.[Ch]: removed.
634 * GraphicsConverter.[Ch]:
635 * GraphicsImage.[Ch]:
636 * GraphicsImageXPM.[Ch]:
637 * GraphicsParams.[Ch]:
638 * GraphicsTypes.h: new files.
640 * All files. A total re-write of the graphics cache. The cache now
641 supports asynchronous file conversion and file loading. Images
642 can be cropped, rotated and scaled for display on the LyX screen.
643 The old LyXImage and ImageLoader have been combined in a new class
644 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
647 2002-02-07 Herbert Voss <voss@lyx.org>
649 * GraphicsCacheItem.C: use unzipFile() from support/filetools
651 2002-01-31 Herbert Voss <voss@lyx.org>
653 * GraphicsCacheItem.h: handle filetype without the file extension;
654 getting type from contents; handle zipped files
656 2002-01-27 Herbert Voss <voss@lyx.org>
658 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
660 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
662 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
664 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
666 * GraphicsCacheItem.h: do not include <config.h> in header files
668 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
670 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
671 transparent colour, then set it to the colour of the background.
672 Also take account of the monochrome, grayscale of color
675 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
677 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
678 are different. Thus, don't delete the "to" if it's the original!
680 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
682 * ImageLoadXPM.C: remove setting of alloc colour mask,
683 led to crash as we don't define a callback
685 2001-07-29 Baruch Even <baruch@lyx.org>
687 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
688 colors with closeness of 10000.
690 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
692 2001-07-29 Baruch Even <baruch@lyx.org>
694 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
697 2001-07-23 Baruch Even <baruch@lyx.org>
699 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
700 the image after conversion.
702 2001-07-17 Baruch Even <baruch@lyx.org>
704 * GraphicsCacheItem.h:
705 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
706 from synchronous to asynchronous and to ease the coming changes.
708 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
710 * ImageLoaderXPM.C (runImageLoader): get display information from
713 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
716 * GraphicsCacheItem.C:
718 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
720 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
722 * GraphicsCache.h: inherit privately from noncopyable
723 * ImageLoader.h: ditto
724 * GraphicsCacheItem.h: ditto
726 2001-04-16 Allan Rae <rae@lyx.org>
728 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
729 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
732 2001-04-02 Baruch Even <baruch@lyx.org>
734 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
735 of hard coding ImageMagick.
737 2001-03-10 Baruch Even <baruch@lyx.org>
739 * GraphicsCache.C: Style change from (*it).field to it->field
741 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
743 * GraphicsCache.h: noncopyable is in namespace boost
744 * ImageLoader.h: ditto
745 * GraphicsCacheItem.h: ditto
747 2001-03-07 Baruch Even <baruch@lyx.org>
749 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
750 was false and it's not needed anyhow since the shared_ptr's in the cache
751 will destroy everything on exit.
753 2001-02-28 Baruch Even <baruch@ev-en.org>
756 * GraphicsCache.C: Changed the singleton pattern implementation, the
757 former version "leaked" in the sense that it was not deallocated at
760 2001-02-20 Baruch Even <baruch@ev-en.org>
762 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
763 instead of a pure pointer.
765 * GraphicsCacheItem.[Ch]:
766 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
767 removed the reference counting that was inside. Also fixed a bug where
768 a temporary file wouldn't get erased.
770 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
771 Ownership is now dropped when the caller requests the image_ pointer.
773 2001-02-20 Baruch Even <baruch@ev-en.org>
775 * GraphicsCache.C: Cleared up the confusion on when and how it is
778 * GraphicsCacheItem.C: Indentation change.
780 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
781 figure correctly when the image has been loaded successfully.
783 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
785 * ImageLoader.C: add a "using" directive.
787 * ImageLoader.h: remove extra comma at the end of enum; add an
788 std:: qualifier for vector.
790 2001-01-21 Baruch Even <baruch@ev-en.org>
792 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
793 height in the image itself and minor cleanups.
795 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
796 new ImageLoader class instead of the older Renderer class. This
797 means change of responsibilities.