1 2003-05-23 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
5 2003-05-22 Angus Leeming <leeming@lyx.org>
7 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
8 the inset::latex method.
10 2003-05-22 Angus Leeming <leeming@lyx.org>
12 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
13 the inset::latex method.
15 2003-05-22 Angus Leeming <leeming@lyx.org>
17 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
18 makeLaTeXFile is now encapsulated within runparams.
20 2003-05-22 Angus Leeming <leeming@lyx.org>
22 * PreviewLoader.C (dumpPreamble):
23 pass around a LatexRunParams parameter.
25 2003-05-13 André Pönitz <poenitz@gmx.net>
27 * GraphicsConverter.C:
28 * PreviewLoader.C: use tostr from own header
30 2003-05-12 André Pönitz <poenitz@gmx.net>
32 * PreviewLoader.C: boost::format -> bformat
34 2003-04-15 Angus Leeming <leeming@lyx.org>
36 * GraphicsConverter.C: #include lstrings.h.
38 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
41 * PreviewLoader.C: added #include "format.h"
43 2003-02-26 Angus Leeming <leeming@lyx.org>
45 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
46 use the cache of the parent inset instead.
48 * PreviewLoader.C (startLoading): Prevent a crash if the user is
49 not using a tmp directory.
51 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
53 * GraphicsLoader.[Ch],
55 * PreviewedInset.C: Removed unneeded list of owner insets
57 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
59 * GraphicsConverter (startConversion): add the call to
62 * GraphicsLoader.[Ch],
64 * PreviewedInset.C: Removed unneeded BufferView
66 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
68 * LoaderQueue.[Ch]: a simplification of the code, eliminated
69 the unneeded input bucket.
71 * GraphicsCacheItem.C (imageConverted): move warning inside the
74 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
76 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
78 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
80 * LoaderQueue.[Ch] (setPriority): added
82 * PreviewLoader.C (finishedGenerating): reversed the loading order so
83 first images get 'touched' last, and so load first.
85 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
87 * LoaderQueue.[Ch]: added. Implements a service queue that loads
89 * GraphicsSupport.[Ch]: removed
90 * Makefile.am: the changes above
91 * GraphicsLoader.C: use the loading queue
93 2003-01-21 Angus Leeming <leeming@lyx.org>
95 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
96 previews from being generated.
98 2003-01-13 Angus Leeming <leeming@lyx.org>
100 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
101 format to be PPM not XPM.
103 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
105 * Makefile.am (EXTRA_DIST): remove variable
107 2002-12-13 Angus Leeming <leeming@lyx.org>
109 * GraphicsImageXPM.[Ch]: removed.
111 * Makefile.am: associated change.
113 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
115 * several files: ws changes
117 2002-11-21 Angus Leeming <leeming@lyx.org>
119 * GraphicsConverter.C (build_script, move_file):
120 Don't use "if [ $? -ne 0 ]; then..."
122 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
124 * PreviewLoader.C (IncrementedFileName): STRCONV
125 (startLoading): ditto
127 * GraphicsConverter.C (Impl): STRCONV
130 * GraphicsTypes.C: include config.h
132 2002-10-25 Angus Leeming <leeming@lyx.org>
134 * GraphicsConverter.C (Impl::converted)
135 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
136 string as first arg, reflecting change in ForkedCall interface.
138 * PreviewLoader.C: use pid rather than command as identifier in
141 2002-10-18 Angus Leeming <leeming@lyx.org>
143 * GraphicsCacheItem.C (findTargetFormat): add debug message.
145 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
147 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
149 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
151 * GraphicsConverter.C (build_script): do not use ChangeExtension
155 2002-09-05 Angus Leeming <leeming@lyx.org>
157 * all files: modify the headers as discussed on the list.
159 2002-09-04 Angus Leeming <leeming@lyx.org>
161 * PreviewLoader.C (startLoading): pass the desired output format to the
164 2002-09-04 Angus Leeming <leeming@lyx.org>
166 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
168 2002-09-03 Angus Leeming <leeming@lyx.org>
170 * PreviewLoader.C: fix crash reported by Norbert Koksch when
171 generating more than 999 preview snippets. Use filenames with 5 digit
172 numbers, not 3, in the first instance, although more general code is
173 commented out. I don't suppose /anyone/ has 100000 formulae in one
176 2002-09-03 Angus Leeming <leeming@lyx.org>
178 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
180 2002-09-03 Angus Leeming <leeming@lyx.org>
182 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
184 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
186 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
187 convertDefault command with "sh ".
189 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
191 * GraphicsImage.C: small style fix to width/height setting.
193 * GraphicsTypes.h: have a displayTranslator here.
196 * GraphicsTypes.C: new file added for the setDisplayTranslator();
198 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
201 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
202 because this input has gone from the graphics dialog.
204 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
206 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
208 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
209 for support/smart_ptr.h, switch to boost smart ptr.
211 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
212 (~Data): let the smart_ptr handle cleanup
213 (reset): use nifty 3rd arg
215 (free_color_table): free the table manually
217 2002-08-09 Angus Leeming <leeming@lyx.org>
219 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
220 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
221 input@path is now set correctly.
223 2002-08-06 Angus Leeming <leeming@lyx.org>
225 * PreviewLoader.C: add support for preview.sty 0.73 (currently
226 #ifdef-ed out, awaiting the formal release).
228 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
229 the contents of a file that has changed.
231 2002-08-05 Angus Leeming <leeming@lyx.org>
233 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
234 to preview.sty. Works only for versions of preview.sty > 0.72b but
235 doesn't hurt earlier versions. Allows me to test the new parsing of
236 LyX-specific data from the generated log file.
238 2002-08-02 Angus Leeming <leeming@lyx.org>
240 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
242 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
243 (add): don't add empty snippets.
245 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
246 (view, setView): access to to the cache_.
248 2002-08-02 Angus Leeming <leeming@lyx.org>
250 * PreviewedInset.[Ch]: cache the LaTeX snippet.
252 2002-08-01 Angus Leeming <leeming@lyx.org>
254 * PreviewedInset.[Ch]: new files. An abstract base class that can help
255 insets to generate previews.
256 The daughter class must instantiate three small methods.
257 The Inset would own an instance of this daughter class and invoke it
258 as necessary. For example, mathd/formula.C gets previews at the cost
259 of 15 or so lines of code.
261 * Makefile.am: add PreviewedInset.[Ch].
263 * PreviewLoader.C (add): add debug message.
265 * Previews.C (generateBufferPreviews): remove if-block from loop.
267 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
269 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
271 (setAscentFractions): ditto
273 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
275 * PreviewLoader.C (setAscentFractions): modify because of strip
278 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
280 * GraphicsConverter.C (build_script): take a ostream as a more
281 general argument than ostringstream.
283 2002-07-22 Herbert Voss <voss@lyx.org>
285 * GraphicsConverter.C: get the "default converter" run again
287 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
289 * PreviewLoader.C: use BufferParams::getLyXTextClass
291 2002-07-21 Herbert Voss <voss@lyx.org>
293 * GraphicsImage.C: get the LyXAspectRatio run.
295 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
297 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
299 * PreviewLoader.C (startLoading): pass an interger as resolution
300 to the lyxpreview converter
302 * GraphicsParams.C: include <cstdlib>
304 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
306 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
307 preview converter script
309 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
311 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
314 2002-07-18 Angus Leeming <leeming@lyx.org>
316 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
318 (startMonitoring, monitoring, checksum): new methods to interact with
321 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
322 methods invoking the CacheItem methods of the same name.
323 (resetFile): if monitoring and the file changes, start monitoring this
326 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
328 * Makefile.am: remove FileMonitor.[Ch]
330 2002-06-17 Herbert Voss <voss@lyx.org>
332 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
333 for old ps-files (Garst). It's now handled by defining a converter and
334 disabling the ps-support of xforms.
336 2002-07-17 Angus Leeming <leeming@lyx.org>
338 Be true to the Pimpl idiom, moving all signals into the respective
339 Impl classes and defining methods to connect them to an outside slot.
340 Const-ify all visible class methods as they act only on a const pimpl_.
342 * GraphicsCache.[Ch] (add, remove): const-ify.
344 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
345 (statusChanged): move the signal into the Impl class.
346 (connect): new method, enabling a listener to connect to this signal.
348 * GraphicsConverter.[Ch]: (startConversion): const-ify.
349 (finishedConversion): move the signal into the Impl class.
350 (connect): new method, enabling a listener to connect to this signal.
352 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
353 (statusChanged): move the signal into the Impl class.
354 (connect): new method, enabling a listener to connect to this signal.
356 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
357 (imageReady): move the signal into the Impl class.
358 (connect): new method, enabling a listener to connect to this signal.
359 (emitSignal): new method, enabling PreviewImage to tell the outside
360 world that the file has been loaded into memory.
362 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
366 * GraphicsCacheItem.C:
367 * GraphicsConverter.[Ch]:
369 * GraphicsImageXPM.C:
371 * PreviewLoader.[Ch]: whitespace clean-up.
373 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
375 * PreviewLoader.C (setConverter): remove unused variable
377 * GraphicsImageXPM.C (isDrawable): implement
378 (setPixmap): the opaque color is black, not white
380 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
382 * GraphicsImageXPM.C (color_none_id):
383 (contains_color_none): use ascii_lowercase instead of lowercase
385 2002-07-16 Angus Leeming <leeming@lyx.org>
387 * PreviewLoader.C: greater use of STL algorithms.
389 * Previews.[Ch]: use const in more places.
390 (generateBufferPreviews): now takes a Buffer const & argument, not a
393 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
395 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
397 2002-07-12 Angus Leeming <leeming@lyx.org>
399 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
400 if visible 2 secs after the call to load them is first made.
402 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
403 BufferView to ascertain whether the inset is visible or not.
405 * Makefile.am: added GraphicsSupport.[Ch].
407 * PreviewImage.[Ch]: use this smart loader.
409 * PreviewLoader.C: don't load generated image files indiscimminantly.
410 Instead emit the imageReady signal and allow the image owner to decide.
412 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
414 * GraphicsCache.C: remove init_graphics()
416 2002-07-09 Angus Leeming <leeming@lyx.org>
418 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
419 arithmetic when it should be floating.
421 2002-07-09 Angus Leeming <leeming@lyx.org>
423 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
424 Output equation labels as "(#)" if lyxrc preference is set.
425 (setFontScalingFactor): use lyxrc variable preview_scale_factor
426 rather than hard-coding this.
428 2002-07-09 Angus Leeming <leeming@lyx.org>
430 * PreviewLoader.C: Further refactoring of the code. Should now be
433 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
434 past its sell-by date. The code to read the metrics file is now found
435 as a helper function in PreviewLoader.C.
437 * GraphicsImageXPM.C (scale): use boost::tie.
439 2002-07-08 Herbert Voss <voss@lyx.org>
441 * PreviewLoader.C: use of preview_size_factor to get the right
442 font-size! 0.9 is the default.
444 2002-07-08 Angus Leeming <leeming@lyx.org>
446 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
447 invocation of preview.sty.
448 Perform something of an internal clean-up.
450 2002-07-06 Angus Leeming <leeming@lyx.org>
452 * PreviewLoader.C: ensure that the metrics data is used by the
456 * PreviewImage.C: (Impl d-tor): remove all generated files that still
457 exist (perhaps because the process was curtailed before the images
460 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
462 2002-07-05 Angus Leeming <leeming@lyx.org>
471 * Previews.C: new files. The previewed LaTeX snippet stuff.
473 * Makefile.am: add these files.
475 2002-07-05 Angus Leeming <leeming@lyx.org>
477 * GraphicsLoader.h: whitespace.
479 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
481 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
482 boost::function from boost::signal.
484 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
486 * GraphicsConverter.C (convert): do not use ChangeExtension
487 because to_file_base may contain a dot.
489 2002-06-28 Angus Leeming <leeming@lyx.org>
491 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
492 by moving those SignalPtrs into the grfx::Image and grfx::Converter
493 classes where they really belong.
494 Use the Pimpl idiom to hide the class internals from public view.
496 * GraphicsTypes: remove the typedefs, leaving only the enums.
498 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
499 passed a reference to one in the load() method.
501 * GraphicsConverter.[Ch]: totally refactored. An instance of
502 grfx::Converter now represents a single conversion process.
503 Thus grfx::CachItem now has a grfx::Converter * that is set when the
504 conversion is initiated and destroyed on completion.
506 * GraphicsCache.[Ch]:
507 * GraphicsCacheItem.[Ch]:
508 * GraphicsConverter.[Ch]:
509 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
511 Note that I have done this only after making the above changes,
512 so not only should we have a clean, minimal and well documented
513 interface to these classes in the header files, but the class internals
514 should be much clearer too.
517 grfx::GCache -> grfx::Cache,
518 grfx::GCacheItem -> grfx::CacheItem,
519 grfx::GConverter -> grfx::Converter,
520 grfx::GImage -> grfx::Image,
521 grfx::GImageXPM -> grfx::ImageXPM,
522 grfx::GParams -> grfx::Params.
524 2002-06-26 Angus Leeming <leeming@lyx.org>
526 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
527 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
530 2002-06-26 Angus Leeming <leeming@lyx.org>
532 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
533 move the DisplayType enum out of grfx::GParams to here.
535 * GraphicsCacheItem.h: re-write preliminary description to reflect
538 * GraphicsParams.[Ch]:
539 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
540 grfx::DisplayType out of grfx::GParams.
542 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
543 that was in frontends/screen.C and insets/insetgraphics.C into a
544 single, easy-to-use class.
546 * Makefile.am: add these files.
548 2002-06-25 Angus Leeming <leeming@lyx.org>
550 * GraphicsCache.[Ch]:
551 * GraphicsCacheItem.[Ch]:
552 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
553 file into memory. The cache no longer controls the generation of the
554 pixmap. Instead, it just emits a signal when the loading status of an
556 The cache no longer stores InsetGraphics pointers and nor does it
557 assume responsibility for modifying an image (scaling, rotating etc).
558 Instead, that must now be performed elsewhere.
560 2002-06-19 Angus Leeming <leeming@lyx.org>
562 * GraphicsConverter.C: add using std::endl directive.
564 2002-06-17 Herbert Voss <voss@lyx.org>
566 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
567 default when nothing different was found
568 (convertToDisplayFormat): handle zipped files in the right way and
569 choose always convert as a default converter when no other
570 userdefined was found
572 * GraphicsConverter.C: add more lyxerr comments and choose
573 convert when no other userdefined converter was found
575 2002-06-10 Herbert Voss <voss@lyx.org>
577 * GraphicsImageXPM.C (convertTo7chars): get another special color
578 format from convert work in the right way
580 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
582 * GraphicsCache.C: use right colormap incantation
584 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
586 * GraphicsCache.C: use lyx_gui namespace
588 * GraphicsImageXPM.C: back down to using xforms
591 2002-06-07 Angus Leeming <leeming@lyx.org>
593 Fixes needed to compile with Compaq cxx 6.5.
594 * GraphicsConverter.h: forward declare class ConvProcess.
596 * GraphicsImageXPM.C:
597 all c-library variables have been moved into namespace std.
598 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
600 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
602 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
604 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
606 * GraphicsImageXPM.C: SigC to boot::signals changes.
607 (newImage): fix () bug when using new.
609 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
611 * switch from SigC signals to boost::signals.
613 2002-05-29 André Pönitz <poenitz@gmx.net>
615 * GraphicsParam.C: remove unneeded #include, move vomment
617 2002-05-28 André Pönitz <poenitz@gmx.net>
619 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
621 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
623 * GraphicsImageXPM.C: ColorHandler moved
625 2002-05-24 Juergen Vigna <jug@sad.it>
628 * GraphicsImage.h: include LString.h first.
630 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
632 * GraphicsCacheItem.h: use more specific smart_ptr header.
633 * GraphicsTypes.h: ditto
634 * GraphicsImage.h: ditto
635 * GraphicsConverter.h: ditto
637 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
639 * GraphicsImageXPM.C: understand convert's use of "opaque"
642 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
644 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
645 GImage::loadableFormats() that ensures that the signal is connected
646 to the derived class' method.
648 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
650 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
651 only work on the string.
653 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
655 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
656 the simple image loader when it encounters colour strings like
659 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
661 * GraphicsCacheItem.C (convertToDisplayFormat):
662 * GraphicsConverter.C (build_script): remove the Alerts when things go
663 wrong as the inset displays the message anyway. Moreover, Alert seems
664 pretty temperamemtal at the moment.
666 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
668 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
670 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
672 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
673 a reference to a temp object that's going out of scope...
675 2002-04-09 Herbert Voss <voss@lyx.org>
677 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
678 LyXLength::inBP instead of inPixels.
680 2002-04-10 Herbert Voss <voss@perce.de>
682 * GraphicsCache.[Ch]:
683 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
684 to read the "Bounding Box" from non (e)ps files.
686 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
688 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
689 the EPS file too, to ensure that the clipped Bounding Box is relative
690 to the original. (From Herbert.)
692 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
694 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
695 variables are initialised. Clean-up parsing of the string (with thanks
698 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
700 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
701 if the file can't be found.
703 * GraphicsParams.h (c-tor): remove string() as default argument.
705 * GraphicsCacheItem.C: a couple of changes as a result.
707 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
709 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
710 path to graphics file.
712 * GraphicsParams.[Ch] (c-tor): now passed filepath.
714 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
716 * most files: ws cleanup
718 * Makefile.am: remove ld -r stuff
720 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
722 * Makefile.am: special rules if partial linking
724 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
726 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
728 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
730 * GraphicsConverter.[Ch] (converted): make first arg const ref.
732 * GraphicsCacheItem.h: doxy change
734 * GraphicsCacheItem.C: ws change
736 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
738 * Makefile.am: if there is no image loading class leveraging the power
739 of the appropriate gui library, then compile the basic alternative
740 found in GraphicsImageXPM.[Ch].
742 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
744 * GraphicsCache.C: change associated with move of initialiseGraphics
747 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
749 * GraphicsParams.[Ch]:
751 * GraphicsImageXPM.C: properly resolve more warnings about comparison
752 between signed and unsigned integer expressions.
754 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
756 * GraphicsCache.C: move connections to the GImage-derived classes to
759 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
761 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
762 conversion, then do that.
764 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
766 * GraphicsCache.C: improve commentary to graphicsInit and where it
769 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
770 that became a memory leak properly. (Let the shared_c_ptr free the
772 (reset, mapcolor): tidy up and introduce a work around for XPM files
773 with crappy color entries. Print out a nice friendly message on what's
774 gone wrong and how to resolve it properly.
776 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
778 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
779 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
781 (unique_color_string): use the correct string c-tor.
783 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
786 * ImageLoaderXPM.[Ch]: removed.
788 * GraphicsConverter.[Ch]:
789 * GraphicsImage.[Ch]:
790 * GraphicsImageXPM.[Ch]:
791 * GraphicsParams.[Ch]:
792 * GraphicsTypes.h: new files.
794 * All files. A total re-write of the graphics cache. The cache now
795 supports asynchronous file conversion and file loading. Images
796 can be cropped, rotated and scaled for display on the LyX screen.
797 The old LyXImage and ImageLoader have been combined in a new class
798 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
801 2002-02-07 Herbert Voss <voss@lyx.org>
803 * GraphicsCacheItem.C: use unzipFile() from support/filetools
805 2002-01-31 Herbert Voss <voss@lyx.org>
807 * GraphicsCacheItem.h: handle filetype without the file extension;
808 getting type from contents; handle zipped files
810 2002-01-27 Herbert Voss <voss@lyx.org>
812 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
814 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
816 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
818 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
820 * GraphicsCacheItem.h: do not include <config.h> in header files
822 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
824 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
825 transparent colour, then set it to the colour of the background.
826 Also take account of the monochrome, grayscale of color
829 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
831 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
832 are different. Thus, don't delete the "to" if it's the original!
834 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
836 * ImageLoadXPM.C: remove setting of alloc colour mask,
837 led to crash as we don't define a callback
839 2001-07-29 Baruch Even <baruch@lyx.org>
841 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
842 colors with closeness of 10000.
844 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
846 2001-07-29 Baruch Even <baruch@lyx.org>
848 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
851 2001-07-23 Baruch Even <baruch@lyx.org>
853 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
854 the image after conversion.
856 2001-07-17 Baruch Even <baruch@lyx.org>
858 * GraphicsCacheItem.h:
859 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
860 from synchronous to asynchronous and to ease the coming changes.
862 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
864 * ImageLoaderXPM.C (runImageLoader): get display information from
867 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
870 * GraphicsCacheItem.C:
872 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
874 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
876 * GraphicsCache.h: inherit privately from noncopyable
877 * ImageLoader.h: ditto
878 * GraphicsCacheItem.h: ditto
880 2001-04-16 Allan Rae <rae@lyx.org>
882 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
883 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
886 2001-04-02 Baruch Even <baruch@lyx.org>
888 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
889 of hard coding ImageMagick.
891 2001-03-10 Baruch Even <baruch@lyx.org>
893 * GraphicsCache.C: Style change from (*it).field to it->field
895 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
897 * GraphicsCache.h: noncopyable is in namespace boost
898 * ImageLoader.h: ditto
899 * GraphicsCacheItem.h: ditto
901 2001-03-07 Baruch Even <baruch@lyx.org>
903 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
904 was false and it's not needed anyhow since the shared_ptr's in the cache
905 will destroy everything on exit.
907 2001-02-28 Baruch Even <baruch@ev-en.org>
910 * GraphicsCache.C: Changed the singleton pattern implementation, the
911 former version "leaked" in the sense that it was not deallocated at
914 2001-02-20 Baruch Even <baruch@ev-en.org>
916 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
917 instead of a pure pointer.
919 * GraphicsCacheItem.[Ch]:
920 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
921 removed the reference counting that was inside. Also fixed a bug where
922 a temporary file wouldn't get erased.
924 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
925 Ownership is now dropped when the caller requests the image_ pointer.
927 2001-02-20 Baruch Even <baruch@ev-en.org>
929 * GraphicsCache.C: Cleared up the confusion on when and how it is
932 * GraphicsCacheItem.C: Indentation change.
934 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
935 figure correctly when the image has been loaded successfully.
937 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
939 * ImageLoader.C: add a "using" directive.
941 * ImageLoader.h: remove extra comma at the end of enum; add an
942 std:: qualifier for vector.
944 2001-01-21 Baruch Even <baruch@ev-en.org>
946 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
947 height in the image itself and minor cleanups.
949 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
950 new ImageLoader class instead of the older Renderer class. This
951 means change of responsibilities.