1 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
3 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
6 2003-09-08 Angus Leeming <leeming@lyx.org>
10 * PreviewLoader.C: remove redundant using directives.
12 2003-09-07 Angus Leeming <leeming@lyx.org>
15 * Previews.h: remove #include "support/std_string.h".
17 2003-09-06 Angus Leeming <leeming@lyx.org>
19 * PreviewedInset.C: add #include "insets/inset.h"
21 2003-09-05 Angus Leeming <leeming@lyx.org>
23 * *.C: strip out redundant #includes. (26 in total.)
25 2003-09-04 Angus Leeming <leeming@lyx.org>
27 * LoaderQueue.C (get):
29 2003-09-04 Angus Leeming <leeming@lyx.org>
32 * GraphicsCacheItem.C:
33 * GraphicsConverter.C:
37 * Previews.C: 'namespace support = lyx::support' rather than
40 * Previews.h: cleaned up some comments.
42 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
44 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
46 * GraphicsTypes.h: do not declare displayTranstor here (and remove
49 2003-07-27 José Matos <jamatos@fep.up.pt>
51 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
54 2003-07-21 Angus Leeming <leeming@lyx.org>
57 * GraphicsCacheItem.[Ch]:
60 * PreviewedInset.[Ch]:
61 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
63 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
65 * Change namespace grfx to lyx::graphics.
67 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
69 * introcude namespace lyx::support
71 2003-06-04 Angus Leeming <leeming@lyx.org>
73 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
74 (operator=): if it has a copy c-tor, it should have this too.
76 2003-06-03 Angus Leeming <leeming@lyx.org>
78 * GraphicsLoader.[Ch] (Loader): add copy constructor.
80 2003-05-23 Angus Leeming <leeming@lyx.org>
82 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
84 2003-05-22 Angus Leeming <leeming@lyx.org>
86 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
87 the inset::latex method.
89 2003-05-22 Angus Leeming <leeming@lyx.org>
91 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
92 the inset::latex method.
94 2003-05-22 Angus Leeming <leeming@lyx.org>
96 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
97 makeLaTeXFile is now encapsulated within runparams.
99 2003-05-22 Angus Leeming <leeming@lyx.org>
101 * PreviewLoader.C (dumpPreamble):
102 pass around a LatexRunParams parameter.
104 2003-05-13 André Pönitz <poenitz@gmx.net>
106 * GraphicsConverter.C:
107 * PreviewLoader.C: use tostr from own header
109 2003-05-12 André Pönitz <poenitz@gmx.net>
111 * PreviewLoader.C: boost::format -> bformat
113 2003-04-15 Angus Leeming <leeming@lyx.org>
115 * GraphicsConverter.C: #include lstrings.h.
117 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
119 * GraphicsConverter.C
120 * PreviewLoader.C: added #include "format.h"
122 2003-02-26 Angus Leeming <leeming@lyx.org>
124 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
125 use the cache of the parent inset instead.
127 * PreviewLoader.C (startLoading): Prevent a crash if the user is
128 not using a tmp directory.
130 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
132 * GraphicsLoader.[Ch],
134 * PreviewedInset.C: Removed unneeded list of owner insets
136 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
138 * GraphicsConverter (startConversion): add the call to
141 * GraphicsLoader.[Ch],
143 * PreviewedInset.C: Removed unneeded BufferView
145 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
147 * LoaderQueue.[Ch]: a simplification of the code, eliminated
148 the unneeded input bucket.
150 * GraphicsCacheItem.C (imageConverted): move warning inside the
153 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
155 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
157 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
159 * LoaderQueue.[Ch] (setPriority): added
161 * PreviewLoader.C (finishedGenerating): reversed the loading order so
162 first images get 'touched' last, and so load first.
164 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
166 * LoaderQueue.[Ch]: added. Implements a service queue that loads
168 * GraphicsSupport.[Ch]: removed
169 * Makefile.am: the changes above
170 * GraphicsLoader.C: use the loading queue
172 2003-01-21 Angus Leeming <leeming@lyx.org>
174 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
175 previews from being generated.
177 2003-01-13 Angus Leeming <leeming@lyx.org>
179 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
180 format to be PPM not XPM.
182 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
184 * Makefile.am (EXTRA_DIST): remove variable
186 2002-12-13 Angus Leeming <leeming@lyx.org>
188 * GraphicsImageXPM.[Ch]: removed.
190 * Makefile.am: associated change.
192 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
194 * several files: ws changes
196 2002-11-21 Angus Leeming <leeming@lyx.org>
198 * GraphicsConverter.C (build_script, move_file):
199 Don't use "if [ $? -ne 0 ]; then..."
201 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
203 * PreviewLoader.C (IncrementedFileName): STRCONV
204 (startLoading): ditto
206 * GraphicsConverter.C (Impl): STRCONV
209 * GraphicsTypes.C: include config.h
211 2002-10-25 Angus Leeming <leeming@lyx.org>
213 * GraphicsConverter.C (Impl::converted)
214 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
215 string as first arg, reflecting change in ForkedCall interface.
217 * PreviewLoader.C: use pid rather than command as identifier in
220 2002-10-18 Angus Leeming <leeming@lyx.org>
222 * GraphicsCacheItem.C (findTargetFormat): add debug message.
224 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
226 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
228 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
230 * GraphicsConverter.C (build_script): do not use ChangeExtension
234 2002-09-05 Angus Leeming <leeming@lyx.org>
236 * all files: modify the headers as discussed on the list.
238 2002-09-04 Angus Leeming <leeming@lyx.org>
240 * PreviewLoader.C (startLoading): pass the desired output format to the
243 2002-09-04 Angus Leeming <leeming@lyx.org>
245 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
247 2002-09-03 Angus Leeming <leeming@lyx.org>
249 * PreviewLoader.C: fix crash reported by Norbert Koksch when
250 generating more than 999 preview snippets. Use filenames with 5 digit
251 numbers, not 3, in the first instance, although more general code is
252 commented out. I don't suppose /anyone/ has 100000 formulae in one
255 2002-09-03 Angus Leeming <leeming@lyx.org>
257 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
259 2002-09-03 Angus Leeming <leeming@lyx.org>
261 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
263 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
265 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
266 convertDefault command with "sh ".
268 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
270 * GraphicsImage.C: small style fix to width/height setting.
272 * GraphicsTypes.h: have a displayTranslator here.
275 * GraphicsTypes.C: new file added for the setDisplayTranslator();
277 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
280 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
281 because this input has gone from the graphics dialog.
283 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
285 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
287 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
288 for support/smart_ptr.h, switch to boost smart ptr.
290 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
291 (~Data): let the smart_ptr handle cleanup
292 (reset): use nifty 3rd arg
294 (free_color_table): free the table manually
296 2002-08-09 Angus Leeming <leeming@lyx.org>
298 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
299 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
300 input@path is now set correctly.
302 2002-08-06 Angus Leeming <leeming@lyx.org>
304 * PreviewLoader.C: add support for preview.sty 0.73 (currently
305 #ifdef-ed out, awaiting the formal release).
307 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
308 the contents of a file that has changed.
310 2002-08-05 Angus Leeming <leeming@lyx.org>
312 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
313 to preview.sty. Works only for versions of preview.sty > 0.72b but
314 doesn't hurt earlier versions. Allows me to test the new parsing of
315 LyX-specific data from the generated log file.
317 2002-08-02 Angus Leeming <leeming@lyx.org>
319 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
321 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
322 (add): don't add empty snippets.
324 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
325 (view, setView): access to to the cache_.
327 2002-08-02 Angus Leeming <leeming@lyx.org>
329 * PreviewedInset.[Ch]: cache the LaTeX snippet.
331 2002-08-01 Angus Leeming <leeming@lyx.org>
333 * PreviewedInset.[Ch]: new files. An abstract base class that can help
334 insets to generate previews.
335 The daughter class must instantiate three small methods.
336 The Inset would own an instance of this daughter class and invoke it
337 as necessary. For example, mathd/formula.C gets previews at the cost
338 of 15 or so lines of code.
340 * Makefile.am: add PreviewedInset.[Ch].
342 * PreviewLoader.C (add): add debug message.
344 * Previews.C (generateBufferPreviews): remove if-block from loop.
346 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
348 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
350 (setAscentFractions): ditto
352 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
354 * PreviewLoader.C (setAscentFractions): modify because of strip
357 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
359 * GraphicsConverter.C (build_script): take a ostream as a more
360 general argument than ostringstream.
362 2002-07-22 Herbert Voss <voss@lyx.org>
364 * GraphicsConverter.C: get the "default converter" run again
366 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
368 * PreviewLoader.C: use BufferParams::getLyXTextClass
370 2002-07-21 Herbert Voss <voss@lyx.org>
372 * GraphicsImage.C: get the LyXAspectRatio run.
374 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
376 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
378 * PreviewLoader.C (startLoading): pass an interger as resolution
379 to the lyxpreview converter
381 * GraphicsParams.C: include <cstdlib>
383 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
385 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
386 preview converter script
388 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
390 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
393 2002-07-18 Angus Leeming <leeming@lyx.org>
395 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
397 (startMonitoring, monitoring, checksum): new methods to interact with
400 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
401 methods invoking the CacheItem methods of the same name.
402 (resetFile): if monitoring and the file changes, start monitoring this
405 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
407 * Makefile.am: remove FileMonitor.[Ch]
409 2002-06-17 Herbert Voss <voss@lyx.org>
411 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
412 for old ps-files (Garst). It's now handled by defining a converter and
413 disabling the ps-support of xforms.
415 2002-07-17 Angus Leeming <leeming@lyx.org>
417 Be true to the Pimpl idiom, moving all signals into the respective
418 Impl classes and defining methods to connect them to an outside slot.
419 Const-ify all visible class methods as they act only on a const pimpl_.
421 * GraphicsCache.[Ch] (add, remove): const-ify.
423 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
424 (statusChanged): move the signal into the Impl class.
425 (connect): new method, enabling a listener to connect to this signal.
427 * GraphicsConverter.[Ch]: (startConversion): const-ify.
428 (finishedConversion): move the signal into the Impl class.
429 (connect): new method, enabling a listener to connect to this signal.
431 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
432 (statusChanged): move the signal into the Impl class.
433 (connect): new method, enabling a listener to connect to this signal.
435 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
436 (imageReady): move the signal into the Impl class.
437 (connect): new method, enabling a listener to connect to this signal.
438 (emitSignal): new method, enabling PreviewImage to tell the outside
439 world that the file has been loaded into memory.
441 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
445 * GraphicsCacheItem.C:
446 * GraphicsConverter.[Ch]:
448 * GraphicsImageXPM.C:
450 * PreviewLoader.[Ch]: whitespace clean-up.
452 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
454 * PreviewLoader.C (setConverter): remove unused variable
456 * GraphicsImageXPM.C (isDrawable): implement
457 (setPixmap): the opaque color is black, not white
459 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
461 * GraphicsImageXPM.C (color_none_id):
462 (contains_color_none): use ascii_lowercase instead of lowercase
464 2002-07-16 Angus Leeming <leeming@lyx.org>
466 * PreviewLoader.C: greater use of STL algorithms.
468 * Previews.[Ch]: use const in more places.
469 (generateBufferPreviews): now takes a Buffer const & argument, not a
472 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
474 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
476 2002-07-12 Angus Leeming <leeming@lyx.org>
478 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
479 if visible 2 secs after the call to load them is first made.
481 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
482 BufferView to ascertain whether the inset is visible or not.
484 * Makefile.am: added GraphicsSupport.[Ch].
486 * PreviewImage.[Ch]: use this smart loader.
488 * PreviewLoader.C: don't load generated image files indiscimminantly.
489 Instead emit the imageReady signal and allow the image owner to decide.
491 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
493 * GraphicsCache.C: remove init_graphics()
495 2002-07-09 Angus Leeming <leeming@lyx.org>
497 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
498 arithmetic when it should be floating.
500 2002-07-09 Angus Leeming <leeming@lyx.org>
502 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
503 Output equation labels as "(#)" if lyxrc preference is set.
504 (setFontScalingFactor): use lyxrc variable preview_scale_factor
505 rather than hard-coding this.
507 2002-07-09 Angus Leeming <leeming@lyx.org>
509 * PreviewLoader.C: Further refactoring of the code. Should now be
512 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
513 past its sell-by date. The code to read the metrics file is now found
514 as a helper function in PreviewLoader.C.
516 * GraphicsImageXPM.C (scale): use boost::tie.
518 2002-07-08 Herbert Voss <voss@lyx.org>
520 * PreviewLoader.C: use of preview_size_factor to get the right
521 font-size! 0.9 is the default.
523 2002-07-08 Angus Leeming <leeming@lyx.org>
525 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
526 invocation of preview.sty.
527 Perform something of an internal clean-up.
529 2002-07-06 Angus Leeming <leeming@lyx.org>
531 * PreviewLoader.C: ensure that the metrics data is used by the
535 * PreviewImage.C: (Impl d-tor): remove all generated files that still
536 exist (perhaps because the process was curtailed before the images
539 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
541 2002-07-05 Angus Leeming <leeming@lyx.org>
550 * Previews.C: new files. The previewed LaTeX snippet stuff.
552 * Makefile.am: add these files.
554 2002-07-05 Angus Leeming <leeming@lyx.org>
556 * GraphicsLoader.h: whitespace.
558 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
560 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
561 boost::function from boost::signal.
563 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
565 * GraphicsConverter.C (convert): do not use ChangeExtension
566 because to_file_base may contain a dot.
568 2002-06-28 Angus Leeming <leeming@lyx.org>
570 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
571 by moving those SignalPtrs into the grfx::Image and grfx::Converter
572 classes where they really belong.
573 Use the Pimpl idiom to hide the class internals from public view.
575 * GraphicsTypes: remove the typedefs, leaving only the enums.
577 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
578 passed a reference to one in the load() method.
580 * GraphicsConverter.[Ch]: totally refactored. An instance of
581 grfx::Converter now represents a single conversion process.
582 Thus grfx::CachItem now has a grfx::Converter * that is set when the
583 conversion is initiated and destroyed on completion.
585 * GraphicsCache.[Ch]:
586 * GraphicsCacheItem.[Ch]:
587 * GraphicsConverter.[Ch]:
588 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
590 Note that I have done this only after making the above changes,
591 so not only should we have a clean, minimal and well documented
592 interface to these classes in the header files, but the class internals
593 should be much clearer too.
596 grfx::GCache -> grfx::Cache,
597 grfx::GCacheItem -> grfx::CacheItem,
598 grfx::GConverter -> grfx::Converter,
599 grfx::GImage -> grfx::Image,
600 grfx::GImageXPM -> grfx::ImageXPM,
601 grfx::GParams -> grfx::Params.
603 2002-06-26 Angus Leeming <leeming@lyx.org>
605 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
606 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
609 2002-06-26 Angus Leeming <leeming@lyx.org>
611 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
612 move the DisplayType enum out of grfx::GParams to here.
614 * GraphicsCacheItem.h: re-write preliminary description to reflect
617 * GraphicsParams.[Ch]:
618 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
619 grfx::DisplayType out of grfx::GParams.
621 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
622 that was in frontends/screen.C and insets/insetgraphics.C into a
623 single, easy-to-use class.
625 * Makefile.am: add these files.
627 2002-06-25 Angus Leeming <leeming@lyx.org>
629 * GraphicsCache.[Ch]:
630 * GraphicsCacheItem.[Ch]:
631 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
632 file into memory. The cache no longer controls the generation of the
633 pixmap. Instead, it just emits a signal when the loading status of an
635 The cache no longer stores InsetGraphics pointers and nor does it
636 assume responsibility for modifying an image (scaling, rotating etc).
637 Instead, that must now be performed elsewhere.
639 2002-06-19 Angus Leeming <leeming@lyx.org>
641 * GraphicsConverter.C: add using std::endl directive.
643 2002-06-17 Herbert Voss <voss@lyx.org>
645 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
646 default when nothing different was found
647 (convertToDisplayFormat): handle zipped files in the right way and
648 choose always convert as a default converter when no other
649 userdefined was found
651 * GraphicsConverter.C: add more lyxerr comments and choose
652 convert when no other userdefined converter was found
654 2002-06-10 Herbert Voss <voss@lyx.org>
656 * GraphicsImageXPM.C (convertTo7chars): get another special color
657 format from convert work in the right way
659 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
661 * GraphicsCache.C: use right colormap incantation
663 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
665 * GraphicsCache.C: use lyx_gui namespace
667 * GraphicsImageXPM.C: back down to using xforms
670 2002-06-07 Angus Leeming <leeming@lyx.org>
672 Fixes needed to compile with Compaq cxx 6.5.
673 * GraphicsConverter.h: forward declare class ConvProcess.
675 * GraphicsImageXPM.C:
676 all c-library variables have been moved into namespace std.
677 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
679 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
681 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
683 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
685 * GraphicsImageXPM.C: SigC to boot::signals changes.
686 (newImage): fix () bug when using new.
688 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
690 * switch from SigC signals to boost::signals.
692 2002-05-29 André Pönitz <poenitz@gmx.net>
694 * GraphicsParam.C: remove unneeded #include, move vomment
696 2002-05-28 André Pönitz <poenitz@gmx.net>
698 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
700 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
702 * GraphicsImageXPM.C: ColorHandler moved
704 2002-05-24 Juergen Vigna <jug@sad.it>
707 * GraphicsImage.h: include LString.h first.
709 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
711 * GraphicsCacheItem.h: use more specific smart_ptr header.
712 * GraphicsTypes.h: ditto
713 * GraphicsImage.h: ditto
714 * GraphicsConverter.h: ditto
716 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
718 * GraphicsImageXPM.C: understand convert's use of "opaque"
721 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
723 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
724 GImage::loadableFormats() that ensures that the signal is connected
725 to the derived class' method.
727 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
729 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
730 only work on the string.
732 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
734 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
735 the simple image loader when it encounters colour strings like
738 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
740 * GraphicsCacheItem.C (convertToDisplayFormat):
741 * GraphicsConverter.C (build_script): remove the Alerts when things go
742 wrong as the inset displays the message anyway. Moreover, Alert seems
743 pretty temperamemtal at the moment.
745 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
747 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
749 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
751 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
752 a reference to a temp object that's going out of scope...
754 2002-04-09 Herbert Voss <voss@lyx.org>
756 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
757 LyXLength::inBP instead of inPixels.
759 2002-04-10 Herbert Voss <voss@perce.de>
761 * GraphicsCache.[Ch]:
762 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
763 to read the "Bounding Box" from non (e)ps files.
765 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
767 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
768 the EPS file too, to ensure that the clipped Bounding Box is relative
769 to the original. (From Herbert.)
771 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
773 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
774 variables are initialised. Clean-up parsing of the string (with thanks
777 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
779 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
780 if the file can't be found.
782 * GraphicsParams.h (c-tor): remove string() as default argument.
784 * GraphicsCacheItem.C: a couple of changes as a result.
786 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
788 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
789 path to graphics file.
791 * GraphicsParams.[Ch] (c-tor): now passed filepath.
793 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
795 * most files: ws cleanup
797 * Makefile.am: remove ld -r stuff
799 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
801 * Makefile.am: special rules if partial linking
803 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
805 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
807 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
809 * GraphicsConverter.[Ch] (converted): make first arg const ref.
811 * GraphicsCacheItem.h: doxy change
813 * GraphicsCacheItem.C: ws change
815 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
817 * Makefile.am: if there is no image loading class leveraging the power
818 of the appropriate gui library, then compile the basic alternative
819 found in GraphicsImageXPM.[Ch].
821 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
823 * GraphicsCache.C: change associated with move of initialiseGraphics
826 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
828 * GraphicsParams.[Ch]:
830 * GraphicsImageXPM.C: properly resolve more warnings about comparison
831 between signed and unsigned integer expressions.
833 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
835 * GraphicsCache.C: move connections to the GImage-derived classes to
838 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
840 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
841 conversion, then do that.
843 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
845 * GraphicsCache.C: improve commentary to graphicsInit and where it
848 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
849 that became a memory leak properly. (Let the shared_c_ptr free the
851 (reset, mapcolor): tidy up and introduce a work around for XPM files
852 with crappy color entries. Print out a nice friendly message on what's
853 gone wrong and how to resolve it properly.
855 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
857 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
858 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
860 (unique_color_string): use the correct string c-tor.
862 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
865 * ImageLoaderXPM.[Ch]: removed.
867 * GraphicsConverter.[Ch]:
868 * GraphicsImage.[Ch]:
869 * GraphicsImageXPM.[Ch]:
870 * GraphicsParams.[Ch]:
871 * GraphicsTypes.h: new files.
873 * All files. A total re-write of the graphics cache. The cache now
874 supports asynchronous file conversion and file loading. Images
875 can be cropped, rotated and scaled for display on the LyX screen.
876 The old LyXImage and ImageLoader have been combined in a new class
877 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
880 2002-02-07 Herbert Voss <voss@lyx.org>
882 * GraphicsCacheItem.C: use unzipFile() from support/filetools
884 2002-01-31 Herbert Voss <voss@lyx.org>
886 * GraphicsCacheItem.h: handle filetype without the file extension;
887 getting type from contents; handle zipped files
889 2002-01-27 Herbert Voss <voss@lyx.org>
891 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
893 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
895 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
897 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
899 * GraphicsCacheItem.h: do not include <config.h> in header files
901 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
903 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
904 transparent colour, then set it to the colour of the background.
905 Also take account of the monochrome, grayscale of color
908 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
910 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
911 are different. Thus, don't delete the "to" if it's the original!
913 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
915 * ImageLoadXPM.C: remove setting of alloc colour mask,
916 led to crash as we don't define a callback
918 2001-07-29 Baruch Even <baruch@lyx.org>
920 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
921 colors with closeness of 10000.
923 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
925 2001-07-29 Baruch Even <baruch@lyx.org>
927 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
930 2001-07-23 Baruch Even <baruch@lyx.org>
932 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
933 the image after conversion.
935 2001-07-17 Baruch Even <baruch@lyx.org>
937 * GraphicsCacheItem.h:
938 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
939 from synchronous to asynchronous and to ease the coming changes.
941 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
943 * ImageLoaderXPM.C (runImageLoader): get display information from
946 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
949 * GraphicsCacheItem.C:
951 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
953 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
955 * GraphicsCache.h: inherit privately from noncopyable
956 * ImageLoader.h: ditto
957 * GraphicsCacheItem.h: ditto
959 2001-04-16 Allan Rae <rae@lyx.org>
961 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
962 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
965 2001-04-02 Baruch Even <baruch@lyx.org>
967 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
968 of hard coding ImageMagick.
970 2001-03-10 Baruch Even <baruch@lyx.org>
972 * GraphicsCache.C: Style change from (*it).field to it->field
974 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
976 * GraphicsCache.h: noncopyable is in namespace boost
977 * ImageLoader.h: ditto
978 * GraphicsCacheItem.h: ditto
980 2001-03-07 Baruch Even <baruch@lyx.org>
982 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
983 was false and it's not needed anyhow since the shared_ptr's in the cache
984 will destroy everything on exit.
986 2001-02-28 Baruch Even <baruch@ev-en.org>
989 * GraphicsCache.C: Changed the singleton pattern implementation, the
990 former version "leaked" in the sense that it was not deallocated at
993 2001-02-20 Baruch Even <baruch@ev-en.org>
995 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
996 instead of a pure pointer.
998 * GraphicsCacheItem.[Ch]:
999 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1000 removed the reference counting that was inside. Also fixed a bug where
1001 a temporary file wouldn't get erased.
1003 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1004 Ownership is now dropped when the caller requests the image_ pointer.
1006 2001-02-20 Baruch Even <baruch@ev-en.org>
1008 * GraphicsCache.C: Cleared up the confusion on when and how it is
1011 * GraphicsCacheItem.C: Indentation change.
1013 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1014 figure correctly when the image has been loaded successfully.
1016 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1018 * ImageLoader.C: add a "using" directive.
1020 * ImageLoader.h: remove extra comma at the end of enum; add an
1021 std:: qualifier for vector.
1023 2001-01-21 Baruch Even <baruch@ev-en.org>
1025 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1026 height in the image itself and minor cleanups.
1028 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1029 new ImageLoader class instead of the older Renderer class. This
1030 means change of responsibilities.