1 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
3 * LoaderQueue.[Ch]: added. Implements a service queue that loads
5 * GraphicsSupport.[Ch]: removed
6 * Makefile.am: the changes above
7 * GraphicsLoader.C: use the loading queue
9 2003-01-21 Angus Leeming <leeming@lyx.org>
11 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
12 previews from being generated.
14 2003-01-13 Angus Leeming <leeming@lyx.org>
16 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
17 format to be PPM not XPM.
19 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
21 * Makefile.am (EXTRA_DIST): remove variable
23 2002-12-13 Angus Leeming <leeming@lyx.org>
25 * GraphicsImageXPM.[Ch]: removed.
27 * Makefile.am: associated change.
29 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
31 * several files: ws changes
33 2002-11-21 Angus Leeming <leeming@lyx.org>
35 * GraphicsConverter.C (build_script, move_file):
36 Don't use "if [ $? -ne 0 ]; then..."
38 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
40 * PreviewLoader.C (IncrementedFileName): STRCONV
43 * GraphicsConverter.C (Impl): STRCONV
46 * GraphicsTypes.C: include config.h
48 2002-10-25 Angus Leeming <leeming@lyx.org>
50 * GraphicsConverter.C (Impl::converted)
51 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
52 string as first arg, reflecting change in ForkedCall interface.
54 * PreviewLoader.C: use pid rather than command as identifier in
57 2002-10-18 Angus Leeming <leeming@lyx.org>
59 * GraphicsCacheItem.C (findTargetFormat): add debug message.
61 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
63 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
65 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
67 * GraphicsConverter.C (build_script): do not use ChangeExtension
71 2002-09-05 Angus Leeming <leeming@lyx.org>
73 * all files: modify the headers as discussed on the list.
75 2002-09-04 Angus Leeming <leeming@lyx.org>
77 * PreviewLoader.C (startLoading): pass the desired output format to the
80 2002-09-04 Angus Leeming <leeming@lyx.org>
82 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
84 2002-09-03 Angus Leeming <leeming@lyx.org>
86 * PreviewLoader.C: fix crash reported by Norbert Koksch when
87 generating more than 999 preview snippets. Use filenames with 5 digit
88 numbers, not 3, in the first instance, although more general code is
89 commented out. I don't suppose /anyone/ has 100000 formulae in one
92 2002-09-03 Angus Leeming <leeming@lyx.org>
94 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
96 2002-09-03 Angus Leeming <leeming@lyx.org>
98 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
100 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
102 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
103 convertDefault command with "sh ".
105 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
107 * GraphicsImage.C: small style fix to width/height setting.
109 * GraphicsTypes.h: have a displayTranslator here.
112 * GraphicsTypes.C: new file added for the setDisplayTranslator();
114 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
117 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
118 because this input has gone from the graphics dialog.
120 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
122 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
124 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
125 for support/smart_ptr.h, switch to boost smart ptr.
127 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
128 (~Data): let the smart_ptr handle cleanup
129 (reset): use nifty 3rd arg
131 (free_color_table): free the table manually
133 2002-08-09 Angus Leeming <leeming@lyx.org>
135 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
136 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
137 input@path is now set correctly.
139 2002-08-06 Angus Leeming <leeming@lyx.org>
141 * PreviewLoader.C: add support for preview.sty 0.73 (currently
142 #ifdef-ed out, awaiting the formal release).
144 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
145 the contents of a file that has changed.
147 2002-08-05 Angus Leeming <leeming@lyx.org>
149 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
150 to preview.sty. Works only for versions of preview.sty > 0.72b but
151 doesn't hurt earlier versions. Allows me to test the new parsing of
152 LyX-specific data from the generated log file.
154 2002-08-02 Angus Leeming <leeming@lyx.org>
156 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
158 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
159 (add): don't add empty snippets.
161 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
162 (view, setView): access to to the cache_.
164 2002-08-02 Angus Leeming <leeming@lyx.org>
166 * PreviewedInset.[Ch]: cache the LaTeX snippet.
168 2002-08-01 Angus Leeming <leeming@lyx.org>
170 * PreviewedInset.[Ch]: new files. An abstract base class that can help
171 insets to generate previews.
172 The daughter class must instantiate three small methods.
173 The Inset would own an instance of this daughter class and invoke it
174 as necessary. For example, mathd/formula.C gets previews at the cost
175 of 15 or so lines of code.
177 * Makefile.am: add PreviewedInset.[Ch].
179 * PreviewLoader.C (add): add debug message.
181 * Previews.C (generateBufferPreviews): remove if-block from loop.
183 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
185 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
187 (setAscentFractions): ditto
189 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
191 * PreviewLoader.C (setAscentFractions): modify because of strip
194 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
196 * GraphicsConverter.C (build_script): take a ostream as a more
197 general argument than ostringstream.
199 2002-07-22 Herbert Voss <voss@lyx.org>
201 * GraphicsConverter.C: get the "default converter" run again
203 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
205 * PreviewLoader.C: use BufferParams::getLyXTextClass
207 2002-07-21 Herbert Voss <voss@lyx.org>
209 * GraphicsImage.C: get the LyXAspectRatio run.
211 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
213 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
215 * PreviewLoader.C (startLoading): pass an interger as resolution
216 to the lyxpreview converter
218 * GraphicsParams.C: include <cstdlib>
220 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
222 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
223 preview converter script
225 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
227 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
230 2002-07-18 Angus Leeming <leeming@lyx.org>
232 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
234 (startMonitoring, monitoring, checksum): new methods to interact with
237 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
238 methods invoking the CacheItem methods of the same name.
239 (resetFile): if monitoring and the file changes, start monitoring this
242 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
244 * Makefile.am: remove FileMonitor.[Ch]
246 2002-06-17 Herbert Voss <voss@lyx.org>
248 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
249 for old ps-files (Garst). It's now handled by defining a converter and
250 disabling the ps-support of xforms.
252 2002-07-17 Angus Leeming <leeming@lyx.org>
254 Be true to the Pimpl idiom, moving all signals into the respective
255 Impl classes and defining methods to connect them to an outside slot.
256 Const-ify all visible class methods as they act only on a const pimpl_.
258 * GraphicsCache.[Ch] (add, remove): const-ify.
260 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
261 (statusChanged): move the signal into the Impl class.
262 (connect): new method, enabling a listener to connect to this signal.
264 * GraphicsConverter.[Ch]: (startConversion): const-ify.
265 (finishedConversion): move the signal into the Impl class.
266 (connect): new method, enabling a listener to connect to this signal.
268 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
269 (statusChanged): move the signal into the Impl class.
270 (connect): new method, enabling a listener to connect to this signal.
272 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
273 (imageReady): move the signal into the Impl class.
274 (connect): new method, enabling a listener to connect to this signal.
275 (emitSignal): new method, enabling PreviewImage to tell the outside
276 world that the file has been loaded into memory.
278 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
282 * GraphicsCacheItem.C:
283 * GraphicsConverter.[Ch]:
285 * GraphicsImageXPM.C:
287 * PreviewLoader.[Ch]: whitespace clean-up.
289 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
291 * PreviewLoader.C (setConverter): remove unused variable
293 * GraphicsImageXPM.C (isDrawable): implement
294 (setPixmap): the opaque color is black, not white
296 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
298 * GraphicsImageXPM.C (color_none_id):
299 (contains_color_none): use ascii_lowercase instead of lowercase
301 2002-07-16 Angus Leeming <leeming@lyx.org>
303 * PreviewLoader.C: greater use of STL algorithms.
305 * Previews.[Ch]: use const in more places.
306 (generateBufferPreviews): now takes a Buffer const & argument, not a
309 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
311 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
313 2002-07-12 Angus Leeming <leeming@lyx.org>
315 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
316 if visible 2 secs after the call to load them is first made.
318 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
319 BufferView to ascertain whether the inset is visible or not.
321 * Makefile.am: added GraphicsSupport.[Ch].
323 * PreviewImage.[Ch]: use this smart loader.
325 * PreviewLoader.C: don't load generated image files indiscimminantly.
326 Instead emit the imageReady signal and allow the image owner to decide.
328 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
330 * GraphicsCache.C: remove init_graphics()
332 2002-07-09 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
335 arithmetic when it should be floating.
337 2002-07-09 Angus Leeming <leeming@lyx.org>
339 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
340 Output equation labels as "(#)" if lyxrc preference is set.
341 (setFontScalingFactor): use lyxrc variable preview_scale_factor
342 rather than hard-coding this.
344 2002-07-09 Angus Leeming <leeming@lyx.org>
346 * PreviewLoader.C: Further refactoring of the code. Should now be
349 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
350 past its sell-by date. The code to read the metrics file is now found
351 as a helper function in PreviewLoader.C.
353 * GraphicsImageXPM.C (scale): use boost::tie.
355 2002-07-08 Herbert Voss <voss@lyx.org>
357 * PreviewLoader.C: use of preview_size_factor to get the right
358 font-size! 0.9 is the default.
360 2002-07-08 Angus Leeming <leeming@lyx.org>
362 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
363 invocation of preview.sty.
364 Perform something of an internal clean-up.
366 2002-07-06 Angus Leeming <leeming@lyx.org>
368 * PreviewLoader.C: ensure that the metrics data is used by the
372 * PreviewImage.C: (Impl d-tor): remove all generated files that still
373 exist (perhaps because the process was curtailed before the images
376 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
378 2002-07-05 Angus Leeming <leeming@lyx.org>
387 * Previews.C: new files. The previewed LaTeX snippet stuff.
389 * Makefile.am: add these files.
391 2002-07-05 Angus Leeming <leeming@lyx.org>
393 * GraphicsLoader.h: whitespace.
395 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
397 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
398 boost::function from boost::signal.
400 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
402 * GraphicsConverter.C (convert): do not use ChangeExtension
403 because to_file_base may contain a dot.
405 2002-06-28 Angus Leeming <leeming@lyx.org>
407 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
408 by moving those SignalPtrs into the grfx::Image and grfx::Converter
409 classes where they really belong.
410 Use the Pimpl idiom to hide the class internals from public view.
412 * GraphicsTypes: remove the typedefs, leaving only the enums.
414 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
415 passed a reference to one in the load() method.
417 * GraphicsConverter.[Ch]: totally refactored. An instance of
418 grfx::Converter now represents a single conversion process.
419 Thus grfx::CachItem now has a grfx::Converter * that is set when the
420 conversion is initiated and destroyed on completion.
422 * GraphicsCache.[Ch]:
423 * GraphicsCacheItem.[Ch]:
424 * GraphicsConverter.[Ch]:
425 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
427 Note that I have done this only after making the above changes,
428 so not only should we have a clean, minimal and well documented
429 interface to these classes in the header files, but the class internals
430 should be much clearer too.
433 grfx::GCache -> grfx::Cache,
434 grfx::GCacheItem -> grfx::CacheItem,
435 grfx::GConverter -> grfx::Converter,
436 grfx::GImage -> grfx::Image,
437 grfx::GImageXPM -> grfx::ImageXPM,
438 grfx::GParams -> grfx::Params.
440 2002-06-26 Angus Leeming <leeming@lyx.org>
442 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
443 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
446 2002-06-26 Angus Leeming <leeming@lyx.org>
448 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
449 move the DisplayType enum out of grfx::GParams to here.
451 * GraphicsCacheItem.h: re-write preliminary description to reflect
454 * GraphicsParams.[Ch]:
455 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
456 grfx::DisplayType out of grfx::GParams.
458 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
459 that was in frontends/screen.C and insets/insetgraphics.C into a
460 single, easy-to-use class.
462 * Makefile.am: add these files.
464 2002-06-25 Angus Leeming <leeming@lyx.org>
466 * GraphicsCache.[Ch]:
467 * GraphicsCacheItem.[Ch]:
468 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
469 file into memory. The cache no longer controls the generation of the
470 pixmap. Instead, it just emits a signal when the loading status of an
472 The cache no longer stores InsetGraphics pointers and nor does it
473 assume responsibility for modifying an image (scaling, rotating etc).
474 Instead, that must now be performed elsewhere.
476 2002-06-19 Angus Leeming <leeming@lyx.org>
478 * GraphicsConverter.C: add using std::endl directive.
480 2002-06-17 Herbert Voss <voss@lyx.org>
482 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
483 default when nothing different was found
484 (convertToDisplayFormat): handle zipped files in the right way and
485 choose always convert as a default converter when no other
486 userdefined was found
488 * GraphicsConverter.C: add more lyxerr comments and choose
489 convert when no other userdefined converter was found
491 2002-06-10 Herbert Voss <voss@lyx.org>
493 * GraphicsImageXPM.C (convertTo7chars): get another special color
494 format from convert work in the right way
496 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
498 * GraphicsCache.C: use right colormap incantation
500 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
502 * GraphicsCache.C: use lyx_gui namespace
504 * GraphicsImageXPM.C: back down to using xforms
507 2002-06-07 Angus Leeming <leeming@lyx.org>
509 Fixes needed to compile with Compaq cxx 6.5.
510 * GraphicsConverter.h: forward declare class ConvProcess.
512 * GraphicsImageXPM.C:
513 all c-library variables have been moved into namespace std.
514 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
516 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
518 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
520 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
522 * GraphicsImageXPM.C: SigC to boot::signals changes.
523 (newImage): fix () bug when using new.
525 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
527 * switch from SigC signals to boost::signals.
529 2002-05-29 André Pönitz <poenitz@gmx.net>
531 * GraphicsParam.C: remove unneeded #include, move vomment
533 2002-05-28 André Pönitz <poenitz@gmx.net>
535 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
537 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
539 * GraphicsImageXPM.C: ColorHandler moved
541 2002-05-24 Juergen Vigna <jug@sad.it>
544 * GraphicsImage.h: include LString.h first.
546 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
548 * GraphicsCacheItem.h: use more specific smart_ptr header.
549 * GraphicsTypes.h: ditto
550 * GraphicsImage.h: ditto
551 * GraphicsConverter.h: ditto
553 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
555 * GraphicsImageXPM.C: understand convert's use of "opaque"
558 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
560 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
561 GImage::loadableFormats() that ensures that the signal is connected
562 to the derived class' method.
564 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
566 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
567 only work on the string.
569 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
571 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
572 the simple image loader when it encounters colour strings like
575 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
577 * GraphicsCacheItem.C (convertToDisplayFormat):
578 * GraphicsConverter.C (build_script): remove the Alerts when things go
579 wrong as the inset displays the message anyway. Moreover, Alert seems
580 pretty temperamemtal at the moment.
582 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
584 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
586 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
588 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
589 a reference to a temp object that's going out of scope...
591 2002-04-09 Herbert Voss <voss@lyx.org>
593 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
594 LyXLength::inBP instead of inPixels.
596 2002-04-10 Herbert Voss <voss@perce.de>
598 * GraphicsCache.[Ch]:
599 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
600 to read the "Bounding Box" from non (e)ps files.
602 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
604 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
605 the EPS file too, to ensure that the clipped Bounding Box is relative
606 to the original. (From Herbert.)
608 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
610 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
611 variables are initialised. Clean-up parsing of the string (with thanks
614 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
616 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
617 if the file can't be found.
619 * GraphicsParams.h (c-tor): remove string() as default argument.
621 * GraphicsCacheItem.C: a couple of changes as a result.
623 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
625 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
626 path to graphics file.
628 * GraphicsParams.[Ch] (c-tor): now passed filepath.
630 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
632 * most files: ws cleanup
634 * Makefile.am: remove ld -r stuff
636 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
638 * Makefile.am: special rules if partial linking
640 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
642 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
644 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
646 * GraphicsConverter.[Ch] (converted): make first arg const ref.
648 * GraphicsCacheItem.h: doxy change
650 * GraphicsCacheItem.C: ws change
652 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
654 * Makefile.am: if there is no image loading class leveraging the power
655 of the appropriate gui library, then compile the basic alternative
656 found in GraphicsImageXPM.[Ch].
658 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
660 * GraphicsCache.C: change associated with move of initialiseGraphics
663 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
665 * GraphicsParams.[Ch]:
667 * GraphicsImageXPM.C: properly resolve more warnings about comparison
668 between signed and unsigned integer expressions.
670 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
672 * GraphicsCache.C: move connections to the GImage-derived classes to
675 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
677 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
678 conversion, then do that.
680 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
682 * GraphicsCache.C: improve commentary to graphicsInit and where it
685 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
686 that became a memory leak properly. (Let the shared_c_ptr free the
688 (reset, mapcolor): tidy up and introduce a work around for XPM files
689 with crappy color entries. Print out a nice friendly message on what's
690 gone wrong and how to resolve it properly.
692 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
694 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
695 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
697 (unique_color_string): use the correct string c-tor.
699 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
702 * ImageLoaderXPM.[Ch]: removed.
704 * GraphicsConverter.[Ch]:
705 * GraphicsImage.[Ch]:
706 * GraphicsImageXPM.[Ch]:
707 * GraphicsParams.[Ch]:
708 * GraphicsTypes.h: new files.
710 * All files. A total re-write of the graphics cache. The cache now
711 supports asynchronous file conversion and file loading. Images
712 can be cropped, rotated and scaled for display on the LyX screen.
713 The old LyXImage and ImageLoader have been combined in a new class
714 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
717 2002-02-07 Herbert Voss <voss@lyx.org>
719 * GraphicsCacheItem.C: use unzipFile() from support/filetools
721 2002-01-31 Herbert Voss <voss@lyx.org>
723 * GraphicsCacheItem.h: handle filetype without the file extension;
724 getting type from contents; handle zipped files
726 2002-01-27 Herbert Voss <voss@lyx.org>
728 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
730 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
732 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
734 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
736 * GraphicsCacheItem.h: do not include <config.h> in header files
738 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
740 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
741 transparent colour, then set it to the colour of the background.
742 Also take account of the monochrome, grayscale of color
745 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
747 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
748 are different. Thus, don't delete the "to" if it's the original!
750 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
752 * ImageLoadXPM.C: remove setting of alloc colour mask,
753 led to crash as we don't define a callback
755 2001-07-29 Baruch Even <baruch@lyx.org>
757 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
758 colors with closeness of 10000.
760 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
762 2001-07-29 Baruch Even <baruch@lyx.org>
764 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
767 2001-07-23 Baruch Even <baruch@lyx.org>
769 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
770 the image after conversion.
772 2001-07-17 Baruch Even <baruch@lyx.org>
774 * GraphicsCacheItem.h:
775 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
776 from synchronous to asynchronous and to ease the coming changes.
778 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
780 * ImageLoaderXPM.C (runImageLoader): get display information from
783 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
786 * GraphicsCacheItem.C:
788 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
790 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
792 * GraphicsCache.h: inherit privately from noncopyable
793 * ImageLoader.h: ditto
794 * GraphicsCacheItem.h: ditto
796 2001-04-16 Allan Rae <rae@lyx.org>
798 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
799 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
802 2001-04-02 Baruch Even <baruch@lyx.org>
804 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
805 of hard coding ImageMagick.
807 2001-03-10 Baruch Even <baruch@lyx.org>
809 * GraphicsCache.C: Style change from (*it).field to it->field
811 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
813 * GraphicsCache.h: noncopyable is in namespace boost
814 * ImageLoader.h: ditto
815 * GraphicsCacheItem.h: ditto
817 2001-03-07 Baruch Even <baruch@lyx.org>
819 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
820 was false and it's not needed anyhow since the shared_ptr's in the cache
821 will destroy everything on exit.
823 2001-02-28 Baruch Even <baruch@ev-en.org>
826 * GraphicsCache.C: Changed the singleton pattern implementation, the
827 former version "leaked" in the sense that it was not deallocated at
830 2001-02-20 Baruch Even <baruch@ev-en.org>
832 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
833 instead of a pure pointer.
835 * GraphicsCacheItem.[Ch]:
836 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
837 removed the reference counting that was inside. Also fixed a bug where
838 a temporary file wouldn't get erased.
840 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
841 Ownership is now dropped when the caller requests the image_ pointer.
843 2001-02-20 Baruch Even <baruch@ev-en.org>
845 * GraphicsCache.C: Cleared up the confusion on when and how it is
848 * GraphicsCacheItem.C: Indentation change.
850 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
851 figure correctly when the image has been loaded successfully.
853 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
855 * ImageLoader.C: add a "using" directive.
857 * ImageLoader.h: remove extra comma at the end of enum; add an
858 std:: qualifier for vector.
860 2001-01-21 Baruch Even <baruch@ev-en.org>
862 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
863 height in the image itself and minor cleanups.
865 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
866 new ImageLoader class instead of the older Renderer class. This
867 means change of responsibilities.