1 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
3 * several files: ws changes
5 2002-11-21 Angus Leeming <leeming@lyx.org>
7 * GraphicsConverter.C (build_script, move_file):
8 Don't use "if [ $? -ne 0 ]; then..."
10 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
12 * PreviewLoader.C (IncrementedFileName): STRCONV
15 * GraphicsConverter.C (Impl): STRCONV
18 * GraphicsTypes.C: include config.h
20 2002-10-25 Angus Leeming <leeming@lyx.org>
22 * GraphicsConverter.C (Impl::converted)
23 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
24 string as first arg, reflecting change in ForkedCall interface.
26 * PreviewLoader.C: use pid rather than command as identifier in
29 2002-10-18 Angus Leeming <leeming@lyx.org>
31 * GraphicsCacheItem.C (findTargetFormat): add debug message.
33 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
35 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
37 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
39 * GraphicsConverter.C (build_script): do not use ChangeExtension
43 2002-09-05 Angus Leeming <leeming@lyx.org>
45 * all files: modify the headers as discussed on the list.
47 2002-09-04 Angus Leeming <leeming@lyx.org>
49 * PreviewLoader.C (startLoading): pass the desired output format to the
52 2002-09-04 Angus Leeming <leeming@lyx.org>
54 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
56 2002-09-03 Angus Leeming <leeming@lyx.org>
58 * PreviewLoader.C: fix crash reported by Norbert Koksch when
59 generating more than 999 preview snippets. Use filenames with 5 digit
60 numbers, not 3, in the first instance, although more general code is
61 commented out. I don't suppose /anyone/ has 100000 formulae in one
64 2002-09-03 Angus Leeming <leeming@lyx.org>
66 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
68 2002-09-03 Angus Leeming <leeming@lyx.org>
70 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
72 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
74 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
75 convertDefault command with "sh ".
77 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
79 * GraphicsImage.C: small style fix to width/height setting.
81 * GraphicsTypes.h: have a displayTranslator here.
84 * GraphicsTypes.C: new file added for the setDisplayTranslator();
86 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
89 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
90 because this input has gone from the graphics dialog.
92 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
94 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
96 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
97 for support/smart_ptr.h, switch to boost smart ptr.
99 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
100 (~Data): let the smart_ptr handle cleanup
101 (reset): use nifty 3rd arg
103 (free_color_table): free the table manually
105 2002-08-09 Angus Leeming <leeming@lyx.org>
107 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
108 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
109 input@path is now set correctly.
111 2002-08-06 Angus Leeming <leeming@lyx.org>
113 * PreviewLoader.C: add support for preview.sty 0.73 (currently
114 #ifdef-ed out, awaiting the formal release).
116 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
117 the contents of a file that has changed.
119 2002-08-05 Angus Leeming <leeming@lyx.org>
121 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
122 to preview.sty. Works only for versions of preview.sty > 0.72b but
123 doesn't hurt earlier versions. Allows me to test the new parsing of
124 LyX-specific data from the generated log file.
126 2002-08-02 Angus Leeming <leeming@lyx.org>
128 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
130 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
131 (add): don't add empty snippets.
133 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
134 (view, setView): access to to the cache_.
136 2002-08-02 Angus Leeming <leeming@lyx.org>
138 * PreviewedInset.[Ch]: cache the LaTeX snippet.
140 2002-08-01 Angus Leeming <leeming@lyx.org>
142 * PreviewedInset.[Ch]: new files. An abstract base class that can help
143 insets to generate previews.
144 The daughter class must instantiate three small methods.
145 The Inset would own an instance of this daughter class and invoke it
146 as necessary. For example, mathd/formula.C gets previews at the cost
147 of 15 or so lines of code.
149 * Makefile.am: add PreviewedInset.[Ch].
151 * PreviewLoader.C (add): add debug message.
153 * Previews.C (generateBufferPreviews): remove if-block from loop.
155 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
157 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
159 (setAscentFractions): ditto
161 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
163 * PreviewLoader.C (setAscentFractions): modify because of strip
166 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
168 * GraphicsConverter.C (build_script): take a ostream as a more
169 general argument than ostringstream.
171 2002-07-22 Herbert Voss <voss@lyx.org>
173 * GraphicsConverter.C: get the "default converter" run again
175 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
177 * PreviewLoader.C: use BufferParams::getLyXTextClass
179 2002-07-21 Herbert Voss <voss@lyx.org>
181 * GraphicsImage.C: get the LyXAspectRatio run.
183 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
185 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
187 * PreviewLoader.C (startLoading): pass an interger as resolution
188 to the lyxpreview converter
190 * GraphicsParams.C: include <cstdlib>
192 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
194 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
195 preview converter script
197 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
199 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
202 2002-07-18 Angus Leeming <leeming@lyx.org>
204 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
206 (startMonitoring, monitoring, checksum): new methods to interact with
209 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
210 methods invoking the CacheItem methods of the same name.
211 (resetFile): if monitoring and the file changes, start monitoring this
214 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
216 * Makefile.am: remove FileMonitor.[Ch]
218 2002-06-17 Herbert Voss <voss@lyx.org>
220 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
221 for old ps-files (Garst). It's now handled by defining a converter and
222 disabling the ps-support of xforms.
224 2002-07-17 Angus Leeming <leeming@lyx.org>
226 Be true to the Pimpl idiom, moving all signals into the respective
227 Impl classes and defining methods to connect them to an outside slot.
228 Const-ify all visible class methods as they act only on a const pimpl_.
230 * GraphicsCache.[Ch] (add, remove): const-ify.
232 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
233 (statusChanged): move the signal into the Impl class.
234 (connect): new method, enabling a listener to connect to this signal.
236 * GraphicsConverter.[Ch]: (startConversion): const-ify.
237 (finishedConversion): move the signal into the Impl class.
238 (connect): new method, enabling a listener to connect to this signal.
240 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
241 (statusChanged): move the signal into the Impl class.
242 (connect): new method, enabling a listener to connect to this signal.
244 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
245 (imageReady): move the signal into the Impl class.
246 (connect): new method, enabling a listener to connect to this signal.
247 (emitSignal): new method, enabling PreviewImage to tell the outside
248 world that the file has been loaded into memory.
250 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
254 * GraphicsCacheItem.C:
255 * GraphicsConverter.[Ch]:
257 * GraphicsImageXPM.C:
259 * PreviewLoader.[Ch]: whitespace clean-up.
261 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
263 * PreviewLoader.C (setConverter): remove unused variable
265 * GraphicsImageXPM.C (isDrawable): implement
266 (setPixmap): the opaque color is black, not white
268 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
270 * GraphicsImageXPM.C (color_none_id):
271 (contains_color_none): use ascii_lowercase instead of lowercase
273 2002-07-16 Angus Leeming <leeming@lyx.org>
275 * PreviewLoader.C: greater use of STL algorithms.
277 * Previews.[Ch]: use const in more places.
278 (generateBufferPreviews): now takes a Buffer const & argument, not a
281 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
283 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
285 2002-07-12 Angus Leeming <leeming@lyx.org>
287 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
288 if visible 2 secs after the call to load them is first made.
290 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
291 BufferView to ascertain whether the inset is visible or not.
293 * Makefile.am: added GraphicsSupport.[Ch].
295 * PreviewImage.[Ch]: use this smart loader.
297 * PreviewLoader.C: don't load generated image files indiscimminantly.
298 Instead emit the imageReady signal and allow the image owner to decide.
300 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
302 * GraphicsCache.C: remove init_graphics()
304 2002-07-09 Angus Leeming <leeming@lyx.org>
306 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
307 arithmetic when it should be floating.
309 2002-07-09 Angus Leeming <leeming@lyx.org>
311 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
312 Output equation labels as "(#)" if lyxrc preference is set.
313 (setFontScalingFactor): use lyxrc variable preview_scale_factor
314 rather than hard-coding this.
316 2002-07-09 Angus Leeming <leeming@lyx.org>
318 * PreviewLoader.C: Further refactoring of the code. Should now be
321 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
322 past its sell-by date. The code to read the metrics file is now found
323 as a helper function in PreviewLoader.C.
325 * GraphicsImageXPM.C (scale): use boost::tie.
327 2002-07-08 Herbert Voss <voss@lyx.org>
329 * PreviewLoader.C: use of preview_size_factor to get the right
330 font-size! 0.9 is the default.
332 2002-07-08 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
335 invocation of preview.sty.
336 Perform something of an internal clean-up.
338 2002-07-06 Angus Leeming <leeming@lyx.org>
340 * PreviewLoader.C: ensure that the metrics data is used by the
344 * PreviewImage.C: (Impl d-tor): remove all generated files that still
345 exist (perhaps because the process was curtailed before the images
348 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
350 2002-07-05 Angus Leeming <leeming@lyx.org>
359 * Previews.C: new files. The previewed LaTeX snippet stuff.
361 * Makefile.am: add these files.
363 2002-07-05 Angus Leeming <leeming@lyx.org>
365 * GraphicsLoader.h: whitespace.
367 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
369 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
370 boost::function from boost::signal.
372 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
374 * GraphicsConverter.C (convert): do not use ChangeExtension
375 because to_file_base may contain a dot.
377 2002-06-28 Angus Leeming <leeming@lyx.org>
379 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
380 by moving those SignalPtrs into the grfx::Image and grfx::Converter
381 classes where they really belong.
382 Use the Pimpl idiom to hide the class internals from public view.
384 * GraphicsTypes: remove the typedefs, leaving only the enums.
386 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
387 passed a reference to one in the load() method.
389 * GraphicsConverter.[Ch]: totally refactored. An instance of
390 grfx::Converter now represents a single conversion process.
391 Thus grfx::CachItem now has a grfx::Converter * that is set when the
392 conversion is initiated and destroyed on completion.
394 * GraphicsCache.[Ch]:
395 * GraphicsCacheItem.[Ch]:
396 * GraphicsConverter.[Ch]:
397 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
399 Note that I have done this only after making the above changes,
400 so not only should we have a clean, minimal and well documented
401 interface to these classes in the header files, but the class internals
402 should be much clearer too.
405 grfx::GCache -> grfx::Cache,
406 grfx::GCacheItem -> grfx::CacheItem,
407 grfx::GConverter -> grfx::Converter,
408 grfx::GImage -> grfx::Image,
409 grfx::GImageXPM -> grfx::ImageXPM,
410 grfx::GParams -> grfx::Params.
412 2002-06-26 Angus Leeming <leeming@lyx.org>
414 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
415 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
418 2002-06-26 Angus Leeming <leeming@lyx.org>
420 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
421 move the DisplayType enum out of grfx::GParams to here.
423 * GraphicsCacheItem.h: re-write preliminary description to reflect
426 * GraphicsParams.[Ch]:
427 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
428 grfx::DisplayType out of grfx::GParams.
430 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
431 that was in frontends/screen.C and insets/insetgraphics.C into a
432 single, easy-to-use class.
434 * Makefile.am: add these files.
436 2002-06-25 Angus Leeming <leeming@lyx.org>
438 * GraphicsCache.[Ch]:
439 * GraphicsCacheItem.[Ch]:
440 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
441 file into memory. The cache no longer controls the generation of the
442 pixmap. Instead, it just emits a signal when the loading status of an
444 The cache no longer stores InsetGraphics pointers and nor does it
445 assume responsibility for modifying an image (scaling, rotating etc).
446 Instead, that must now be performed elsewhere.
448 2002-06-19 Angus Leeming <leeming@lyx.org>
450 * GraphicsConverter.C: add using std::endl directive.
452 2002-06-17 Herbert Voss <voss@lyx.org>
454 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
455 default when nothing different was found
456 (convertToDisplayFormat): handle zipped files in the right way and
457 choose always convert as a default converter when no other
458 userdefined was found
460 * GraphicsConverter.C: add more lyxerr comments and choose
461 convert when no other userdefined converter was found
463 2002-06-10 Herbert Voss <voss@lyx.org>
465 * GraphicsImageXPM.C (convertTo7chars): get another special color
466 format from convert work in the right way
468 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
470 * GraphicsCache.C: use right colormap incantation
472 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
474 * GraphicsCache.C: use lyx_gui namespace
476 * GraphicsImageXPM.C: back down to using xforms
479 2002-06-07 Angus Leeming <leeming@lyx.org>
481 Fixes needed to compile with Compaq cxx 6.5.
482 * GraphicsConverter.h: forward declare class ConvProcess.
484 * GraphicsImageXPM.C:
485 all c-library variables have been moved into namespace std.
486 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
488 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
490 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
492 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
494 * GraphicsImageXPM.C: SigC to boot::signals changes.
495 (newImage): fix () bug when using new.
497 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
499 * switch from SigC signals to boost::signals.
501 2002-05-29 André Pönitz <poenitz@gmx.net>
503 * GraphicsParam.C: remove unneeded #include, move vomment
505 2002-05-28 André Pönitz <poenitz@gmx.net>
507 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
509 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
511 * GraphicsImageXPM.C: ColorHandler moved
513 2002-05-24 Juergen Vigna <jug@sad.it>
516 * GraphicsImage.h: include LString.h first.
518 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
520 * GraphicsCacheItem.h: use more specific smart_ptr header.
521 * GraphicsTypes.h: ditto
522 * GraphicsImage.h: ditto
523 * GraphicsConverter.h: ditto
525 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
527 * GraphicsImageXPM.C: understand convert's use of "opaque"
530 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
532 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
533 GImage::loadableFormats() that ensures that the signal is connected
534 to the derived class' method.
536 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
538 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
539 only work on the string.
541 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
543 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
544 the simple image loader when it encounters colour strings like
547 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
549 * GraphicsCacheItem.C (convertToDisplayFormat):
550 * GraphicsConverter.C (build_script): remove the Alerts when things go
551 wrong as the inset displays the message anyway. Moreover, Alert seems
552 pretty temperamemtal at the moment.
554 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
556 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
558 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
560 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
561 a reference to a temp object that's going out of scope...
563 2002-04-09 Herbert Voss <voss@lyx.org>
565 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
566 LyXLength::inBP instead of inPixels.
568 2002-04-10 Herbert Voss <voss@perce.de>
570 * GraphicsCache.[Ch]:
571 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
572 to read the "Bounding Box" from non (e)ps files.
574 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
576 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
577 the EPS file too, to ensure that the clipped Bounding Box is relative
578 to the original. (From Herbert.)
580 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
582 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
583 variables are initialised. Clean-up parsing of the string (with thanks
586 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
588 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
589 if the file can't be found.
591 * GraphicsParams.h (c-tor): remove string() as default argument.
593 * GraphicsCacheItem.C: a couple of changes as a result.
595 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
597 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
598 path to graphics file.
600 * GraphicsParams.[Ch] (c-tor): now passed filepath.
602 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
604 * most files: ws cleanup
606 * Makefile.am: remove ld -r stuff
608 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
610 * Makefile.am: special rules if partial linking
612 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
614 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
616 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
618 * GraphicsConverter.[Ch] (converted): make first arg const ref.
620 * GraphicsCacheItem.h: doxy change
622 * GraphicsCacheItem.C: ws change
624 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
626 * Makefile.am: if there is no image loading class leveraging the power
627 of the appropriate gui library, then compile the basic alternative
628 found in GraphicsImageXPM.[Ch].
630 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
632 * GraphicsCache.C: change associated with move of initialiseGraphics
635 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
637 * GraphicsParams.[Ch]:
639 * GraphicsImageXPM.C: properly resolve more warnings about comparison
640 between signed and unsigned integer expressions.
642 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
644 * GraphicsCache.C: move connections to the GImage-derived classes to
647 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
649 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
650 conversion, then do that.
652 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
654 * GraphicsCache.C: improve commentary to graphicsInit and where it
657 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
658 that became a memory leak properly. (Let the shared_c_ptr free the
660 (reset, mapcolor): tidy up and introduce a work around for XPM files
661 with crappy color entries. Print out a nice friendly message on what's
662 gone wrong and how to resolve it properly.
664 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
666 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
667 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
669 (unique_color_string): use the correct string c-tor.
671 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
674 * ImageLoaderXPM.[Ch]: removed.
676 * GraphicsConverter.[Ch]:
677 * GraphicsImage.[Ch]:
678 * GraphicsImageXPM.[Ch]:
679 * GraphicsParams.[Ch]:
680 * GraphicsTypes.h: new files.
682 * All files. A total re-write of the graphics cache. The cache now
683 supports asynchronous file conversion and file loading. Images
684 can be cropped, rotated and scaled for display on the LyX screen.
685 The old LyXImage and ImageLoader have been combined in a new class
686 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
689 2002-02-07 Herbert Voss <voss@lyx.org>
691 * GraphicsCacheItem.C: use unzipFile() from support/filetools
693 2002-01-31 Herbert Voss <voss@lyx.org>
695 * GraphicsCacheItem.h: handle filetype without the file extension;
696 getting type from contents; handle zipped files
698 2002-01-27 Herbert Voss <voss@lyx.org>
700 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
702 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
704 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
706 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
708 * GraphicsCacheItem.h: do not include <config.h> in header files
710 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
712 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
713 transparent colour, then set it to the colour of the background.
714 Also take account of the monochrome, grayscale of color
717 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
719 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
720 are different. Thus, don't delete the "to" if it's the original!
722 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
724 * ImageLoadXPM.C: remove setting of alloc colour mask,
725 led to crash as we don't define a callback
727 2001-07-29 Baruch Even <baruch@lyx.org>
729 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
730 colors with closeness of 10000.
732 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
734 2001-07-29 Baruch Even <baruch@lyx.org>
736 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
739 2001-07-23 Baruch Even <baruch@lyx.org>
741 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
742 the image after conversion.
744 2001-07-17 Baruch Even <baruch@lyx.org>
746 * GraphicsCacheItem.h:
747 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
748 from synchronous to asynchronous and to ease the coming changes.
750 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
752 * ImageLoaderXPM.C (runImageLoader): get display information from
755 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
758 * GraphicsCacheItem.C:
760 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
762 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
764 * GraphicsCache.h: inherit privately from noncopyable
765 * ImageLoader.h: ditto
766 * GraphicsCacheItem.h: ditto
768 2001-04-16 Allan Rae <rae@lyx.org>
770 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
771 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
774 2001-04-02 Baruch Even <baruch@lyx.org>
776 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
777 of hard coding ImageMagick.
779 2001-03-10 Baruch Even <baruch@lyx.org>
781 * GraphicsCache.C: Style change from (*it).field to it->field
783 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
785 * GraphicsCache.h: noncopyable is in namespace boost
786 * ImageLoader.h: ditto
787 * GraphicsCacheItem.h: ditto
789 2001-03-07 Baruch Even <baruch@lyx.org>
791 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
792 was false and it's not needed anyhow since the shared_ptr's in the cache
793 will destroy everything on exit.
795 2001-02-28 Baruch Even <baruch@ev-en.org>
798 * GraphicsCache.C: Changed the singleton pattern implementation, the
799 former version "leaked" in the sense that it was not deallocated at
802 2001-02-20 Baruch Even <baruch@ev-en.org>
804 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
805 instead of a pure pointer.
807 * GraphicsCacheItem.[Ch]:
808 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
809 removed the reference counting that was inside. Also fixed a bug where
810 a temporary file wouldn't get erased.
812 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
813 Ownership is now dropped when the caller requests the image_ pointer.
815 2001-02-20 Baruch Even <baruch@ev-en.org>
817 * GraphicsCache.C: Cleared up the confusion on when and how it is
820 * GraphicsCacheItem.C: Indentation change.
822 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
823 figure correctly when the image has been loaded successfully.
825 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
827 * ImageLoader.C: add a "using" directive.
829 * ImageLoader.h: remove extra comma at the end of enum; add an
830 std:: qualifier for vector.
832 2001-01-21 Baruch Even <baruch@ev-en.org>
834 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
835 height in the image itself and minor cleanups.
837 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
838 new ImageLoader class instead of the older Renderer class. This
839 means change of responsibilities.