1 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
4 * PreviewImage.h: add <string> and other small fixes to make
5 Lars' std::string patch compile with STLport.
7 2003-09-29 Angus Leeming <leeming@lyx.org>
9 * GraphicsParams.[Ch] (asString): removed. Replaced with
10 operator<<(std::ostream &, BoundingBox const &).
12 2003-09-25 Angus Leeming <leeming@lyx.org>
14 * GraphicsParams.[Ch] (asString): new member function.
16 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
18 * Previews.C (Previews): fix new bug
20 * GraphicsCache.C (Cache): fix new bug
22 2003-09-19 Angus Leeming <leeming@lyx.org>
24 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
25 a 'Buffer const &' argument.
27 2003-09-18 Angus Leeming <leeming@lyx.org>
29 * PreviewedInset.C (latexString): add a Buffer const & arg.
30 * PreviewedInset.C (addPreview): pass the buffer to latexString.
32 2003-09-16 Angus Leeming <leeming@lyx.org>
34 * PreviewedInset.[Ch] (c-tor) move out of line.
35 (d-tor): make private.
36 (inset): return a const reference rather than a non-const pointer.
38 2003-09-16 Angus Leeming <leeming@lyx.org>
40 * GraphicsImage.h: separate interface from implementation. Make all the
41 pure virtual functions private.
43 2003-09-16 Angus Leeming <leeming@lyx.org>
45 * PreviewLoader.C: add #include "LColor.h".
47 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
50 * PreviewLoader.C: remove usage of STRCONV
52 2003-09-14 Angus Leeming <leeming@lyx.org>
54 * PreviewLoader.C (remove): consider all InProgressProcesses when
55 ascertaining which ones to remove from the list, not every other one.
57 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
59 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
62 2003-09-08 Angus Leeming <leeming@lyx.org>
66 * PreviewLoader.C: remove redundant using directives.
68 2003-09-07 Angus Leeming <leeming@lyx.org>
71 * Previews.h: remove #include "support/std_string.h".
73 2003-09-06 Angus Leeming <leeming@lyx.org>
75 * PreviewedInset.C: add #include "insets/inset.h"
77 2003-09-05 Angus Leeming <leeming@lyx.org>
79 * *.C: strip out redundant #includes. (26 in total.)
81 2003-09-04 Angus Leeming <leeming@lyx.org>
83 * LoaderQueue.C (get):
85 2003-09-04 Angus Leeming <leeming@lyx.org>
88 * GraphicsCacheItem.C:
89 * GraphicsConverter.C:
93 * Previews.C: 'namespace support = lyx::support' rather than
96 * Previews.h: cleaned up some comments.
98 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
100 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
102 * GraphicsTypes.h: do not declare displayTranstor here (and remove
105 2003-07-27 José Matos <jamatos@fep.up.pt>
107 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
110 2003-07-21 Angus Leeming <leeming@lyx.org>
113 * GraphicsCacheItem.[Ch]:
116 * PreviewedInset.[Ch]:
117 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
119 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
121 * Change namespace grfx to lyx::graphics.
123 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
125 * introcude namespace lyx::support
127 2003-06-04 Angus Leeming <leeming@lyx.org>
129 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
130 (operator=): if it has a copy c-tor, it should have this too.
132 2003-06-03 Angus Leeming <leeming@lyx.org>
134 * GraphicsLoader.[Ch] (Loader): add copy constructor.
136 2003-05-23 Angus Leeming <leeming@lyx.org>
138 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
140 2003-05-22 Angus Leeming <leeming@lyx.org>
142 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
143 the inset::latex method.
145 2003-05-22 Angus Leeming <leeming@lyx.org>
147 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
148 the inset::latex method.
150 2003-05-22 Angus Leeming <leeming@lyx.org>
152 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
153 makeLaTeXFile is now encapsulated within runparams.
155 2003-05-22 Angus Leeming <leeming@lyx.org>
157 * PreviewLoader.C (dumpPreamble):
158 pass around a LatexRunParams parameter.
160 2003-05-13 André Pönitz <poenitz@gmx.net>
162 * GraphicsConverter.C:
163 * PreviewLoader.C: use tostr from own header
165 2003-05-12 André Pönitz <poenitz@gmx.net>
167 * PreviewLoader.C: boost::format -> bformat
169 2003-04-15 Angus Leeming <leeming@lyx.org>
171 * GraphicsConverter.C: #include lstrings.h.
173 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
175 * GraphicsConverter.C
176 * PreviewLoader.C: added #include "format.h"
178 2003-02-26 Angus Leeming <leeming@lyx.org>
180 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
181 use the cache of the parent inset instead.
183 * PreviewLoader.C (startLoading): Prevent a crash if the user is
184 not using a tmp directory.
186 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
188 * GraphicsLoader.[Ch],
190 * PreviewedInset.C: Removed unneeded list of owner insets
192 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
194 * GraphicsConverter (startConversion): add the call to
197 * GraphicsLoader.[Ch],
199 * PreviewedInset.C: Removed unneeded BufferView
201 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
203 * LoaderQueue.[Ch]: a simplification of the code, eliminated
204 the unneeded input bucket.
206 * GraphicsCacheItem.C (imageConverted): move warning inside the
209 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
211 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
213 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
215 * LoaderQueue.[Ch] (setPriority): added
217 * PreviewLoader.C (finishedGenerating): reversed the loading order so
218 first images get 'touched' last, and so load first.
220 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
222 * LoaderQueue.[Ch]: added. Implements a service queue that loads
224 * GraphicsSupport.[Ch]: removed
225 * Makefile.am: the changes above
226 * GraphicsLoader.C: use the loading queue
228 2003-01-21 Angus Leeming <leeming@lyx.org>
230 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
231 previews from being generated.
233 2003-01-13 Angus Leeming <leeming@lyx.org>
235 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
236 format to be PPM not XPM.
238 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
240 * Makefile.am (EXTRA_DIST): remove variable
242 2002-12-13 Angus Leeming <leeming@lyx.org>
244 * GraphicsImageXPM.[Ch]: removed.
246 * Makefile.am: associated change.
248 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
250 * several files: ws changes
252 2002-11-21 Angus Leeming <leeming@lyx.org>
254 * GraphicsConverter.C (build_script, move_file):
255 Don't use "if [ $? -ne 0 ]; then..."
257 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
259 * PreviewLoader.C (IncrementedFileName): STRCONV
260 (startLoading): ditto
262 * GraphicsConverter.C (Impl): STRCONV
265 * GraphicsTypes.C: include config.h
267 2002-10-25 Angus Leeming <leeming@lyx.org>
269 * GraphicsConverter.C (Impl::converted)
270 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
271 string as first arg, reflecting change in ForkedCall interface.
273 * PreviewLoader.C: use pid rather than command as identifier in
276 2002-10-18 Angus Leeming <leeming@lyx.org>
278 * GraphicsCacheItem.C (findTargetFormat): add debug message.
280 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
282 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
284 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
286 * GraphicsConverter.C (build_script): do not use ChangeExtension
290 2002-09-05 Angus Leeming <leeming@lyx.org>
292 * all files: modify the headers as discussed on the list.
294 2002-09-04 Angus Leeming <leeming@lyx.org>
296 * PreviewLoader.C (startLoading): pass the desired output format to the
299 2002-09-04 Angus Leeming <leeming@lyx.org>
301 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
303 2002-09-03 Angus Leeming <leeming@lyx.org>
305 * PreviewLoader.C: fix crash reported by Norbert Koksch when
306 generating more than 999 preview snippets. Use filenames with 5 digit
307 numbers, not 3, in the first instance, although more general code is
308 commented out. I don't suppose /anyone/ has 100000 formulae in one
311 2002-09-03 Angus Leeming <leeming@lyx.org>
313 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
315 2002-09-03 Angus Leeming <leeming@lyx.org>
317 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
319 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
321 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
322 convertDefault command with "sh ".
324 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
326 * GraphicsImage.C: small style fix to width/height setting.
328 * GraphicsTypes.h: have a displayTranslator here.
331 * GraphicsTypes.C: new file added for the setDisplayTranslator();
333 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
336 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
337 because this input has gone from the graphics dialog.
339 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
341 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
343 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
344 for support/smart_ptr.h, switch to boost smart ptr.
346 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
347 (~Data): let the smart_ptr handle cleanup
348 (reset): use nifty 3rd arg
350 (free_color_table): free the table manually
352 2002-08-09 Angus Leeming <leeming@lyx.org>
354 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
355 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
356 input@path is now set correctly.
358 2002-08-06 Angus Leeming <leeming@lyx.org>
360 * PreviewLoader.C: add support for preview.sty 0.73 (currently
361 #ifdef-ed out, awaiting the formal release).
363 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
364 the contents of a file that has changed.
366 2002-08-05 Angus Leeming <leeming@lyx.org>
368 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
369 to preview.sty. Works only for versions of preview.sty > 0.72b but
370 doesn't hurt earlier versions. Allows me to test the new parsing of
371 LyX-specific data from the generated log file.
373 2002-08-02 Angus Leeming <leeming@lyx.org>
375 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
377 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
378 (add): don't add empty snippets.
380 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
381 (view, setView): access to to the cache_.
383 2002-08-02 Angus Leeming <leeming@lyx.org>
385 * PreviewedInset.[Ch]: cache the LaTeX snippet.
387 2002-08-01 Angus Leeming <leeming@lyx.org>
389 * PreviewedInset.[Ch]: new files. An abstract base class that can help
390 insets to generate previews.
391 The daughter class must instantiate three small methods.
392 The Inset would own an instance of this daughter class and invoke it
393 as necessary. For example, mathd/formula.C gets previews at the cost
394 of 15 or so lines of code.
396 * Makefile.am: add PreviewedInset.[Ch].
398 * PreviewLoader.C (add): add debug message.
400 * Previews.C (generateBufferPreviews): remove if-block from loop.
402 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
404 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
406 (setAscentFractions): ditto
408 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
410 * PreviewLoader.C (setAscentFractions): modify because of strip
413 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
415 * GraphicsConverter.C (build_script): take a ostream as a more
416 general argument than ostringstream.
418 2002-07-22 Herbert Voss <voss@lyx.org>
420 * GraphicsConverter.C: get the "default converter" run again
422 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
424 * PreviewLoader.C: use BufferParams::getLyXTextClass
426 2002-07-21 Herbert Voss <voss@lyx.org>
428 * GraphicsImage.C: get the LyXAspectRatio run.
430 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
432 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
434 * PreviewLoader.C (startLoading): pass an interger as resolution
435 to the lyxpreview converter
437 * GraphicsParams.C: include <cstdlib>
439 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
441 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
442 preview converter script
444 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
446 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
449 2002-07-18 Angus Leeming <leeming@lyx.org>
451 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
453 (startMonitoring, monitoring, checksum): new methods to interact with
456 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
457 methods invoking the CacheItem methods of the same name.
458 (resetFile): if monitoring and the file changes, start monitoring this
461 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
463 * Makefile.am: remove FileMonitor.[Ch]
465 2002-06-17 Herbert Voss <voss@lyx.org>
467 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
468 for old ps-files (Garst). It's now handled by defining a converter and
469 disabling the ps-support of xforms.
471 2002-07-17 Angus Leeming <leeming@lyx.org>
473 Be true to the Pimpl idiom, moving all signals into the respective
474 Impl classes and defining methods to connect them to an outside slot.
475 Const-ify all visible class methods as they act only on a const pimpl_.
477 * GraphicsCache.[Ch] (add, remove): const-ify.
479 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
480 (statusChanged): move the signal into the Impl class.
481 (connect): new method, enabling a listener to connect to this signal.
483 * GraphicsConverter.[Ch]: (startConversion): const-ify.
484 (finishedConversion): move the signal into the Impl class.
485 (connect): new method, enabling a listener to connect to this signal.
487 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
488 (statusChanged): move the signal into the Impl class.
489 (connect): new method, enabling a listener to connect to this signal.
491 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
492 (imageReady): move the signal into the Impl class.
493 (connect): new method, enabling a listener to connect to this signal.
494 (emitSignal): new method, enabling PreviewImage to tell the outside
495 world that the file has been loaded into memory.
497 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
501 * GraphicsCacheItem.C:
502 * GraphicsConverter.[Ch]:
504 * GraphicsImageXPM.C:
506 * PreviewLoader.[Ch]: whitespace clean-up.
508 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
510 * PreviewLoader.C (setConverter): remove unused variable
512 * GraphicsImageXPM.C (isDrawable): implement
513 (setPixmap): the opaque color is black, not white
515 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
517 * GraphicsImageXPM.C (color_none_id):
518 (contains_color_none): use ascii_lowercase instead of lowercase
520 2002-07-16 Angus Leeming <leeming@lyx.org>
522 * PreviewLoader.C: greater use of STL algorithms.
524 * Previews.[Ch]: use const in more places.
525 (generateBufferPreviews): now takes a Buffer const & argument, not a
528 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
530 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
532 2002-07-12 Angus Leeming <leeming@lyx.org>
534 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
535 if visible 2 secs after the call to load them is first made.
537 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
538 BufferView to ascertain whether the inset is visible or not.
540 * Makefile.am: added GraphicsSupport.[Ch].
542 * PreviewImage.[Ch]: use this smart loader.
544 * PreviewLoader.C: don't load generated image files indiscimminantly.
545 Instead emit the imageReady signal and allow the image owner to decide.
547 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
549 * GraphicsCache.C: remove init_graphics()
551 2002-07-09 Angus Leeming <leeming@lyx.org>
553 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
554 arithmetic when it should be floating.
556 2002-07-09 Angus Leeming <leeming@lyx.org>
558 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
559 Output equation labels as "(#)" if lyxrc preference is set.
560 (setFontScalingFactor): use lyxrc variable preview_scale_factor
561 rather than hard-coding this.
563 2002-07-09 Angus Leeming <leeming@lyx.org>
565 * PreviewLoader.C: Further refactoring of the code. Should now be
568 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
569 past its sell-by date. The code to read the metrics file is now found
570 as a helper function in PreviewLoader.C.
572 * GraphicsImageXPM.C (scale): use boost::tie.
574 2002-07-08 Herbert Voss <voss@lyx.org>
576 * PreviewLoader.C: use of preview_size_factor to get the right
577 font-size! 0.9 is the default.
579 2002-07-08 Angus Leeming <leeming@lyx.org>
581 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
582 invocation of preview.sty.
583 Perform something of an internal clean-up.
585 2002-07-06 Angus Leeming <leeming@lyx.org>
587 * PreviewLoader.C: ensure that the metrics data is used by the
591 * PreviewImage.C: (Impl d-tor): remove all generated files that still
592 exist (perhaps because the process was curtailed before the images
595 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
597 2002-07-05 Angus Leeming <leeming@lyx.org>
606 * Previews.C: new files. The previewed LaTeX snippet stuff.
608 * Makefile.am: add these files.
610 2002-07-05 Angus Leeming <leeming@lyx.org>
612 * GraphicsLoader.h: whitespace.
614 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
616 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
617 boost::function from boost::signal.
619 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
621 * GraphicsConverter.C (convert): do not use ChangeExtension
622 because to_file_base may contain a dot.
624 2002-06-28 Angus Leeming <leeming@lyx.org>
626 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
627 by moving those SignalPtrs into the grfx::Image and grfx::Converter
628 classes where they really belong.
629 Use the Pimpl idiom to hide the class internals from public view.
631 * GraphicsTypes: remove the typedefs, leaving only the enums.
633 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
634 passed a reference to one in the load() method.
636 * GraphicsConverter.[Ch]: totally refactored. An instance of
637 grfx::Converter now represents a single conversion process.
638 Thus grfx::CachItem now has a grfx::Converter * that is set when the
639 conversion is initiated and destroyed on completion.
641 * GraphicsCache.[Ch]:
642 * GraphicsCacheItem.[Ch]:
643 * GraphicsConverter.[Ch]:
644 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
646 Note that I have done this only after making the above changes,
647 so not only should we have a clean, minimal and well documented
648 interface to these classes in the header files, but the class internals
649 should be much clearer too.
652 grfx::GCache -> grfx::Cache,
653 grfx::GCacheItem -> grfx::CacheItem,
654 grfx::GConverter -> grfx::Converter,
655 grfx::GImage -> grfx::Image,
656 grfx::GImageXPM -> grfx::ImageXPM,
657 grfx::GParams -> grfx::Params.
659 2002-06-26 Angus Leeming <leeming@lyx.org>
661 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
662 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
665 2002-06-26 Angus Leeming <leeming@lyx.org>
667 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
668 move the DisplayType enum out of grfx::GParams to here.
670 * GraphicsCacheItem.h: re-write preliminary description to reflect
673 * GraphicsParams.[Ch]:
674 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
675 grfx::DisplayType out of grfx::GParams.
677 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
678 that was in frontends/screen.C and insets/insetgraphics.C into a
679 single, easy-to-use class.
681 * Makefile.am: add these files.
683 2002-06-25 Angus Leeming <leeming@lyx.org>
685 * GraphicsCache.[Ch]:
686 * GraphicsCacheItem.[Ch]:
687 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
688 file into memory. The cache no longer controls the generation of the
689 pixmap. Instead, it just emits a signal when the loading status of an
691 The cache no longer stores InsetGraphics pointers and nor does it
692 assume responsibility for modifying an image (scaling, rotating etc).
693 Instead, that must now be performed elsewhere.
695 2002-06-19 Angus Leeming <leeming@lyx.org>
697 * GraphicsConverter.C: add using std::endl directive.
699 2002-06-17 Herbert Voss <voss@lyx.org>
701 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
702 default when nothing different was found
703 (convertToDisplayFormat): handle zipped files in the right way and
704 choose always convert as a default converter when no other
705 userdefined was found
707 * GraphicsConverter.C: add more lyxerr comments and choose
708 convert when no other userdefined converter was found
710 2002-06-10 Herbert Voss <voss@lyx.org>
712 * GraphicsImageXPM.C (convertTo7chars): get another special color
713 format from convert work in the right way
715 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
717 * GraphicsCache.C: use right colormap incantation
719 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
721 * GraphicsCache.C: use lyx_gui namespace
723 * GraphicsImageXPM.C: back down to using xforms
726 2002-06-07 Angus Leeming <leeming@lyx.org>
728 Fixes needed to compile with Compaq cxx 6.5.
729 * GraphicsConverter.h: forward declare class ConvProcess.
731 * GraphicsImageXPM.C:
732 all c-library variables have been moved into namespace std.
733 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
735 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
737 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
739 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
741 * GraphicsImageXPM.C: SigC to boot::signals changes.
742 (newImage): fix () bug when using new.
744 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
746 * switch from SigC signals to boost::signals.
748 2002-05-29 André Pönitz <poenitz@gmx.net>
750 * GraphicsParam.C: remove unneeded #include, move vomment
752 2002-05-28 André Pönitz <poenitz@gmx.net>
754 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
756 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
758 * GraphicsImageXPM.C: ColorHandler moved
760 2002-05-24 Juergen Vigna <jug@sad.it>
763 * GraphicsImage.h: include LString.h first.
765 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
767 * GraphicsCacheItem.h: use more specific smart_ptr header.
768 * GraphicsTypes.h: ditto
769 * GraphicsImage.h: ditto
770 * GraphicsConverter.h: ditto
772 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
774 * GraphicsImageXPM.C: understand convert's use of "opaque"
777 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
779 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
780 GImage::loadableFormats() that ensures that the signal is connected
781 to the derived class' method.
783 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
785 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
786 only work on the string.
788 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
790 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
791 the simple image loader when it encounters colour strings like
794 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
796 * GraphicsCacheItem.C (convertToDisplayFormat):
797 * GraphicsConverter.C (build_script): remove the Alerts when things go
798 wrong as the inset displays the message anyway. Moreover, Alert seems
799 pretty temperamemtal at the moment.
801 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
803 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
805 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
807 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
808 a reference to a temp object that's going out of scope...
810 2002-04-09 Herbert Voss <voss@lyx.org>
812 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
813 LyXLength::inBP instead of inPixels.
815 2002-04-10 Herbert Voss <voss@perce.de>
817 * GraphicsCache.[Ch]:
818 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
819 to read the "Bounding Box" from non (e)ps files.
821 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
823 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
824 the EPS file too, to ensure that the clipped Bounding Box is relative
825 to the original. (From Herbert.)
827 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
829 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
830 variables are initialised. Clean-up parsing of the string (with thanks
833 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
835 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
836 if the file can't be found.
838 * GraphicsParams.h (c-tor): remove string() as default argument.
840 * GraphicsCacheItem.C: a couple of changes as a result.
842 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
844 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
845 path to graphics file.
847 * GraphicsParams.[Ch] (c-tor): now passed filepath.
849 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
851 * most files: ws cleanup
853 * Makefile.am: remove ld -r stuff
855 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
857 * Makefile.am: special rules if partial linking
859 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
861 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
863 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
865 * GraphicsConverter.[Ch] (converted): make first arg const ref.
867 * GraphicsCacheItem.h: doxy change
869 * GraphicsCacheItem.C: ws change
871 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
873 * Makefile.am: if there is no image loading class leveraging the power
874 of the appropriate gui library, then compile the basic alternative
875 found in GraphicsImageXPM.[Ch].
877 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
879 * GraphicsCache.C: change associated with move of initialiseGraphics
882 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
884 * GraphicsParams.[Ch]:
886 * GraphicsImageXPM.C: properly resolve more warnings about comparison
887 between signed and unsigned integer expressions.
889 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
891 * GraphicsCache.C: move connections to the GImage-derived classes to
894 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
896 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
897 conversion, then do that.
899 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
901 * GraphicsCache.C: improve commentary to graphicsInit and where it
904 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
905 that became a memory leak properly. (Let the shared_c_ptr free the
907 (reset, mapcolor): tidy up and introduce a work around for XPM files
908 with crappy color entries. Print out a nice friendly message on what's
909 gone wrong and how to resolve it properly.
911 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
913 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
914 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
916 (unique_color_string): use the correct string c-tor.
918 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
921 * ImageLoaderXPM.[Ch]: removed.
923 * GraphicsConverter.[Ch]:
924 * GraphicsImage.[Ch]:
925 * GraphicsImageXPM.[Ch]:
926 * GraphicsParams.[Ch]:
927 * GraphicsTypes.h: new files.
929 * All files. A total re-write of the graphics cache. The cache now
930 supports asynchronous file conversion and file loading. Images
931 can be cropped, rotated and scaled for display on the LyX screen.
932 The old LyXImage and ImageLoader have been combined in a new class
933 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
936 2002-02-07 Herbert Voss <voss@lyx.org>
938 * GraphicsCacheItem.C: use unzipFile() from support/filetools
940 2002-01-31 Herbert Voss <voss@lyx.org>
942 * GraphicsCacheItem.h: handle filetype without the file extension;
943 getting type from contents; handle zipped files
945 2002-01-27 Herbert Voss <voss@lyx.org>
947 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
949 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
951 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
953 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
955 * GraphicsCacheItem.h: do not include <config.h> in header files
957 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
959 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
960 transparent colour, then set it to the colour of the background.
961 Also take account of the monochrome, grayscale of color
964 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
966 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
967 are different. Thus, don't delete the "to" if it's the original!
969 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
971 * ImageLoadXPM.C: remove setting of alloc colour mask,
972 led to crash as we don't define a callback
974 2001-07-29 Baruch Even <baruch@lyx.org>
976 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
977 colors with closeness of 10000.
979 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
981 2001-07-29 Baruch Even <baruch@lyx.org>
983 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
986 2001-07-23 Baruch Even <baruch@lyx.org>
988 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
989 the image after conversion.
991 2001-07-17 Baruch Even <baruch@lyx.org>
993 * GraphicsCacheItem.h:
994 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
995 from synchronous to asynchronous and to ease the coming changes.
997 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
999 * ImageLoaderXPM.C (runImageLoader): get display information from
1002 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1005 * GraphicsCacheItem.C:
1007 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1009 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1011 * GraphicsCache.h: inherit privately from noncopyable
1012 * ImageLoader.h: ditto
1013 * GraphicsCacheItem.h: ditto
1015 2001-04-16 Allan Rae <rae@lyx.org>
1017 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1018 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1021 2001-04-02 Baruch Even <baruch@lyx.org>
1023 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1024 of hard coding ImageMagick.
1026 2001-03-10 Baruch Even <baruch@lyx.org>
1028 * GraphicsCache.C: Style change from (*it).field to it->field
1030 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1032 * GraphicsCache.h: noncopyable is in namespace boost
1033 * ImageLoader.h: ditto
1034 * GraphicsCacheItem.h: ditto
1036 2001-03-07 Baruch Even <baruch@lyx.org>
1038 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1039 was false and it's not needed anyhow since the shared_ptr's in the cache
1040 will destroy everything on exit.
1042 2001-02-28 Baruch Even <baruch@ev-en.org>
1045 * GraphicsCache.C: Changed the singleton pattern implementation, the
1046 former version "leaked" in the sense that it was not deallocated at
1049 2001-02-20 Baruch Even <baruch@ev-en.org>
1051 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1052 instead of a pure pointer.
1054 * GraphicsCacheItem.[Ch]:
1055 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1056 removed the reference counting that was inside. Also fixed a bug where
1057 a temporary file wouldn't get erased.
1059 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1060 Ownership is now dropped when the caller requests the image_ pointer.
1062 2001-02-20 Baruch Even <baruch@ev-en.org>
1064 * GraphicsCache.C: Cleared up the confusion on when and how it is
1067 * GraphicsCacheItem.C: Indentation change.
1069 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1070 figure correctly when the image has been loaded successfully.
1072 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1074 * ImageLoader.C: add a "using" directive.
1076 * ImageLoader.h: remove extra comma at the end of enum; add an
1077 std:: qualifier for vector.
1079 2001-01-21 Baruch Even <baruch@ev-en.org>
1081 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1082 height in the image itself and minor cleanups.
1084 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1085 new ImageLoader class instead of the older Renderer class. This
1086 means change of responsibilities.