2 2003-05-13 André Pönitz <poenitz@gmx.net>
5 * PreviewLoader.C: use tostr from own header
7 2003-05-12 André Pönitz <poenitz@gmx.net>
9 * PreviewLoader.C: boost::format -> bformat
11 2003-04-15 Angus Leeming <leeming@lyx.org>
13 * GraphicsConverter.C: #include lstrings.h.
15 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
18 * PreviewLoader.C: added #include "format.h"
20 2003-02-26 Angus Leeming <leeming@lyx.org>
22 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
23 use the cache of the parent inset instead.
25 * PreviewLoader.C (startLoading): Prevent a crash if the user is
26 not using a tmp directory.
28 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
30 * GraphicsLoader.[Ch],
32 * PreviewedInset.C: Removed unneeded list of owner insets
34 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
36 * GraphicsConverter (startConversion): add the call to
39 * GraphicsLoader.[Ch],
41 * PreviewedInset.C: Removed unneeded BufferView
43 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
45 * LoaderQueue.[Ch]: a simplification of the code, eliminated
46 the unneeded input bucket.
48 * GraphicsCacheItem.C (imageConverted): move warning inside the
51 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
53 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
55 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
57 * LoaderQueue.[Ch] (setPriority): added
59 * PreviewLoader.C (finishedGenerating): reversed the loading order so
60 first images get 'touched' last, and so load first.
62 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
64 * LoaderQueue.[Ch]: added. Implements a service queue that loads
66 * GraphicsSupport.[Ch]: removed
67 * Makefile.am: the changes above
68 * GraphicsLoader.C: use the loading queue
70 2003-01-21 Angus Leeming <leeming@lyx.org>
72 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
73 previews from being generated.
75 2003-01-13 Angus Leeming <leeming@lyx.org>
77 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
78 format to be PPM not XPM.
80 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
82 * Makefile.am (EXTRA_DIST): remove variable
84 2002-12-13 Angus Leeming <leeming@lyx.org>
86 * GraphicsImageXPM.[Ch]: removed.
88 * Makefile.am: associated change.
90 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
92 * several files: ws changes
94 2002-11-21 Angus Leeming <leeming@lyx.org>
96 * GraphicsConverter.C (build_script, move_file):
97 Don't use "if [ $? -ne 0 ]; then..."
99 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
101 * PreviewLoader.C (IncrementedFileName): STRCONV
102 (startLoading): ditto
104 * GraphicsConverter.C (Impl): STRCONV
107 * GraphicsTypes.C: include config.h
109 2002-10-25 Angus Leeming <leeming@lyx.org>
111 * GraphicsConverter.C (Impl::converted)
112 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
113 string as first arg, reflecting change in ForkedCall interface.
115 * PreviewLoader.C: use pid rather than command as identifier in
118 2002-10-18 Angus Leeming <leeming@lyx.org>
120 * GraphicsCacheItem.C (findTargetFormat): add debug message.
122 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
124 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
126 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
128 * GraphicsConverter.C (build_script): do not use ChangeExtension
132 2002-09-05 Angus Leeming <leeming@lyx.org>
134 * all files: modify the headers as discussed on the list.
136 2002-09-04 Angus Leeming <leeming@lyx.org>
138 * PreviewLoader.C (startLoading): pass the desired output format to the
141 2002-09-04 Angus Leeming <leeming@lyx.org>
143 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
145 2002-09-03 Angus Leeming <leeming@lyx.org>
147 * PreviewLoader.C: fix crash reported by Norbert Koksch when
148 generating more than 999 preview snippets. Use filenames with 5 digit
149 numbers, not 3, in the first instance, although more general code is
150 commented out. I don't suppose /anyone/ has 100000 formulae in one
153 2002-09-03 Angus Leeming <leeming@lyx.org>
155 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
157 2002-09-03 Angus Leeming <leeming@lyx.org>
159 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
161 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
163 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
164 convertDefault command with "sh ".
166 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
168 * GraphicsImage.C: small style fix to width/height setting.
170 * GraphicsTypes.h: have a displayTranslator here.
173 * GraphicsTypes.C: new file added for the setDisplayTranslator();
175 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
178 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
179 because this input has gone from the graphics dialog.
181 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
183 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
185 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
186 for support/smart_ptr.h, switch to boost smart ptr.
188 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
189 (~Data): let the smart_ptr handle cleanup
190 (reset): use nifty 3rd arg
192 (free_color_table): free the table manually
194 2002-08-09 Angus Leeming <leeming@lyx.org>
196 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
197 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
198 input@path is now set correctly.
200 2002-08-06 Angus Leeming <leeming@lyx.org>
202 * PreviewLoader.C: add support for preview.sty 0.73 (currently
203 #ifdef-ed out, awaiting the formal release).
205 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
206 the contents of a file that has changed.
208 2002-08-05 Angus Leeming <leeming@lyx.org>
210 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
211 to preview.sty. Works only for versions of preview.sty > 0.72b but
212 doesn't hurt earlier versions. Allows me to test the new parsing of
213 LyX-specific data from the generated log file.
215 2002-08-02 Angus Leeming <leeming@lyx.org>
217 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
219 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
220 (add): don't add empty snippets.
222 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
223 (view, setView): access to to the cache_.
225 2002-08-02 Angus Leeming <leeming@lyx.org>
227 * PreviewedInset.[Ch]: cache the LaTeX snippet.
229 2002-08-01 Angus Leeming <leeming@lyx.org>
231 * PreviewedInset.[Ch]: new files. An abstract base class that can help
232 insets to generate previews.
233 The daughter class must instantiate three small methods.
234 The Inset would own an instance of this daughter class and invoke it
235 as necessary. For example, mathd/formula.C gets previews at the cost
236 of 15 or so lines of code.
238 * Makefile.am: add PreviewedInset.[Ch].
240 * PreviewLoader.C (add): add debug message.
242 * Previews.C (generateBufferPreviews): remove if-block from loop.
244 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
246 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
248 (setAscentFractions): ditto
250 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
252 * PreviewLoader.C (setAscentFractions): modify because of strip
255 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
257 * GraphicsConverter.C (build_script): take a ostream as a more
258 general argument than ostringstream.
260 2002-07-22 Herbert Voss <voss@lyx.org>
262 * GraphicsConverter.C: get the "default converter" run again
264 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
266 * PreviewLoader.C: use BufferParams::getLyXTextClass
268 2002-07-21 Herbert Voss <voss@lyx.org>
270 * GraphicsImage.C: get the LyXAspectRatio run.
272 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
274 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
276 * PreviewLoader.C (startLoading): pass an interger as resolution
277 to the lyxpreview converter
279 * GraphicsParams.C: include <cstdlib>
281 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
283 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
284 preview converter script
286 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
288 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
291 2002-07-18 Angus Leeming <leeming@lyx.org>
293 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
295 (startMonitoring, monitoring, checksum): new methods to interact with
298 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
299 methods invoking the CacheItem methods of the same name.
300 (resetFile): if monitoring and the file changes, start monitoring this
303 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
305 * Makefile.am: remove FileMonitor.[Ch]
307 2002-06-17 Herbert Voss <voss@lyx.org>
309 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
310 for old ps-files (Garst). It's now handled by defining a converter and
311 disabling the ps-support of xforms.
313 2002-07-17 Angus Leeming <leeming@lyx.org>
315 Be true to the Pimpl idiom, moving all signals into the respective
316 Impl classes and defining methods to connect them to an outside slot.
317 Const-ify all visible class methods as they act only on a const pimpl_.
319 * GraphicsCache.[Ch] (add, remove): const-ify.
321 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
322 (statusChanged): move the signal into the Impl class.
323 (connect): new method, enabling a listener to connect to this signal.
325 * GraphicsConverter.[Ch]: (startConversion): const-ify.
326 (finishedConversion): move the signal into the Impl class.
327 (connect): new method, enabling a listener to connect to this signal.
329 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
330 (statusChanged): move the signal into the Impl class.
331 (connect): new method, enabling a listener to connect to this signal.
333 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
334 (imageReady): move the signal into the Impl class.
335 (connect): new method, enabling a listener to connect to this signal.
336 (emitSignal): new method, enabling PreviewImage to tell the outside
337 world that the file has been loaded into memory.
339 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
343 * GraphicsCacheItem.C:
344 * GraphicsConverter.[Ch]:
346 * GraphicsImageXPM.C:
348 * PreviewLoader.[Ch]: whitespace clean-up.
350 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
352 * PreviewLoader.C (setConverter): remove unused variable
354 * GraphicsImageXPM.C (isDrawable): implement
355 (setPixmap): the opaque color is black, not white
357 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
359 * GraphicsImageXPM.C (color_none_id):
360 (contains_color_none): use ascii_lowercase instead of lowercase
362 2002-07-16 Angus Leeming <leeming@lyx.org>
364 * PreviewLoader.C: greater use of STL algorithms.
366 * Previews.[Ch]: use const in more places.
367 (generateBufferPreviews): now takes a Buffer const & argument, not a
370 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
372 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
374 2002-07-12 Angus Leeming <leeming@lyx.org>
376 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
377 if visible 2 secs after the call to load them is first made.
379 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
380 BufferView to ascertain whether the inset is visible or not.
382 * Makefile.am: added GraphicsSupport.[Ch].
384 * PreviewImage.[Ch]: use this smart loader.
386 * PreviewLoader.C: don't load generated image files indiscimminantly.
387 Instead emit the imageReady signal and allow the image owner to decide.
389 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
391 * GraphicsCache.C: remove init_graphics()
393 2002-07-09 Angus Leeming <leeming@lyx.org>
395 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
396 arithmetic when it should be floating.
398 2002-07-09 Angus Leeming <leeming@lyx.org>
400 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
401 Output equation labels as "(#)" if lyxrc preference is set.
402 (setFontScalingFactor): use lyxrc variable preview_scale_factor
403 rather than hard-coding this.
405 2002-07-09 Angus Leeming <leeming@lyx.org>
407 * PreviewLoader.C: Further refactoring of the code. Should now be
410 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
411 past its sell-by date. The code to read the metrics file is now found
412 as a helper function in PreviewLoader.C.
414 * GraphicsImageXPM.C (scale): use boost::tie.
416 2002-07-08 Herbert Voss <voss@lyx.org>
418 * PreviewLoader.C: use of preview_size_factor to get the right
419 font-size! 0.9 is the default.
421 2002-07-08 Angus Leeming <leeming@lyx.org>
423 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
424 invocation of preview.sty.
425 Perform something of an internal clean-up.
427 2002-07-06 Angus Leeming <leeming@lyx.org>
429 * PreviewLoader.C: ensure that the metrics data is used by the
433 * PreviewImage.C: (Impl d-tor): remove all generated files that still
434 exist (perhaps because the process was curtailed before the images
437 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
439 2002-07-05 Angus Leeming <leeming@lyx.org>
448 * Previews.C: new files. The previewed LaTeX snippet stuff.
450 * Makefile.am: add these files.
452 2002-07-05 Angus Leeming <leeming@lyx.org>
454 * GraphicsLoader.h: whitespace.
456 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
458 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
459 boost::function from boost::signal.
461 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
463 * GraphicsConverter.C (convert): do not use ChangeExtension
464 because to_file_base may contain a dot.
466 2002-06-28 Angus Leeming <leeming@lyx.org>
468 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
469 by moving those SignalPtrs into the grfx::Image and grfx::Converter
470 classes where they really belong.
471 Use the Pimpl idiom to hide the class internals from public view.
473 * GraphicsTypes: remove the typedefs, leaving only the enums.
475 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
476 passed a reference to one in the load() method.
478 * GraphicsConverter.[Ch]: totally refactored. An instance of
479 grfx::Converter now represents a single conversion process.
480 Thus grfx::CachItem now has a grfx::Converter * that is set when the
481 conversion is initiated and destroyed on completion.
483 * GraphicsCache.[Ch]:
484 * GraphicsCacheItem.[Ch]:
485 * GraphicsConverter.[Ch]:
486 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
488 Note that I have done this only after making the above changes,
489 so not only should we have a clean, minimal and well documented
490 interface to these classes in the header files, but the class internals
491 should be much clearer too.
494 grfx::GCache -> grfx::Cache,
495 grfx::GCacheItem -> grfx::CacheItem,
496 grfx::GConverter -> grfx::Converter,
497 grfx::GImage -> grfx::Image,
498 grfx::GImageXPM -> grfx::ImageXPM,
499 grfx::GParams -> grfx::Params.
501 2002-06-26 Angus Leeming <leeming@lyx.org>
503 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
504 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
507 2002-06-26 Angus Leeming <leeming@lyx.org>
509 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
510 move the DisplayType enum out of grfx::GParams to here.
512 * GraphicsCacheItem.h: re-write preliminary description to reflect
515 * GraphicsParams.[Ch]:
516 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
517 grfx::DisplayType out of grfx::GParams.
519 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
520 that was in frontends/screen.C and insets/insetgraphics.C into a
521 single, easy-to-use class.
523 * Makefile.am: add these files.
525 2002-06-25 Angus Leeming <leeming@lyx.org>
527 * GraphicsCache.[Ch]:
528 * GraphicsCacheItem.[Ch]:
529 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
530 file into memory. The cache no longer controls the generation of the
531 pixmap. Instead, it just emits a signal when the loading status of an
533 The cache no longer stores InsetGraphics pointers and nor does it
534 assume responsibility for modifying an image (scaling, rotating etc).
535 Instead, that must now be performed elsewhere.
537 2002-06-19 Angus Leeming <leeming@lyx.org>
539 * GraphicsConverter.C: add using std::endl directive.
541 2002-06-17 Herbert Voss <voss@lyx.org>
543 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
544 default when nothing different was found
545 (convertToDisplayFormat): handle zipped files in the right way and
546 choose always convert as a default converter when no other
547 userdefined was found
549 * GraphicsConverter.C: add more lyxerr comments and choose
550 convert when no other userdefined converter was found
552 2002-06-10 Herbert Voss <voss@lyx.org>
554 * GraphicsImageXPM.C (convertTo7chars): get another special color
555 format from convert work in the right way
557 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
559 * GraphicsCache.C: use right colormap incantation
561 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
563 * GraphicsCache.C: use lyx_gui namespace
565 * GraphicsImageXPM.C: back down to using xforms
568 2002-06-07 Angus Leeming <leeming@lyx.org>
570 Fixes needed to compile with Compaq cxx 6.5.
571 * GraphicsConverter.h: forward declare class ConvProcess.
573 * GraphicsImageXPM.C:
574 all c-library variables have been moved into namespace std.
575 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
577 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
579 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
581 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
583 * GraphicsImageXPM.C: SigC to boot::signals changes.
584 (newImage): fix () bug when using new.
586 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
588 * switch from SigC signals to boost::signals.
590 2002-05-29 André Pönitz <poenitz@gmx.net>
592 * GraphicsParam.C: remove unneeded #include, move vomment
594 2002-05-28 André Pönitz <poenitz@gmx.net>
596 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
598 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
600 * GraphicsImageXPM.C: ColorHandler moved
602 2002-05-24 Juergen Vigna <jug@sad.it>
605 * GraphicsImage.h: include LString.h first.
607 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
609 * GraphicsCacheItem.h: use more specific smart_ptr header.
610 * GraphicsTypes.h: ditto
611 * GraphicsImage.h: ditto
612 * GraphicsConverter.h: ditto
614 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
616 * GraphicsImageXPM.C: understand convert's use of "opaque"
619 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
621 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
622 GImage::loadableFormats() that ensures that the signal is connected
623 to the derived class' method.
625 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
627 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
628 only work on the string.
630 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
632 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
633 the simple image loader when it encounters colour strings like
636 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
638 * GraphicsCacheItem.C (convertToDisplayFormat):
639 * GraphicsConverter.C (build_script): remove the Alerts when things go
640 wrong as the inset displays the message anyway. Moreover, Alert seems
641 pretty temperamemtal at the moment.
643 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
645 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
647 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
649 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
650 a reference to a temp object that's going out of scope...
652 2002-04-09 Herbert Voss <voss@lyx.org>
654 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
655 LyXLength::inBP instead of inPixels.
657 2002-04-10 Herbert Voss <voss@perce.de>
659 * GraphicsCache.[Ch]:
660 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
661 to read the "Bounding Box" from non (e)ps files.
663 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
665 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
666 the EPS file too, to ensure that the clipped Bounding Box is relative
667 to the original. (From Herbert.)
669 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
671 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
672 variables are initialised. Clean-up parsing of the string (with thanks
675 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
677 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
678 if the file can't be found.
680 * GraphicsParams.h (c-tor): remove string() as default argument.
682 * GraphicsCacheItem.C: a couple of changes as a result.
684 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
686 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
687 path to graphics file.
689 * GraphicsParams.[Ch] (c-tor): now passed filepath.
691 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
693 * most files: ws cleanup
695 * Makefile.am: remove ld -r stuff
697 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
699 * Makefile.am: special rules if partial linking
701 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
703 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
705 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
707 * GraphicsConverter.[Ch] (converted): make first arg const ref.
709 * GraphicsCacheItem.h: doxy change
711 * GraphicsCacheItem.C: ws change
713 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
715 * Makefile.am: if there is no image loading class leveraging the power
716 of the appropriate gui library, then compile the basic alternative
717 found in GraphicsImageXPM.[Ch].
719 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
721 * GraphicsCache.C: change associated with move of initialiseGraphics
724 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
726 * GraphicsParams.[Ch]:
728 * GraphicsImageXPM.C: properly resolve more warnings about comparison
729 between signed and unsigned integer expressions.
731 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
733 * GraphicsCache.C: move connections to the GImage-derived classes to
736 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
738 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
739 conversion, then do that.
741 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
743 * GraphicsCache.C: improve commentary to graphicsInit and where it
746 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
747 that became a memory leak properly. (Let the shared_c_ptr free the
749 (reset, mapcolor): tidy up and introduce a work around for XPM files
750 with crappy color entries. Print out a nice friendly message on what's
751 gone wrong and how to resolve it properly.
753 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
755 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
756 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
758 (unique_color_string): use the correct string c-tor.
760 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
763 * ImageLoaderXPM.[Ch]: removed.
765 * GraphicsConverter.[Ch]:
766 * GraphicsImage.[Ch]:
767 * GraphicsImageXPM.[Ch]:
768 * GraphicsParams.[Ch]:
769 * GraphicsTypes.h: new files.
771 * All files. A total re-write of the graphics cache. The cache now
772 supports asynchronous file conversion and file loading. Images
773 can be cropped, rotated and scaled for display on the LyX screen.
774 The old LyXImage and ImageLoader have been combined in a new class
775 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
778 2002-02-07 Herbert Voss <voss@lyx.org>
780 * GraphicsCacheItem.C: use unzipFile() from support/filetools
782 2002-01-31 Herbert Voss <voss@lyx.org>
784 * GraphicsCacheItem.h: handle filetype without the file extension;
785 getting type from contents; handle zipped files
787 2002-01-27 Herbert Voss <voss@lyx.org>
789 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
791 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
793 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
795 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
797 * GraphicsCacheItem.h: do not include <config.h> in header files
799 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
801 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
802 transparent colour, then set it to the colour of the background.
803 Also take account of the monochrome, grayscale of color
806 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
808 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
809 are different. Thus, don't delete the "to" if it's the original!
811 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
813 * ImageLoadXPM.C: remove setting of alloc colour mask,
814 led to crash as we don't define a callback
816 2001-07-29 Baruch Even <baruch@lyx.org>
818 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
819 colors with closeness of 10000.
821 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
823 2001-07-29 Baruch Even <baruch@lyx.org>
825 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
828 2001-07-23 Baruch Even <baruch@lyx.org>
830 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
831 the image after conversion.
833 2001-07-17 Baruch Even <baruch@lyx.org>
835 * GraphicsCacheItem.h:
836 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
837 from synchronous to asynchronous and to ease the coming changes.
839 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
841 * ImageLoaderXPM.C (runImageLoader): get display information from
844 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
847 * GraphicsCacheItem.C:
849 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
851 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
853 * GraphicsCache.h: inherit privately from noncopyable
854 * ImageLoader.h: ditto
855 * GraphicsCacheItem.h: ditto
857 2001-04-16 Allan Rae <rae@lyx.org>
859 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
860 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
863 2001-04-02 Baruch Even <baruch@lyx.org>
865 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
866 of hard coding ImageMagick.
868 2001-03-10 Baruch Even <baruch@lyx.org>
870 * GraphicsCache.C: Style change from (*it).field to it->field
872 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
874 * GraphicsCache.h: noncopyable is in namespace boost
875 * ImageLoader.h: ditto
876 * GraphicsCacheItem.h: ditto
878 2001-03-07 Baruch Even <baruch@lyx.org>
880 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
881 was false and it's not needed anyhow since the shared_ptr's in the cache
882 will destroy everything on exit.
884 2001-02-28 Baruch Even <baruch@ev-en.org>
887 * GraphicsCache.C: Changed the singleton pattern implementation, the
888 former version "leaked" in the sense that it was not deallocated at
891 2001-02-20 Baruch Even <baruch@ev-en.org>
893 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
894 instead of a pure pointer.
896 * GraphicsCacheItem.[Ch]:
897 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
898 removed the reference counting that was inside. Also fixed a bug where
899 a temporary file wouldn't get erased.
901 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
902 Ownership is now dropped when the caller requests the image_ pointer.
904 2001-02-20 Baruch Even <baruch@ev-en.org>
906 * GraphicsCache.C: Cleared up the confusion on when and how it is
909 * GraphicsCacheItem.C: Indentation change.
911 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
912 figure correctly when the image has been loaded successfully.
914 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
916 * ImageLoader.C: add a "using" directive.
918 * ImageLoader.h: remove extra comma at the end of enum; add an
919 std:: qualifier for vector.
921 2001-01-21 Baruch Even <baruch@ev-en.org>
923 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
924 height in the image itself and minor cleanups.
926 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
927 new ImageLoader class instead of the older Renderer class. This
928 means change of responsibilities.