1 2003-05-22 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
4 the inset::latex method.
6 2003-05-22 Angus Leeming <leeming@lyx.org>
8 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
9 the inset::latex method.
11 2003-05-22 Angus Leeming <leeming@lyx.org>
13 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
14 makeLaTeXFile is now encapsulated within runparams.
16 2003-05-22 Angus Leeming <leeming@lyx.org>
18 * PreviewLoader.C (dumpPreamble):
19 pass around a LatexRunParams parameter.
21 2003-05-13 André Pönitz <poenitz@gmx.net>
23 * GraphicsConverter.C:
24 * PreviewLoader.C: use tostr from own header
26 2003-05-12 André Pönitz <poenitz@gmx.net>
28 * PreviewLoader.C: boost::format -> bformat
30 2003-04-15 Angus Leeming <leeming@lyx.org>
32 * GraphicsConverter.C: #include lstrings.h.
34 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
37 * PreviewLoader.C: added #include "format.h"
39 2003-02-26 Angus Leeming <leeming@lyx.org>
41 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
42 use the cache of the parent inset instead.
44 * PreviewLoader.C (startLoading): Prevent a crash if the user is
45 not using a tmp directory.
47 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
49 * GraphicsLoader.[Ch],
51 * PreviewedInset.C: Removed unneeded list of owner insets
53 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
55 * GraphicsConverter (startConversion): add the call to
58 * GraphicsLoader.[Ch],
60 * PreviewedInset.C: Removed unneeded BufferView
62 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
64 * LoaderQueue.[Ch]: a simplification of the code, eliminated
65 the unneeded input bucket.
67 * GraphicsCacheItem.C (imageConverted): move warning inside the
70 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
72 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
74 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
76 * LoaderQueue.[Ch] (setPriority): added
78 * PreviewLoader.C (finishedGenerating): reversed the loading order so
79 first images get 'touched' last, and so load first.
81 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
83 * LoaderQueue.[Ch]: added. Implements a service queue that loads
85 * GraphicsSupport.[Ch]: removed
86 * Makefile.am: the changes above
87 * GraphicsLoader.C: use the loading queue
89 2003-01-21 Angus Leeming <leeming@lyx.org>
91 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
92 previews from being generated.
94 2003-01-13 Angus Leeming <leeming@lyx.org>
96 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
97 format to be PPM not XPM.
99 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
101 * Makefile.am (EXTRA_DIST): remove variable
103 2002-12-13 Angus Leeming <leeming@lyx.org>
105 * GraphicsImageXPM.[Ch]: removed.
107 * Makefile.am: associated change.
109 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
111 * several files: ws changes
113 2002-11-21 Angus Leeming <leeming@lyx.org>
115 * GraphicsConverter.C (build_script, move_file):
116 Don't use "if [ $? -ne 0 ]; then..."
118 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
120 * PreviewLoader.C (IncrementedFileName): STRCONV
121 (startLoading): ditto
123 * GraphicsConverter.C (Impl): STRCONV
126 * GraphicsTypes.C: include config.h
128 2002-10-25 Angus Leeming <leeming@lyx.org>
130 * GraphicsConverter.C (Impl::converted)
131 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
132 string as first arg, reflecting change in ForkedCall interface.
134 * PreviewLoader.C: use pid rather than command as identifier in
137 2002-10-18 Angus Leeming <leeming@lyx.org>
139 * GraphicsCacheItem.C (findTargetFormat): add debug message.
141 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
143 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
145 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
147 * GraphicsConverter.C (build_script): do not use ChangeExtension
151 2002-09-05 Angus Leeming <leeming@lyx.org>
153 * all files: modify the headers as discussed on the list.
155 2002-09-04 Angus Leeming <leeming@lyx.org>
157 * PreviewLoader.C (startLoading): pass the desired output format to the
160 2002-09-04 Angus Leeming <leeming@lyx.org>
162 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
164 2002-09-03 Angus Leeming <leeming@lyx.org>
166 * PreviewLoader.C: fix crash reported by Norbert Koksch when
167 generating more than 999 preview snippets. Use filenames with 5 digit
168 numbers, not 3, in the first instance, although more general code is
169 commented out. I don't suppose /anyone/ has 100000 formulae in one
172 2002-09-03 Angus Leeming <leeming@lyx.org>
174 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
176 2002-09-03 Angus Leeming <leeming@lyx.org>
178 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
180 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
182 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
183 convertDefault command with "sh ".
185 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
187 * GraphicsImage.C: small style fix to width/height setting.
189 * GraphicsTypes.h: have a displayTranslator here.
192 * GraphicsTypes.C: new file added for the setDisplayTranslator();
194 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
197 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
198 because this input has gone from the graphics dialog.
200 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
202 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
204 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
205 for support/smart_ptr.h, switch to boost smart ptr.
207 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
208 (~Data): let the smart_ptr handle cleanup
209 (reset): use nifty 3rd arg
211 (free_color_table): free the table manually
213 2002-08-09 Angus Leeming <leeming@lyx.org>
215 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
216 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
217 input@path is now set correctly.
219 2002-08-06 Angus Leeming <leeming@lyx.org>
221 * PreviewLoader.C: add support for preview.sty 0.73 (currently
222 #ifdef-ed out, awaiting the formal release).
224 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
225 the contents of a file that has changed.
227 2002-08-05 Angus Leeming <leeming@lyx.org>
229 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
230 to preview.sty. Works only for versions of preview.sty > 0.72b but
231 doesn't hurt earlier versions. Allows me to test the new parsing of
232 LyX-specific data from the generated log file.
234 2002-08-02 Angus Leeming <leeming@lyx.org>
236 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
238 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
239 (add): don't add empty snippets.
241 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
242 (view, setView): access to to the cache_.
244 2002-08-02 Angus Leeming <leeming@lyx.org>
246 * PreviewedInset.[Ch]: cache the LaTeX snippet.
248 2002-08-01 Angus Leeming <leeming@lyx.org>
250 * PreviewedInset.[Ch]: new files. An abstract base class that can help
251 insets to generate previews.
252 The daughter class must instantiate three small methods.
253 The Inset would own an instance of this daughter class and invoke it
254 as necessary. For example, mathd/formula.C gets previews at the cost
255 of 15 or so lines of code.
257 * Makefile.am: add PreviewedInset.[Ch].
259 * PreviewLoader.C (add): add debug message.
261 * Previews.C (generateBufferPreviews): remove if-block from loop.
263 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
265 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
267 (setAscentFractions): ditto
269 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
271 * PreviewLoader.C (setAscentFractions): modify because of strip
274 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
276 * GraphicsConverter.C (build_script): take a ostream as a more
277 general argument than ostringstream.
279 2002-07-22 Herbert Voss <voss@lyx.org>
281 * GraphicsConverter.C: get the "default converter" run again
283 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
285 * PreviewLoader.C: use BufferParams::getLyXTextClass
287 2002-07-21 Herbert Voss <voss@lyx.org>
289 * GraphicsImage.C: get the LyXAspectRatio run.
291 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
293 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
295 * PreviewLoader.C (startLoading): pass an interger as resolution
296 to the lyxpreview converter
298 * GraphicsParams.C: include <cstdlib>
300 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
302 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
303 preview converter script
305 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
307 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
310 2002-07-18 Angus Leeming <leeming@lyx.org>
312 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
314 (startMonitoring, monitoring, checksum): new methods to interact with
317 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
318 methods invoking the CacheItem methods of the same name.
319 (resetFile): if monitoring and the file changes, start monitoring this
322 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
324 * Makefile.am: remove FileMonitor.[Ch]
326 2002-06-17 Herbert Voss <voss@lyx.org>
328 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
329 for old ps-files (Garst). It's now handled by defining a converter and
330 disabling the ps-support of xforms.
332 2002-07-17 Angus Leeming <leeming@lyx.org>
334 Be true to the Pimpl idiom, moving all signals into the respective
335 Impl classes and defining methods to connect them to an outside slot.
336 Const-ify all visible class methods as they act only on a const pimpl_.
338 * GraphicsCache.[Ch] (add, remove): const-ify.
340 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
341 (statusChanged): move the signal into the Impl class.
342 (connect): new method, enabling a listener to connect to this signal.
344 * GraphicsConverter.[Ch]: (startConversion): const-ify.
345 (finishedConversion): move the signal into the Impl class.
346 (connect): new method, enabling a listener to connect to this signal.
348 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
349 (statusChanged): move the signal into the Impl class.
350 (connect): new method, enabling a listener to connect to this signal.
352 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
353 (imageReady): move the signal into the Impl class.
354 (connect): new method, enabling a listener to connect to this signal.
355 (emitSignal): new method, enabling PreviewImage to tell the outside
356 world that the file has been loaded into memory.
358 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
362 * GraphicsCacheItem.C:
363 * GraphicsConverter.[Ch]:
365 * GraphicsImageXPM.C:
367 * PreviewLoader.[Ch]: whitespace clean-up.
369 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
371 * PreviewLoader.C (setConverter): remove unused variable
373 * GraphicsImageXPM.C (isDrawable): implement
374 (setPixmap): the opaque color is black, not white
376 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
378 * GraphicsImageXPM.C (color_none_id):
379 (contains_color_none): use ascii_lowercase instead of lowercase
381 2002-07-16 Angus Leeming <leeming@lyx.org>
383 * PreviewLoader.C: greater use of STL algorithms.
385 * Previews.[Ch]: use const in more places.
386 (generateBufferPreviews): now takes a Buffer const & argument, not a
389 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
391 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
393 2002-07-12 Angus Leeming <leeming@lyx.org>
395 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
396 if visible 2 secs after the call to load them is first made.
398 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
399 BufferView to ascertain whether the inset is visible or not.
401 * Makefile.am: added GraphicsSupport.[Ch].
403 * PreviewImage.[Ch]: use this smart loader.
405 * PreviewLoader.C: don't load generated image files indiscimminantly.
406 Instead emit the imageReady signal and allow the image owner to decide.
408 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
410 * GraphicsCache.C: remove init_graphics()
412 2002-07-09 Angus Leeming <leeming@lyx.org>
414 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
415 arithmetic when it should be floating.
417 2002-07-09 Angus Leeming <leeming@lyx.org>
419 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
420 Output equation labels as "(#)" if lyxrc preference is set.
421 (setFontScalingFactor): use lyxrc variable preview_scale_factor
422 rather than hard-coding this.
424 2002-07-09 Angus Leeming <leeming@lyx.org>
426 * PreviewLoader.C: Further refactoring of the code. Should now be
429 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
430 past its sell-by date. The code to read the metrics file is now found
431 as a helper function in PreviewLoader.C.
433 * GraphicsImageXPM.C (scale): use boost::tie.
435 2002-07-08 Herbert Voss <voss@lyx.org>
437 * PreviewLoader.C: use of preview_size_factor to get the right
438 font-size! 0.9 is the default.
440 2002-07-08 Angus Leeming <leeming@lyx.org>
442 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
443 invocation of preview.sty.
444 Perform something of an internal clean-up.
446 2002-07-06 Angus Leeming <leeming@lyx.org>
448 * PreviewLoader.C: ensure that the metrics data is used by the
452 * PreviewImage.C: (Impl d-tor): remove all generated files that still
453 exist (perhaps because the process was curtailed before the images
456 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
458 2002-07-05 Angus Leeming <leeming@lyx.org>
467 * Previews.C: new files. The previewed LaTeX snippet stuff.
469 * Makefile.am: add these files.
471 2002-07-05 Angus Leeming <leeming@lyx.org>
473 * GraphicsLoader.h: whitespace.
475 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
477 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
478 boost::function from boost::signal.
480 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
482 * GraphicsConverter.C (convert): do not use ChangeExtension
483 because to_file_base may contain a dot.
485 2002-06-28 Angus Leeming <leeming@lyx.org>
487 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
488 by moving those SignalPtrs into the grfx::Image and grfx::Converter
489 classes where they really belong.
490 Use the Pimpl idiom to hide the class internals from public view.
492 * GraphicsTypes: remove the typedefs, leaving only the enums.
494 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
495 passed a reference to one in the load() method.
497 * GraphicsConverter.[Ch]: totally refactored. An instance of
498 grfx::Converter now represents a single conversion process.
499 Thus grfx::CachItem now has a grfx::Converter * that is set when the
500 conversion is initiated and destroyed on completion.
502 * GraphicsCache.[Ch]:
503 * GraphicsCacheItem.[Ch]:
504 * GraphicsConverter.[Ch]:
505 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
507 Note that I have done this only after making the above changes,
508 so not only should we have a clean, minimal and well documented
509 interface to these classes in the header files, but the class internals
510 should be much clearer too.
513 grfx::GCache -> grfx::Cache,
514 grfx::GCacheItem -> grfx::CacheItem,
515 grfx::GConverter -> grfx::Converter,
516 grfx::GImage -> grfx::Image,
517 grfx::GImageXPM -> grfx::ImageXPM,
518 grfx::GParams -> grfx::Params.
520 2002-06-26 Angus Leeming <leeming@lyx.org>
522 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
523 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
526 2002-06-26 Angus Leeming <leeming@lyx.org>
528 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
529 move the DisplayType enum out of grfx::GParams to here.
531 * GraphicsCacheItem.h: re-write preliminary description to reflect
534 * GraphicsParams.[Ch]:
535 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
536 grfx::DisplayType out of grfx::GParams.
538 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
539 that was in frontends/screen.C and insets/insetgraphics.C into a
540 single, easy-to-use class.
542 * Makefile.am: add these files.
544 2002-06-25 Angus Leeming <leeming@lyx.org>
546 * GraphicsCache.[Ch]:
547 * GraphicsCacheItem.[Ch]:
548 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
549 file into memory. The cache no longer controls the generation of the
550 pixmap. Instead, it just emits a signal when the loading status of an
552 The cache no longer stores InsetGraphics pointers and nor does it
553 assume responsibility for modifying an image (scaling, rotating etc).
554 Instead, that must now be performed elsewhere.
556 2002-06-19 Angus Leeming <leeming@lyx.org>
558 * GraphicsConverter.C: add using std::endl directive.
560 2002-06-17 Herbert Voss <voss@lyx.org>
562 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
563 default when nothing different was found
564 (convertToDisplayFormat): handle zipped files in the right way and
565 choose always convert as a default converter when no other
566 userdefined was found
568 * GraphicsConverter.C: add more lyxerr comments and choose
569 convert when no other userdefined converter was found
571 2002-06-10 Herbert Voss <voss@lyx.org>
573 * GraphicsImageXPM.C (convertTo7chars): get another special color
574 format from convert work in the right way
576 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
578 * GraphicsCache.C: use right colormap incantation
580 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
582 * GraphicsCache.C: use lyx_gui namespace
584 * GraphicsImageXPM.C: back down to using xforms
587 2002-06-07 Angus Leeming <leeming@lyx.org>
589 Fixes needed to compile with Compaq cxx 6.5.
590 * GraphicsConverter.h: forward declare class ConvProcess.
592 * GraphicsImageXPM.C:
593 all c-library variables have been moved into namespace std.
594 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
596 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
598 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
600 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
602 * GraphicsImageXPM.C: SigC to boot::signals changes.
603 (newImage): fix () bug when using new.
605 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
607 * switch from SigC signals to boost::signals.
609 2002-05-29 André Pönitz <poenitz@gmx.net>
611 * GraphicsParam.C: remove unneeded #include, move vomment
613 2002-05-28 André Pönitz <poenitz@gmx.net>
615 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
617 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
619 * GraphicsImageXPM.C: ColorHandler moved
621 2002-05-24 Juergen Vigna <jug@sad.it>
624 * GraphicsImage.h: include LString.h first.
626 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
628 * GraphicsCacheItem.h: use more specific smart_ptr header.
629 * GraphicsTypes.h: ditto
630 * GraphicsImage.h: ditto
631 * GraphicsConverter.h: ditto
633 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
635 * GraphicsImageXPM.C: understand convert's use of "opaque"
638 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
640 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
641 GImage::loadableFormats() that ensures that the signal is connected
642 to the derived class' method.
644 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
646 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
647 only work on the string.
649 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
651 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
652 the simple image loader when it encounters colour strings like
655 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
657 * GraphicsCacheItem.C (convertToDisplayFormat):
658 * GraphicsConverter.C (build_script): remove the Alerts when things go
659 wrong as the inset displays the message anyway. Moreover, Alert seems
660 pretty temperamemtal at the moment.
662 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
664 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
666 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
668 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
669 a reference to a temp object that's going out of scope...
671 2002-04-09 Herbert Voss <voss@lyx.org>
673 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
674 LyXLength::inBP instead of inPixels.
676 2002-04-10 Herbert Voss <voss@perce.de>
678 * GraphicsCache.[Ch]:
679 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
680 to read the "Bounding Box" from non (e)ps files.
682 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
684 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
685 the EPS file too, to ensure that the clipped Bounding Box is relative
686 to the original. (From Herbert.)
688 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
690 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
691 variables are initialised. Clean-up parsing of the string (with thanks
694 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
696 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
697 if the file can't be found.
699 * GraphicsParams.h (c-tor): remove string() as default argument.
701 * GraphicsCacheItem.C: a couple of changes as a result.
703 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
705 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
706 path to graphics file.
708 * GraphicsParams.[Ch] (c-tor): now passed filepath.
710 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
712 * most files: ws cleanup
714 * Makefile.am: remove ld -r stuff
716 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
718 * Makefile.am: special rules if partial linking
720 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
722 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
724 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
726 * GraphicsConverter.[Ch] (converted): make first arg const ref.
728 * GraphicsCacheItem.h: doxy change
730 * GraphicsCacheItem.C: ws change
732 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
734 * Makefile.am: if there is no image loading class leveraging the power
735 of the appropriate gui library, then compile the basic alternative
736 found in GraphicsImageXPM.[Ch].
738 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
740 * GraphicsCache.C: change associated with move of initialiseGraphics
743 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
745 * GraphicsParams.[Ch]:
747 * GraphicsImageXPM.C: properly resolve more warnings about comparison
748 between signed and unsigned integer expressions.
750 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
752 * GraphicsCache.C: move connections to the GImage-derived classes to
755 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
757 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
758 conversion, then do that.
760 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
762 * GraphicsCache.C: improve commentary to graphicsInit and where it
765 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
766 that became a memory leak properly. (Let the shared_c_ptr free the
768 (reset, mapcolor): tidy up and introduce a work around for XPM files
769 with crappy color entries. Print out a nice friendly message on what's
770 gone wrong and how to resolve it properly.
772 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
774 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
775 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
777 (unique_color_string): use the correct string c-tor.
779 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
782 * ImageLoaderXPM.[Ch]: removed.
784 * GraphicsConverter.[Ch]:
785 * GraphicsImage.[Ch]:
786 * GraphicsImageXPM.[Ch]:
787 * GraphicsParams.[Ch]:
788 * GraphicsTypes.h: new files.
790 * All files. A total re-write of the graphics cache. The cache now
791 supports asynchronous file conversion and file loading. Images
792 can be cropped, rotated and scaled for display on the LyX screen.
793 The old LyXImage and ImageLoader have been combined in a new class
794 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
797 2002-02-07 Herbert Voss <voss@lyx.org>
799 * GraphicsCacheItem.C: use unzipFile() from support/filetools
801 2002-01-31 Herbert Voss <voss@lyx.org>
803 * GraphicsCacheItem.h: handle filetype without the file extension;
804 getting type from contents; handle zipped files
806 2002-01-27 Herbert Voss <voss@lyx.org>
808 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
810 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
812 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
814 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
816 * GraphicsCacheItem.h: do not include <config.h> in header files
818 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
820 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
821 transparent colour, then set it to the colour of the background.
822 Also take account of the monochrome, grayscale of color
825 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
827 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
828 are different. Thus, don't delete the "to" if it's the original!
830 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
832 * ImageLoadXPM.C: remove setting of alloc colour mask,
833 led to crash as we don't define a callback
835 2001-07-29 Baruch Even <baruch@lyx.org>
837 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
838 colors with closeness of 10000.
840 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
842 2001-07-29 Baruch Even <baruch@lyx.org>
844 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
847 2001-07-23 Baruch Even <baruch@lyx.org>
849 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
850 the image after conversion.
852 2001-07-17 Baruch Even <baruch@lyx.org>
854 * GraphicsCacheItem.h:
855 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
856 from synchronous to asynchronous and to ease the coming changes.
858 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
860 * ImageLoaderXPM.C (runImageLoader): get display information from
863 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
866 * GraphicsCacheItem.C:
868 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
870 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
872 * GraphicsCache.h: inherit privately from noncopyable
873 * ImageLoader.h: ditto
874 * GraphicsCacheItem.h: ditto
876 2001-04-16 Allan Rae <rae@lyx.org>
878 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
879 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
882 2001-04-02 Baruch Even <baruch@lyx.org>
884 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
885 of hard coding ImageMagick.
887 2001-03-10 Baruch Even <baruch@lyx.org>
889 * GraphicsCache.C: Style change from (*it).field to it->field
891 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
893 * GraphicsCache.h: noncopyable is in namespace boost
894 * ImageLoader.h: ditto
895 * GraphicsCacheItem.h: ditto
897 2001-03-07 Baruch Even <baruch@lyx.org>
899 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
900 was false and it's not needed anyhow since the shared_ptr's in the cache
901 will destroy everything on exit.
903 2001-02-28 Baruch Even <baruch@ev-en.org>
906 * GraphicsCache.C: Changed the singleton pattern implementation, the
907 former version "leaked" in the sense that it was not deallocated at
910 2001-02-20 Baruch Even <baruch@ev-en.org>
912 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
913 instead of a pure pointer.
915 * GraphicsCacheItem.[Ch]:
916 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
917 removed the reference counting that was inside. Also fixed a bug where
918 a temporary file wouldn't get erased.
920 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
921 Ownership is now dropped when the caller requests the image_ pointer.
923 2001-02-20 Baruch Even <baruch@ev-en.org>
925 * GraphicsCache.C: Cleared up the confusion on when and how it is
928 * GraphicsCacheItem.C: Indentation change.
930 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
931 figure correctly when the image has been loaded successfully.
933 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
935 * ImageLoader.C: add a "using" directive.
937 * ImageLoader.h: remove extra comma at the end of enum; add an
938 std:: qualifier for vector.
940 2001-01-21 Baruch Even <baruch@ev-en.org>
942 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
943 height in the image itself and minor cleanups.
945 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
946 new ImageLoader class instead of the older Renderer class. This
947 means change of responsibilities.