1 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
3 * GraphicsConverter (startConversion): add the call to
8 * PreviewedInset.C: Removed unneeded BufferView
10 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
12 * LoaderQueue.[Ch]: a simplification of the code, eliminated
13 the unneeded input bucket.
15 * GraphicsCacheItem.C (imageConverted): move warning inside the
18 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
20 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
22 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
24 * LoaderQueue.[Ch] (setPriority): added
26 * PreviewLoader.C (finishedGenerating): reversed the loading order so
27 first images get 'touched' last, and so load first.
29 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
31 * LoaderQueue.[Ch]: added. Implements a service queue that loads
33 * GraphicsSupport.[Ch]: removed
34 * Makefile.am: the changes above
35 * GraphicsLoader.C: use the loading queue
37 2003-01-21 Angus Leeming <leeming@lyx.org>
39 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
40 previews from being generated.
42 2003-01-13 Angus Leeming <leeming@lyx.org>
44 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
45 format to be PPM not XPM.
47 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
49 * Makefile.am (EXTRA_DIST): remove variable
51 2002-12-13 Angus Leeming <leeming@lyx.org>
53 * GraphicsImageXPM.[Ch]: removed.
55 * Makefile.am: associated change.
57 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
59 * several files: ws changes
61 2002-11-21 Angus Leeming <leeming@lyx.org>
63 * GraphicsConverter.C (build_script, move_file):
64 Don't use "if [ $? -ne 0 ]; then..."
66 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
68 * PreviewLoader.C (IncrementedFileName): STRCONV
71 * GraphicsConverter.C (Impl): STRCONV
74 * GraphicsTypes.C: include config.h
76 2002-10-25 Angus Leeming <leeming@lyx.org>
78 * GraphicsConverter.C (Impl::converted)
79 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
80 string as first arg, reflecting change in ForkedCall interface.
82 * PreviewLoader.C: use pid rather than command as identifier in
85 2002-10-18 Angus Leeming <leeming@lyx.org>
87 * GraphicsCacheItem.C (findTargetFormat): add debug message.
89 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
91 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
93 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
95 * GraphicsConverter.C (build_script): do not use ChangeExtension
99 2002-09-05 Angus Leeming <leeming@lyx.org>
101 * all files: modify the headers as discussed on the list.
103 2002-09-04 Angus Leeming <leeming@lyx.org>
105 * PreviewLoader.C (startLoading): pass the desired output format to the
108 2002-09-04 Angus Leeming <leeming@lyx.org>
110 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
112 2002-09-03 Angus Leeming <leeming@lyx.org>
114 * PreviewLoader.C: fix crash reported by Norbert Koksch when
115 generating more than 999 preview snippets. Use filenames with 5 digit
116 numbers, not 3, in the first instance, although more general code is
117 commented out. I don't suppose /anyone/ has 100000 formulae in one
120 2002-09-03 Angus Leeming <leeming@lyx.org>
122 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
124 2002-09-03 Angus Leeming <leeming@lyx.org>
126 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
128 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
130 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
131 convertDefault command with "sh ".
133 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
135 * GraphicsImage.C: small style fix to width/height setting.
137 * GraphicsTypes.h: have a displayTranslator here.
140 * GraphicsTypes.C: new file added for the setDisplayTranslator();
142 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
145 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
146 because this input has gone from the graphics dialog.
148 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
150 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
152 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
153 for support/smart_ptr.h, switch to boost smart ptr.
155 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
156 (~Data): let the smart_ptr handle cleanup
157 (reset): use nifty 3rd arg
159 (free_color_table): free the table manually
161 2002-08-09 Angus Leeming <leeming@lyx.org>
163 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
164 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
165 input@path is now set correctly.
167 2002-08-06 Angus Leeming <leeming@lyx.org>
169 * PreviewLoader.C: add support for preview.sty 0.73 (currently
170 #ifdef-ed out, awaiting the formal release).
172 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
173 the contents of a file that has changed.
175 2002-08-05 Angus Leeming <leeming@lyx.org>
177 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
178 to preview.sty. Works only for versions of preview.sty > 0.72b but
179 doesn't hurt earlier versions. Allows me to test the new parsing of
180 LyX-specific data from the generated log file.
182 2002-08-02 Angus Leeming <leeming@lyx.org>
184 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
186 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
187 (add): don't add empty snippets.
189 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
190 (view, setView): access to to the cache_.
192 2002-08-02 Angus Leeming <leeming@lyx.org>
194 * PreviewedInset.[Ch]: cache the LaTeX snippet.
196 2002-08-01 Angus Leeming <leeming@lyx.org>
198 * PreviewedInset.[Ch]: new files. An abstract base class that can help
199 insets to generate previews.
200 The daughter class must instantiate three small methods.
201 The Inset would own an instance of this daughter class and invoke it
202 as necessary. For example, mathd/formula.C gets previews at the cost
203 of 15 or so lines of code.
205 * Makefile.am: add PreviewedInset.[Ch].
207 * PreviewLoader.C (add): add debug message.
209 * Previews.C (generateBufferPreviews): remove if-block from loop.
211 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
213 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
215 (setAscentFractions): ditto
217 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
219 * PreviewLoader.C (setAscentFractions): modify because of strip
222 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
224 * GraphicsConverter.C (build_script): take a ostream as a more
225 general argument than ostringstream.
227 2002-07-22 Herbert Voss <voss@lyx.org>
229 * GraphicsConverter.C: get the "default converter" run again
231 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
233 * PreviewLoader.C: use BufferParams::getLyXTextClass
235 2002-07-21 Herbert Voss <voss@lyx.org>
237 * GraphicsImage.C: get the LyXAspectRatio run.
239 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
241 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
243 * PreviewLoader.C (startLoading): pass an interger as resolution
244 to the lyxpreview converter
246 * GraphicsParams.C: include <cstdlib>
248 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
250 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
251 preview converter script
253 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
255 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
258 2002-07-18 Angus Leeming <leeming@lyx.org>
260 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
262 (startMonitoring, monitoring, checksum): new methods to interact with
265 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
266 methods invoking the CacheItem methods of the same name.
267 (resetFile): if monitoring and the file changes, start monitoring this
270 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
272 * Makefile.am: remove FileMonitor.[Ch]
274 2002-06-17 Herbert Voss <voss@lyx.org>
276 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
277 for old ps-files (Garst). It's now handled by defining a converter and
278 disabling the ps-support of xforms.
280 2002-07-17 Angus Leeming <leeming@lyx.org>
282 Be true to the Pimpl idiom, moving all signals into the respective
283 Impl classes and defining methods to connect them to an outside slot.
284 Const-ify all visible class methods as they act only on a const pimpl_.
286 * GraphicsCache.[Ch] (add, remove): const-ify.
288 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
289 (statusChanged): move the signal into the Impl class.
290 (connect): new method, enabling a listener to connect to this signal.
292 * GraphicsConverter.[Ch]: (startConversion): const-ify.
293 (finishedConversion): move the signal into the Impl class.
294 (connect): new method, enabling a listener to connect to this signal.
296 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
297 (statusChanged): move the signal into the Impl class.
298 (connect): new method, enabling a listener to connect to this signal.
300 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
301 (imageReady): move the signal into the Impl class.
302 (connect): new method, enabling a listener to connect to this signal.
303 (emitSignal): new method, enabling PreviewImage to tell the outside
304 world that the file has been loaded into memory.
306 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
310 * GraphicsCacheItem.C:
311 * GraphicsConverter.[Ch]:
313 * GraphicsImageXPM.C:
315 * PreviewLoader.[Ch]: whitespace clean-up.
317 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
319 * PreviewLoader.C (setConverter): remove unused variable
321 * GraphicsImageXPM.C (isDrawable): implement
322 (setPixmap): the opaque color is black, not white
324 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
326 * GraphicsImageXPM.C (color_none_id):
327 (contains_color_none): use ascii_lowercase instead of lowercase
329 2002-07-16 Angus Leeming <leeming@lyx.org>
331 * PreviewLoader.C: greater use of STL algorithms.
333 * Previews.[Ch]: use const in more places.
334 (generateBufferPreviews): now takes a Buffer const & argument, not a
337 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
339 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
341 2002-07-12 Angus Leeming <leeming@lyx.org>
343 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
344 if visible 2 secs after the call to load them is first made.
346 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
347 BufferView to ascertain whether the inset is visible or not.
349 * Makefile.am: added GraphicsSupport.[Ch].
351 * PreviewImage.[Ch]: use this smart loader.
353 * PreviewLoader.C: don't load generated image files indiscimminantly.
354 Instead emit the imageReady signal and allow the image owner to decide.
356 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
358 * GraphicsCache.C: remove init_graphics()
360 2002-07-09 Angus Leeming <leeming@lyx.org>
362 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
363 arithmetic when it should be floating.
365 2002-07-09 Angus Leeming <leeming@lyx.org>
367 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
368 Output equation labels as "(#)" if lyxrc preference is set.
369 (setFontScalingFactor): use lyxrc variable preview_scale_factor
370 rather than hard-coding this.
372 2002-07-09 Angus Leeming <leeming@lyx.org>
374 * PreviewLoader.C: Further refactoring of the code. Should now be
377 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
378 past its sell-by date. The code to read the metrics file is now found
379 as a helper function in PreviewLoader.C.
381 * GraphicsImageXPM.C (scale): use boost::tie.
383 2002-07-08 Herbert Voss <voss@lyx.org>
385 * PreviewLoader.C: use of preview_size_factor to get the right
386 font-size! 0.9 is the default.
388 2002-07-08 Angus Leeming <leeming@lyx.org>
390 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
391 invocation of preview.sty.
392 Perform something of an internal clean-up.
394 2002-07-06 Angus Leeming <leeming@lyx.org>
396 * PreviewLoader.C: ensure that the metrics data is used by the
400 * PreviewImage.C: (Impl d-tor): remove all generated files that still
401 exist (perhaps because the process was curtailed before the images
404 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
406 2002-07-05 Angus Leeming <leeming@lyx.org>
415 * Previews.C: new files. The previewed LaTeX snippet stuff.
417 * Makefile.am: add these files.
419 2002-07-05 Angus Leeming <leeming@lyx.org>
421 * GraphicsLoader.h: whitespace.
423 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
425 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
426 boost::function from boost::signal.
428 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
430 * GraphicsConverter.C (convert): do not use ChangeExtension
431 because to_file_base may contain a dot.
433 2002-06-28 Angus Leeming <leeming@lyx.org>
435 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
436 by moving those SignalPtrs into the grfx::Image and grfx::Converter
437 classes where they really belong.
438 Use the Pimpl idiom to hide the class internals from public view.
440 * GraphicsTypes: remove the typedefs, leaving only the enums.
442 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
443 passed a reference to one in the load() method.
445 * GraphicsConverter.[Ch]: totally refactored. An instance of
446 grfx::Converter now represents a single conversion process.
447 Thus grfx::CachItem now has a grfx::Converter * that is set when the
448 conversion is initiated and destroyed on completion.
450 * GraphicsCache.[Ch]:
451 * GraphicsCacheItem.[Ch]:
452 * GraphicsConverter.[Ch]:
453 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
455 Note that I have done this only after making the above changes,
456 so not only should we have a clean, minimal and well documented
457 interface to these classes in the header files, but the class internals
458 should be much clearer too.
461 grfx::GCache -> grfx::Cache,
462 grfx::GCacheItem -> grfx::CacheItem,
463 grfx::GConverter -> grfx::Converter,
464 grfx::GImage -> grfx::Image,
465 grfx::GImageXPM -> grfx::ImageXPM,
466 grfx::GParams -> grfx::Params.
468 2002-06-26 Angus Leeming <leeming@lyx.org>
470 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
471 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
474 2002-06-26 Angus Leeming <leeming@lyx.org>
476 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
477 move the DisplayType enum out of grfx::GParams to here.
479 * GraphicsCacheItem.h: re-write preliminary description to reflect
482 * GraphicsParams.[Ch]:
483 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
484 grfx::DisplayType out of grfx::GParams.
486 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
487 that was in frontends/screen.C and insets/insetgraphics.C into a
488 single, easy-to-use class.
490 * Makefile.am: add these files.
492 2002-06-25 Angus Leeming <leeming@lyx.org>
494 * GraphicsCache.[Ch]:
495 * GraphicsCacheItem.[Ch]:
496 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
497 file into memory. The cache no longer controls the generation of the
498 pixmap. Instead, it just emits a signal when the loading status of an
500 The cache no longer stores InsetGraphics pointers and nor does it
501 assume responsibility for modifying an image (scaling, rotating etc).
502 Instead, that must now be performed elsewhere.
504 2002-06-19 Angus Leeming <leeming@lyx.org>
506 * GraphicsConverter.C: add using std::endl directive.
508 2002-06-17 Herbert Voss <voss@lyx.org>
510 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
511 default when nothing different was found
512 (convertToDisplayFormat): handle zipped files in the right way and
513 choose always convert as a default converter when no other
514 userdefined was found
516 * GraphicsConverter.C: add more lyxerr comments and choose
517 convert when no other userdefined converter was found
519 2002-06-10 Herbert Voss <voss@lyx.org>
521 * GraphicsImageXPM.C (convertTo7chars): get another special color
522 format from convert work in the right way
524 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
526 * GraphicsCache.C: use right colormap incantation
528 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
530 * GraphicsCache.C: use lyx_gui namespace
532 * GraphicsImageXPM.C: back down to using xforms
535 2002-06-07 Angus Leeming <leeming@lyx.org>
537 Fixes needed to compile with Compaq cxx 6.5.
538 * GraphicsConverter.h: forward declare class ConvProcess.
540 * GraphicsImageXPM.C:
541 all c-library variables have been moved into namespace std.
542 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
544 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
546 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
548 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
550 * GraphicsImageXPM.C: SigC to boot::signals changes.
551 (newImage): fix () bug when using new.
553 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
555 * switch from SigC signals to boost::signals.
557 2002-05-29 André Pönitz <poenitz@gmx.net>
559 * GraphicsParam.C: remove unneeded #include, move vomment
561 2002-05-28 André Pönitz <poenitz@gmx.net>
563 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
565 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
567 * GraphicsImageXPM.C: ColorHandler moved
569 2002-05-24 Juergen Vigna <jug@sad.it>
572 * GraphicsImage.h: include LString.h first.
574 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
576 * GraphicsCacheItem.h: use more specific smart_ptr header.
577 * GraphicsTypes.h: ditto
578 * GraphicsImage.h: ditto
579 * GraphicsConverter.h: ditto
581 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
583 * GraphicsImageXPM.C: understand convert's use of "opaque"
586 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
588 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
589 GImage::loadableFormats() that ensures that the signal is connected
590 to the derived class' method.
592 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
594 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
595 only work on the string.
597 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
599 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
600 the simple image loader when it encounters colour strings like
603 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
605 * GraphicsCacheItem.C (convertToDisplayFormat):
606 * GraphicsConverter.C (build_script): remove the Alerts when things go
607 wrong as the inset displays the message anyway. Moreover, Alert seems
608 pretty temperamemtal at the moment.
610 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
612 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
614 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
616 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
617 a reference to a temp object that's going out of scope...
619 2002-04-09 Herbert Voss <voss@lyx.org>
621 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
622 LyXLength::inBP instead of inPixels.
624 2002-04-10 Herbert Voss <voss@perce.de>
626 * GraphicsCache.[Ch]:
627 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
628 to read the "Bounding Box" from non (e)ps files.
630 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
632 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
633 the EPS file too, to ensure that the clipped Bounding Box is relative
634 to the original. (From Herbert.)
636 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
638 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
639 variables are initialised. Clean-up parsing of the string (with thanks
642 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
644 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
645 if the file can't be found.
647 * GraphicsParams.h (c-tor): remove string() as default argument.
649 * GraphicsCacheItem.C: a couple of changes as a result.
651 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
653 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
654 path to graphics file.
656 * GraphicsParams.[Ch] (c-tor): now passed filepath.
658 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
660 * most files: ws cleanup
662 * Makefile.am: remove ld -r stuff
664 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
666 * Makefile.am: special rules if partial linking
668 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
670 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
672 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
674 * GraphicsConverter.[Ch] (converted): make first arg const ref.
676 * GraphicsCacheItem.h: doxy change
678 * GraphicsCacheItem.C: ws change
680 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
682 * Makefile.am: if there is no image loading class leveraging the power
683 of the appropriate gui library, then compile the basic alternative
684 found in GraphicsImageXPM.[Ch].
686 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
688 * GraphicsCache.C: change associated with move of initialiseGraphics
691 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
693 * GraphicsParams.[Ch]:
695 * GraphicsImageXPM.C: properly resolve more warnings about comparison
696 between signed and unsigned integer expressions.
698 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
700 * GraphicsCache.C: move connections to the GImage-derived classes to
703 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
705 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
706 conversion, then do that.
708 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
710 * GraphicsCache.C: improve commentary to graphicsInit and where it
713 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
714 that became a memory leak properly. (Let the shared_c_ptr free the
716 (reset, mapcolor): tidy up and introduce a work around for XPM files
717 with crappy color entries. Print out a nice friendly message on what's
718 gone wrong and how to resolve it properly.
720 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
722 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
723 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
725 (unique_color_string): use the correct string c-tor.
727 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
730 * ImageLoaderXPM.[Ch]: removed.
732 * GraphicsConverter.[Ch]:
733 * GraphicsImage.[Ch]:
734 * GraphicsImageXPM.[Ch]:
735 * GraphicsParams.[Ch]:
736 * GraphicsTypes.h: new files.
738 * All files. A total re-write of the graphics cache. The cache now
739 supports asynchronous file conversion and file loading. Images
740 can be cropped, rotated and scaled for display on the LyX screen.
741 The old LyXImage and ImageLoader have been combined in a new class
742 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
745 2002-02-07 Herbert Voss <voss@lyx.org>
747 * GraphicsCacheItem.C: use unzipFile() from support/filetools
749 2002-01-31 Herbert Voss <voss@lyx.org>
751 * GraphicsCacheItem.h: handle filetype without the file extension;
752 getting type from contents; handle zipped files
754 2002-01-27 Herbert Voss <voss@lyx.org>
756 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
758 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
760 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
762 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
764 * GraphicsCacheItem.h: do not include <config.h> in header files
766 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
768 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
769 transparent colour, then set it to the colour of the background.
770 Also take account of the monochrome, grayscale of color
773 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
775 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
776 are different. Thus, don't delete the "to" if it's the original!
778 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
780 * ImageLoadXPM.C: remove setting of alloc colour mask,
781 led to crash as we don't define a callback
783 2001-07-29 Baruch Even <baruch@lyx.org>
785 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
786 colors with closeness of 10000.
788 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
790 2001-07-29 Baruch Even <baruch@lyx.org>
792 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
795 2001-07-23 Baruch Even <baruch@lyx.org>
797 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
798 the image after conversion.
800 2001-07-17 Baruch Even <baruch@lyx.org>
802 * GraphicsCacheItem.h:
803 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
804 from synchronous to asynchronous and to ease the coming changes.
806 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
808 * ImageLoaderXPM.C (runImageLoader): get display information from
811 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
814 * GraphicsCacheItem.C:
816 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
818 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
820 * GraphicsCache.h: inherit privately from noncopyable
821 * ImageLoader.h: ditto
822 * GraphicsCacheItem.h: ditto
824 2001-04-16 Allan Rae <rae@lyx.org>
826 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
827 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
830 2001-04-02 Baruch Even <baruch@lyx.org>
832 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
833 of hard coding ImageMagick.
835 2001-03-10 Baruch Even <baruch@lyx.org>
837 * GraphicsCache.C: Style change from (*it).field to it->field
839 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
841 * GraphicsCache.h: noncopyable is in namespace boost
842 * ImageLoader.h: ditto
843 * GraphicsCacheItem.h: ditto
845 2001-03-07 Baruch Even <baruch@lyx.org>
847 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
848 was false and it's not needed anyhow since the shared_ptr's in the cache
849 will destroy everything on exit.
851 2001-02-28 Baruch Even <baruch@ev-en.org>
854 * GraphicsCache.C: Changed the singleton pattern implementation, the
855 former version "leaked" in the sense that it was not deallocated at
858 2001-02-20 Baruch Even <baruch@ev-en.org>
860 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
861 instead of a pure pointer.
863 * GraphicsCacheItem.[Ch]:
864 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
865 removed the reference counting that was inside. Also fixed a bug where
866 a temporary file wouldn't get erased.
868 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
869 Ownership is now dropped when the caller requests the image_ pointer.
871 2001-02-20 Baruch Even <baruch@ev-en.org>
873 * GraphicsCache.C: Cleared up the confusion on when and how it is
876 * GraphicsCacheItem.C: Indentation change.
878 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
879 figure correctly when the image has been loaded successfully.
881 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
883 * ImageLoader.C: add a "using" directive.
885 * ImageLoader.h: remove extra comma at the end of enum; add an
886 std:: qualifier for vector.
888 2001-01-21 Baruch Even <baruch@ev-en.org>
890 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
891 height in the image itself and minor cleanups.
893 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
894 new ImageLoader class instead of the older Renderer class. This
895 means change of responsibilities.