1 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
5 * PreviewedInset.C: Removed unneeded list of owner insets
7 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
9 * GraphicsConverter (startConversion): add the call to
12 * GraphicsLoader.[Ch],
14 * PreviewedInset.C: Removed unneeded BufferView
16 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
18 * LoaderQueue.[Ch]: a simplification of the code, eliminated
19 the unneeded input bucket.
21 * GraphicsCacheItem.C (imageConverted): move warning inside the
24 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
26 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
28 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
30 * LoaderQueue.[Ch] (setPriority): added
32 * PreviewLoader.C (finishedGenerating): reversed the loading order so
33 first images get 'touched' last, and so load first.
35 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
37 * LoaderQueue.[Ch]: added. Implements a service queue that loads
39 * GraphicsSupport.[Ch]: removed
40 * Makefile.am: the changes above
41 * GraphicsLoader.C: use the loading queue
43 2003-01-21 Angus Leeming <leeming@lyx.org>
45 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
46 previews from being generated.
48 2003-01-13 Angus Leeming <leeming@lyx.org>
50 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
51 format to be PPM not XPM.
53 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
55 * Makefile.am (EXTRA_DIST): remove variable
57 2002-12-13 Angus Leeming <leeming@lyx.org>
59 * GraphicsImageXPM.[Ch]: removed.
61 * Makefile.am: associated change.
63 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
65 * several files: ws changes
67 2002-11-21 Angus Leeming <leeming@lyx.org>
69 * GraphicsConverter.C (build_script, move_file):
70 Don't use "if [ $? -ne 0 ]; then..."
72 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
74 * PreviewLoader.C (IncrementedFileName): STRCONV
77 * GraphicsConverter.C (Impl): STRCONV
80 * GraphicsTypes.C: include config.h
82 2002-10-25 Angus Leeming <leeming@lyx.org>
84 * GraphicsConverter.C (Impl::converted)
85 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
86 string as first arg, reflecting change in ForkedCall interface.
88 * PreviewLoader.C: use pid rather than command as identifier in
91 2002-10-18 Angus Leeming <leeming@lyx.org>
93 * GraphicsCacheItem.C (findTargetFormat): add debug message.
95 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
97 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
99 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
101 * GraphicsConverter.C (build_script): do not use ChangeExtension
105 2002-09-05 Angus Leeming <leeming@lyx.org>
107 * all files: modify the headers as discussed on the list.
109 2002-09-04 Angus Leeming <leeming@lyx.org>
111 * PreviewLoader.C (startLoading): pass the desired output format to the
114 2002-09-04 Angus Leeming <leeming@lyx.org>
116 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
118 2002-09-03 Angus Leeming <leeming@lyx.org>
120 * PreviewLoader.C: fix crash reported by Norbert Koksch when
121 generating more than 999 preview snippets. Use filenames with 5 digit
122 numbers, not 3, in the first instance, although more general code is
123 commented out. I don't suppose /anyone/ has 100000 formulae in one
126 2002-09-03 Angus Leeming <leeming@lyx.org>
128 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
130 2002-09-03 Angus Leeming <leeming@lyx.org>
132 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
134 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
136 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
137 convertDefault command with "sh ".
139 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
141 * GraphicsImage.C: small style fix to width/height setting.
143 * GraphicsTypes.h: have a displayTranslator here.
146 * GraphicsTypes.C: new file added for the setDisplayTranslator();
148 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
151 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
152 because this input has gone from the graphics dialog.
154 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
156 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
158 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
159 for support/smart_ptr.h, switch to boost smart ptr.
161 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
162 (~Data): let the smart_ptr handle cleanup
163 (reset): use nifty 3rd arg
165 (free_color_table): free the table manually
167 2002-08-09 Angus Leeming <leeming@lyx.org>
169 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
170 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
171 input@path is now set correctly.
173 2002-08-06 Angus Leeming <leeming@lyx.org>
175 * PreviewLoader.C: add support for preview.sty 0.73 (currently
176 #ifdef-ed out, awaiting the formal release).
178 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
179 the contents of a file that has changed.
181 2002-08-05 Angus Leeming <leeming@lyx.org>
183 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
184 to preview.sty. Works only for versions of preview.sty > 0.72b but
185 doesn't hurt earlier versions. Allows me to test the new parsing of
186 LyX-specific data from the generated log file.
188 2002-08-02 Angus Leeming <leeming@lyx.org>
190 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
192 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
193 (add): don't add empty snippets.
195 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
196 (view, setView): access to to the cache_.
198 2002-08-02 Angus Leeming <leeming@lyx.org>
200 * PreviewedInset.[Ch]: cache the LaTeX snippet.
202 2002-08-01 Angus Leeming <leeming@lyx.org>
204 * PreviewedInset.[Ch]: new files. An abstract base class that can help
205 insets to generate previews.
206 The daughter class must instantiate three small methods.
207 The Inset would own an instance of this daughter class and invoke it
208 as necessary. For example, mathd/formula.C gets previews at the cost
209 of 15 or so lines of code.
211 * Makefile.am: add PreviewedInset.[Ch].
213 * PreviewLoader.C (add): add debug message.
215 * Previews.C (generateBufferPreviews): remove if-block from loop.
217 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
219 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
221 (setAscentFractions): ditto
223 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
225 * PreviewLoader.C (setAscentFractions): modify because of strip
228 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
230 * GraphicsConverter.C (build_script): take a ostream as a more
231 general argument than ostringstream.
233 2002-07-22 Herbert Voss <voss@lyx.org>
235 * GraphicsConverter.C: get the "default converter" run again
237 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
239 * PreviewLoader.C: use BufferParams::getLyXTextClass
241 2002-07-21 Herbert Voss <voss@lyx.org>
243 * GraphicsImage.C: get the LyXAspectRatio run.
245 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
247 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
249 * PreviewLoader.C (startLoading): pass an interger as resolution
250 to the lyxpreview converter
252 * GraphicsParams.C: include <cstdlib>
254 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
256 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
257 preview converter script
259 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
261 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
264 2002-07-18 Angus Leeming <leeming@lyx.org>
266 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
268 (startMonitoring, monitoring, checksum): new methods to interact with
271 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
272 methods invoking the CacheItem methods of the same name.
273 (resetFile): if monitoring and the file changes, start monitoring this
276 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
278 * Makefile.am: remove FileMonitor.[Ch]
280 2002-06-17 Herbert Voss <voss@lyx.org>
282 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
283 for old ps-files (Garst). It's now handled by defining a converter and
284 disabling the ps-support of xforms.
286 2002-07-17 Angus Leeming <leeming@lyx.org>
288 Be true to the Pimpl idiom, moving all signals into the respective
289 Impl classes and defining methods to connect them to an outside slot.
290 Const-ify all visible class methods as they act only on a const pimpl_.
292 * GraphicsCache.[Ch] (add, remove): const-ify.
294 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
295 (statusChanged): move the signal into the Impl class.
296 (connect): new method, enabling a listener to connect to this signal.
298 * GraphicsConverter.[Ch]: (startConversion): const-ify.
299 (finishedConversion): move the signal into the Impl class.
300 (connect): new method, enabling a listener to connect to this signal.
302 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
303 (statusChanged): move the signal into the Impl class.
304 (connect): new method, enabling a listener to connect to this signal.
306 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
307 (imageReady): move the signal into the Impl class.
308 (connect): new method, enabling a listener to connect to this signal.
309 (emitSignal): new method, enabling PreviewImage to tell the outside
310 world that the file has been loaded into memory.
312 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
316 * GraphicsCacheItem.C:
317 * GraphicsConverter.[Ch]:
319 * GraphicsImageXPM.C:
321 * PreviewLoader.[Ch]: whitespace clean-up.
323 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
325 * PreviewLoader.C (setConverter): remove unused variable
327 * GraphicsImageXPM.C (isDrawable): implement
328 (setPixmap): the opaque color is black, not white
330 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
332 * GraphicsImageXPM.C (color_none_id):
333 (contains_color_none): use ascii_lowercase instead of lowercase
335 2002-07-16 Angus Leeming <leeming@lyx.org>
337 * PreviewLoader.C: greater use of STL algorithms.
339 * Previews.[Ch]: use const in more places.
340 (generateBufferPreviews): now takes a Buffer const & argument, not a
343 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
345 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
347 2002-07-12 Angus Leeming <leeming@lyx.org>
349 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
350 if visible 2 secs after the call to load them is first made.
352 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
353 BufferView to ascertain whether the inset is visible or not.
355 * Makefile.am: added GraphicsSupport.[Ch].
357 * PreviewImage.[Ch]: use this smart loader.
359 * PreviewLoader.C: don't load generated image files indiscimminantly.
360 Instead emit the imageReady signal and allow the image owner to decide.
362 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
364 * GraphicsCache.C: remove init_graphics()
366 2002-07-09 Angus Leeming <leeming@lyx.org>
368 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
369 arithmetic when it should be floating.
371 2002-07-09 Angus Leeming <leeming@lyx.org>
373 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
374 Output equation labels as "(#)" if lyxrc preference is set.
375 (setFontScalingFactor): use lyxrc variable preview_scale_factor
376 rather than hard-coding this.
378 2002-07-09 Angus Leeming <leeming@lyx.org>
380 * PreviewLoader.C: Further refactoring of the code. Should now be
383 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
384 past its sell-by date. The code to read the metrics file is now found
385 as a helper function in PreviewLoader.C.
387 * GraphicsImageXPM.C (scale): use boost::tie.
389 2002-07-08 Herbert Voss <voss@lyx.org>
391 * PreviewLoader.C: use of preview_size_factor to get the right
392 font-size! 0.9 is the default.
394 2002-07-08 Angus Leeming <leeming@lyx.org>
396 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
397 invocation of preview.sty.
398 Perform something of an internal clean-up.
400 2002-07-06 Angus Leeming <leeming@lyx.org>
402 * PreviewLoader.C: ensure that the metrics data is used by the
406 * PreviewImage.C: (Impl d-tor): remove all generated files that still
407 exist (perhaps because the process was curtailed before the images
410 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
412 2002-07-05 Angus Leeming <leeming@lyx.org>
421 * Previews.C: new files. The previewed LaTeX snippet stuff.
423 * Makefile.am: add these files.
425 2002-07-05 Angus Leeming <leeming@lyx.org>
427 * GraphicsLoader.h: whitespace.
429 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
431 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
432 boost::function from boost::signal.
434 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
436 * GraphicsConverter.C (convert): do not use ChangeExtension
437 because to_file_base may contain a dot.
439 2002-06-28 Angus Leeming <leeming@lyx.org>
441 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
442 by moving those SignalPtrs into the grfx::Image and grfx::Converter
443 classes where they really belong.
444 Use the Pimpl idiom to hide the class internals from public view.
446 * GraphicsTypes: remove the typedefs, leaving only the enums.
448 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
449 passed a reference to one in the load() method.
451 * GraphicsConverter.[Ch]: totally refactored. An instance of
452 grfx::Converter now represents a single conversion process.
453 Thus grfx::CachItem now has a grfx::Converter * that is set when the
454 conversion is initiated and destroyed on completion.
456 * GraphicsCache.[Ch]:
457 * GraphicsCacheItem.[Ch]:
458 * GraphicsConverter.[Ch]:
459 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
461 Note that I have done this only after making the above changes,
462 so not only should we have a clean, minimal and well documented
463 interface to these classes in the header files, but the class internals
464 should be much clearer too.
467 grfx::GCache -> grfx::Cache,
468 grfx::GCacheItem -> grfx::CacheItem,
469 grfx::GConverter -> grfx::Converter,
470 grfx::GImage -> grfx::Image,
471 grfx::GImageXPM -> grfx::ImageXPM,
472 grfx::GParams -> grfx::Params.
474 2002-06-26 Angus Leeming <leeming@lyx.org>
476 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
477 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
480 2002-06-26 Angus Leeming <leeming@lyx.org>
482 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
483 move the DisplayType enum out of grfx::GParams to here.
485 * GraphicsCacheItem.h: re-write preliminary description to reflect
488 * GraphicsParams.[Ch]:
489 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
490 grfx::DisplayType out of grfx::GParams.
492 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
493 that was in frontends/screen.C and insets/insetgraphics.C into a
494 single, easy-to-use class.
496 * Makefile.am: add these files.
498 2002-06-25 Angus Leeming <leeming@lyx.org>
500 * GraphicsCache.[Ch]:
501 * GraphicsCacheItem.[Ch]:
502 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
503 file into memory. The cache no longer controls the generation of the
504 pixmap. Instead, it just emits a signal when the loading status of an
506 The cache no longer stores InsetGraphics pointers and nor does it
507 assume responsibility for modifying an image (scaling, rotating etc).
508 Instead, that must now be performed elsewhere.
510 2002-06-19 Angus Leeming <leeming@lyx.org>
512 * GraphicsConverter.C: add using std::endl directive.
514 2002-06-17 Herbert Voss <voss@lyx.org>
516 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
517 default when nothing different was found
518 (convertToDisplayFormat): handle zipped files in the right way and
519 choose always convert as a default converter when no other
520 userdefined was found
522 * GraphicsConverter.C: add more lyxerr comments and choose
523 convert when no other userdefined converter was found
525 2002-06-10 Herbert Voss <voss@lyx.org>
527 * GraphicsImageXPM.C (convertTo7chars): get another special color
528 format from convert work in the right way
530 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
532 * GraphicsCache.C: use right colormap incantation
534 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
536 * GraphicsCache.C: use lyx_gui namespace
538 * GraphicsImageXPM.C: back down to using xforms
541 2002-06-07 Angus Leeming <leeming@lyx.org>
543 Fixes needed to compile with Compaq cxx 6.5.
544 * GraphicsConverter.h: forward declare class ConvProcess.
546 * GraphicsImageXPM.C:
547 all c-library variables have been moved into namespace std.
548 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
550 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
552 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
554 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
556 * GraphicsImageXPM.C: SigC to boot::signals changes.
557 (newImage): fix () bug when using new.
559 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
561 * switch from SigC signals to boost::signals.
563 2002-05-29 André Pönitz <poenitz@gmx.net>
565 * GraphicsParam.C: remove unneeded #include, move vomment
567 2002-05-28 André Pönitz <poenitz@gmx.net>
569 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
571 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
573 * GraphicsImageXPM.C: ColorHandler moved
575 2002-05-24 Juergen Vigna <jug@sad.it>
578 * GraphicsImage.h: include LString.h first.
580 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
582 * GraphicsCacheItem.h: use more specific smart_ptr header.
583 * GraphicsTypes.h: ditto
584 * GraphicsImage.h: ditto
585 * GraphicsConverter.h: ditto
587 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
589 * GraphicsImageXPM.C: understand convert's use of "opaque"
592 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
594 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
595 GImage::loadableFormats() that ensures that the signal is connected
596 to the derived class' method.
598 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
600 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
601 only work on the string.
603 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
605 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
606 the simple image loader when it encounters colour strings like
609 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
611 * GraphicsCacheItem.C (convertToDisplayFormat):
612 * GraphicsConverter.C (build_script): remove the Alerts when things go
613 wrong as the inset displays the message anyway. Moreover, Alert seems
614 pretty temperamemtal at the moment.
616 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
618 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
620 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
622 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
623 a reference to a temp object that's going out of scope...
625 2002-04-09 Herbert Voss <voss@lyx.org>
627 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
628 LyXLength::inBP instead of inPixels.
630 2002-04-10 Herbert Voss <voss@perce.de>
632 * GraphicsCache.[Ch]:
633 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
634 to read the "Bounding Box" from non (e)ps files.
636 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
638 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
639 the EPS file too, to ensure that the clipped Bounding Box is relative
640 to the original. (From Herbert.)
642 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
644 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
645 variables are initialised. Clean-up parsing of the string (with thanks
648 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
650 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
651 if the file can't be found.
653 * GraphicsParams.h (c-tor): remove string() as default argument.
655 * GraphicsCacheItem.C: a couple of changes as a result.
657 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
659 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
660 path to graphics file.
662 * GraphicsParams.[Ch] (c-tor): now passed filepath.
664 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
666 * most files: ws cleanup
668 * Makefile.am: remove ld -r stuff
670 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
672 * Makefile.am: special rules if partial linking
674 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
676 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
678 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
680 * GraphicsConverter.[Ch] (converted): make first arg const ref.
682 * GraphicsCacheItem.h: doxy change
684 * GraphicsCacheItem.C: ws change
686 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
688 * Makefile.am: if there is no image loading class leveraging the power
689 of the appropriate gui library, then compile the basic alternative
690 found in GraphicsImageXPM.[Ch].
692 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
694 * GraphicsCache.C: change associated with move of initialiseGraphics
697 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
699 * GraphicsParams.[Ch]:
701 * GraphicsImageXPM.C: properly resolve more warnings about comparison
702 between signed and unsigned integer expressions.
704 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
706 * GraphicsCache.C: move connections to the GImage-derived classes to
709 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
711 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
712 conversion, then do that.
714 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
716 * GraphicsCache.C: improve commentary to graphicsInit and where it
719 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
720 that became a memory leak properly. (Let the shared_c_ptr free the
722 (reset, mapcolor): tidy up and introduce a work around for XPM files
723 with crappy color entries. Print out a nice friendly message on what's
724 gone wrong and how to resolve it properly.
726 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
728 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
729 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
731 (unique_color_string): use the correct string c-tor.
733 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
736 * ImageLoaderXPM.[Ch]: removed.
738 * GraphicsConverter.[Ch]:
739 * GraphicsImage.[Ch]:
740 * GraphicsImageXPM.[Ch]:
741 * GraphicsParams.[Ch]:
742 * GraphicsTypes.h: new files.
744 * All files. A total re-write of the graphics cache. The cache now
745 supports asynchronous file conversion and file loading. Images
746 can be cropped, rotated and scaled for display on the LyX screen.
747 The old LyXImage and ImageLoader have been combined in a new class
748 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
751 2002-02-07 Herbert Voss <voss@lyx.org>
753 * GraphicsCacheItem.C: use unzipFile() from support/filetools
755 2002-01-31 Herbert Voss <voss@lyx.org>
757 * GraphicsCacheItem.h: handle filetype without the file extension;
758 getting type from contents; handle zipped files
760 2002-01-27 Herbert Voss <voss@lyx.org>
762 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
764 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
766 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
768 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
770 * GraphicsCacheItem.h: do not include <config.h> in header files
772 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
774 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
775 transparent colour, then set it to the colour of the background.
776 Also take account of the monochrome, grayscale of color
779 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
781 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
782 are different. Thus, don't delete the "to" if it's the original!
784 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
786 * ImageLoadXPM.C: remove setting of alloc colour mask,
787 led to crash as we don't define a callback
789 2001-07-29 Baruch Even <baruch@lyx.org>
791 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
792 colors with closeness of 10000.
794 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
796 2001-07-29 Baruch Even <baruch@lyx.org>
798 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
801 2001-07-23 Baruch Even <baruch@lyx.org>
803 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
804 the image after conversion.
806 2001-07-17 Baruch Even <baruch@lyx.org>
808 * GraphicsCacheItem.h:
809 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
810 from synchronous to asynchronous and to ease the coming changes.
812 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
814 * ImageLoaderXPM.C (runImageLoader): get display information from
817 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
820 * GraphicsCacheItem.C:
822 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
824 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
826 * GraphicsCache.h: inherit privately from noncopyable
827 * ImageLoader.h: ditto
828 * GraphicsCacheItem.h: ditto
830 2001-04-16 Allan Rae <rae@lyx.org>
832 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
833 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
836 2001-04-02 Baruch Even <baruch@lyx.org>
838 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
839 of hard coding ImageMagick.
841 2001-03-10 Baruch Even <baruch@lyx.org>
843 * GraphicsCache.C: Style change from (*it).field to it->field
845 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
847 * GraphicsCache.h: noncopyable is in namespace boost
848 * ImageLoader.h: ditto
849 * GraphicsCacheItem.h: ditto
851 2001-03-07 Baruch Even <baruch@lyx.org>
853 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
854 was false and it's not needed anyhow since the shared_ptr's in the cache
855 will destroy everything on exit.
857 2001-02-28 Baruch Even <baruch@ev-en.org>
860 * GraphicsCache.C: Changed the singleton pattern implementation, the
861 former version "leaked" in the sense that it was not deallocated at
864 2001-02-20 Baruch Even <baruch@ev-en.org>
866 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
867 instead of a pure pointer.
869 * GraphicsCacheItem.[Ch]:
870 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
871 removed the reference counting that was inside. Also fixed a bug where
872 a temporary file wouldn't get erased.
874 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
875 Ownership is now dropped when the caller requests the image_ pointer.
877 2001-02-20 Baruch Even <baruch@ev-en.org>
879 * GraphicsCache.C: Cleared up the confusion on when and how it is
882 * GraphicsCacheItem.C: Indentation change.
884 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
885 figure correctly when the image has been loaded successfully.
887 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
889 * ImageLoader.C: add a "using" directive.
891 * ImageLoader.h: remove extra comma at the end of enum; add an
892 std:: qualifier for vector.
894 2001-01-21 Baruch Even <baruch@ev-en.org>
896 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
897 height in the image itself and minor cleanups.
899 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
900 new ImageLoader class instead of the older Renderer class. This
901 means change of responsibilities.