1 2002-12-13 Angus Leeming <leeming@lyx.org>
3 * GraphicsImageXPM.[Ch]: removed.
5 * Makefile.am: associated change.
7 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
9 * several files: ws changes
11 2002-11-21 Angus Leeming <leeming@lyx.org>
13 * GraphicsConverter.C (build_script, move_file):
14 Don't use "if [ $? -ne 0 ]; then..."
16 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
18 * PreviewLoader.C (IncrementedFileName): STRCONV
21 * GraphicsConverter.C (Impl): STRCONV
24 * GraphicsTypes.C: include config.h
26 2002-10-25 Angus Leeming <leeming@lyx.org>
28 * GraphicsConverter.C (Impl::converted)
29 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
30 string as first arg, reflecting change in ForkedCall interface.
32 * PreviewLoader.C: use pid rather than command as identifier in
35 2002-10-18 Angus Leeming <leeming@lyx.org>
37 * GraphicsCacheItem.C (findTargetFormat): add debug message.
39 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
41 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
43 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
45 * GraphicsConverter.C (build_script): do not use ChangeExtension
49 2002-09-05 Angus Leeming <leeming@lyx.org>
51 * all files: modify the headers as discussed on the list.
53 2002-09-04 Angus Leeming <leeming@lyx.org>
55 * PreviewLoader.C (startLoading): pass the desired output format to the
58 2002-09-04 Angus Leeming <leeming@lyx.org>
60 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
62 2002-09-03 Angus Leeming <leeming@lyx.org>
64 * PreviewLoader.C: fix crash reported by Norbert Koksch when
65 generating more than 999 preview snippets. Use filenames with 5 digit
66 numbers, not 3, in the first instance, although more general code is
67 commented out. I don't suppose /anyone/ has 100000 formulae in one
70 2002-09-03 Angus Leeming <leeming@lyx.org>
72 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
74 2002-09-03 Angus Leeming <leeming@lyx.org>
76 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
78 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
80 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
81 convertDefault command with "sh ".
83 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
85 * GraphicsImage.C: small style fix to width/height setting.
87 * GraphicsTypes.h: have a displayTranslator here.
90 * GraphicsTypes.C: new file added for the setDisplayTranslator();
92 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
95 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
96 because this input has gone from the graphics dialog.
98 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
100 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
102 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
103 for support/smart_ptr.h, switch to boost smart ptr.
105 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
106 (~Data): let the smart_ptr handle cleanup
107 (reset): use nifty 3rd arg
109 (free_color_table): free the table manually
111 2002-08-09 Angus Leeming <leeming@lyx.org>
113 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
114 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
115 input@path is now set correctly.
117 2002-08-06 Angus Leeming <leeming@lyx.org>
119 * PreviewLoader.C: add support for preview.sty 0.73 (currently
120 #ifdef-ed out, awaiting the formal release).
122 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
123 the contents of a file that has changed.
125 2002-08-05 Angus Leeming <leeming@lyx.org>
127 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
128 to preview.sty. Works only for versions of preview.sty > 0.72b but
129 doesn't hurt earlier versions. Allows me to test the new parsing of
130 LyX-specific data from the generated log file.
132 2002-08-02 Angus Leeming <leeming@lyx.org>
134 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
136 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
137 (add): don't add empty snippets.
139 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
140 (view, setView): access to to the cache_.
142 2002-08-02 Angus Leeming <leeming@lyx.org>
144 * PreviewedInset.[Ch]: cache the LaTeX snippet.
146 2002-08-01 Angus Leeming <leeming@lyx.org>
148 * PreviewedInset.[Ch]: new files. An abstract base class that can help
149 insets to generate previews.
150 The daughter class must instantiate three small methods.
151 The Inset would own an instance of this daughter class and invoke it
152 as necessary. For example, mathd/formula.C gets previews at the cost
153 of 15 or so lines of code.
155 * Makefile.am: add PreviewedInset.[Ch].
157 * PreviewLoader.C (add): add debug message.
159 * Previews.C (generateBufferPreviews): remove if-block from loop.
161 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
163 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
165 (setAscentFractions): ditto
167 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
169 * PreviewLoader.C (setAscentFractions): modify because of strip
172 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
174 * GraphicsConverter.C (build_script): take a ostream as a more
175 general argument than ostringstream.
177 2002-07-22 Herbert Voss <voss@lyx.org>
179 * GraphicsConverter.C: get the "default converter" run again
181 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
183 * PreviewLoader.C: use BufferParams::getLyXTextClass
185 2002-07-21 Herbert Voss <voss@lyx.org>
187 * GraphicsImage.C: get the LyXAspectRatio run.
189 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
191 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
193 * PreviewLoader.C (startLoading): pass an interger as resolution
194 to the lyxpreview converter
196 * GraphicsParams.C: include <cstdlib>
198 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
200 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
201 preview converter script
203 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
205 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
208 2002-07-18 Angus Leeming <leeming@lyx.org>
210 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
212 (startMonitoring, monitoring, checksum): new methods to interact with
215 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
216 methods invoking the CacheItem methods of the same name.
217 (resetFile): if monitoring and the file changes, start monitoring this
220 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
222 * Makefile.am: remove FileMonitor.[Ch]
224 2002-06-17 Herbert Voss <voss@lyx.org>
226 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
227 for old ps-files (Garst). It's now handled by defining a converter and
228 disabling the ps-support of xforms.
230 2002-07-17 Angus Leeming <leeming@lyx.org>
232 Be true to the Pimpl idiom, moving all signals into the respective
233 Impl classes and defining methods to connect them to an outside slot.
234 Const-ify all visible class methods as they act only on a const pimpl_.
236 * GraphicsCache.[Ch] (add, remove): const-ify.
238 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
239 (statusChanged): move the signal into the Impl class.
240 (connect): new method, enabling a listener to connect to this signal.
242 * GraphicsConverter.[Ch]: (startConversion): const-ify.
243 (finishedConversion): move the signal into the Impl class.
244 (connect): new method, enabling a listener to connect to this signal.
246 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
247 (statusChanged): move the signal into the Impl class.
248 (connect): new method, enabling a listener to connect to this signal.
250 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
251 (imageReady): move the signal into the Impl class.
252 (connect): new method, enabling a listener to connect to this signal.
253 (emitSignal): new method, enabling PreviewImage to tell the outside
254 world that the file has been loaded into memory.
256 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
260 * GraphicsCacheItem.C:
261 * GraphicsConverter.[Ch]:
263 * GraphicsImageXPM.C:
265 * PreviewLoader.[Ch]: whitespace clean-up.
267 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
269 * PreviewLoader.C (setConverter): remove unused variable
271 * GraphicsImageXPM.C (isDrawable): implement
272 (setPixmap): the opaque color is black, not white
274 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
276 * GraphicsImageXPM.C (color_none_id):
277 (contains_color_none): use ascii_lowercase instead of lowercase
279 2002-07-16 Angus Leeming <leeming@lyx.org>
281 * PreviewLoader.C: greater use of STL algorithms.
283 * Previews.[Ch]: use const in more places.
284 (generateBufferPreviews): now takes a Buffer const & argument, not a
287 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
289 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
291 2002-07-12 Angus Leeming <leeming@lyx.org>
293 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
294 if visible 2 secs after the call to load them is first made.
296 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
297 BufferView to ascertain whether the inset is visible or not.
299 * Makefile.am: added GraphicsSupport.[Ch].
301 * PreviewImage.[Ch]: use this smart loader.
303 * PreviewLoader.C: don't load generated image files indiscimminantly.
304 Instead emit the imageReady signal and allow the image owner to decide.
306 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
308 * GraphicsCache.C: remove init_graphics()
310 2002-07-09 Angus Leeming <leeming@lyx.org>
312 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
313 arithmetic when it should be floating.
315 2002-07-09 Angus Leeming <leeming@lyx.org>
317 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
318 Output equation labels as "(#)" if lyxrc preference is set.
319 (setFontScalingFactor): use lyxrc variable preview_scale_factor
320 rather than hard-coding this.
322 2002-07-09 Angus Leeming <leeming@lyx.org>
324 * PreviewLoader.C: Further refactoring of the code. Should now be
327 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
328 past its sell-by date. The code to read the metrics file is now found
329 as a helper function in PreviewLoader.C.
331 * GraphicsImageXPM.C (scale): use boost::tie.
333 2002-07-08 Herbert Voss <voss@lyx.org>
335 * PreviewLoader.C: use of preview_size_factor to get the right
336 font-size! 0.9 is the default.
338 2002-07-08 Angus Leeming <leeming@lyx.org>
340 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
341 invocation of preview.sty.
342 Perform something of an internal clean-up.
344 2002-07-06 Angus Leeming <leeming@lyx.org>
346 * PreviewLoader.C: ensure that the metrics data is used by the
350 * PreviewImage.C: (Impl d-tor): remove all generated files that still
351 exist (perhaps because the process was curtailed before the images
354 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
356 2002-07-05 Angus Leeming <leeming@lyx.org>
365 * Previews.C: new files. The previewed LaTeX snippet stuff.
367 * Makefile.am: add these files.
369 2002-07-05 Angus Leeming <leeming@lyx.org>
371 * GraphicsLoader.h: whitespace.
373 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
375 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
376 boost::function from boost::signal.
378 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
380 * GraphicsConverter.C (convert): do not use ChangeExtension
381 because to_file_base may contain a dot.
383 2002-06-28 Angus Leeming <leeming@lyx.org>
385 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
386 by moving those SignalPtrs into the grfx::Image and grfx::Converter
387 classes where they really belong.
388 Use the Pimpl idiom to hide the class internals from public view.
390 * GraphicsTypes: remove the typedefs, leaving only the enums.
392 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
393 passed a reference to one in the load() method.
395 * GraphicsConverter.[Ch]: totally refactored. An instance of
396 grfx::Converter now represents a single conversion process.
397 Thus grfx::CachItem now has a grfx::Converter * that is set when the
398 conversion is initiated and destroyed on completion.
400 * GraphicsCache.[Ch]:
401 * GraphicsCacheItem.[Ch]:
402 * GraphicsConverter.[Ch]:
403 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
405 Note that I have done this only after making the above changes,
406 so not only should we have a clean, minimal and well documented
407 interface to these classes in the header files, but the class internals
408 should be much clearer too.
411 grfx::GCache -> grfx::Cache,
412 grfx::GCacheItem -> grfx::CacheItem,
413 grfx::GConverter -> grfx::Converter,
414 grfx::GImage -> grfx::Image,
415 grfx::GImageXPM -> grfx::ImageXPM,
416 grfx::GParams -> grfx::Params.
418 2002-06-26 Angus Leeming <leeming@lyx.org>
420 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
421 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
424 2002-06-26 Angus Leeming <leeming@lyx.org>
426 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
427 move the DisplayType enum out of grfx::GParams to here.
429 * GraphicsCacheItem.h: re-write preliminary description to reflect
432 * GraphicsParams.[Ch]:
433 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
434 grfx::DisplayType out of grfx::GParams.
436 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
437 that was in frontends/screen.C and insets/insetgraphics.C into a
438 single, easy-to-use class.
440 * Makefile.am: add these files.
442 2002-06-25 Angus Leeming <leeming@lyx.org>
444 * GraphicsCache.[Ch]:
445 * GraphicsCacheItem.[Ch]:
446 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
447 file into memory. The cache no longer controls the generation of the
448 pixmap. Instead, it just emits a signal when the loading status of an
450 The cache no longer stores InsetGraphics pointers and nor does it
451 assume responsibility for modifying an image (scaling, rotating etc).
452 Instead, that must now be performed elsewhere.
454 2002-06-19 Angus Leeming <leeming@lyx.org>
456 * GraphicsConverter.C: add using std::endl directive.
458 2002-06-17 Herbert Voss <voss@lyx.org>
460 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
461 default when nothing different was found
462 (convertToDisplayFormat): handle zipped files in the right way and
463 choose always convert as a default converter when no other
464 userdefined was found
466 * GraphicsConverter.C: add more lyxerr comments and choose
467 convert when no other userdefined converter was found
469 2002-06-10 Herbert Voss <voss@lyx.org>
471 * GraphicsImageXPM.C (convertTo7chars): get another special color
472 format from convert work in the right way
474 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
476 * GraphicsCache.C: use right colormap incantation
478 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
480 * GraphicsCache.C: use lyx_gui namespace
482 * GraphicsImageXPM.C: back down to using xforms
485 2002-06-07 Angus Leeming <leeming@lyx.org>
487 Fixes needed to compile with Compaq cxx 6.5.
488 * GraphicsConverter.h: forward declare class ConvProcess.
490 * GraphicsImageXPM.C:
491 all c-library variables have been moved into namespace std.
492 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
494 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
496 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
498 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
500 * GraphicsImageXPM.C: SigC to boot::signals changes.
501 (newImage): fix () bug when using new.
503 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
505 * switch from SigC signals to boost::signals.
507 2002-05-29 André Pönitz <poenitz@gmx.net>
509 * GraphicsParam.C: remove unneeded #include, move vomment
511 2002-05-28 André Pönitz <poenitz@gmx.net>
513 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
515 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
517 * GraphicsImageXPM.C: ColorHandler moved
519 2002-05-24 Juergen Vigna <jug@sad.it>
522 * GraphicsImage.h: include LString.h first.
524 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
526 * GraphicsCacheItem.h: use more specific smart_ptr header.
527 * GraphicsTypes.h: ditto
528 * GraphicsImage.h: ditto
529 * GraphicsConverter.h: ditto
531 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
533 * GraphicsImageXPM.C: understand convert's use of "opaque"
536 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
538 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
539 GImage::loadableFormats() that ensures that the signal is connected
540 to the derived class' method.
542 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
544 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
545 only work on the string.
547 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
549 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
550 the simple image loader when it encounters colour strings like
553 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
555 * GraphicsCacheItem.C (convertToDisplayFormat):
556 * GraphicsConverter.C (build_script): remove the Alerts when things go
557 wrong as the inset displays the message anyway. Moreover, Alert seems
558 pretty temperamemtal at the moment.
560 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
562 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
564 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
566 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
567 a reference to a temp object that's going out of scope...
569 2002-04-09 Herbert Voss <voss@lyx.org>
571 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
572 LyXLength::inBP instead of inPixels.
574 2002-04-10 Herbert Voss <voss@perce.de>
576 * GraphicsCache.[Ch]:
577 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
578 to read the "Bounding Box" from non (e)ps files.
580 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
582 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
583 the EPS file too, to ensure that the clipped Bounding Box is relative
584 to the original. (From Herbert.)
586 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
588 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
589 variables are initialised. Clean-up parsing of the string (with thanks
592 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
594 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
595 if the file can't be found.
597 * GraphicsParams.h (c-tor): remove string() as default argument.
599 * GraphicsCacheItem.C: a couple of changes as a result.
601 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
603 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
604 path to graphics file.
606 * GraphicsParams.[Ch] (c-tor): now passed filepath.
608 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
610 * most files: ws cleanup
612 * Makefile.am: remove ld -r stuff
614 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
616 * Makefile.am: special rules if partial linking
618 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
620 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
622 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
624 * GraphicsConverter.[Ch] (converted): make first arg const ref.
626 * GraphicsCacheItem.h: doxy change
628 * GraphicsCacheItem.C: ws change
630 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
632 * Makefile.am: if there is no image loading class leveraging the power
633 of the appropriate gui library, then compile the basic alternative
634 found in GraphicsImageXPM.[Ch].
636 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
638 * GraphicsCache.C: change associated with move of initialiseGraphics
641 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
643 * GraphicsParams.[Ch]:
645 * GraphicsImageXPM.C: properly resolve more warnings about comparison
646 between signed and unsigned integer expressions.
648 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
650 * GraphicsCache.C: move connections to the GImage-derived classes to
653 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
655 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
656 conversion, then do that.
658 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
660 * GraphicsCache.C: improve commentary to graphicsInit and where it
663 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
664 that became a memory leak properly. (Let the shared_c_ptr free the
666 (reset, mapcolor): tidy up and introduce a work around for XPM files
667 with crappy color entries. Print out a nice friendly message on what's
668 gone wrong and how to resolve it properly.
670 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
672 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
673 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
675 (unique_color_string): use the correct string c-tor.
677 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
680 * ImageLoaderXPM.[Ch]: removed.
682 * GraphicsConverter.[Ch]:
683 * GraphicsImage.[Ch]:
684 * GraphicsImageXPM.[Ch]:
685 * GraphicsParams.[Ch]:
686 * GraphicsTypes.h: new files.
688 * All files. A total re-write of the graphics cache. The cache now
689 supports asynchronous file conversion and file loading. Images
690 can be cropped, rotated and scaled for display on the LyX screen.
691 The old LyXImage and ImageLoader have been combined in a new class
692 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
695 2002-02-07 Herbert Voss <voss@lyx.org>
697 * GraphicsCacheItem.C: use unzipFile() from support/filetools
699 2002-01-31 Herbert Voss <voss@lyx.org>
701 * GraphicsCacheItem.h: handle filetype without the file extension;
702 getting type from contents; handle zipped files
704 2002-01-27 Herbert Voss <voss@lyx.org>
706 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
708 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
710 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
712 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
714 * GraphicsCacheItem.h: do not include <config.h> in header files
716 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
718 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
719 transparent colour, then set it to the colour of the background.
720 Also take account of the monochrome, grayscale of color
723 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
725 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
726 are different. Thus, don't delete the "to" if it's the original!
728 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
730 * ImageLoadXPM.C: remove setting of alloc colour mask,
731 led to crash as we don't define a callback
733 2001-07-29 Baruch Even <baruch@lyx.org>
735 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
736 colors with closeness of 10000.
738 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
740 2001-07-29 Baruch Even <baruch@lyx.org>
742 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
745 2001-07-23 Baruch Even <baruch@lyx.org>
747 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
748 the image after conversion.
750 2001-07-17 Baruch Even <baruch@lyx.org>
752 * GraphicsCacheItem.h:
753 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
754 from synchronous to asynchronous and to ease the coming changes.
756 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
758 * ImageLoaderXPM.C (runImageLoader): get display information from
761 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
764 * GraphicsCacheItem.C:
766 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
768 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
770 * GraphicsCache.h: inherit privately from noncopyable
771 * ImageLoader.h: ditto
772 * GraphicsCacheItem.h: ditto
774 2001-04-16 Allan Rae <rae@lyx.org>
776 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
777 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
780 2001-04-02 Baruch Even <baruch@lyx.org>
782 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
783 of hard coding ImageMagick.
785 2001-03-10 Baruch Even <baruch@lyx.org>
787 * GraphicsCache.C: Style change from (*it).field to it->field
789 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
791 * GraphicsCache.h: noncopyable is in namespace boost
792 * ImageLoader.h: ditto
793 * GraphicsCacheItem.h: ditto
795 2001-03-07 Baruch Even <baruch@lyx.org>
797 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
798 was false and it's not needed anyhow since the shared_ptr's in the cache
799 will destroy everything on exit.
801 2001-02-28 Baruch Even <baruch@ev-en.org>
804 * GraphicsCache.C: Changed the singleton pattern implementation, the
805 former version "leaked" in the sense that it was not deallocated at
808 2001-02-20 Baruch Even <baruch@ev-en.org>
810 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
811 instead of a pure pointer.
813 * GraphicsCacheItem.[Ch]:
814 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
815 removed the reference counting that was inside. Also fixed a bug where
816 a temporary file wouldn't get erased.
818 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
819 Ownership is now dropped when the caller requests the image_ pointer.
821 2001-02-20 Baruch Even <baruch@ev-en.org>
823 * GraphicsCache.C: Cleared up the confusion on when and how it is
826 * GraphicsCacheItem.C: Indentation change.
828 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
829 figure correctly when the image has been loaded successfully.
831 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
833 * ImageLoader.C: add a "using" directive.
835 * ImageLoader.h: remove extra comma at the end of enum; add an
836 std:: qualifier for vector.
838 2001-01-21 Baruch Even <baruch@ev-en.org>
840 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
841 height in the image itself and minor cleanups.
843 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
844 new ImageLoader class instead of the older Renderer class. This
845 means change of responsibilities.