1 2003-02-26 Angus Leeming <leeming@lyx.org>
3 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
4 use the cache of the parent inset instead.
6 * PreviewLoader.C (startLoading): Prevent a crash if the user is
7 not using a tmp directory.
9 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
11 * GraphicsLoader.[Ch],
13 * PreviewedInset.C: Removed unneeded list of owner insets
15 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
17 * GraphicsConverter (startConversion): add the call to
20 * GraphicsLoader.[Ch],
22 * PreviewedInset.C: Removed unneeded BufferView
24 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
26 * LoaderQueue.[Ch]: a simplification of the code, eliminated
27 the unneeded input bucket.
29 * GraphicsCacheItem.C (imageConverted): move warning inside the
32 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
34 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
36 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
38 * LoaderQueue.[Ch] (setPriority): added
40 * PreviewLoader.C (finishedGenerating): reversed the loading order so
41 first images get 'touched' last, and so load first.
43 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
45 * LoaderQueue.[Ch]: added. Implements a service queue that loads
47 * GraphicsSupport.[Ch]: removed
48 * Makefile.am: the changes above
49 * GraphicsLoader.C: use the loading queue
51 2003-01-21 Angus Leeming <leeming@lyx.org>
53 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
54 previews from being generated.
56 2003-01-13 Angus Leeming <leeming@lyx.org>
58 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
59 format to be PPM not XPM.
61 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
63 * Makefile.am (EXTRA_DIST): remove variable
65 2002-12-13 Angus Leeming <leeming@lyx.org>
67 * GraphicsImageXPM.[Ch]: removed.
69 * Makefile.am: associated change.
71 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
73 * several files: ws changes
75 2002-11-21 Angus Leeming <leeming@lyx.org>
77 * GraphicsConverter.C (build_script, move_file):
78 Don't use "if [ $? -ne 0 ]; then..."
80 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
82 * PreviewLoader.C (IncrementedFileName): STRCONV
85 * GraphicsConverter.C (Impl): STRCONV
88 * GraphicsTypes.C: include config.h
90 2002-10-25 Angus Leeming <leeming@lyx.org>
92 * GraphicsConverter.C (Impl::converted)
93 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
94 string as first arg, reflecting change in ForkedCall interface.
96 * PreviewLoader.C: use pid rather than command as identifier in
99 2002-10-18 Angus Leeming <leeming@lyx.org>
101 * GraphicsCacheItem.C (findTargetFormat): add debug message.
103 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
105 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
107 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
109 * GraphicsConverter.C (build_script): do not use ChangeExtension
113 2002-09-05 Angus Leeming <leeming@lyx.org>
115 * all files: modify the headers as discussed on the list.
117 2002-09-04 Angus Leeming <leeming@lyx.org>
119 * PreviewLoader.C (startLoading): pass the desired output format to the
122 2002-09-04 Angus Leeming <leeming@lyx.org>
124 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
126 2002-09-03 Angus Leeming <leeming@lyx.org>
128 * PreviewLoader.C: fix crash reported by Norbert Koksch when
129 generating more than 999 preview snippets. Use filenames with 5 digit
130 numbers, not 3, in the first instance, although more general code is
131 commented out. I don't suppose /anyone/ has 100000 formulae in one
134 2002-09-03 Angus Leeming <leeming@lyx.org>
136 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
138 2002-09-03 Angus Leeming <leeming@lyx.org>
140 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
142 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
144 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
145 convertDefault command with "sh ".
147 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
149 * GraphicsImage.C: small style fix to width/height setting.
151 * GraphicsTypes.h: have a displayTranslator here.
154 * GraphicsTypes.C: new file added for the setDisplayTranslator();
156 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
159 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
160 because this input has gone from the graphics dialog.
162 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
164 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
166 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
167 for support/smart_ptr.h, switch to boost smart ptr.
169 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
170 (~Data): let the smart_ptr handle cleanup
171 (reset): use nifty 3rd arg
173 (free_color_table): free the table manually
175 2002-08-09 Angus Leeming <leeming@lyx.org>
177 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
178 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
179 input@path is now set correctly.
181 2002-08-06 Angus Leeming <leeming@lyx.org>
183 * PreviewLoader.C: add support for preview.sty 0.73 (currently
184 #ifdef-ed out, awaiting the formal release).
186 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
187 the contents of a file that has changed.
189 2002-08-05 Angus Leeming <leeming@lyx.org>
191 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
192 to preview.sty. Works only for versions of preview.sty > 0.72b but
193 doesn't hurt earlier versions. Allows me to test the new parsing of
194 LyX-specific data from the generated log file.
196 2002-08-02 Angus Leeming <leeming@lyx.org>
198 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
200 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
201 (add): don't add empty snippets.
203 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
204 (view, setView): access to to the cache_.
206 2002-08-02 Angus Leeming <leeming@lyx.org>
208 * PreviewedInset.[Ch]: cache the LaTeX snippet.
210 2002-08-01 Angus Leeming <leeming@lyx.org>
212 * PreviewedInset.[Ch]: new files. An abstract base class that can help
213 insets to generate previews.
214 The daughter class must instantiate three small methods.
215 The Inset would own an instance of this daughter class and invoke it
216 as necessary. For example, mathd/formula.C gets previews at the cost
217 of 15 or so lines of code.
219 * Makefile.am: add PreviewedInset.[Ch].
221 * PreviewLoader.C (add): add debug message.
223 * Previews.C (generateBufferPreviews): remove if-block from loop.
225 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
227 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
229 (setAscentFractions): ditto
231 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
233 * PreviewLoader.C (setAscentFractions): modify because of strip
236 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
238 * GraphicsConverter.C (build_script): take a ostream as a more
239 general argument than ostringstream.
241 2002-07-22 Herbert Voss <voss@lyx.org>
243 * GraphicsConverter.C: get the "default converter" run again
245 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
247 * PreviewLoader.C: use BufferParams::getLyXTextClass
249 2002-07-21 Herbert Voss <voss@lyx.org>
251 * GraphicsImage.C: get the LyXAspectRatio run.
253 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
255 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
257 * PreviewLoader.C (startLoading): pass an interger as resolution
258 to the lyxpreview converter
260 * GraphicsParams.C: include <cstdlib>
262 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
264 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
265 preview converter script
267 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
269 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
272 2002-07-18 Angus Leeming <leeming@lyx.org>
274 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
276 (startMonitoring, monitoring, checksum): new methods to interact with
279 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
280 methods invoking the CacheItem methods of the same name.
281 (resetFile): if monitoring and the file changes, start monitoring this
284 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
286 * Makefile.am: remove FileMonitor.[Ch]
288 2002-06-17 Herbert Voss <voss@lyx.org>
290 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
291 for old ps-files (Garst). It's now handled by defining a converter and
292 disabling the ps-support of xforms.
294 2002-07-17 Angus Leeming <leeming@lyx.org>
296 Be true to the Pimpl idiom, moving all signals into the respective
297 Impl classes and defining methods to connect them to an outside slot.
298 Const-ify all visible class methods as they act only on a const pimpl_.
300 * GraphicsCache.[Ch] (add, remove): const-ify.
302 * GraphicsCacheItem.[Ch] (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 * GraphicsConverter.[Ch]: (startConversion): const-ify.
307 (finishedConversion): move the signal into the Impl class.
308 (connect): new method, enabling a listener to connect to this signal.
310 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
311 (statusChanged): move the signal into the Impl class.
312 (connect): new method, enabling a listener to connect to this signal.
314 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
315 (imageReady): move the signal into the Impl class.
316 (connect): new method, enabling a listener to connect to this signal.
317 (emitSignal): new method, enabling PreviewImage to tell the outside
318 world that the file has been loaded into memory.
320 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
324 * GraphicsCacheItem.C:
325 * GraphicsConverter.[Ch]:
327 * GraphicsImageXPM.C:
329 * PreviewLoader.[Ch]: whitespace clean-up.
331 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
333 * PreviewLoader.C (setConverter): remove unused variable
335 * GraphicsImageXPM.C (isDrawable): implement
336 (setPixmap): the opaque color is black, not white
338 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
340 * GraphicsImageXPM.C (color_none_id):
341 (contains_color_none): use ascii_lowercase instead of lowercase
343 2002-07-16 Angus Leeming <leeming@lyx.org>
345 * PreviewLoader.C: greater use of STL algorithms.
347 * Previews.[Ch]: use const in more places.
348 (generateBufferPreviews): now takes a Buffer const & argument, not a
351 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
353 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
355 2002-07-12 Angus Leeming <leeming@lyx.org>
357 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
358 if visible 2 secs after the call to load them is first made.
360 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
361 BufferView to ascertain whether the inset is visible or not.
363 * Makefile.am: added GraphicsSupport.[Ch].
365 * PreviewImage.[Ch]: use this smart loader.
367 * PreviewLoader.C: don't load generated image files indiscimminantly.
368 Instead emit the imageReady signal and allow the image owner to decide.
370 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
372 * GraphicsCache.C: remove init_graphics()
374 2002-07-09 Angus Leeming <leeming@lyx.org>
376 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
377 arithmetic when it should be floating.
379 2002-07-09 Angus Leeming <leeming@lyx.org>
381 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
382 Output equation labels as "(#)" if lyxrc preference is set.
383 (setFontScalingFactor): use lyxrc variable preview_scale_factor
384 rather than hard-coding this.
386 2002-07-09 Angus Leeming <leeming@lyx.org>
388 * PreviewLoader.C: Further refactoring of the code. Should now be
391 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
392 past its sell-by date. The code to read the metrics file is now found
393 as a helper function in PreviewLoader.C.
395 * GraphicsImageXPM.C (scale): use boost::tie.
397 2002-07-08 Herbert Voss <voss@lyx.org>
399 * PreviewLoader.C: use of preview_size_factor to get the right
400 font-size! 0.9 is the default.
402 2002-07-08 Angus Leeming <leeming@lyx.org>
404 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
405 invocation of preview.sty.
406 Perform something of an internal clean-up.
408 2002-07-06 Angus Leeming <leeming@lyx.org>
410 * PreviewLoader.C: ensure that the metrics data is used by the
414 * PreviewImage.C: (Impl d-tor): remove all generated files that still
415 exist (perhaps because the process was curtailed before the images
418 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
420 2002-07-05 Angus Leeming <leeming@lyx.org>
429 * Previews.C: new files. The previewed LaTeX snippet stuff.
431 * Makefile.am: add these files.
433 2002-07-05 Angus Leeming <leeming@lyx.org>
435 * GraphicsLoader.h: whitespace.
437 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
439 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
440 boost::function from boost::signal.
442 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
444 * GraphicsConverter.C (convert): do not use ChangeExtension
445 because to_file_base may contain a dot.
447 2002-06-28 Angus Leeming <leeming@lyx.org>
449 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
450 by moving those SignalPtrs into the grfx::Image and grfx::Converter
451 classes where they really belong.
452 Use the Pimpl idiom to hide the class internals from public view.
454 * GraphicsTypes: remove the typedefs, leaving only the enums.
456 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
457 passed a reference to one in the load() method.
459 * GraphicsConverter.[Ch]: totally refactored. An instance of
460 grfx::Converter now represents a single conversion process.
461 Thus grfx::CachItem now has a grfx::Converter * that is set when the
462 conversion is initiated and destroyed on completion.
464 * GraphicsCache.[Ch]:
465 * GraphicsCacheItem.[Ch]:
466 * GraphicsConverter.[Ch]:
467 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
469 Note that I have done this only after making the above changes,
470 so not only should we have a clean, minimal and well documented
471 interface to these classes in the header files, but the class internals
472 should be much clearer too.
475 grfx::GCache -> grfx::Cache,
476 grfx::GCacheItem -> grfx::CacheItem,
477 grfx::GConverter -> grfx::Converter,
478 grfx::GImage -> grfx::Image,
479 grfx::GImageXPM -> grfx::ImageXPM,
480 grfx::GParams -> grfx::Params.
482 2002-06-26 Angus Leeming <leeming@lyx.org>
484 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
485 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
488 2002-06-26 Angus Leeming <leeming@lyx.org>
490 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
491 move the DisplayType enum out of grfx::GParams to here.
493 * GraphicsCacheItem.h: re-write preliminary description to reflect
496 * GraphicsParams.[Ch]:
497 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
498 grfx::DisplayType out of grfx::GParams.
500 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
501 that was in frontends/screen.C and insets/insetgraphics.C into a
502 single, easy-to-use class.
504 * Makefile.am: add these files.
506 2002-06-25 Angus Leeming <leeming@lyx.org>
508 * GraphicsCache.[Ch]:
509 * GraphicsCacheItem.[Ch]:
510 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
511 file into memory. The cache no longer controls the generation of the
512 pixmap. Instead, it just emits a signal when the loading status of an
514 The cache no longer stores InsetGraphics pointers and nor does it
515 assume responsibility for modifying an image (scaling, rotating etc).
516 Instead, that must now be performed elsewhere.
518 2002-06-19 Angus Leeming <leeming@lyx.org>
520 * GraphicsConverter.C: add using std::endl directive.
522 2002-06-17 Herbert Voss <voss@lyx.org>
524 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
525 default when nothing different was found
526 (convertToDisplayFormat): handle zipped files in the right way and
527 choose always convert as a default converter when no other
528 userdefined was found
530 * GraphicsConverter.C: add more lyxerr comments and choose
531 convert when no other userdefined converter was found
533 2002-06-10 Herbert Voss <voss@lyx.org>
535 * GraphicsImageXPM.C (convertTo7chars): get another special color
536 format from convert work in the right way
538 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
540 * GraphicsCache.C: use right colormap incantation
542 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
544 * GraphicsCache.C: use lyx_gui namespace
546 * GraphicsImageXPM.C: back down to using xforms
549 2002-06-07 Angus Leeming <leeming@lyx.org>
551 Fixes needed to compile with Compaq cxx 6.5.
552 * GraphicsConverter.h: forward declare class ConvProcess.
554 * GraphicsImageXPM.C:
555 all c-library variables have been moved into namespace std.
556 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
558 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
560 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
562 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
564 * GraphicsImageXPM.C: SigC to boot::signals changes.
565 (newImage): fix () bug when using new.
567 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
569 * switch from SigC signals to boost::signals.
571 2002-05-29 André Pönitz <poenitz@gmx.net>
573 * GraphicsParam.C: remove unneeded #include, move vomment
575 2002-05-28 André Pönitz <poenitz@gmx.net>
577 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
579 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
581 * GraphicsImageXPM.C: ColorHandler moved
583 2002-05-24 Juergen Vigna <jug@sad.it>
586 * GraphicsImage.h: include LString.h first.
588 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
590 * GraphicsCacheItem.h: use more specific smart_ptr header.
591 * GraphicsTypes.h: ditto
592 * GraphicsImage.h: ditto
593 * GraphicsConverter.h: ditto
595 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
597 * GraphicsImageXPM.C: understand convert's use of "opaque"
600 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
602 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
603 GImage::loadableFormats() that ensures that the signal is connected
604 to the derived class' method.
606 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
608 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
609 only work on the string.
611 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
613 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
614 the simple image loader when it encounters colour strings like
617 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
619 * GraphicsCacheItem.C (convertToDisplayFormat):
620 * GraphicsConverter.C (build_script): remove the Alerts when things go
621 wrong as the inset displays the message anyway. Moreover, Alert seems
622 pretty temperamemtal at the moment.
624 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
626 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
628 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
630 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
631 a reference to a temp object that's going out of scope...
633 2002-04-09 Herbert Voss <voss@lyx.org>
635 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
636 LyXLength::inBP instead of inPixels.
638 2002-04-10 Herbert Voss <voss@perce.de>
640 * GraphicsCache.[Ch]:
641 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
642 to read the "Bounding Box" from non (e)ps files.
644 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
646 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
647 the EPS file too, to ensure that the clipped Bounding Box is relative
648 to the original. (From Herbert.)
650 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
652 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
653 variables are initialised. Clean-up parsing of the string (with thanks
656 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
658 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
659 if the file can't be found.
661 * GraphicsParams.h (c-tor): remove string() as default argument.
663 * GraphicsCacheItem.C: a couple of changes as a result.
665 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
667 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
668 path to graphics file.
670 * GraphicsParams.[Ch] (c-tor): now passed filepath.
672 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
674 * most files: ws cleanup
676 * Makefile.am: remove ld -r stuff
678 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
680 * Makefile.am: special rules if partial linking
682 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
684 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
686 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
688 * GraphicsConverter.[Ch] (converted): make first arg const ref.
690 * GraphicsCacheItem.h: doxy change
692 * GraphicsCacheItem.C: ws change
694 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
696 * Makefile.am: if there is no image loading class leveraging the power
697 of the appropriate gui library, then compile the basic alternative
698 found in GraphicsImageXPM.[Ch].
700 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
702 * GraphicsCache.C: change associated with move of initialiseGraphics
705 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
707 * GraphicsParams.[Ch]:
709 * GraphicsImageXPM.C: properly resolve more warnings about comparison
710 between signed and unsigned integer expressions.
712 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
714 * GraphicsCache.C: move connections to the GImage-derived classes to
717 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
719 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
720 conversion, then do that.
722 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
724 * GraphicsCache.C: improve commentary to graphicsInit and where it
727 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
728 that became a memory leak properly. (Let the shared_c_ptr free the
730 (reset, mapcolor): tidy up and introduce a work around for XPM files
731 with crappy color entries. Print out a nice friendly message on what's
732 gone wrong and how to resolve it properly.
734 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
736 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
737 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
739 (unique_color_string): use the correct string c-tor.
741 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
744 * ImageLoaderXPM.[Ch]: removed.
746 * GraphicsConverter.[Ch]:
747 * GraphicsImage.[Ch]:
748 * GraphicsImageXPM.[Ch]:
749 * GraphicsParams.[Ch]:
750 * GraphicsTypes.h: new files.
752 * All files. A total re-write of the graphics cache. The cache now
753 supports asynchronous file conversion and file loading. Images
754 can be cropped, rotated and scaled for display on the LyX screen.
755 The old LyXImage and ImageLoader have been combined in a new class
756 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
759 2002-02-07 Herbert Voss <voss@lyx.org>
761 * GraphicsCacheItem.C: use unzipFile() from support/filetools
763 2002-01-31 Herbert Voss <voss@lyx.org>
765 * GraphicsCacheItem.h: handle filetype without the file extension;
766 getting type from contents; handle zipped files
768 2002-01-27 Herbert Voss <voss@lyx.org>
770 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
772 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
774 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
776 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
778 * GraphicsCacheItem.h: do not include <config.h> in header files
780 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
782 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
783 transparent colour, then set it to the colour of the background.
784 Also take account of the monochrome, grayscale of color
787 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
789 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
790 are different. Thus, don't delete the "to" if it's the original!
792 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
794 * ImageLoadXPM.C: remove setting of alloc colour mask,
795 led to crash as we don't define a callback
797 2001-07-29 Baruch Even <baruch@lyx.org>
799 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
800 colors with closeness of 10000.
802 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
804 2001-07-29 Baruch Even <baruch@lyx.org>
806 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
809 2001-07-23 Baruch Even <baruch@lyx.org>
811 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
812 the image after conversion.
814 2001-07-17 Baruch Even <baruch@lyx.org>
816 * GraphicsCacheItem.h:
817 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
818 from synchronous to asynchronous and to ease the coming changes.
820 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
822 * ImageLoaderXPM.C (runImageLoader): get display information from
825 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
828 * GraphicsCacheItem.C:
830 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
832 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
834 * GraphicsCache.h: inherit privately from noncopyable
835 * ImageLoader.h: ditto
836 * GraphicsCacheItem.h: ditto
838 2001-04-16 Allan Rae <rae@lyx.org>
840 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
841 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
844 2001-04-02 Baruch Even <baruch@lyx.org>
846 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
847 of hard coding ImageMagick.
849 2001-03-10 Baruch Even <baruch@lyx.org>
851 * GraphicsCache.C: Style change from (*it).field to it->field
853 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
855 * GraphicsCache.h: noncopyable is in namespace boost
856 * ImageLoader.h: ditto
857 * GraphicsCacheItem.h: ditto
859 2001-03-07 Baruch Even <baruch@lyx.org>
861 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
862 was false and it's not needed anyhow since the shared_ptr's in the cache
863 will destroy everything on exit.
865 2001-02-28 Baruch Even <baruch@ev-en.org>
868 * GraphicsCache.C: Changed the singleton pattern implementation, the
869 former version "leaked" in the sense that it was not deallocated at
872 2001-02-20 Baruch Even <baruch@ev-en.org>
874 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
875 instead of a pure pointer.
877 * GraphicsCacheItem.[Ch]:
878 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
879 removed the reference counting that was inside. Also fixed a bug where
880 a temporary file wouldn't get erased.
882 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
883 Ownership is now dropped when the caller requests the image_ pointer.
885 2001-02-20 Baruch Even <baruch@ev-en.org>
887 * GraphicsCache.C: Cleared up the confusion on when and how it is
890 * GraphicsCacheItem.C: Indentation change.
892 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
893 figure correctly when the image has been loaded successfully.
895 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
897 * ImageLoader.C: add a "using" directive.
899 * ImageLoader.h: remove extra comma at the end of enum; add an
900 std:: qualifier for vector.
902 2001-01-21 Baruch Even <baruch@ev-en.org>
904 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
905 height in the image itself and minor cleanups.
907 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
908 new ImageLoader class instead of the older Renderer class. This
909 means change of responsibilities.