1 2003-01-13 Angus Leeming <leeming@lyx.org>
3 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
4 format to be PPM not XPM.
6 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
8 * Makefile.am (EXTRA_DIST): remove variable
10 2002-12-13 Angus Leeming <leeming@lyx.org>
12 * GraphicsImageXPM.[Ch]: removed.
14 * Makefile.am: associated change.
16 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
18 * several files: ws changes
20 2002-11-21 Angus Leeming <leeming@lyx.org>
22 * GraphicsConverter.C (build_script, move_file):
23 Don't use "if [ $? -ne 0 ]; then..."
25 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
27 * PreviewLoader.C (IncrementedFileName): STRCONV
30 * GraphicsConverter.C (Impl): STRCONV
33 * GraphicsTypes.C: include config.h
35 2002-10-25 Angus Leeming <leeming@lyx.org>
37 * GraphicsConverter.C (Impl::converted)
38 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
39 string as first arg, reflecting change in ForkedCall interface.
41 * PreviewLoader.C: use pid rather than command as identifier in
44 2002-10-18 Angus Leeming <leeming@lyx.org>
46 * GraphicsCacheItem.C (findTargetFormat): add debug message.
48 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
50 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
52 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
54 * GraphicsConverter.C (build_script): do not use ChangeExtension
58 2002-09-05 Angus Leeming <leeming@lyx.org>
60 * all files: modify the headers as discussed on the list.
62 2002-09-04 Angus Leeming <leeming@lyx.org>
64 * PreviewLoader.C (startLoading): pass the desired output format to the
67 2002-09-04 Angus Leeming <leeming@lyx.org>
69 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
71 2002-09-03 Angus Leeming <leeming@lyx.org>
73 * PreviewLoader.C: fix crash reported by Norbert Koksch when
74 generating more than 999 preview snippets. Use filenames with 5 digit
75 numbers, not 3, in the first instance, although more general code is
76 commented out. I don't suppose /anyone/ has 100000 formulae in one
79 2002-09-03 Angus Leeming <leeming@lyx.org>
81 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
83 2002-09-03 Angus Leeming <leeming@lyx.org>
85 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
87 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
89 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
90 convertDefault command with "sh ".
92 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
94 * GraphicsImage.C: small style fix to width/height setting.
96 * GraphicsTypes.h: have a displayTranslator here.
99 * GraphicsTypes.C: new file added for the setDisplayTranslator();
101 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
104 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
105 because this input has gone from the graphics dialog.
107 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
109 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
111 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
112 for support/smart_ptr.h, switch to boost smart ptr.
114 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
115 (~Data): let the smart_ptr handle cleanup
116 (reset): use nifty 3rd arg
118 (free_color_table): free the table manually
120 2002-08-09 Angus Leeming <leeming@lyx.org>
122 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
123 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
124 input@path is now set correctly.
126 2002-08-06 Angus Leeming <leeming@lyx.org>
128 * PreviewLoader.C: add support for preview.sty 0.73 (currently
129 #ifdef-ed out, awaiting the formal release).
131 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
132 the contents of a file that has changed.
134 2002-08-05 Angus Leeming <leeming@lyx.org>
136 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
137 to preview.sty. Works only for versions of preview.sty > 0.72b but
138 doesn't hurt earlier versions. Allows me to test the new parsing of
139 LyX-specific data from the generated log file.
141 2002-08-02 Angus Leeming <leeming@lyx.org>
143 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
145 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
146 (add): don't add empty snippets.
148 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
149 (view, setView): access to to the cache_.
151 2002-08-02 Angus Leeming <leeming@lyx.org>
153 * PreviewedInset.[Ch]: cache the LaTeX snippet.
155 2002-08-01 Angus Leeming <leeming@lyx.org>
157 * PreviewedInset.[Ch]: new files. An abstract base class that can help
158 insets to generate previews.
159 The daughter class must instantiate three small methods.
160 The Inset would own an instance of this daughter class and invoke it
161 as necessary. For example, mathd/formula.C gets previews at the cost
162 of 15 or so lines of code.
164 * Makefile.am: add PreviewedInset.[Ch].
166 * PreviewLoader.C (add): add debug message.
168 * Previews.C (generateBufferPreviews): remove if-block from loop.
170 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
172 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
174 (setAscentFractions): ditto
176 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
178 * PreviewLoader.C (setAscentFractions): modify because of strip
181 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
183 * GraphicsConverter.C (build_script): take a ostream as a more
184 general argument than ostringstream.
186 2002-07-22 Herbert Voss <voss@lyx.org>
188 * GraphicsConverter.C: get the "default converter" run again
190 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
192 * PreviewLoader.C: use BufferParams::getLyXTextClass
194 2002-07-21 Herbert Voss <voss@lyx.org>
196 * GraphicsImage.C: get the LyXAspectRatio run.
198 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
200 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
202 * PreviewLoader.C (startLoading): pass an interger as resolution
203 to the lyxpreview converter
205 * GraphicsParams.C: include <cstdlib>
207 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
209 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
210 preview converter script
212 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
214 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
217 2002-07-18 Angus Leeming <leeming@lyx.org>
219 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
221 (startMonitoring, monitoring, checksum): new methods to interact with
224 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
225 methods invoking the CacheItem methods of the same name.
226 (resetFile): if monitoring and the file changes, start monitoring this
229 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
231 * Makefile.am: remove FileMonitor.[Ch]
233 2002-06-17 Herbert Voss <voss@lyx.org>
235 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
236 for old ps-files (Garst). It's now handled by defining a converter and
237 disabling the ps-support of xforms.
239 2002-07-17 Angus Leeming <leeming@lyx.org>
241 Be true to the Pimpl idiom, moving all signals into the respective
242 Impl classes and defining methods to connect them to an outside slot.
243 Const-ify all visible class methods as they act only on a const pimpl_.
245 * GraphicsCache.[Ch] (add, remove): const-ify.
247 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
248 (statusChanged): move the signal into the Impl class.
249 (connect): new method, enabling a listener to connect to this signal.
251 * GraphicsConverter.[Ch]: (startConversion): const-ify.
252 (finishedConversion): move the signal into the Impl class.
253 (connect): new method, enabling a listener to connect to this signal.
255 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
256 (statusChanged): move the signal into the Impl class.
257 (connect): new method, enabling a listener to connect to this signal.
259 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
260 (imageReady): move the signal into the Impl class.
261 (connect): new method, enabling a listener to connect to this signal.
262 (emitSignal): new method, enabling PreviewImage to tell the outside
263 world that the file has been loaded into memory.
265 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
269 * GraphicsCacheItem.C:
270 * GraphicsConverter.[Ch]:
272 * GraphicsImageXPM.C:
274 * PreviewLoader.[Ch]: whitespace clean-up.
276 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
278 * PreviewLoader.C (setConverter): remove unused variable
280 * GraphicsImageXPM.C (isDrawable): implement
281 (setPixmap): the opaque color is black, not white
283 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
285 * GraphicsImageXPM.C (color_none_id):
286 (contains_color_none): use ascii_lowercase instead of lowercase
288 2002-07-16 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C: greater use of STL algorithms.
292 * Previews.[Ch]: use const in more places.
293 (generateBufferPreviews): now takes a Buffer const & argument, not a
296 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
298 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
300 2002-07-12 Angus Leeming <leeming@lyx.org>
302 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
303 if visible 2 secs after the call to load them is first made.
305 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
306 BufferView to ascertain whether the inset is visible or not.
308 * Makefile.am: added GraphicsSupport.[Ch].
310 * PreviewImage.[Ch]: use this smart loader.
312 * PreviewLoader.C: don't load generated image files indiscimminantly.
313 Instead emit the imageReady signal and allow the image owner to decide.
315 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
317 * GraphicsCache.C: remove init_graphics()
319 2002-07-09 Angus Leeming <leeming@lyx.org>
321 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
322 arithmetic when it should be floating.
324 2002-07-09 Angus Leeming <leeming@lyx.org>
326 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
327 Output equation labels as "(#)" if lyxrc preference is set.
328 (setFontScalingFactor): use lyxrc variable preview_scale_factor
329 rather than hard-coding this.
331 2002-07-09 Angus Leeming <leeming@lyx.org>
333 * PreviewLoader.C: Further refactoring of the code. Should now be
336 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
337 past its sell-by date. The code to read the metrics file is now found
338 as a helper function in PreviewLoader.C.
340 * GraphicsImageXPM.C (scale): use boost::tie.
342 2002-07-08 Herbert Voss <voss@lyx.org>
344 * PreviewLoader.C: use of preview_size_factor to get the right
345 font-size! 0.9 is the default.
347 2002-07-08 Angus Leeming <leeming@lyx.org>
349 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
350 invocation of preview.sty.
351 Perform something of an internal clean-up.
353 2002-07-06 Angus Leeming <leeming@lyx.org>
355 * PreviewLoader.C: ensure that the metrics data is used by the
359 * PreviewImage.C: (Impl d-tor): remove all generated files that still
360 exist (perhaps because the process was curtailed before the images
363 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
365 2002-07-05 Angus Leeming <leeming@lyx.org>
374 * Previews.C: new files. The previewed LaTeX snippet stuff.
376 * Makefile.am: add these files.
378 2002-07-05 Angus Leeming <leeming@lyx.org>
380 * GraphicsLoader.h: whitespace.
382 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
384 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
385 boost::function from boost::signal.
387 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
389 * GraphicsConverter.C (convert): do not use ChangeExtension
390 because to_file_base may contain a dot.
392 2002-06-28 Angus Leeming <leeming@lyx.org>
394 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
395 by moving those SignalPtrs into the grfx::Image and grfx::Converter
396 classes where they really belong.
397 Use the Pimpl idiom to hide the class internals from public view.
399 * GraphicsTypes: remove the typedefs, leaving only the enums.
401 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
402 passed a reference to one in the load() method.
404 * GraphicsConverter.[Ch]: totally refactored. An instance of
405 grfx::Converter now represents a single conversion process.
406 Thus grfx::CachItem now has a grfx::Converter * that is set when the
407 conversion is initiated and destroyed on completion.
409 * GraphicsCache.[Ch]:
410 * GraphicsCacheItem.[Ch]:
411 * GraphicsConverter.[Ch]:
412 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
414 Note that I have done this only after making the above changes,
415 so not only should we have a clean, minimal and well documented
416 interface to these classes in the header files, but the class internals
417 should be much clearer too.
420 grfx::GCache -> grfx::Cache,
421 grfx::GCacheItem -> grfx::CacheItem,
422 grfx::GConverter -> grfx::Converter,
423 grfx::GImage -> grfx::Image,
424 grfx::GImageXPM -> grfx::ImageXPM,
425 grfx::GParams -> grfx::Params.
427 2002-06-26 Angus Leeming <leeming@lyx.org>
429 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
430 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
433 2002-06-26 Angus Leeming <leeming@lyx.org>
435 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
436 move the DisplayType enum out of grfx::GParams to here.
438 * GraphicsCacheItem.h: re-write preliminary description to reflect
441 * GraphicsParams.[Ch]:
442 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
443 grfx::DisplayType out of grfx::GParams.
445 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
446 that was in frontends/screen.C and insets/insetgraphics.C into a
447 single, easy-to-use class.
449 * Makefile.am: add these files.
451 2002-06-25 Angus Leeming <leeming@lyx.org>
453 * GraphicsCache.[Ch]:
454 * GraphicsCacheItem.[Ch]:
455 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
456 file into memory. The cache no longer controls the generation of the
457 pixmap. Instead, it just emits a signal when the loading status of an
459 The cache no longer stores InsetGraphics pointers and nor does it
460 assume responsibility for modifying an image (scaling, rotating etc).
461 Instead, that must now be performed elsewhere.
463 2002-06-19 Angus Leeming <leeming@lyx.org>
465 * GraphicsConverter.C: add using std::endl directive.
467 2002-06-17 Herbert Voss <voss@lyx.org>
469 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
470 default when nothing different was found
471 (convertToDisplayFormat): handle zipped files in the right way and
472 choose always convert as a default converter when no other
473 userdefined was found
475 * GraphicsConverter.C: add more lyxerr comments and choose
476 convert when no other userdefined converter was found
478 2002-06-10 Herbert Voss <voss@lyx.org>
480 * GraphicsImageXPM.C (convertTo7chars): get another special color
481 format from convert work in the right way
483 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
485 * GraphicsCache.C: use right colormap incantation
487 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
489 * GraphicsCache.C: use lyx_gui namespace
491 * GraphicsImageXPM.C: back down to using xforms
494 2002-06-07 Angus Leeming <leeming@lyx.org>
496 Fixes needed to compile with Compaq cxx 6.5.
497 * GraphicsConverter.h: forward declare class ConvProcess.
499 * GraphicsImageXPM.C:
500 all c-library variables have been moved into namespace std.
501 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
503 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
505 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
507 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
509 * GraphicsImageXPM.C: SigC to boot::signals changes.
510 (newImage): fix () bug when using new.
512 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
514 * switch from SigC signals to boost::signals.
516 2002-05-29 André Pönitz <poenitz@gmx.net>
518 * GraphicsParam.C: remove unneeded #include, move vomment
520 2002-05-28 André Pönitz <poenitz@gmx.net>
522 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
524 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
526 * GraphicsImageXPM.C: ColorHandler moved
528 2002-05-24 Juergen Vigna <jug@sad.it>
531 * GraphicsImage.h: include LString.h first.
533 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
535 * GraphicsCacheItem.h: use more specific smart_ptr header.
536 * GraphicsTypes.h: ditto
537 * GraphicsImage.h: ditto
538 * GraphicsConverter.h: ditto
540 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
542 * GraphicsImageXPM.C: understand convert's use of "opaque"
545 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
547 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
548 GImage::loadableFormats() that ensures that the signal is connected
549 to the derived class' method.
551 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
553 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
554 only work on the string.
556 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
558 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
559 the simple image loader when it encounters colour strings like
562 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
564 * GraphicsCacheItem.C (convertToDisplayFormat):
565 * GraphicsConverter.C (build_script): remove the Alerts when things go
566 wrong as the inset displays the message anyway. Moreover, Alert seems
567 pretty temperamemtal at the moment.
569 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
571 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
573 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
575 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
576 a reference to a temp object that's going out of scope...
578 2002-04-09 Herbert Voss <voss@lyx.org>
580 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
581 LyXLength::inBP instead of inPixels.
583 2002-04-10 Herbert Voss <voss@perce.de>
585 * GraphicsCache.[Ch]:
586 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
587 to read the "Bounding Box" from non (e)ps files.
589 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
591 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
592 the EPS file too, to ensure that the clipped Bounding Box is relative
593 to the original. (From Herbert.)
595 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
597 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
598 variables are initialised. Clean-up parsing of the string (with thanks
601 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
603 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
604 if the file can't be found.
606 * GraphicsParams.h (c-tor): remove string() as default argument.
608 * GraphicsCacheItem.C: a couple of changes as a result.
610 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
612 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
613 path to graphics file.
615 * GraphicsParams.[Ch] (c-tor): now passed filepath.
617 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
619 * most files: ws cleanup
621 * Makefile.am: remove ld -r stuff
623 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
625 * Makefile.am: special rules if partial linking
627 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
629 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
631 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
633 * GraphicsConverter.[Ch] (converted): make first arg const ref.
635 * GraphicsCacheItem.h: doxy change
637 * GraphicsCacheItem.C: ws change
639 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
641 * Makefile.am: if there is no image loading class leveraging the power
642 of the appropriate gui library, then compile the basic alternative
643 found in GraphicsImageXPM.[Ch].
645 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
647 * GraphicsCache.C: change associated with move of initialiseGraphics
650 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
652 * GraphicsParams.[Ch]:
654 * GraphicsImageXPM.C: properly resolve more warnings about comparison
655 between signed and unsigned integer expressions.
657 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
659 * GraphicsCache.C: move connections to the GImage-derived classes to
662 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
664 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
665 conversion, then do that.
667 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
669 * GraphicsCache.C: improve commentary to graphicsInit and where it
672 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
673 that became a memory leak properly. (Let the shared_c_ptr free the
675 (reset, mapcolor): tidy up and introduce a work around for XPM files
676 with crappy color entries. Print out a nice friendly message on what's
677 gone wrong and how to resolve it properly.
679 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
681 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
682 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
684 (unique_color_string): use the correct string c-tor.
686 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
689 * ImageLoaderXPM.[Ch]: removed.
691 * GraphicsConverter.[Ch]:
692 * GraphicsImage.[Ch]:
693 * GraphicsImageXPM.[Ch]:
694 * GraphicsParams.[Ch]:
695 * GraphicsTypes.h: new files.
697 * All files. A total re-write of the graphics cache. The cache now
698 supports asynchronous file conversion and file loading. Images
699 can be cropped, rotated and scaled for display on the LyX screen.
700 The old LyXImage and ImageLoader have been combined in a new class
701 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
704 2002-02-07 Herbert Voss <voss@lyx.org>
706 * GraphicsCacheItem.C: use unzipFile() from support/filetools
708 2002-01-31 Herbert Voss <voss@lyx.org>
710 * GraphicsCacheItem.h: handle filetype without the file extension;
711 getting type from contents; handle zipped files
713 2002-01-27 Herbert Voss <voss@lyx.org>
715 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
717 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
719 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
721 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
723 * GraphicsCacheItem.h: do not include <config.h> in header files
725 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
727 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
728 transparent colour, then set it to the colour of the background.
729 Also take account of the monochrome, grayscale of color
732 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
734 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
735 are different. Thus, don't delete the "to" if it's the original!
737 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
739 * ImageLoadXPM.C: remove setting of alloc colour mask,
740 led to crash as we don't define a callback
742 2001-07-29 Baruch Even <baruch@lyx.org>
744 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
745 colors with closeness of 10000.
747 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
749 2001-07-29 Baruch Even <baruch@lyx.org>
751 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
754 2001-07-23 Baruch Even <baruch@lyx.org>
756 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
757 the image after conversion.
759 2001-07-17 Baruch Even <baruch@lyx.org>
761 * GraphicsCacheItem.h:
762 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
763 from synchronous to asynchronous and to ease the coming changes.
765 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
767 * ImageLoaderXPM.C (runImageLoader): get display information from
770 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
773 * GraphicsCacheItem.C:
775 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
777 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
779 * GraphicsCache.h: inherit privately from noncopyable
780 * ImageLoader.h: ditto
781 * GraphicsCacheItem.h: ditto
783 2001-04-16 Allan Rae <rae@lyx.org>
785 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
786 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
789 2001-04-02 Baruch Even <baruch@lyx.org>
791 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
792 of hard coding ImageMagick.
794 2001-03-10 Baruch Even <baruch@lyx.org>
796 * GraphicsCache.C: Style change from (*it).field to it->field
798 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
800 * GraphicsCache.h: noncopyable is in namespace boost
801 * ImageLoader.h: ditto
802 * GraphicsCacheItem.h: ditto
804 2001-03-07 Baruch Even <baruch@lyx.org>
806 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
807 was false and it's not needed anyhow since the shared_ptr's in the cache
808 will destroy everything on exit.
810 2001-02-28 Baruch Even <baruch@ev-en.org>
813 * GraphicsCache.C: Changed the singleton pattern implementation, the
814 former version "leaked" in the sense that it was not deallocated at
817 2001-02-20 Baruch Even <baruch@ev-en.org>
819 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
820 instead of a pure pointer.
822 * GraphicsCacheItem.[Ch]:
823 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
824 removed the reference counting that was inside. Also fixed a bug where
825 a temporary file wouldn't get erased.
827 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
828 Ownership is now dropped when the caller requests the image_ pointer.
830 2001-02-20 Baruch Even <baruch@ev-en.org>
832 * GraphicsCache.C: Cleared up the confusion on when and how it is
835 * GraphicsCacheItem.C: Indentation change.
837 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
838 figure correctly when the image has been loaded successfully.
840 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
842 * ImageLoader.C: add a "using" directive.
844 * ImageLoader.h: remove extra comma at the end of enum; add an
845 std:: qualifier for vector.
847 2001-01-21 Baruch Even <baruch@ev-en.org>
849 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
850 height in the image itself and minor cleanups.
852 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
853 new ImageLoader class instead of the older Renderer class. This
854 means change of responsibilities.