1 2003-05-22 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
4 makeLaTeXFile is now encapsulated within runparams.
6 2003-05-22 Angus Leeming <leeming@lyx.org>
8 * PreviewLoader.C (dumpPreamble):
9 pass around a LatexRunParams parameter.
11 2003-05-13 André Pönitz <poenitz@gmx.net>
13 * GraphicsConverter.C:
14 * PreviewLoader.C: use tostr from own header
16 2003-05-12 André Pönitz <poenitz@gmx.net>
18 * PreviewLoader.C: boost::format -> bformat
20 2003-04-15 Angus Leeming <leeming@lyx.org>
22 * GraphicsConverter.C: #include lstrings.h.
24 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
27 * PreviewLoader.C: added #include "format.h"
29 2003-02-26 Angus Leeming <leeming@lyx.org>
31 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
32 use the cache of the parent inset instead.
34 * PreviewLoader.C (startLoading): Prevent a crash if the user is
35 not using a tmp directory.
37 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
39 * GraphicsLoader.[Ch],
41 * PreviewedInset.C: Removed unneeded list of owner insets
43 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
45 * GraphicsConverter (startConversion): add the call to
48 * GraphicsLoader.[Ch],
50 * PreviewedInset.C: Removed unneeded BufferView
52 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
54 * LoaderQueue.[Ch]: a simplification of the code, eliminated
55 the unneeded input bucket.
57 * GraphicsCacheItem.C (imageConverted): move warning inside the
60 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
62 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
64 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
66 * LoaderQueue.[Ch] (setPriority): added
68 * PreviewLoader.C (finishedGenerating): reversed the loading order so
69 first images get 'touched' last, and so load first.
71 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
73 * LoaderQueue.[Ch]: added. Implements a service queue that loads
75 * GraphicsSupport.[Ch]: removed
76 * Makefile.am: the changes above
77 * GraphicsLoader.C: use the loading queue
79 2003-01-21 Angus Leeming <leeming@lyx.org>
81 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
82 previews from being generated.
84 2003-01-13 Angus Leeming <leeming@lyx.org>
86 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
87 format to be PPM not XPM.
89 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
91 * Makefile.am (EXTRA_DIST): remove variable
93 2002-12-13 Angus Leeming <leeming@lyx.org>
95 * GraphicsImageXPM.[Ch]: removed.
97 * Makefile.am: associated change.
99 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
101 * several files: ws changes
103 2002-11-21 Angus Leeming <leeming@lyx.org>
105 * GraphicsConverter.C (build_script, move_file):
106 Don't use "if [ $? -ne 0 ]; then..."
108 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
110 * PreviewLoader.C (IncrementedFileName): STRCONV
111 (startLoading): ditto
113 * GraphicsConverter.C (Impl): STRCONV
116 * GraphicsTypes.C: include config.h
118 2002-10-25 Angus Leeming <leeming@lyx.org>
120 * GraphicsConverter.C (Impl::converted)
121 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
122 string as first arg, reflecting change in ForkedCall interface.
124 * PreviewLoader.C: use pid rather than command as identifier in
127 2002-10-18 Angus Leeming <leeming@lyx.org>
129 * GraphicsCacheItem.C (findTargetFormat): add debug message.
131 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
133 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
135 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
137 * GraphicsConverter.C (build_script): do not use ChangeExtension
141 2002-09-05 Angus Leeming <leeming@lyx.org>
143 * all files: modify the headers as discussed on the list.
145 2002-09-04 Angus Leeming <leeming@lyx.org>
147 * PreviewLoader.C (startLoading): pass the desired output format to the
150 2002-09-04 Angus Leeming <leeming@lyx.org>
152 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
154 2002-09-03 Angus Leeming <leeming@lyx.org>
156 * PreviewLoader.C: fix crash reported by Norbert Koksch when
157 generating more than 999 preview snippets. Use filenames with 5 digit
158 numbers, not 3, in the first instance, although more general code is
159 commented out. I don't suppose /anyone/ has 100000 formulae in one
162 2002-09-03 Angus Leeming <leeming@lyx.org>
164 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
166 2002-09-03 Angus Leeming <leeming@lyx.org>
168 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
170 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
172 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
173 convertDefault command with "sh ".
175 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
177 * GraphicsImage.C: small style fix to width/height setting.
179 * GraphicsTypes.h: have a displayTranslator here.
182 * GraphicsTypes.C: new file added for the setDisplayTranslator();
184 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
187 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
188 because this input has gone from the graphics dialog.
190 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
192 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
194 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
195 for support/smart_ptr.h, switch to boost smart ptr.
197 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
198 (~Data): let the smart_ptr handle cleanup
199 (reset): use nifty 3rd arg
201 (free_color_table): free the table manually
203 2002-08-09 Angus Leeming <leeming@lyx.org>
205 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
206 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
207 input@path is now set correctly.
209 2002-08-06 Angus Leeming <leeming@lyx.org>
211 * PreviewLoader.C: add support for preview.sty 0.73 (currently
212 #ifdef-ed out, awaiting the formal release).
214 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
215 the contents of a file that has changed.
217 2002-08-05 Angus Leeming <leeming@lyx.org>
219 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
220 to preview.sty. Works only for versions of preview.sty > 0.72b but
221 doesn't hurt earlier versions. Allows me to test the new parsing of
222 LyX-specific data from the generated log file.
224 2002-08-02 Angus Leeming <leeming@lyx.org>
226 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
228 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
229 (add): don't add empty snippets.
231 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
232 (view, setView): access to to the cache_.
234 2002-08-02 Angus Leeming <leeming@lyx.org>
236 * PreviewedInset.[Ch]: cache the LaTeX snippet.
238 2002-08-01 Angus Leeming <leeming@lyx.org>
240 * PreviewedInset.[Ch]: new files. An abstract base class that can help
241 insets to generate previews.
242 The daughter class must instantiate three small methods.
243 The Inset would own an instance of this daughter class and invoke it
244 as necessary. For example, mathd/formula.C gets previews at the cost
245 of 15 or so lines of code.
247 * Makefile.am: add PreviewedInset.[Ch].
249 * PreviewLoader.C (add): add debug message.
251 * Previews.C (generateBufferPreviews): remove if-block from loop.
253 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
255 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
257 (setAscentFractions): ditto
259 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
261 * PreviewLoader.C (setAscentFractions): modify because of strip
264 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
266 * GraphicsConverter.C (build_script): take a ostream as a more
267 general argument than ostringstream.
269 2002-07-22 Herbert Voss <voss@lyx.org>
271 * GraphicsConverter.C: get the "default converter" run again
273 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
275 * PreviewLoader.C: use BufferParams::getLyXTextClass
277 2002-07-21 Herbert Voss <voss@lyx.org>
279 * GraphicsImage.C: get the LyXAspectRatio run.
281 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
283 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
285 * PreviewLoader.C (startLoading): pass an interger as resolution
286 to the lyxpreview converter
288 * GraphicsParams.C: include <cstdlib>
290 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
292 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
293 preview converter script
295 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
297 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
300 2002-07-18 Angus Leeming <leeming@lyx.org>
302 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
304 (startMonitoring, monitoring, checksum): new methods to interact with
307 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
308 methods invoking the CacheItem methods of the same name.
309 (resetFile): if monitoring and the file changes, start monitoring this
312 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
314 * Makefile.am: remove FileMonitor.[Ch]
316 2002-06-17 Herbert Voss <voss@lyx.org>
318 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
319 for old ps-files (Garst). It's now handled by defining a converter and
320 disabling the ps-support of xforms.
322 2002-07-17 Angus Leeming <leeming@lyx.org>
324 Be true to the Pimpl idiom, moving all signals into the respective
325 Impl classes and defining methods to connect them to an outside slot.
326 Const-ify all visible class methods as they act only on a const pimpl_.
328 * GraphicsCache.[Ch] (add, remove): const-ify.
330 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
331 (statusChanged): move the signal into the Impl class.
332 (connect): new method, enabling a listener to connect to this signal.
334 * GraphicsConverter.[Ch]: (startConversion): const-ify.
335 (finishedConversion): move the signal into the Impl class.
336 (connect): new method, enabling a listener to connect to this signal.
338 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
339 (statusChanged): move the signal into the Impl class.
340 (connect): new method, enabling a listener to connect to this signal.
342 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
343 (imageReady): move the signal into the Impl class.
344 (connect): new method, enabling a listener to connect to this signal.
345 (emitSignal): new method, enabling PreviewImage to tell the outside
346 world that the file has been loaded into memory.
348 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
352 * GraphicsCacheItem.C:
353 * GraphicsConverter.[Ch]:
355 * GraphicsImageXPM.C:
357 * PreviewLoader.[Ch]: whitespace clean-up.
359 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
361 * PreviewLoader.C (setConverter): remove unused variable
363 * GraphicsImageXPM.C (isDrawable): implement
364 (setPixmap): the opaque color is black, not white
366 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
368 * GraphicsImageXPM.C (color_none_id):
369 (contains_color_none): use ascii_lowercase instead of lowercase
371 2002-07-16 Angus Leeming <leeming@lyx.org>
373 * PreviewLoader.C: greater use of STL algorithms.
375 * Previews.[Ch]: use const in more places.
376 (generateBufferPreviews): now takes a Buffer const & argument, not a
379 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
381 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
383 2002-07-12 Angus Leeming <leeming@lyx.org>
385 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
386 if visible 2 secs after the call to load them is first made.
388 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
389 BufferView to ascertain whether the inset is visible or not.
391 * Makefile.am: added GraphicsSupport.[Ch].
393 * PreviewImage.[Ch]: use this smart loader.
395 * PreviewLoader.C: don't load generated image files indiscimminantly.
396 Instead emit the imageReady signal and allow the image owner to decide.
398 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
400 * GraphicsCache.C: remove init_graphics()
402 2002-07-09 Angus Leeming <leeming@lyx.org>
404 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
405 arithmetic when it should be floating.
407 2002-07-09 Angus Leeming <leeming@lyx.org>
409 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
410 Output equation labels as "(#)" if lyxrc preference is set.
411 (setFontScalingFactor): use lyxrc variable preview_scale_factor
412 rather than hard-coding this.
414 2002-07-09 Angus Leeming <leeming@lyx.org>
416 * PreviewLoader.C: Further refactoring of the code. Should now be
419 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
420 past its sell-by date. The code to read the metrics file is now found
421 as a helper function in PreviewLoader.C.
423 * GraphicsImageXPM.C (scale): use boost::tie.
425 2002-07-08 Herbert Voss <voss@lyx.org>
427 * PreviewLoader.C: use of preview_size_factor to get the right
428 font-size! 0.9 is the default.
430 2002-07-08 Angus Leeming <leeming@lyx.org>
432 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
433 invocation of preview.sty.
434 Perform something of an internal clean-up.
436 2002-07-06 Angus Leeming <leeming@lyx.org>
438 * PreviewLoader.C: ensure that the metrics data is used by the
442 * PreviewImage.C: (Impl d-tor): remove all generated files that still
443 exist (perhaps because the process was curtailed before the images
446 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
448 2002-07-05 Angus Leeming <leeming@lyx.org>
457 * Previews.C: new files. The previewed LaTeX snippet stuff.
459 * Makefile.am: add these files.
461 2002-07-05 Angus Leeming <leeming@lyx.org>
463 * GraphicsLoader.h: whitespace.
465 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
467 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
468 boost::function from boost::signal.
470 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
472 * GraphicsConverter.C (convert): do not use ChangeExtension
473 because to_file_base may contain a dot.
475 2002-06-28 Angus Leeming <leeming@lyx.org>
477 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
478 by moving those SignalPtrs into the grfx::Image and grfx::Converter
479 classes where they really belong.
480 Use the Pimpl idiom to hide the class internals from public view.
482 * GraphicsTypes: remove the typedefs, leaving only the enums.
484 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
485 passed a reference to one in the load() method.
487 * GraphicsConverter.[Ch]: totally refactored. An instance of
488 grfx::Converter now represents a single conversion process.
489 Thus grfx::CachItem now has a grfx::Converter * that is set when the
490 conversion is initiated and destroyed on completion.
492 * GraphicsCache.[Ch]:
493 * GraphicsCacheItem.[Ch]:
494 * GraphicsConverter.[Ch]:
495 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
497 Note that I have done this only after making the above changes,
498 so not only should we have a clean, minimal and well documented
499 interface to these classes in the header files, but the class internals
500 should be much clearer too.
503 grfx::GCache -> grfx::Cache,
504 grfx::GCacheItem -> grfx::CacheItem,
505 grfx::GConverter -> grfx::Converter,
506 grfx::GImage -> grfx::Image,
507 grfx::GImageXPM -> grfx::ImageXPM,
508 grfx::GParams -> grfx::Params.
510 2002-06-26 Angus Leeming <leeming@lyx.org>
512 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
513 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
516 2002-06-26 Angus Leeming <leeming@lyx.org>
518 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
519 move the DisplayType enum out of grfx::GParams to here.
521 * GraphicsCacheItem.h: re-write preliminary description to reflect
524 * GraphicsParams.[Ch]:
525 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
526 grfx::DisplayType out of grfx::GParams.
528 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
529 that was in frontends/screen.C and insets/insetgraphics.C into a
530 single, easy-to-use class.
532 * Makefile.am: add these files.
534 2002-06-25 Angus Leeming <leeming@lyx.org>
536 * GraphicsCache.[Ch]:
537 * GraphicsCacheItem.[Ch]:
538 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
539 file into memory. The cache no longer controls the generation of the
540 pixmap. Instead, it just emits a signal when the loading status of an
542 The cache no longer stores InsetGraphics pointers and nor does it
543 assume responsibility for modifying an image (scaling, rotating etc).
544 Instead, that must now be performed elsewhere.
546 2002-06-19 Angus Leeming <leeming@lyx.org>
548 * GraphicsConverter.C: add using std::endl directive.
550 2002-06-17 Herbert Voss <voss@lyx.org>
552 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
553 default when nothing different was found
554 (convertToDisplayFormat): handle zipped files in the right way and
555 choose always convert as a default converter when no other
556 userdefined was found
558 * GraphicsConverter.C: add more lyxerr comments and choose
559 convert when no other userdefined converter was found
561 2002-06-10 Herbert Voss <voss@lyx.org>
563 * GraphicsImageXPM.C (convertTo7chars): get another special color
564 format from convert work in the right way
566 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
568 * GraphicsCache.C: use right colormap incantation
570 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
572 * GraphicsCache.C: use lyx_gui namespace
574 * GraphicsImageXPM.C: back down to using xforms
577 2002-06-07 Angus Leeming <leeming@lyx.org>
579 Fixes needed to compile with Compaq cxx 6.5.
580 * GraphicsConverter.h: forward declare class ConvProcess.
582 * GraphicsImageXPM.C:
583 all c-library variables have been moved into namespace std.
584 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
586 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
588 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
590 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
592 * GraphicsImageXPM.C: SigC to boot::signals changes.
593 (newImage): fix () bug when using new.
595 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
597 * switch from SigC signals to boost::signals.
599 2002-05-29 André Pönitz <poenitz@gmx.net>
601 * GraphicsParam.C: remove unneeded #include, move vomment
603 2002-05-28 André Pönitz <poenitz@gmx.net>
605 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
607 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
609 * GraphicsImageXPM.C: ColorHandler moved
611 2002-05-24 Juergen Vigna <jug@sad.it>
614 * GraphicsImage.h: include LString.h first.
616 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
618 * GraphicsCacheItem.h: use more specific smart_ptr header.
619 * GraphicsTypes.h: ditto
620 * GraphicsImage.h: ditto
621 * GraphicsConverter.h: ditto
623 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
625 * GraphicsImageXPM.C: understand convert's use of "opaque"
628 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
630 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
631 GImage::loadableFormats() that ensures that the signal is connected
632 to the derived class' method.
634 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
636 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
637 only work on the string.
639 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
641 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
642 the simple image loader when it encounters colour strings like
645 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
647 * GraphicsCacheItem.C (convertToDisplayFormat):
648 * GraphicsConverter.C (build_script): remove the Alerts when things go
649 wrong as the inset displays the message anyway. Moreover, Alert seems
650 pretty temperamemtal at the moment.
652 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
654 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
656 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
658 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
659 a reference to a temp object that's going out of scope...
661 2002-04-09 Herbert Voss <voss@lyx.org>
663 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
664 LyXLength::inBP instead of inPixels.
666 2002-04-10 Herbert Voss <voss@perce.de>
668 * GraphicsCache.[Ch]:
669 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
670 to read the "Bounding Box" from non (e)ps files.
672 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
674 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
675 the EPS file too, to ensure that the clipped Bounding Box is relative
676 to the original. (From Herbert.)
678 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
680 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
681 variables are initialised. Clean-up parsing of the string (with thanks
684 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
686 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
687 if the file can't be found.
689 * GraphicsParams.h (c-tor): remove string() as default argument.
691 * GraphicsCacheItem.C: a couple of changes as a result.
693 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
695 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
696 path to graphics file.
698 * GraphicsParams.[Ch] (c-tor): now passed filepath.
700 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
702 * most files: ws cleanup
704 * Makefile.am: remove ld -r stuff
706 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
708 * Makefile.am: special rules if partial linking
710 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
712 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
714 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
716 * GraphicsConverter.[Ch] (converted): make first arg const ref.
718 * GraphicsCacheItem.h: doxy change
720 * GraphicsCacheItem.C: ws change
722 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
724 * Makefile.am: if there is no image loading class leveraging the power
725 of the appropriate gui library, then compile the basic alternative
726 found in GraphicsImageXPM.[Ch].
728 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
730 * GraphicsCache.C: change associated with move of initialiseGraphics
733 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
735 * GraphicsParams.[Ch]:
737 * GraphicsImageXPM.C: properly resolve more warnings about comparison
738 between signed and unsigned integer expressions.
740 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
742 * GraphicsCache.C: move connections to the GImage-derived classes to
745 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
747 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
748 conversion, then do that.
750 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
752 * GraphicsCache.C: improve commentary to graphicsInit and where it
755 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
756 that became a memory leak properly. (Let the shared_c_ptr free the
758 (reset, mapcolor): tidy up and introduce a work around for XPM files
759 with crappy color entries. Print out a nice friendly message on what's
760 gone wrong and how to resolve it properly.
762 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
764 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
765 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
767 (unique_color_string): use the correct string c-tor.
769 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
772 * ImageLoaderXPM.[Ch]: removed.
774 * GraphicsConverter.[Ch]:
775 * GraphicsImage.[Ch]:
776 * GraphicsImageXPM.[Ch]:
777 * GraphicsParams.[Ch]:
778 * GraphicsTypes.h: new files.
780 * All files. A total re-write of the graphics cache. The cache now
781 supports asynchronous file conversion and file loading. Images
782 can be cropped, rotated and scaled for display on the LyX screen.
783 The old LyXImage and ImageLoader have been combined in a new class
784 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
787 2002-02-07 Herbert Voss <voss@lyx.org>
789 * GraphicsCacheItem.C: use unzipFile() from support/filetools
791 2002-01-31 Herbert Voss <voss@lyx.org>
793 * GraphicsCacheItem.h: handle filetype without the file extension;
794 getting type from contents; handle zipped files
796 2002-01-27 Herbert Voss <voss@lyx.org>
798 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
800 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
802 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
804 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
806 * GraphicsCacheItem.h: do not include <config.h> in header files
808 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
810 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
811 transparent colour, then set it to the colour of the background.
812 Also take account of the monochrome, grayscale of color
815 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
817 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
818 are different. Thus, don't delete the "to" if it's the original!
820 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
822 * ImageLoadXPM.C: remove setting of alloc colour mask,
823 led to crash as we don't define a callback
825 2001-07-29 Baruch Even <baruch@lyx.org>
827 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
828 colors with closeness of 10000.
830 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
832 2001-07-29 Baruch Even <baruch@lyx.org>
834 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
837 2001-07-23 Baruch Even <baruch@lyx.org>
839 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
840 the image after conversion.
842 2001-07-17 Baruch Even <baruch@lyx.org>
844 * GraphicsCacheItem.h:
845 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
846 from synchronous to asynchronous and to ease the coming changes.
848 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
850 * ImageLoaderXPM.C (runImageLoader): get display information from
853 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
856 * GraphicsCacheItem.C:
858 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
860 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
862 * GraphicsCache.h: inherit privately from noncopyable
863 * ImageLoader.h: ditto
864 * GraphicsCacheItem.h: ditto
866 2001-04-16 Allan Rae <rae@lyx.org>
868 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
869 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
872 2001-04-02 Baruch Even <baruch@lyx.org>
874 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
875 of hard coding ImageMagick.
877 2001-03-10 Baruch Even <baruch@lyx.org>
879 * GraphicsCache.C: Style change from (*it).field to it->field
881 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
883 * GraphicsCache.h: noncopyable is in namespace boost
884 * ImageLoader.h: ditto
885 * GraphicsCacheItem.h: ditto
887 2001-03-07 Baruch Even <baruch@lyx.org>
889 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
890 was false and it's not needed anyhow since the shared_ptr's in the cache
891 will destroy everything on exit.
893 2001-02-28 Baruch Even <baruch@ev-en.org>
896 * GraphicsCache.C: Changed the singleton pattern implementation, the
897 former version "leaked" in the sense that it was not deallocated at
900 2001-02-20 Baruch Even <baruch@ev-en.org>
902 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
903 instead of a pure pointer.
905 * GraphicsCacheItem.[Ch]:
906 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
907 removed the reference counting that was inside. Also fixed a bug where
908 a temporary file wouldn't get erased.
910 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
911 Ownership is now dropped when the caller requests the image_ pointer.
913 2001-02-20 Baruch Even <baruch@ev-en.org>
915 * GraphicsCache.C: Cleared up the confusion on when and how it is
918 * GraphicsCacheItem.C: Indentation change.
920 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
921 figure correctly when the image has been loaded successfully.
923 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
925 * ImageLoader.C: add a "using" directive.
927 * ImageLoader.h: remove extra comma at the end of enum; add an
928 std:: qualifier for vector.
930 2001-01-21 Baruch Even <baruch@ev-en.org>
932 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
933 height in the image itself and minor cleanups.
935 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
936 new ImageLoader class instead of the older Renderer class. This
937 means change of responsibilities.