1 2003-04-15 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C: #include lstrings.h.
5 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
8 * PreviewLoader.C: added #include "format.h"
10 2003-02-26 Angus Leeming <leeming@lyx.org>
12 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
13 use the cache of the parent inset instead.
15 * PreviewLoader.C (startLoading): Prevent a crash if the user is
16 not using a tmp directory.
18 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
20 * GraphicsLoader.[Ch],
22 * PreviewedInset.C: Removed unneeded list of owner insets
24 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
26 * GraphicsConverter (startConversion): add the call to
29 * GraphicsLoader.[Ch],
31 * PreviewedInset.C: Removed unneeded BufferView
33 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
35 * LoaderQueue.[Ch]: a simplification of the code, eliminated
36 the unneeded input bucket.
38 * GraphicsCacheItem.C (imageConverted): move warning inside the
41 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
43 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
45 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
47 * LoaderQueue.[Ch] (setPriority): added
49 * PreviewLoader.C (finishedGenerating): reversed the loading order so
50 first images get 'touched' last, and so load first.
52 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
54 * LoaderQueue.[Ch]: added. Implements a service queue that loads
56 * GraphicsSupport.[Ch]: removed
57 * Makefile.am: the changes above
58 * GraphicsLoader.C: use the loading queue
60 2003-01-21 Angus Leeming <leeming@lyx.org>
62 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
63 previews from being generated.
65 2003-01-13 Angus Leeming <leeming@lyx.org>
67 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
68 format to be PPM not XPM.
70 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
72 * Makefile.am (EXTRA_DIST): remove variable
74 2002-12-13 Angus Leeming <leeming@lyx.org>
76 * GraphicsImageXPM.[Ch]: removed.
78 * Makefile.am: associated change.
80 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
82 * several files: ws changes
84 2002-11-21 Angus Leeming <leeming@lyx.org>
86 * GraphicsConverter.C (build_script, move_file):
87 Don't use "if [ $? -ne 0 ]; then..."
89 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
91 * PreviewLoader.C (IncrementedFileName): STRCONV
94 * GraphicsConverter.C (Impl): STRCONV
97 * GraphicsTypes.C: include config.h
99 2002-10-25 Angus Leeming <leeming@lyx.org>
101 * GraphicsConverter.C (Impl::converted)
102 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
103 string as first arg, reflecting change in ForkedCall interface.
105 * PreviewLoader.C: use pid rather than command as identifier in
108 2002-10-18 Angus Leeming <leeming@lyx.org>
110 * GraphicsCacheItem.C (findTargetFormat): add debug message.
112 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
114 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
116 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
118 * GraphicsConverter.C (build_script): do not use ChangeExtension
122 2002-09-05 Angus Leeming <leeming@lyx.org>
124 * all files: modify the headers as discussed on the list.
126 2002-09-04 Angus Leeming <leeming@lyx.org>
128 * PreviewLoader.C (startLoading): pass the desired output format to the
131 2002-09-04 Angus Leeming <leeming@lyx.org>
133 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
135 2002-09-03 Angus Leeming <leeming@lyx.org>
137 * PreviewLoader.C: fix crash reported by Norbert Koksch when
138 generating more than 999 preview snippets. Use filenames with 5 digit
139 numbers, not 3, in the first instance, although more general code is
140 commented out. I don't suppose /anyone/ has 100000 formulae in one
143 2002-09-03 Angus Leeming <leeming@lyx.org>
145 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
147 2002-09-03 Angus Leeming <leeming@lyx.org>
149 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
151 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
153 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
154 convertDefault command with "sh ".
156 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
158 * GraphicsImage.C: small style fix to width/height setting.
160 * GraphicsTypes.h: have a displayTranslator here.
163 * GraphicsTypes.C: new file added for the setDisplayTranslator();
165 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
168 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
169 because this input has gone from the graphics dialog.
171 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
173 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
175 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
176 for support/smart_ptr.h, switch to boost smart ptr.
178 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
179 (~Data): let the smart_ptr handle cleanup
180 (reset): use nifty 3rd arg
182 (free_color_table): free the table manually
184 2002-08-09 Angus Leeming <leeming@lyx.org>
186 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
187 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
188 input@path is now set correctly.
190 2002-08-06 Angus Leeming <leeming@lyx.org>
192 * PreviewLoader.C: add support for preview.sty 0.73 (currently
193 #ifdef-ed out, awaiting the formal release).
195 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
196 the contents of a file that has changed.
198 2002-08-05 Angus Leeming <leeming@lyx.org>
200 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
201 to preview.sty. Works only for versions of preview.sty > 0.72b but
202 doesn't hurt earlier versions. Allows me to test the new parsing of
203 LyX-specific data from the generated log file.
205 2002-08-02 Angus Leeming <leeming@lyx.org>
207 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
209 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
210 (add): don't add empty snippets.
212 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
213 (view, setView): access to to the cache_.
215 2002-08-02 Angus Leeming <leeming@lyx.org>
217 * PreviewedInset.[Ch]: cache the LaTeX snippet.
219 2002-08-01 Angus Leeming <leeming@lyx.org>
221 * PreviewedInset.[Ch]: new files. An abstract base class that can help
222 insets to generate previews.
223 The daughter class must instantiate three small methods.
224 The Inset would own an instance of this daughter class and invoke it
225 as necessary. For example, mathd/formula.C gets previews at the cost
226 of 15 or so lines of code.
228 * Makefile.am: add PreviewedInset.[Ch].
230 * PreviewLoader.C (add): add debug message.
232 * Previews.C (generateBufferPreviews): remove if-block from loop.
234 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
236 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
238 (setAscentFractions): ditto
240 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
242 * PreviewLoader.C (setAscentFractions): modify because of strip
245 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
247 * GraphicsConverter.C (build_script): take a ostream as a more
248 general argument than ostringstream.
250 2002-07-22 Herbert Voss <voss@lyx.org>
252 * GraphicsConverter.C: get the "default converter" run again
254 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
256 * PreviewLoader.C: use BufferParams::getLyXTextClass
258 2002-07-21 Herbert Voss <voss@lyx.org>
260 * GraphicsImage.C: get the LyXAspectRatio run.
262 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
264 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
266 * PreviewLoader.C (startLoading): pass an interger as resolution
267 to the lyxpreview converter
269 * GraphicsParams.C: include <cstdlib>
271 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
273 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
274 preview converter script
276 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
278 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
281 2002-07-18 Angus Leeming <leeming@lyx.org>
283 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
285 (startMonitoring, monitoring, checksum): new methods to interact with
288 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
289 methods invoking the CacheItem methods of the same name.
290 (resetFile): if monitoring and the file changes, start monitoring this
293 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
295 * Makefile.am: remove FileMonitor.[Ch]
297 2002-06-17 Herbert Voss <voss@lyx.org>
299 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
300 for old ps-files (Garst). It's now handled by defining a converter and
301 disabling the ps-support of xforms.
303 2002-07-17 Angus Leeming <leeming@lyx.org>
305 Be true to the Pimpl idiom, moving all signals into the respective
306 Impl classes and defining methods to connect them to an outside slot.
307 Const-ify all visible class methods as they act only on a const pimpl_.
309 * GraphicsCache.[Ch] (add, remove): const-ify.
311 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
312 (statusChanged): move the signal into the Impl class.
313 (connect): new method, enabling a listener to connect to this signal.
315 * GraphicsConverter.[Ch]: (startConversion): const-ify.
316 (finishedConversion): move the signal into the Impl class.
317 (connect): new method, enabling a listener to connect to this signal.
319 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
320 (statusChanged): move the signal into the Impl class.
321 (connect): new method, enabling a listener to connect to this signal.
323 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
324 (imageReady): move the signal into the Impl class.
325 (connect): new method, enabling a listener to connect to this signal.
326 (emitSignal): new method, enabling PreviewImage to tell the outside
327 world that the file has been loaded into memory.
329 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
333 * GraphicsCacheItem.C:
334 * GraphicsConverter.[Ch]:
336 * GraphicsImageXPM.C:
338 * PreviewLoader.[Ch]: whitespace clean-up.
340 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
342 * PreviewLoader.C (setConverter): remove unused variable
344 * GraphicsImageXPM.C (isDrawable): implement
345 (setPixmap): the opaque color is black, not white
347 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
349 * GraphicsImageXPM.C (color_none_id):
350 (contains_color_none): use ascii_lowercase instead of lowercase
352 2002-07-16 Angus Leeming <leeming@lyx.org>
354 * PreviewLoader.C: greater use of STL algorithms.
356 * Previews.[Ch]: use const in more places.
357 (generateBufferPreviews): now takes a Buffer const & argument, not a
360 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
362 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
364 2002-07-12 Angus Leeming <leeming@lyx.org>
366 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
367 if visible 2 secs after the call to load them is first made.
369 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
370 BufferView to ascertain whether the inset is visible or not.
372 * Makefile.am: added GraphicsSupport.[Ch].
374 * PreviewImage.[Ch]: use this smart loader.
376 * PreviewLoader.C: don't load generated image files indiscimminantly.
377 Instead emit the imageReady signal and allow the image owner to decide.
379 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
381 * GraphicsCache.C: remove init_graphics()
383 2002-07-09 Angus Leeming <leeming@lyx.org>
385 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
386 arithmetic when it should be floating.
388 2002-07-09 Angus Leeming <leeming@lyx.org>
390 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
391 Output equation labels as "(#)" if lyxrc preference is set.
392 (setFontScalingFactor): use lyxrc variable preview_scale_factor
393 rather than hard-coding this.
395 2002-07-09 Angus Leeming <leeming@lyx.org>
397 * PreviewLoader.C: Further refactoring of the code. Should now be
400 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
401 past its sell-by date. The code to read the metrics file is now found
402 as a helper function in PreviewLoader.C.
404 * GraphicsImageXPM.C (scale): use boost::tie.
406 2002-07-08 Herbert Voss <voss@lyx.org>
408 * PreviewLoader.C: use of preview_size_factor to get the right
409 font-size! 0.9 is the default.
411 2002-07-08 Angus Leeming <leeming@lyx.org>
413 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
414 invocation of preview.sty.
415 Perform something of an internal clean-up.
417 2002-07-06 Angus Leeming <leeming@lyx.org>
419 * PreviewLoader.C: ensure that the metrics data is used by the
423 * PreviewImage.C: (Impl d-tor): remove all generated files that still
424 exist (perhaps because the process was curtailed before the images
427 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
429 2002-07-05 Angus Leeming <leeming@lyx.org>
438 * Previews.C: new files. The previewed LaTeX snippet stuff.
440 * Makefile.am: add these files.
442 2002-07-05 Angus Leeming <leeming@lyx.org>
444 * GraphicsLoader.h: whitespace.
446 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
448 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
449 boost::function from boost::signal.
451 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
453 * GraphicsConverter.C (convert): do not use ChangeExtension
454 because to_file_base may contain a dot.
456 2002-06-28 Angus Leeming <leeming@lyx.org>
458 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
459 by moving those SignalPtrs into the grfx::Image and grfx::Converter
460 classes where they really belong.
461 Use the Pimpl idiom to hide the class internals from public view.
463 * GraphicsTypes: remove the typedefs, leaving only the enums.
465 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
466 passed a reference to one in the load() method.
468 * GraphicsConverter.[Ch]: totally refactored. An instance of
469 grfx::Converter now represents a single conversion process.
470 Thus grfx::CachItem now has a grfx::Converter * that is set when the
471 conversion is initiated and destroyed on completion.
473 * GraphicsCache.[Ch]:
474 * GraphicsCacheItem.[Ch]:
475 * GraphicsConverter.[Ch]:
476 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
478 Note that I have done this only after making the above changes,
479 so not only should we have a clean, minimal and well documented
480 interface to these classes in the header files, but the class internals
481 should be much clearer too.
484 grfx::GCache -> grfx::Cache,
485 grfx::GCacheItem -> grfx::CacheItem,
486 grfx::GConverter -> grfx::Converter,
487 grfx::GImage -> grfx::Image,
488 grfx::GImageXPM -> grfx::ImageXPM,
489 grfx::GParams -> grfx::Params.
491 2002-06-26 Angus Leeming <leeming@lyx.org>
493 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
494 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
497 2002-06-26 Angus Leeming <leeming@lyx.org>
499 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
500 move the DisplayType enum out of grfx::GParams to here.
502 * GraphicsCacheItem.h: re-write preliminary description to reflect
505 * GraphicsParams.[Ch]:
506 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
507 grfx::DisplayType out of grfx::GParams.
509 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
510 that was in frontends/screen.C and insets/insetgraphics.C into a
511 single, easy-to-use class.
513 * Makefile.am: add these files.
515 2002-06-25 Angus Leeming <leeming@lyx.org>
517 * GraphicsCache.[Ch]:
518 * GraphicsCacheItem.[Ch]:
519 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
520 file into memory. The cache no longer controls the generation of the
521 pixmap. Instead, it just emits a signal when the loading status of an
523 The cache no longer stores InsetGraphics pointers and nor does it
524 assume responsibility for modifying an image (scaling, rotating etc).
525 Instead, that must now be performed elsewhere.
527 2002-06-19 Angus Leeming <leeming@lyx.org>
529 * GraphicsConverter.C: add using std::endl directive.
531 2002-06-17 Herbert Voss <voss@lyx.org>
533 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
534 default when nothing different was found
535 (convertToDisplayFormat): handle zipped files in the right way and
536 choose always convert as a default converter when no other
537 userdefined was found
539 * GraphicsConverter.C: add more lyxerr comments and choose
540 convert when no other userdefined converter was found
542 2002-06-10 Herbert Voss <voss@lyx.org>
544 * GraphicsImageXPM.C (convertTo7chars): get another special color
545 format from convert work in the right way
547 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
549 * GraphicsCache.C: use right colormap incantation
551 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
553 * GraphicsCache.C: use lyx_gui namespace
555 * GraphicsImageXPM.C: back down to using xforms
558 2002-06-07 Angus Leeming <leeming@lyx.org>
560 Fixes needed to compile with Compaq cxx 6.5.
561 * GraphicsConverter.h: forward declare class ConvProcess.
563 * GraphicsImageXPM.C:
564 all c-library variables have been moved into namespace std.
565 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
567 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
569 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
571 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
573 * GraphicsImageXPM.C: SigC to boot::signals changes.
574 (newImage): fix () bug when using new.
576 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
578 * switch from SigC signals to boost::signals.
580 2002-05-29 André Pönitz <poenitz@gmx.net>
582 * GraphicsParam.C: remove unneeded #include, move vomment
584 2002-05-28 André Pönitz <poenitz@gmx.net>
586 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
588 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
590 * GraphicsImageXPM.C: ColorHandler moved
592 2002-05-24 Juergen Vigna <jug@sad.it>
595 * GraphicsImage.h: include LString.h first.
597 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
599 * GraphicsCacheItem.h: use more specific smart_ptr header.
600 * GraphicsTypes.h: ditto
601 * GraphicsImage.h: ditto
602 * GraphicsConverter.h: ditto
604 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
606 * GraphicsImageXPM.C: understand convert's use of "opaque"
609 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
611 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
612 GImage::loadableFormats() that ensures that the signal is connected
613 to the derived class' method.
615 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
617 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
618 only work on the string.
620 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
622 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
623 the simple image loader when it encounters colour strings like
626 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
628 * GraphicsCacheItem.C (convertToDisplayFormat):
629 * GraphicsConverter.C (build_script): remove the Alerts when things go
630 wrong as the inset displays the message anyway. Moreover, Alert seems
631 pretty temperamemtal at the moment.
633 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
635 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
637 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
639 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
640 a reference to a temp object that's going out of scope...
642 2002-04-09 Herbert Voss <voss@lyx.org>
644 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
645 LyXLength::inBP instead of inPixels.
647 2002-04-10 Herbert Voss <voss@perce.de>
649 * GraphicsCache.[Ch]:
650 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
651 to read the "Bounding Box" from non (e)ps files.
653 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
655 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
656 the EPS file too, to ensure that the clipped Bounding Box is relative
657 to the original. (From Herbert.)
659 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
661 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
662 variables are initialised. Clean-up parsing of the string (with thanks
665 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
667 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
668 if the file can't be found.
670 * GraphicsParams.h (c-tor): remove string() as default argument.
672 * GraphicsCacheItem.C: a couple of changes as a result.
674 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
676 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
677 path to graphics file.
679 * GraphicsParams.[Ch] (c-tor): now passed filepath.
681 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
683 * most files: ws cleanup
685 * Makefile.am: remove ld -r stuff
687 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
689 * Makefile.am: special rules if partial linking
691 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
693 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
695 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
697 * GraphicsConverter.[Ch] (converted): make first arg const ref.
699 * GraphicsCacheItem.h: doxy change
701 * GraphicsCacheItem.C: ws change
703 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
705 * Makefile.am: if there is no image loading class leveraging the power
706 of the appropriate gui library, then compile the basic alternative
707 found in GraphicsImageXPM.[Ch].
709 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
711 * GraphicsCache.C: change associated with move of initialiseGraphics
714 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
716 * GraphicsParams.[Ch]:
718 * GraphicsImageXPM.C: properly resolve more warnings about comparison
719 between signed and unsigned integer expressions.
721 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
723 * GraphicsCache.C: move connections to the GImage-derived classes to
726 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
728 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
729 conversion, then do that.
731 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
733 * GraphicsCache.C: improve commentary to graphicsInit and where it
736 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
737 that became a memory leak properly. (Let the shared_c_ptr free the
739 (reset, mapcolor): tidy up and introduce a work around for XPM files
740 with crappy color entries. Print out a nice friendly message on what's
741 gone wrong and how to resolve it properly.
743 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
745 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
746 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
748 (unique_color_string): use the correct string c-tor.
750 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
753 * ImageLoaderXPM.[Ch]: removed.
755 * GraphicsConverter.[Ch]:
756 * GraphicsImage.[Ch]:
757 * GraphicsImageXPM.[Ch]:
758 * GraphicsParams.[Ch]:
759 * GraphicsTypes.h: new files.
761 * All files. A total re-write of the graphics cache. The cache now
762 supports asynchronous file conversion and file loading. Images
763 can be cropped, rotated and scaled for display on the LyX screen.
764 The old LyXImage and ImageLoader have been combined in a new class
765 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
768 2002-02-07 Herbert Voss <voss@lyx.org>
770 * GraphicsCacheItem.C: use unzipFile() from support/filetools
772 2002-01-31 Herbert Voss <voss@lyx.org>
774 * GraphicsCacheItem.h: handle filetype without the file extension;
775 getting type from contents; handle zipped files
777 2002-01-27 Herbert Voss <voss@lyx.org>
779 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
781 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
783 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
785 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
787 * GraphicsCacheItem.h: do not include <config.h> in header files
789 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
791 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
792 transparent colour, then set it to the colour of the background.
793 Also take account of the monochrome, grayscale of color
796 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
798 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
799 are different. Thus, don't delete the "to" if it's the original!
801 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
803 * ImageLoadXPM.C: remove setting of alloc colour mask,
804 led to crash as we don't define a callback
806 2001-07-29 Baruch Even <baruch@lyx.org>
808 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
809 colors with closeness of 10000.
811 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
813 2001-07-29 Baruch Even <baruch@lyx.org>
815 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
818 2001-07-23 Baruch Even <baruch@lyx.org>
820 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
821 the image after conversion.
823 2001-07-17 Baruch Even <baruch@lyx.org>
825 * GraphicsCacheItem.h:
826 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
827 from synchronous to asynchronous and to ease the coming changes.
829 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
831 * ImageLoaderXPM.C (runImageLoader): get display information from
834 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
837 * GraphicsCacheItem.C:
839 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
841 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
843 * GraphicsCache.h: inherit privately from noncopyable
844 * ImageLoader.h: ditto
845 * GraphicsCacheItem.h: ditto
847 2001-04-16 Allan Rae <rae@lyx.org>
849 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
850 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
853 2001-04-02 Baruch Even <baruch@lyx.org>
855 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
856 of hard coding ImageMagick.
858 2001-03-10 Baruch Even <baruch@lyx.org>
860 * GraphicsCache.C: Style change from (*it).field to it->field
862 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
864 * GraphicsCache.h: noncopyable is in namespace boost
865 * ImageLoader.h: ditto
866 * GraphicsCacheItem.h: ditto
868 2001-03-07 Baruch Even <baruch@lyx.org>
870 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
871 was false and it's not needed anyhow since the shared_ptr's in the cache
872 will destroy everything on exit.
874 2001-02-28 Baruch Even <baruch@ev-en.org>
877 * GraphicsCache.C: Changed the singleton pattern implementation, the
878 former version "leaked" in the sense that it was not deallocated at
881 2001-02-20 Baruch Even <baruch@ev-en.org>
883 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
884 instead of a pure pointer.
886 * GraphicsCacheItem.[Ch]:
887 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
888 removed the reference counting that was inside. Also fixed a bug where
889 a temporary file wouldn't get erased.
891 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
892 Ownership is now dropped when the caller requests the image_ pointer.
894 2001-02-20 Baruch Even <baruch@ev-en.org>
896 * GraphicsCache.C: Cleared up the confusion on when and how it is
899 * GraphicsCacheItem.C: Indentation change.
901 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
902 figure correctly when the image has been loaded successfully.
904 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
906 * ImageLoader.C: add a "using" directive.
908 * ImageLoader.h: remove extra comma at the end of enum; add an
909 std:: qualifier for vector.
911 2001-01-21 Baruch Even <baruch@ev-en.org>
913 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
914 height in the image itself and minor cleanups.
916 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
917 new ImageLoader class instead of the older Renderer class. This
918 means change of responsibilities.