1 2003-09-14 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (remove): consider all InProgressProcesses when
4 ascertaining which ones to remove from the list, not every other one.
6 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
8 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
11 2003-09-08 Angus Leeming <leeming@lyx.org>
15 * PreviewLoader.C: remove redundant using directives.
17 2003-09-07 Angus Leeming <leeming@lyx.org>
20 * Previews.h: remove #include "support/std_string.h".
22 2003-09-06 Angus Leeming <leeming@lyx.org>
24 * PreviewedInset.C: add #include "insets/inset.h"
26 2003-09-05 Angus Leeming <leeming@lyx.org>
28 * *.C: strip out redundant #includes. (26 in total.)
30 2003-09-04 Angus Leeming <leeming@lyx.org>
32 * LoaderQueue.C (get):
34 2003-09-04 Angus Leeming <leeming@lyx.org>
37 * GraphicsCacheItem.C:
38 * GraphicsConverter.C:
42 * Previews.C: 'namespace support = lyx::support' rather than
45 * Previews.h: cleaned up some comments.
47 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
49 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
51 * GraphicsTypes.h: do not declare displayTranstor here (and remove
54 2003-07-27 José Matos <jamatos@fep.up.pt>
56 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
59 2003-07-21 Angus Leeming <leeming@lyx.org>
62 * GraphicsCacheItem.[Ch]:
65 * PreviewedInset.[Ch]:
66 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
68 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
70 * Change namespace grfx to lyx::graphics.
72 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
74 * introcude namespace lyx::support
76 2003-06-04 Angus Leeming <leeming@lyx.org>
78 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
79 (operator=): if it has a copy c-tor, it should have this too.
81 2003-06-03 Angus Leeming <leeming@lyx.org>
83 * GraphicsLoader.[Ch] (Loader): add copy constructor.
85 2003-05-23 Angus Leeming <leeming@lyx.org>
87 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
89 2003-05-22 Angus Leeming <leeming@lyx.org>
91 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
92 the inset::latex method.
94 2003-05-22 Angus Leeming <leeming@lyx.org>
96 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
97 the inset::latex method.
99 2003-05-22 Angus Leeming <leeming@lyx.org>
101 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
102 makeLaTeXFile is now encapsulated within runparams.
104 2003-05-22 Angus Leeming <leeming@lyx.org>
106 * PreviewLoader.C (dumpPreamble):
107 pass around a LatexRunParams parameter.
109 2003-05-13 André Pönitz <poenitz@gmx.net>
111 * GraphicsConverter.C:
112 * PreviewLoader.C: use tostr from own header
114 2003-05-12 André Pönitz <poenitz@gmx.net>
116 * PreviewLoader.C: boost::format -> bformat
118 2003-04-15 Angus Leeming <leeming@lyx.org>
120 * GraphicsConverter.C: #include lstrings.h.
122 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
124 * GraphicsConverter.C
125 * PreviewLoader.C: added #include "format.h"
127 2003-02-26 Angus Leeming <leeming@lyx.org>
129 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
130 use the cache of the parent inset instead.
132 * PreviewLoader.C (startLoading): Prevent a crash if the user is
133 not using a tmp directory.
135 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
137 * GraphicsLoader.[Ch],
139 * PreviewedInset.C: Removed unneeded list of owner insets
141 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
143 * GraphicsConverter (startConversion): add the call to
146 * GraphicsLoader.[Ch],
148 * PreviewedInset.C: Removed unneeded BufferView
150 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
152 * LoaderQueue.[Ch]: a simplification of the code, eliminated
153 the unneeded input bucket.
155 * GraphicsCacheItem.C (imageConverted): move warning inside the
158 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
160 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
162 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
164 * LoaderQueue.[Ch] (setPriority): added
166 * PreviewLoader.C (finishedGenerating): reversed the loading order so
167 first images get 'touched' last, and so load first.
169 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
171 * LoaderQueue.[Ch]: added. Implements a service queue that loads
173 * GraphicsSupport.[Ch]: removed
174 * Makefile.am: the changes above
175 * GraphicsLoader.C: use the loading queue
177 2003-01-21 Angus Leeming <leeming@lyx.org>
179 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
180 previews from being generated.
182 2003-01-13 Angus Leeming <leeming@lyx.org>
184 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
185 format to be PPM not XPM.
187 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
189 * Makefile.am (EXTRA_DIST): remove variable
191 2002-12-13 Angus Leeming <leeming@lyx.org>
193 * GraphicsImageXPM.[Ch]: removed.
195 * Makefile.am: associated change.
197 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
199 * several files: ws changes
201 2002-11-21 Angus Leeming <leeming@lyx.org>
203 * GraphicsConverter.C (build_script, move_file):
204 Don't use "if [ $? -ne 0 ]; then..."
206 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
208 * PreviewLoader.C (IncrementedFileName): STRCONV
209 (startLoading): ditto
211 * GraphicsConverter.C (Impl): STRCONV
214 * GraphicsTypes.C: include config.h
216 2002-10-25 Angus Leeming <leeming@lyx.org>
218 * GraphicsConverter.C (Impl::converted)
219 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
220 string as first arg, reflecting change in ForkedCall interface.
222 * PreviewLoader.C: use pid rather than command as identifier in
225 2002-10-18 Angus Leeming <leeming@lyx.org>
227 * GraphicsCacheItem.C (findTargetFormat): add debug message.
229 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
231 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
233 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
235 * GraphicsConverter.C (build_script): do not use ChangeExtension
239 2002-09-05 Angus Leeming <leeming@lyx.org>
241 * all files: modify the headers as discussed on the list.
243 2002-09-04 Angus Leeming <leeming@lyx.org>
245 * PreviewLoader.C (startLoading): pass the desired output format to the
248 2002-09-04 Angus Leeming <leeming@lyx.org>
250 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
252 2002-09-03 Angus Leeming <leeming@lyx.org>
254 * PreviewLoader.C: fix crash reported by Norbert Koksch when
255 generating more than 999 preview snippets. Use filenames with 5 digit
256 numbers, not 3, in the first instance, although more general code is
257 commented out. I don't suppose /anyone/ has 100000 formulae in one
260 2002-09-03 Angus Leeming <leeming@lyx.org>
262 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
264 2002-09-03 Angus Leeming <leeming@lyx.org>
266 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
268 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
270 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
271 convertDefault command with "sh ".
273 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
275 * GraphicsImage.C: small style fix to width/height setting.
277 * GraphicsTypes.h: have a displayTranslator here.
280 * GraphicsTypes.C: new file added for the setDisplayTranslator();
282 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
285 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
286 because this input has gone from the graphics dialog.
288 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
290 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
292 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
293 for support/smart_ptr.h, switch to boost smart ptr.
295 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
296 (~Data): let the smart_ptr handle cleanup
297 (reset): use nifty 3rd arg
299 (free_color_table): free the table manually
301 2002-08-09 Angus Leeming <leeming@lyx.org>
303 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
304 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
305 input@path is now set correctly.
307 2002-08-06 Angus Leeming <leeming@lyx.org>
309 * PreviewLoader.C: add support for preview.sty 0.73 (currently
310 #ifdef-ed out, awaiting the formal release).
312 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
313 the contents of a file that has changed.
315 2002-08-05 Angus Leeming <leeming@lyx.org>
317 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
318 to preview.sty. Works only for versions of preview.sty > 0.72b but
319 doesn't hurt earlier versions. Allows me to test the new parsing of
320 LyX-specific data from the generated log file.
322 2002-08-02 Angus Leeming <leeming@lyx.org>
324 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
326 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
327 (add): don't add empty snippets.
329 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
330 (view, setView): access to to the cache_.
332 2002-08-02 Angus Leeming <leeming@lyx.org>
334 * PreviewedInset.[Ch]: cache the LaTeX snippet.
336 2002-08-01 Angus Leeming <leeming@lyx.org>
338 * PreviewedInset.[Ch]: new files. An abstract base class that can help
339 insets to generate previews.
340 The daughter class must instantiate three small methods.
341 The Inset would own an instance of this daughter class and invoke it
342 as necessary. For example, mathd/formula.C gets previews at the cost
343 of 15 or so lines of code.
345 * Makefile.am: add PreviewedInset.[Ch].
347 * PreviewLoader.C (add): add debug message.
349 * Previews.C (generateBufferPreviews): remove if-block from loop.
351 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
353 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
355 (setAscentFractions): ditto
357 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
359 * PreviewLoader.C (setAscentFractions): modify because of strip
362 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
364 * GraphicsConverter.C (build_script): take a ostream as a more
365 general argument than ostringstream.
367 2002-07-22 Herbert Voss <voss@lyx.org>
369 * GraphicsConverter.C: get the "default converter" run again
371 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
373 * PreviewLoader.C: use BufferParams::getLyXTextClass
375 2002-07-21 Herbert Voss <voss@lyx.org>
377 * GraphicsImage.C: get the LyXAspectRatio run.
379 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
381 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
383 * PreviewLoader.C (startLoading): pass an interger as resolution
384 to the lyxpreview converter
386 * GraphicsParams.C: include <cstdlib>
388 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
390 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
391 preview converter script
393 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
395 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
398 2002-07-18 Angus Leeming <leeming@lyx.org>
400 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
402 (startMonitoring, monitoring, checksum): new methods to interact with
405 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
406 methods invoking the CacheItem methods of the same name.
407 (resetFile): if monitoring and the file changes, start monitoring this
410 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
412 * Makefile.am: remove FileMonitor.[Ch]
414 2002-06-17 Herbert Voss <voss@lyx.org>
416 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
417 for old ps-files (Garst). It's now handled by defining a converter and
418 disabling the ps-support of xforms.
420 2002-07-17 Angus Leeming <leeming@lyx.org>
422 Be true to the Pimpl idiom, moving all signals into the respective
423 Impl classes and defining methods to connect them to an outside slot.
424 Const-ify all visible class methods as they act only on a const pimpl_.
426 * GraphicsCache.[Ch] (add, remove): const-ify.
428 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
429 (statusChanged): move the signal into the Impl class.
430 (connect): new method, enabling a listener to connect to this signal.
432 * GraphicsConverter.[Ch]: (startConversion): const-ify.
433 (finishedConversion): move the signal into the Impl class.
434 (connect): new method, enabling a listener to connect to this signal.
436 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
437 (statusChanged): move the signal into the Impl class.
438 (connect): new method, enabling a listener to connect to this signal.
440 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
441 (imageReady): move the signal into the Impl class.
442 (connect): new method, enabling a listener to connect to this signal.
443 (emitSignal): new method, enabling PreviewImage to tell the outside
444 world that the file has been loaded into memory.
446 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
450 * GraphicsCacheItem.C:
451 * GraphicsConverter.[Ch]:
453 * GraphicsImageXPM.C:
455 * PreviewLoader.[Ch]: whitespace clean-up.
457 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
459 * PreviewLoader.C (setConverter): remove unused variable
461 * GraphicsImageXPM.C (isDrawable): implement
462 (setPixmap): the opaque color is black, not white
464 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
466 * GraphicsImageXPM.C (color_none_id):
467 (contains_color_none): use ascii_lowercase instead of lowercase
469 2002-07-16 Angus Leeming <leeming@lyx.org>
471 * PreviewLoader.C: greater use of STL algorithms.
473 * Previews.[Ch]: use const in more places.
474 (generateBufferPreviews): now takes a Buffer const & argument, not a
477 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
479 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
481 2002-07-12 Angus Leeming <leeming@lyx.org>
483 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
484 if visible 2 secs after the call to load them is first made.
486 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
487 BufferView to ascertain whether the inset is visible or not.
489 * Makefile.am: added GraphicsSupport.[Ch].
491 * PreviewImage.[Ch]: use this smart loader.
493 * PreviewLoader.C: don't load generated image files indiscimminantly.
494 Instead emit the imageReady signal and allow the image owner to decide.
496 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
498 * GraphicsCache.C: remove init_graphics()
500 2002-07-09 Angus Leeming <leeming@lyx.org>
502 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
503 arithmetic when it should be floating.
505 2002-07-09 Angus Leeming <leeming@lyx.org>
507 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
508 Output equation labels as "(#)" if lyxrc preference is set.
509 (setFontScalingFactor): use lyxrc variable preview_scale_factor
510 rather than hard-coding this.
512 2002-07-09 Angus Leeming <leeming@lyx.org>
514 * PreviewLoader.C: Further refactoring of the code. Should now be
517 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
518 past its sell-by date. The code to read the metrics file is now found
519 as a helper function in PreviewLoader.C.
521 * GraphicsImageXPM.C (scale): use boost::tie.
523 2002-07-08 Herbert Voss <voss@lyx.org>
525 * PreviewLoader.C: use of preview_size_factor to get the right
526 font-size! 0.9 is the default.
528 2002-07-08 Angus Leeming <leeming@lyx.org>
530 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
531 invocation of preview.sty.
532 Perform something of an internal clean-up.
534 2002-07-06 Angus Leeming <leeming@lyx.org>
536 * PreviewLoader.C: ensure that the metrics data is used by the
540 * PreviewImage.C: (Impl d-tor): remove all generated files that still
541 exist (perhaps because the process was curtailed before the images
544 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
546 2002-07-05 Angus Leeming <leeming@lyx.org>
555 * Previews.C: new files. The previewed LaTeX snippet stuff.
557 * Makefile.am: add these files.
559 2002-07-05 Angus Leeming <leeming@lyx.org>
561 * GraphicsLoader.h: whitespace.
563 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
565 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
566 boost::function from boost::signal.
568 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
570 * GraphicsConverter.C (convert): do not use ChangeExtension
571 because to_file_base may contain a dot.
573 2002-06-28 Angus Leeming <leeming@lyx.org>
575 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
576 by moving those SignalPtrs into the grfx::Image and grfx::Converter
577 classes where they really belong.
578 Use the Pimpl idiom to hide the class internals from public view.
580 * GraphicsTypes: remove the typedefs, leaving only the enums.
582 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
583 passed a reference to one in the load() method.
585 * GraphicsConverter.[Ch]: totally refactored. An instance of
586 grfx::Converter now represents a single conversion process.
587 Thus grfx::CachItem now has a grfx::Converter * that is set when the
588 conversion is initiated and destroyed on completion.
590 * GraphicsCache.[Ch]:
591 * GraphicsCacheItem.[Ch]:
592 * GraphicsConverter.[Ch]:
593 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
595 Note that I have done this only after making the above changes,
596 so not only should we have a clean, minimal and well documented
597 interface to these classes in the header files, but the class internals
598 should be much clearer too.
601 grfx::GCache -> grfx::Cache,
602 grfx::GCacheItem -> grfx::CacheItem,
603 grfx::GConverter -> grfx::Converter,
604 grfx::GImage -> grfx::Image,
605 grfx::GImageXPM -> grfx::ImageXPM,
606 grfx::GParams -> grfx::Params.
608 2002-06-26 Angus Leeming <leeming@lyx.org>
610 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
611 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
614 2002-06-26 Angus Leeming <leeming@lyx.org>
616 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
617 move the DisplayType enum out of grfx::GParams to here.
619 * GraphicsCacheItem.h: re-write preliminary description to reflect
622 * GraphicsParams.[Ch]:
623 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
624 grfx::DisplayType out of grfx::GParams.
626 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
627 that was in frontends/screen.C and insets/insetgraphics.C into a
628 single, easy-to-use class.
630 * Makefile.am: add these files.
632 2002-06-25 Angus Leeming <leeming@lyx.org>
634 * GraphicsCache.[Ch]:
635 * GraphicsCacheItem.[Ch]:
636 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
637 file into memory. The cache no longer controls the generation of the
638 pixmap. Instead, it just emits a signal when the loading status of an
640 The cache no longer stores InsetGraphics pointers and nor does it
641 assume responsibility for modifying an image (scaling, rotating etc).
642 Instead, that must now be performed elsewhere.
644 2002-06-19 Angus Leeming <leeming@lyx.org>
646 * GraphicsConverter.C: add using std::endl directive.
648 2002-06-17 Herbert Voss <voss@lyx.org>
650 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
651 default when nothing different was found
652 (convertToDisplayFormat): handle zipped files in the right way and
653 choose always convert as a default converter when no other
654 userdefined was found
656 * GraphicsConverter.C: add more lyxerr comments and choose
657 convert when no other userdefined converter was found
659 2002-06-10 Herbert Voss <voss@lyx.org>
661 * GraphicsImageXPM.C (convertTo7chars): get another special color
662 format from convert work in the right way
664 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
666 * GraphicsCache.C: use right colormap incantation
668 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
670 * GraphicsCache.C: use lyx_gui namespace
672 * GraphicsImageXPM.C: back down to using xforms
675 2002-06-07 Angus Leeming <leeming@lyx.org>
677 Fixes needed to compile with Compaq cxx 6.5.
678 * GraphicsConverter.h: forward declare class ConvProcess.
680 * GraphicsImageXPM.C:
681 all c-library variables have been moved into namespace std.
682 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
684 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
686 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
688 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
690 * GraphicsImageXPM.C: SigC to boot::signals changes.
691 (newImage): fix () bug when using new.
693 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
695 * switch from SigC signals to boost::signals.
697 2002-05-29 André Pönitz <poenitz@gmx.net>
699 * GraphicsParam.C: remove unneeded #include, move vomment
701 2002-05-28 André Pönitz <poenitz@gmx.net>
703 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
705 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
707 * GraphicsImageXPM.C: ColorHandler moved
709 2002-05-24 Juergen Vigna <jug@sad.it>
712 * GraphicsImage.h: include LString.h first.
714 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
716 * GraphicsCacheItem.h: use more specific smart_ptr header.
717 * GraphicsTypes.h: ditto
718 * GraphicsImage.h: ditto
719 * GraphicsConverter.h: ditto
721 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
723 * GraphicsImageXPM.C: understand convert's use of "opaque"
726 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
728 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
729 GImage::loadableFormats() that ensures that the signal is connected
730 to the derived class' method.
732 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
734 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
735 only work on the string.
737 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
739 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
740 the simple image loader when it encounters colour strings like
743 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
745 * GraphicsCacheItem.C (convertToDisplayFormat):
746 * GraphicsConverter.C (build_script): remove the Alerts when things go
747 wrong as the inset displays the message anyway. Moreover, Alert seems
748 pretty temperamemtal at the moment.
750 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
752 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
754 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
756 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
757 a reference to a temp object that's going out of scope...
759 2002-04-09 Herbert Voss <voss@lyx.org>
761 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
762 LyXLength::inBP instead of inPixels.
764 2002-04-10 Herbert Voss <voss@perce.de>
766 * GraphicsCache.[Ch]:
767 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
768 to read the "Bounding Box" from non (e)ps files.
770 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
772 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
773 the EPS file too, to ensure that the clipped Bounding Box is relative
774 to the original. (From Herbert.)
776 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
778 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
779 variables are initialised. Clean-up parsing of the string (with thanks
782 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
784 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
785 if the file can't be found.
787 * GraphicsParams.h (c-tor): remove string() as default argument.
789 * GraphicsCacheItem.C: a couple of changes as a result.
791 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
793 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
794 path to graphics file.
796 * GraphicsParams.[Ch] (c-tor): now passed filepath.
798 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
800 * most files: ws cleanup
802 * Makefile.am: remove ld -r stuff
804 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
806 * Makefile.am: special rules if partial linking
808 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
810 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
812 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
814 * GraphicsConverter.[Ch] (converted): make first arg const ref.
816 * GraphicsCacheItem.h: doxy change
818 * GraphicsCacheItem.C: ws change
820 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
822 * Makefile.am: if there is no image loading class leveraging the power
823 of the appropriate gui library, then compile the basic alternative
824 found in GraphicsImageXPM.[Ch].
826 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
828 * GraphicsCache.C: change associated with move of initialiseGraphics
831 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
833 * GraphicsParams.[Ch]:
835 * GraphicsImageXPM.C: properly resolve more warnings about comparison
836 between signed and unsigned integer expressions.
838 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
840 * GraphicsCache.C: move connections to the GImage-derived classes to
843 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
845 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
846 conversion, then do that.
848 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
850 * GraphicsCache.C: improve commentary to graphicsInit and where it
853 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
854 that became a memory leak properly. (Let the shared_c_ptr free the
856 (reset, mapcolor): tidy up and introduce a work around for XPM files
857 with crappy color entries. Print out a nice friendly message on what's
858 gone wrong and how to resolve it properly.
860 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
862 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
863 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
865 (unique_color_string): use the correct string c-tor.
867 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
870 * ImageLoaderXPM.[Ch]: removed.
872 * GraphicsConverter.[Ch]:
873 * GraphicsImage.[Ch]:
874 * GraphicsImageXPM.[Ch]:
875 * GraphicsParams.[Ch]:
876 * GraphicsTypes.h: new files.
878 * All files. A total re-write of the graphics cache. The cache now
879 supports asynchronous file conversion and file loading. Images
880 can be cropped, rotated and scaled for display on the LyX screen.
881 The old LyXImage and ImageLoader have been combined in a new class
882 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
885 2002-02-07 Herbert Voss <voss@lyx.org>
887 * GraphicsCacheItem.C: use unzipFile() from support/filetools
889 2002-01-31 Herbert Voss <voss@lyx.org>
891 * GraphicsCacheItem.h: handle filetype without the file extension;
892 getting type from contents; handle zipped files
894 2002-01-27 Herbert Voss <voss@lyx.org>
896 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
898 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
900 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
902 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
904 * GraphicsCacheItem.h: do not include <config.h> in header files
906 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
908 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
909 transparent colour, then set it to the colour of the background.
910 Also take account of the monochrome, grayscale of color
913 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
915 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
916 are different. Thus, don't delete the "to" if it's the original!
918 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
920 * ImageLoadXPM.C: remove setting of alloc colour mask,
921 led to crash as we don't define a callback
923 2001-07-29 Baruch Even <baruch@lyx.org>
925 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
926 colors with closeness of 10000.
928 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
930 2001-07-29 Baruch Even <baruch@lyx.org>
932 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
935 2001-07-23 Baruch Even <baruch@lyx.org>
937 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
938 the image after conversion.
940 2001-07-17 Baruch Even <baruch@lyx.org>
942 * GraphicsCacheItem.h:
943 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
944 from synchronous to asynchronous and to ease the coming changes.
946 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
948 * ImageLoaderXPM.C (runImageLoader): get display information from
951 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
954 * GraphicsCacheItem.C:
956 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
958 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
960 * GraphicsCache.h: inherit privately from noncopyable
961 * ImageLoader.h: ditto
962 * GraphicsCacheItem.h: ditto
964 2001-04-16 Allan Rae <rae@lyx.org>
966 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
967 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
970 2001-04-02 Baruch Even <baruch@lyx.org>
972 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
973 of hard coding ImageMagick.
975 2001-03-10 Baruch Even <baruch@lyx.org>
977 * GraphicsCache.C: Style change from (*it).field to it->field
979 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
981 * GraphicsCache.h: noncopyable is in namespace boost
982 * ImageLoader.h: ditto
983 * GraphicsCacheItem.h: ditto
985 2001-03-07 Baruch Even <baruch@lyx.org>
987 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
988 was false and it's not needed anyhow since the shared_ptr's in the cache
989 will destroy everything on exit.
991 2001-02-28 Baruch Even <baruch@ev-en.org>
994 * GraphicsCache.C: Changed the singleton pattern implementation, the
995 former version "leaked" in the sense that it was not deallocated at
998 2001-02-20 Baruch Even <baruch@ev-en.org>
1000 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1001 instead of a pure pointer.
1003 * GraphicsCacheItem.[Ch]:
1004 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1005 removed the reference counting that was inside. Also fixed a bug where
1006 a temporary file wouldn't get erased.
1008 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1009 Ownership is now dropped when the caller requests the image_ pointer.
1011 2001-02-20 Baruch Even <baruch@ev-en.org>
1013 * GraphicsCache.C: Cleared up the confusion on when and how it is
1016 * GraphicsCacheItem.C: Indentation change.
1018 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1019 figure correctly when the image has been loaded successfully.
1021 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1023 * ImageLoader.C: add a "using" directive.
1025 * ImageLoader.h: remove extra comma at the end of enum; add an
1026 std:: qualifier for vector.
1028 2001-01-21 Baruch Even <baruch@ev-en.org>
1030 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1031 height in the image itself and minor cleanups.
1033 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1034 new ImageLoader class instead of the older Renderer class. This
1035 means change of responsibilities.