1 2003-10-09 Angus Leeming <leeming@lyx.org>
3 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
4 are now passed a 'Buffer const &', eliminating most of the remaining
5 need for PreviewedInset to use a BufferView cache.
7 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
10 * PreviewImage.h: add <string> and other small fixes to make
11 Lars' std::string patch compile with STLport.
13 2003-09-29 Angus Leeming <leeming@lyx.org>
15 * GraphicsParams.[Ch] (asString): removed. Replaced with
16 operator<<(std::ostream &, BoundingBox const &).
18 2003-09-25 Angus Leeming <leeming@lyx.org>
20 * GraphicsParams.[Ch] (asString): new member function.
22 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
24 * Previews.C (Previews): fix new bug
26 * GraphicsCache.C (Cache): fix new bug
28 2003-09-19 Angus Leeming <leeming@lyx.org>
30 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
31 a 'Buffer const &' argument.
33 2003-09-18 Angus Leeming <leeming@lyx.org>
35 * PreviewedInset.C (latexString): add a Buffer const & arg.
36 * PreviewedInset.C (addPreview): pass the buffer to latexString.
38 2003-09-16 Angus Leeming <leeming@lyx.org>
40 * PreviewedInset.[Ch] (c-tor) move out of line.
41 (d-tor): make private.
42 (inset): return a const reference rather than a non-const pointer.
44 2003-09-16 Angus Leeming <leeming@lyx.org>
46 * GraphicsImage.h: separate interface from implementation. Make all the
47 pure virtual functions private.
49 2003-09-16 Angus Leeming <leeming@lyx.org>
51 * PreviewLoader.C: add #include "LColor.h".
53 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
56 * PreviewLoader.C: remove usage of STRCONV
58 2003-09-14 Angus Leeming <leeming@lyx.org>
60 * PreviewLoader.C (remove): consider all InProgressProcesses when
61 ascertaining which ones to remove from the list, not every other one.
63 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
65 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
68 2003-09-08 Angus Leeming <leeming@lyx.org>
72 * PreviewLoader.C: remove redundant using directives.
74 2003-09-07 Angus Leeming <leeming@lyx.org>
77 * Previews.h: remove #include "support/std_string.h".
79 2003-09-06 Angus Leeming <leeming@lyx.org>
81 * PreviewedInset.C: add #include "insets/inset.h"
83 2003-09-05 Angus Leeming <leeming@lyx.org>
85 * *.C: strip out redundant #includes. (26 in total.)
87 2003-09-04 Angus Leeming <leeming@lyx.org>
89 * LoaderQueue.C (get):
91 2003-09-04 Angus Leeming <leeming@lyx.org>
94 * GraphicsCacheItem.C:
95 * GraphicsConverter.C:
99 * Previews.C: 'namespace support = lyx::support' rather than
100 'using lyx::support'.
102 * Previews.h: cleaned up some comments.
104 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
106 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
108 * GraphicsTypes.h: do not declare displayTranstor here (and remove
111 2003-07-27 José Matos <jamatos@fep.up.pt>
113 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
116 2003-07-21 Angus Leeming <leeming@lyx.org>
119 * GraphicsCacheItem.[Ch]:
122 * PreviewedInset.[Ch]:
123 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
125 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
127 * Change namespace grfx to lyx::graphics.
129 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
131 * introcude namespace lyx::support
133 2003-06-04 Angus Leeming <leeming@lyx.org>
135 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
136 (operator=): if it has a copy c-tor, it should have this too.
138 2003-06-03 Angus Leeming <leeming@lyx.org>
140 * GraphicsLoader.[Ch] (Loader): add copy constructor.
142 2003-05-23 Angus Leeming <leeming@lyx.org>
144 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
146 2003-05-22 Angus Leeming <leeming@lyx.org>
148 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
149 the inset::latex method.
151 2003-05-22 Angus Leeming <leeming@lyx.org>
153 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
154 the inset::latex method.
156 2003-05-22 Angus Leeming <leeming@lyx.org>
158 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
159 makeLaTeXFile is now encapsulated within runparams.
161 2003-05-22 Angus Leeming <leeming@lyx.org>
163 * PreviewLoader.C (dumpPreamble):
164 pass around a LatexRunParams parameter.
166 2003-05-13 André Pönitz <poenitz@gmx.net>
168 * GraphicsConverter.C:
169 * PreviewLoader.C: use tostr from own header
171 2003-05-12 André Pönitz <poenitz@gmx.net>
173 * PreviewLoader.C: boost::format -> bformat
175 2003-04-15 Angus Leeming <leeming@lyx.org>
177 * GraphicsConverter.C: #include lstrings.h.
179 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
181 * GraphicsConverter.C
182 * PreviewLoader.C: added #include "format.h"
184 2003-02-26 Angus Leeming <leeming@lyx.org>
186 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
187 use the cache of the parent inset instead.
189 * PreviewLoader.C (startLoading): Prevent a crash if the user is
190 not using a tmp directory.
192 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
194 * GraphicsLoader.[Ch],
196 * PreviewedInset.C: Removed unneeded list of owner insets
198 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
200 * GraphicsConverter (startConversion): add the call to
203 * GraphicsLoader.[Ch],
205 * PreviewedInset.C: Removed unneeded BufferView
207 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
209 * LoaderQueue.[Ch]: a simplification of the code, eliminated
210 the unneeded input bucket.
212 * GraphicsCacheItem.C (imageConverted): move warning inside the
215 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
217 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
219 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
221 * LoaderQueue.[Ch] (setPriority): added
223 * PreviewLoader.C (finishedGenerating): reversed the loading order so
224 first images get 'touched' last, and so load first.
226 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
228 * LoaderQueue.[Ch]: added. Implements a service queue that loads
230 * GraphicsSupport.[Ch]: removed
231 * Makefile.am: the changes above
232 * GraphicsLoader.C: use the loading queue
234 2003-01-21 Angus Leeming <leeming@lyx.org>
236 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
237 previews from being generated.
239 2003-01-13 Angus Leeming <leeming@lyx.org>
241 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
242 format to be PPM not XPM.
244 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
246 * Makefile.am (EXTRA_DIST): remove variable
248 2002-12-13 Angus Leeming <leeming@lyx.org>
250 * GraphicsImageXPM.[Ch]: removed.
252 * Makefile.am: associated change.
254 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
256 * several files: ws changes
258 2002-11-21 Angus Leeming <leeming@lyx.org>
260 * GraphicsConverter.C (build_script, move_file):
261 Don't use "if [ $? -ne 0 ]; then..."
263 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
265 * PreviewLoader.C (IncrementedFileName): STRCONV
266 (startLoading): ditto
268 * GraphicsConverter.C (Impl): STRCONV
271 * GraphicsTypes.C: include config.h
273 2002-10-25 Angus Leeming <leeming@lyx.org>
275 * GraphicsConverter.C (Impl::converted)
276 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
277 string as first arg, reflecting change in ForkedCall interface.
279 * PreviewLoader.C: use pid rather than command as identifier in
282 2002-10-18 Angus Leeming <leeming@lyx.org>
284 * GraphicsCacheItem.C (findTargetFormat): add debug message.
286 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
288 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
290 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
292 * GraphicsConverter.C (build_script): do not use ChangeExtension
296 2002-09-05 Angus Leeming <leeming@lyx.org>
298 * all files: modify the headers as discussed on the list.
300 2002-09-04 Angus Leeming <leeming@lyx.org>
302 * PreviewLoader.C (startLoading): pass the desired output format to the
305 2002-09-04 Angus Leeming <leeming@lyx.org>
307 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
309 2002-09-03 Angus Leeming <leeming@lyx.org>
311 * PreviewLoader.C: fix crash reported by Norbert Koksch when
312 generating more than 999 preview snippets. Use filenames with 5 digit
313 numbers, not 3, in the first instance, although more general code is
314 commented out. I don't suppose /anyone/ has 100000 formulae in one
317 2002-09-03 Angus Leeming <leeming@lyx.org>
319 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
321 2002-09-03 Angus Leeming <leeming@lyx.org>
323 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
325 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
327 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
328 convertDefault command with "sh ".
330 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
332 * GraphicsImage.C: small style fix to width/height setting.
334 * GraphicsTypes.h: have a displayTranslator here.
337 * GraphicsTypes.C: new file added for the setDisplayTranslator();
339 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
342 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
343 because this input has gone from the graphics dialog.
345 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
347 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
349 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
350 for support/smart_ptr.h, switch to boost smart ptr.
352 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
353 (~Data): let the smart_ptr handle cleanup
354 (reset): use nifty 3rd arg
356 (free_color_table): free the table manually
358 2002-08-09 Angus Leeming <leeming@lyx.org>
360 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
361 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
362 input@path is now set correctly.
364 2002-08-06 Angus Leeming <leeming@lyx.org>
366 * PreviewLoader.C: add support for preview.sty 0.73 (currently
367 #ifdef-ed out, awaiting the formal release).
369 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
370 the contents of a file that has changed.
372 2002-08-05 Angus Leeming <leeming@lyx.org>
374 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
375 to preview.sty. Works only for versions of preview.sty > 0.72b but
376 doesn't hurt earlier versions. Allows me to test the new parsing of
377 LyX-specific data from the generated log file.
379 2002-08-02 Angus Leeming <leeming@lyx.org>
381 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
383 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
384 (add): don't add empty snippets.
386 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
387 (view, setView): access to to the cache_.
389 2002-08-02 Angus Leeming <leeming@lyx.org>
391 * PreviewedInset.[Ch]: cache the LaTeX snippet.
393 2002-08-01 Angus Leeming <leeming@lyx.org>
395 * PreviewedInset.[Ch]: new files. An abstract base class that can help
396 insets to generate previews.
397 The daughter class must instantiate three small methods.
398 The Inset would own an instance of this daughter class and invoke it
399 as necessary. For example, mathd/formula.C gets previews at the cost
400 of 15 or so lines of code.
402 * Makefile.am: add PreviewedInset.[Ch].
404 * PreviewLoader.C (add): add debug message.
406 * Previews.C (generateBufferPreviews): remove if-block from loop.
408 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
410 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
412 (setAscentFractions): ditto
414 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
416 * PreviewLoader.C (setAscentFractions): modify because of strip
419 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
421 * GraphicsConverter.C (build_script): take a ostream as a more
422 general argument than ostringstream.
424 2002-07-22 Herbert Voss <voss@lyx.org>
426 * GraphicsConverter.C: get the "default converter" run again
428 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
430 * PreviewLoader.C: use BufferParams::getLyXTextClass
432 2002-07-21 Herbert Voss <voss@lyx.org>
434 * GraphicsImage.C: get the LyXAspectRatio run.
436 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
438 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
440 * PreviewLoader.C (startLoading): pass an interger as resolution
441 to the lyxpreview converter
443 * GraphicsParams.C: include <cstdlib>
445 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
447 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
448 preview converter script
450 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
452 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
455 2002-07-18 Angus Leeming <leeming@lyx.org>
457 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
459 (startMonitoring, monitoring, checksum): new methods to interact with
462 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
463 methods invoking the CacheItem methods of the same name.
464 (resetFile): if monitoring and the file changes, start monitoring this
467 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
469 * Makefile.am: remove FileMonitor.[Ch]
471 2002-06-17 Herbert Voss <voss@lyx.org>
473 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
474 for old ps-files (Garst). It's now handled by defining a converter and
475 disabling the ps-support of xforms.
477 2002-07-17 Angus Leeming <leeming@lyx.org>
479 Be true to the Pimpl idiom, moving all signals into the respective
480 Impl classes and defining methods to connect them to an outside slot.
481 Const-ify all visible class methods as they act only on a const pimpl_.
483 * GraphicsCache.[Ch] (add, remove): const-ify.
485 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
486 (statusChanged): move the signal into the Impl class.
487 (connect): new method, enabling a listener to connect to this signal.
489 * GraphicsConverter.[Ch]: (startConversion): const-ify.
490 (finishedConversion): move the signal into the Impl class.
491 (connect): new method, enabling a listener to connect to this signal.
493 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
494 (statusChanged): move the signal into the Impl class.
495 (connect): new method, enabling a listener to connect to this signal.
497 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
498 (imageReady): move the signal into the Impl class.
499 (connect): new method, enabling a listener to connect to this signal.
500 (emitSignal): new method, enabling PreviewImage to tell the outside
501 world that the file has been loaded into memory.
503 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
507 * GraphicsCacheItem.C:
508 * GraphicsConverter.[Ch]:
510 * GraphicsImageXPM.C:
512 * PreviewLoader.[Ch]: whitespace clean-up.
514 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
516 * PreviewLoader.C (setConverter): remove unused variable
518 * GraphicsImageXPM.C (isDrawable): implement
519 (setPixmap): the opaque color is black, not white
521 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
523 * GraphicsImageXPM.C (color_none_id):
524 (contains_color_none): use ascii_lowercase instead of lowercase
526 2002-07-16 Angus Leeming <leeming@lyx.org>
528 * PreviewLoader.C: greater use of STL algorithms.
530 * Previews.[Ch]: use const in more places.
531 (generateBufferPreviews): now takes a Buffer const & argument, not a
534 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
536 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
538 2002-07-12 Angus Leeming <leeming@lyx.org>
540 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
541 if visible 2 secs after the call to load them is first made.
543 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
544 BufferView to ascertain whether the inset is visible or not.
546 * Makefile.am: added GraphicsSupport.[Ch].
548 * PreviewImage.[Ch]: use this smart loader.
550 * PreviewLoader.C: don't load generated image files indiscimminantly.
551 Instead emit the imageReady signal and allow the image owner to decide.
553 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
555 * GraphicsCache.C: remove init_graphics()
557 2002-07-09 Angus Leeming <leeming@lyx.org>
559 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
560 arithmetic when it should be floating.
562 2002-07-09 Angus Leeming <leeming@lyx.org>
564 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
565 Output equation labels as "(#)" if lyxrc preference is set.
566 (setFontScalingFactor): use lyxrc variable preview_scale_factor
567 rather than hard-coding this.
569 2002-07-09 Angus Leeming <leeming@lyx.org>
571 * PreviewLoader.C: Further refactoring of the code. Should now be
574 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
575 past its sell-by date. The code to read the metrics file is now found
576 as a helper function in PreviewLoader.C.
578 * GraphicsImageXPM.C (scale): use boost::tie.
580 2002-07-08 Herbert Voss <voss@lyx.org>
582 * PreviewLoader.C: use of preview_size_factor to get the right
583 font-size! 0.9 is the default.
585 2002-07-08 Angus Leeming <leeming@lyx.org>
587 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
588 invocation of preview.sty.
589 Perform something of an internal clean-up.
591 2002-07-06 Angus Leeming <leeming@lyx.org>
593 * PreviewLoader.C: ensure that the metrics data is used by the
597 * PreviewImage.C: (Impl d-tor): remove all generated files that still
598 exist (perhaps because the process was curtailed before the images
601 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
603 2002-07-05 Angus Leeming <leeming@lyx.org>
612 * Previews.C: new files. The previewed LaTeX snippet stuff.
614 * Makefile.am: add these files.
616 2002-07-05 Angus Leeming <leeming@lyx.org>
618 * GraphicsLoader.h: whitespace.
620 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
622 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
623 boost::function from boost::signal.
625 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
627 * GraphicsConverter.C (convert): do not use ChangeExtension
628 because to_file_base may contain a dot.
630 2002-06-28 Angus Leeming <leeming@lyx.org>
632 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
633 by moving those SignalPtrs into the grfx::Image and grfx::Converter
634 classes where they really belong.
635 Use the Pimpl idiom to hide the class internals from public view.
637 * GraphicsTypes: remove the typedefs, leaving only the enums.
639 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
640 passed a reference to one in the load() method.
642 * GraphicsConverter.[Ch]: totally refactored. An instance of
643 grfx::Converter now represents a single conversion process.
644 Thus grfx::CachItem now has a grfx::Converter * that is set when the
645 conversion is initiated and destroyed on completion.
647 * GraphicsCache.[Ch]:
648 * GraphicsCacheItem.[Ch]:
649 * GraphicsConverter.[Ch]:
650 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
652 Note that I have done this only after making the above changes,
653 so not only should we have a clean, minimal and well documented
654 interface to these classes in the header files, but the class internals
655 should be much clearer too.
658 grfx::GCache -> grfx::Cache,
659 grfx::GCacheItem -> grfx::CacheItem,
660 grfx::GConverter -> grfx::Converter,
661 grfx::GImage -> grfx::Image,
662 grfx::GImageXPM -> grfx::ImageXPM,
663 grfx::GParams -> grfx::Params.
665 2002-06-26 Angus Leeming <leeming@lyx.org>
667 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
668 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
671 2002-06-26 Angus Leeming <leeming@lyx.org>
673 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
674 move the DisplayType enum out of grfx::GParams to here.
676 * GraphicsCacheItem.h: re-write preliminary description to reflect
679 * GraphicsParams.[Ch]:
680 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
681 grfx::DisplayType out of grfx::GParams.
683 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
684 that was in frontends/screen.C and insets/insetgraphics.C into a
685 single, easy-to-use class.
687 * Makefile.am: add these files.
689 2002-06-25 Angus Leeming <leeming@lyx.org>
691 * GraphicsCache.[Ch]:
692 * GraphicsCacheItem.[Ch]:
693 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
694 file into memory. The cache no longer controls the generation of the
695 pixmap. Instead, it just emits a signal when the loading status of an
697 The cache no longer stores InsetGraphics pointers and nor does it
698 assume responsibility for modifying an image (scaling, rotating etc).
699 Instead, that must now be performed elsewhere.
701 2002-06-19 Angus Leeming <leeming@lyx.org>
703 * GraphicsConverter.C: add using std::endl directive.
705 2002-06-17 Herbert Voss <voss@lyx.org>
707 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
708 default when nothing different was found
709 (convertToDisplayFormat): handle zipped files in the right way and
710 choose always convert as a default converter when no other
711 userdefined was found
713 * GraphicsConverter.C: add more lyxerr comments and choose
714 convert when no other userdefined converter was found
716 2002-06-10 Herbert Voss <voss@lyx.org>
718 * GraphicsImageXPM.C (convertTo7chars): get another special color
719 format from convert work in the right way
721 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
723 * GraphicsCache.C: use right colormap incantation
725 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
727 * GraphicsCache.C: use lyx_gui namespace
729 * GraphicsImageXPM.C: back down to using xforms
732 2002-06-07 Angus Leeming <leeming@lyx.org>
734 Fixes needed to compile with Compaq cxx 6.5.
735 * GraphicsConverter.h: forward declare class ConvProcess.
737 * GraphicsImageXPM.C:
738 all c-library variables have been moved into namespace std.
739 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
741 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
743 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
745 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
747 * GraphicsImageXPM.C: SigC to boot::signals changes.
748 (newImage): fix () bug when using new.
750 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
752 * switch from SigC signals to boost::signals.
754 2002-05-29 André Pönitz <poenitz@gmx.net>
756 * GraphicsParam.C: remove unneeded #include, move vomment
758 2002-05-28 André Pönitz <poenitz@gmx.net>
760 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
762 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
764 * GraphicsImageXPM.C: ColorHandler moved
766 2002-05-24 Juergen Vigna <jug@sad.it>
769 * GraphicsImage.h: include LString.h first.
771 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
773 * GraphicsCacheItem.h: use more specific smart_ptr header.
774 * GraphicsTypes.h: ditto
775 * GraphicsImage.h: ditto
776 * GraphicsConverter.h: ditto
778 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
780 * GraphicsImageXPM.C: understand convert's use of "opaque"
783 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
785 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
786 GImage::loadableFormats() that ensures that the signal is connected
787 to the derived class' method.
789 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
791 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
792 only work on the string.
794 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
796 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
797 the simple image loader when it encounters colour strings like
800 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
802 * GraphicsCacheItem.C (convertToDisplayFormat):
803 * GraphicsConverter.C (build_script): remove the Alerts when things go
804 wrong as the inset displays the message anyway. Moreover, Alert seems
805 pretty temperamemtal at the moment.
807 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
809 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
811 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
813 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
814 a reference to a temp object that's going out of scope...
816 2002-04-09 Herbert Voss <voss@lyx.org>
818 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
819 LyXLength::inBP instead of inPixels.
821 2002-04-10 Herbert Voss <voss@perce.de>
823 * GraphicsCache.[Ch]:
824 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
825 to read the "Bounding Box" from non (e)ps files.
827 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
829 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
830 the EPS file too, to ensure that the clipped Bounding Box is relative
831 to the original. (From Herbert.)
833 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
835 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
836 variables are initialised. Clean-up parsing of the string (with thanks
839 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
841 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
842 if the file can't be found.
844 * GraphicsParams.h (c-tor): remove string() as default argument.
846 * GraphicsCacheItem.C: a couple of changes as a result.
848 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
850 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
851 path to graphics file.
853 * GraphicsParams.[Ch] (c-tor): now passed filepath.
855 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
857 * most files: ws cleanup
859 * Makefile.am: remove ld -r stuff
861 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
863 * Makefile.am: special rules if partial linking
865 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
867 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
869 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
871 * GraphicsConverter.[Ch] (converted): make first arg const ref.
873 * GraphicsCacheItem.h: doxy change
875 * GraphicsCacheItem.C: ws change
877 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
879 * Makefile.am: if there is no image loading class leveraging the power
880 of the appropriate gui library, then compile the basic alternative
881 found in GraphicsImageXPM.[Ch].
883 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
885 * GraphicsCache.C: change associated with move of initialiseGraphics
888 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
890 * GraphicsParams.[Ch]:
892 * GraphicsImageXPM.C: properly resolve more warnings about comparison
893 between signed and unsigned integer expressions.
895 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
897 * GraphicsCache.C: move connections to the GImage-derived classes to
900 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
902 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
903 conversion, then do that.
905 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
907 * GraphicsCache.C: improve commentary to graphicsInit and where it
910 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
911 that became a memory leak properly. (Let the shared_c_ptr free the
913 (reset, mapcolor): tidy up and introduce a work around for XPM files
914 with crappy color entries. Print out a nice friendly message on what's
915 gone wrong and how to resolve it properly.
917 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
919 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
920 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
922 (unique_color_string): use the correct string c-tor.
924 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
927 * ImageLoaderXPM.[Ch]: removed.
929 * GraphicsConverter.[Ch]:
930 * GraphicsImage.[Ch]:
931 * GraphicsImageXPM.[Ch]:
932 * GraphicsParams.[Ch]:
933 * GraphicsTypes.h: new files.
935 * All files. A total re-write of the graphics cache. The cache now
936 supports asynchronous file conversion and file loading. Images
937 can be cropped, rotated and scaled for display on the LyX screen.
938 The old LyXImage and ImageLoader have been combined in a new class
939 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
942 2002-02-07 Herbert Voss <voss@lyx.org>
944 * GraphicsCacheItem.C: use unzipFile() from support/filetools
946 2002-01-31 Herbert Voss <voss@lyx.org>
948 * GraphicsCacheItem.h: handle filetype without the file extension;
949 getting type from contents; handle zipped files
951 2002-01-27 Herbert Voss <voss@lyx.org>
953 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
955 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
957 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
959 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
961 * GraphicsCacheItem.h: do not include <config.h> in header files
963 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
965 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
966 transparent colour, then set it to the colour of the background.
967 Also take account of the monochrome, grayscale of color
970 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
972 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
973 are different. Thus, don't delete the "to" if it's the original!
975 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
977 * ImageLoadXPM.C: remove setting of alloc colour mask,
978 led to crash as we don't define a callback
980 2001-07-29 Baruch Even <baruch@lyx.org>
982 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
983 colors with closeness of 10000.
985 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
987 2001-07-29 Baruch Even <baruch@lyx.org>
989 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
992 2001-07-23 Baruch Even <baruch@lyx.org>
994 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
995 the image after conversion.
997 2001-07-17 Baruch Even <baruch@lyx.org>
999 * GraphicsCacheItem.h:
1000 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1001 from synchronous to asynchronous and to ease the coming changes.
1003 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1005 * ImageLoaderXPM.C (runImageLoader): get display information from
1008 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1011 * GraphicsCacheItem.C:
1013 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1015 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1017 * GraphicsCache.h: inherit privately from noncopyable
1018 * ImageLoader.h: ditto
1019 * GraphicsCacheItem.h: ditto
1021 2001-04-16 Allan Rae <rae@lyx.org>
1023 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1024 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1027 2001-04-02 Baruch Even <baruch@lyx.org>
1029 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1030 of hard coding ImageMagick.
1032 2001-03-10 Baruch Even <baruch@lyx.org>
1034 * GraphicsCache.C: Style change from (*it).field to it->field
1036 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1038 * GraphicsCache.h: noncopyable is in namespace boost
1039 * ImageLoader.h: ditto
1040 * GraphicsCacheItem.h: ditto
1042 2001-03-07 Baruch Even <baruch@lyx.org>
1044 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1045 was false and it's not needed anyhow since the shared_ptr's in the cache
1046 will destroy everything on exit.
1048 2001-02-28 Baruch Even <baruch@ev-en.org>
1051 * GraphicsCache.C: Changed the singleton pattern implementation, the
1052 former version "leaked" in the sense that it was not deallocated at
1055 2001-02-20 Baruch Even <baruch@ev-en.org>
1057 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1058 instead of a pure pointer.
1060 * GraphicsCacheItem.[Ch]:
1061 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1062 removed the reference counting that was inside. Also fixed a bug where
1063 a temporary file wouldn't get erased.
1065 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1066 Ownership is now dropped when the caller requests the image_ pointer.
1068 2001-02-20 Baruch Even <baruch@ev-en.org>
1070 * GraphicsCache.C: Cleared up the confusion on when and how it is
1073 * GraphicsCacheItem.C: Indentation change.
1075 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1076 figure correctly when the image has been loaded successfully.
1078 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1080 * ImageLoader.C: add a "using" directive.
1082 * ImageLoader.h: remove extra comma at the end of enum; add an
1083 std:: qualifier for vector.
1085 2001-01-21 Baruch Even <baruch@ev-en.org>
1087 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1088 height in the image itself and minor cleanups.
1090 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1091 new ImageLoader class instead of the older Renderer class. This
1092 means change of responsibilities.