1 2003-09-16 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C: add #include "LColor.h".
5 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
8 * PreviewLoader.C: remove usage of STRCONV
10 2003-09-14 Angus Leeming <leeming@lyx.org>
12 * PreviewLoader.C (remove): consider all InProgressProcesses when
13 ascertaining which ones to remove from the list, not every other one.
15 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
17 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
20 2003-09-08 Angus Leeming <leeming@lyx.org>
24 * PreviewLoader.C: remove redundant using directives.
26 2003-09-07 Angus Leeming <leeming@lyx.org>
29 * Previews.h: remove #include "support/std_string.h".
31 2003-09-06 Angus Leeming <leeming@lyx.org>
33 * PreviewedInset.C: add #include "insets/inset.h"
35 2003-09-05 Angus Leeming <leeming@lyx.org>
37 * *.C: strip out redundant #includes. (26 in total.)
39 2003-09-04 Angus Leeming <leeming@lyx.org>
41 * LoaderQueue.C (get):
43 2003-09-04 Angus Leeming <leeming@lyx.org>
46 * GraphicsCacheItem.C:
47 * GraphicsConverter.C:
51 * Previews.C: 'namespace support = lyx::support' rather than
54 * Previews.h: cleaned up some comments.
56 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
58 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
60 * GraphicsTypes.h: do not declare displayTranstor here (and remove
63 2003-07-27 José Matos <jamatos@fep.up.pt>
65 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
68 2003-07-21 Angus Leeming <leeming@lyx.org>
71 * GraphicsCacheItem.[Ch]:
74 * PreviewedInset.[Ch]:
75 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
77 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
79 * Change namespace grfx to lyx::graphics.
81 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
83 * introcude namespace lyx::support
85 2003-06-04 Angus Leeming <leeming@lyx.org>
87 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
88 (operator=): if it has a copy c-tor, it should have this too.
90 2003-06-03 Angus Leeming <leeming@lyx.org>
92 * GraphicsLoader.[Ch] (Loader): add copy constructor.
94 2003-05-23 Angus Leeming <leeming@lyx.org>
96 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
98 2003-05-22 Angus Leeming <leeming@lyx.org>
100 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
101 the inset::latex method.
103 2003-05-22 Angus Leeming <leeming@lyx.org>
105 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
106 the inset::latex method.
108 2003-05-22 Angus Leeming <leeming@lyx.org>
110 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
111 makeLaTeXFile is now encapsulated within runparams.
113 2003-05-22 Angus Leeming <leeming@lyx.org>
115 * PreviewLoader.C (dumpPreamble):
116 pass around a LatexRunParams parameter.
118 2003-05-13 André Pönitz <poenitz@gmx.net>
120 * GraphicsConverter.C:
121 * PreviewLoader.C: use tostr from own header
123 2003-05-12 André Pönitz <poenitz@gmx.net>
125 * PreviewLoader.C: boost::format -> bformat
127 2003-04-15 Angus Leeming <leeming@lyx.org>
129 * GraphicsConverter.C: #include lstrings.h.
131 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
133 * GraphicsConverter.C
134 * PreviewLoader.C: added #include "format.h"
136 2003-02-26 Angus Leeming <leeming@lyx.org>
138 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
139 use the cache of the parent inset instead.
141 * PreviewLoader.C (startLoading): Prevent a crash if the user is
142 not using a tmp directory.
144 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
146 * GraphicsLoader.[Ch],
148 * PreviewedInset.C: Removed unneeded list of owner insets
150 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
152 * GraphicsConverter (startConversion): add the call to
155 * GraphicsLoader.[Ch],
157 * PreviewedInset.C: Removed unneeded BufferView
159 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
161 * LoaderQueue.[Ch]: a simplification of the code, eliminated
162 the unneeded input bucket.
164 * GraphicsCacheItem.C (imageConverted): move warning inside the
167 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
169 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
171 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
173 * LoaderQueue.[Ch] (setPriority): added
175 * PreviewLoader.C (finishedGenerating): reversed the loading order so
176 first images get 'touched' last, and so load first.
178 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
180 * LoaderQueue.[Ch]: added. Implements a service queue that loads
182 * GraphicsSupport.[Ch]: removed
183 * Makefile.am: the changes above
184 * GraphicsLoader.C: use the loading queue
186 2003-01-21 Angus Leeming <leeming@lyx.org>
188 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
189 previews from being generated.
191 2003-01-13 Angus Leeming <leeming@lyx.org>
193 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
194 format to be PPM not XPM.
196 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
198 * Makefile.am (EXTRA_DIST): remove variable
200 2002-12-13 Angus Leeming <leeming@lyx.org>
202 * GraphicsImageXPM.[Ch]: removed.
204 * Makefile.am: associated change.
206 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
208 * several files: ws changes
210 2002-11-21 Angus Leeming <leeming@lyx.org>
212 * GraphicsConverter.C (build_script, move_file):
213 Don't use "if [ $? -ne 0 ]; then..."
215 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
217 * PreviewLoader.C (IncrementedFileName): STRCONV
218 (startLoading): ditto
220 * GraphicsConverter.C (Impl): STRCONV
223 * GraphicsTypes.C: include config.h
225 2002-10-25 Angus Leeming <leeming@lyx.org>
227 * GraphicsConverter.C (Impl::converted)
228 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
229 string as first arg, reflecting change in ForkedCall interface.
231 * PreviewLoader.C: use pid rather than command as identifier in
234 2002-10-18 Angus Leeming <leeming@lyx.org>
236 * GraphicsCacheItem.C (findTargetFormat): add debug message.
238 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
240 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
242 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
244 * GraphicsConverter.C (build_script): do not use ChangeExtension
248 2002-09-05 Angus Leeming <leeming@lyx.org>
250 * all files: modify the headers as discussed on the list.
252 2002-09-04 Angus Leeming <leeming@lyx.org>
254 * PreviewLoader.C (startLoading): pass the desired output format to the
257 2002-09-04 Angus Leeming <leeming@lyx.org>
259 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
261 2002-09-03 Angus Leeming <leeming@lyx.org>
263 * PreviewLoader.C: fix crash reported by Norbert Koksch when
264 generating more than 999 preview snippets. Use filenames with 5 digit
265 numbers, not 3, in the first instance, although more general code is
266 commented out. I don't suppose /anyone/ has 100000 formulae in one
269 2002-09-03 Angus Leeming <leeming@lyx.org>
271 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
273 2002-09-03 Angus Leeming <leeming@lyx.org>
275 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
277 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
279 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
280 convertDefault command with "sh ".
282 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
284 * GraphicsImage.C: small style fix to width/height setting.
286 * GraphicsTypes.h: have a displayTranslator here.
289 * GraphicsTypes.C: new file added for the setDisplayTranslator();
291 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
294 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
295 because this input has gone from the graphics dialog.
297 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
299 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
301 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
302 for support/smart_ptr.h, switch to boost smart ptr.
304 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
305 (~Data): let the smart_ptr handle cleanup
306 (reset): use nifty 3rd arg
308 (free_color_table): free the table manually
310 2002-08-09 Angus Leeming <leeming@lyx.org>
312 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
313 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
314 input@path is now set correctly.
316 2002-08-06 Angus Leeming <leeming@lyx.org>
318 * PreviewLoader.C: add support for preview.sty 0.73 (currently
319 #ifdef-ed out, awaiting the formal release).
321 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
322 the contents of a file that has changed.
324 2002-08-05 Angus Leeming <leeming@lyx.org>
326 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
327 to preview.sty. Works only for versions of preview.sty > 0.72b but
328 doesn't hurt earlier versions. Allows me to test the new parsing of
329 LyX-specific data from the generated log file.
331 2002-08-02 Angus Leeming <leeming@lyx.org>
333 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
335 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
336 (add): don't add empty snippets.
338 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
339 (view, setView): access to to the cache_.
341 2002-08-02 Angus Leeming <leeming@lyx.org>
343 * PreviewedInset.[Ch]: cache the LaTeX snippet.
345 2002-08-01 Angus Leeming <leeming@lyx.org>
347 * PreviewedInset.[Ch]: new files. An abstract base class that can help
348 insets to generate previews.
349 The daughter class must instantiate three small methods.
350 The Inset would own an instance of this daughter class and invoke it
351 as necessary. For example, mathd/formula.C gets previews at the cost
352 of 15 or so lines of code.
354 * Makefile.am: add PreviewedInset.[Ch].
356 * PreviewLoader.C (add): add debug message.
358 * Previews.C (generateBufferPreviews): remove if-block from loop.
360 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
362 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
364 (setAscentFractions): ditto
366 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
368 * PreviewLoader.C (setAscentFractions): modify because of strip
371 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
373 * GraphicsConverter.C (build_script): take a ostream as a more
374 general argument than ostringstream.
376 2002-07-22 Herbert Voss <voss@lyx.org>
378 * GraphicsConverter.C: get the "default converter" run again
380 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
382 * PreviewLoader.C: use BufferParams::getLyXTextClass
384 2002-07-21 Herbert Voss <voss@lyx.org>
386 * GraphicsImage.C: get the LyXAspectRatio run.
388 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
390 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
392 * PreviewLoader.C (startLoading): pass an interger as resolution
393 to the lyxpreview converter
395 * GraphicsParams.C: include <cstdlib>
397 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
399 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
400 preview converter script
402 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
404 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
407 2002-07-18 Angus Leeming <leeming@lyx.org>
409 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
411 (startMonitoring, monitoring, checksum): new methods to interact with
414 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
415 methods invoking the CacheItem methods of the same name.
416 (resetFile): if monitoring and the file changes, start monitoring this
419 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
421 * Makefile.am: remove FileMonitor.[Ch]
423 2002-06-17 Herbert Voss <voss@lyx.org>
425 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
426 for old ps-files (Garst). It's now handled by defining a converter and
427 disabling the ps-support of xforms.
429 2002-07-17 Angus Leeming <leeming@lyx.org>
431 Be true to the Pimpl idiom, moving all signals into the respective
432 Impl classes and defining methods to connect them to an outside slot.
433 Const-ify all visible class methods as they act only on a const pimpl_.
435 * GraphicsCache.[Ch] (add, remove): const-ify.
437 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
438 (statusChanged): move the signal into the Impl class.
439 (connect): new method, enabling a listener to connect to this signal.
441 * GraphicsConverter.[Ch]: (startConversion): const-ify.
442 (finishedConversion): move the signal into the Impl class.
443 (connect): new method, enabling a listener to connect to this signal.
445 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
446 (statusChanged): move the signal into the Impl class.
447 (connect): new method, enabling a listener to connect to this signal.
449 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
450 (imageReady): move the signal into the Impl class.
451 (connect): new method, enabling a listener to connect to this signal.
452 (emitSignal): new method, enabling PreviewImage to tell the outside
453 world that the file has been loaded into memory.
455 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
459 * GraphicsCacheItem.C:
460 * GraphicsConverter.[Ch]:
462 * GraphicsImageXPM.C:
464 * PreviewLoader.[Ch]: whitespace clean-up.
466 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
468 * PreviewLoader.C (setConverter): remove unused variable
470 * GraphicsImageXPM.C (isDrawable): implement
471 (setPixmap): the opaque color is black, not white
473 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
475 * GraphicsImageXPM.C (color_none_id):
476 (contains_color_none): use ascii_lowercase instead of lowercase
478 2002-07-16 Angus Leeming <leeming@lyx.org>
480 * PreviewLoader.C: greater use of STL algorithms.
482 * Previews.[Ch]: use const in more places.
483 (generateBufferPreviews): now takes a Buffer const & argument, not a
486 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
488 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
490 2002-07-12 Angus Leeming <leeming@lyx.org>
492 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
493 if visible 2 secs after the call to load them is first made.
495 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
496 BufferView to ascertain whether the inset is visible or not.
498 * Makefile.am: added GraphicsSupport.[Ch].
500 * PreviewImage.[Ch]: use this smart loader.
502 * PreviewLoader.C: don't load generated image files indiscimminantly.
503 Instead emit the imageReady signal and allow the image owner to decide.
505 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
507 * GraphicsCache.C: remove init_graphics()
509 2002-07-09 Angus Leeming <leeming@lyx.org>
511 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
512 arithmetic when it should be floating.
514 2002-07-09 Angus Leeming <leeming@lyx.org>
516 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
517 Output equation labels as "(#)" if lyxrc preference is set.
518 (setFontScalingFactor): use lyxrc variable preview_scale_factor
519 rather than hard-coding this.
521 2002-07-09 Angus Leeming <leeming@lyx.org>
523 * PreviewLoader.C: Further refactoring of the code. Should now be
526 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
527 past its sell-by date. The code to read the metrics file is now found
528 as a helper function in PreviewLoader.C.
530 * GraphicsImageXPM.C (scale): use boost::tie.
532 2002-07-08 Herbert Voss <voss@lyx.org>
534 * PreviewLoader.C: use of preview_size_factor to get the right
535 font-size! 0.9 is the default.
537 2002-07-08 Angus Leeming <leeming@lyx.org>
539 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
540 invocation of preview.sty.
541 Perform something of an internal clean-up.
543 2002-07-06 Angus Leeming <leeming@lyx.org>
545 * PreviewLoader.C: ensure that the metrics data is used by the
549 * PreviewImage.C: (Impl d-tor): remove all generated files that still
550 exist (perhaps because the process was curtailed before the images
553 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
555 2002-07-05 Angus Leeming <leeming@lyx.org>
564 * Previews.C: new files. The previewed LaTeX snippet stuff.
566 * Makefile.am: add these files.
568 2002-07-05 Angus Leeming <leeming@lyx.org>
570 * GraphicsLoader.h: whitespace.
572 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
574 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
575 boost::function from boost::signal.
577 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
579 * GraphicsConverter.C (convert): do not use ChangeExtension
580 because to_file_base may contain a dot.
582 2002-06-28 Angus Leeming <leeming@lyx.org>
584 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
585 by moving those SignalPtrs into the grfx::Image and grfx::Converter
586 classes where they really belong.
587 Use the Pimpl idiom to hide the class internals from public view.
589 * GraphicsTypes: remove the typedefs, leaving only the enums.
591 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
592 passed a reference to one in the load() method.
594 * GraphicsConverter.[Ch]: totally refactored. An instance of
595 grfx::Converter now represents a single conversion process.
596 Thus grfx::CachItem now has a grfx::Converter * that is set when the
597 conversion is initiated and destroyed on completion.
599 * GraphicsCache.[Ch]:
600 * GraphicsCacheItem.[Ch]:
601 * GraphicsConverter.[Ch]:
602 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
604 Note that I have done this only after making the above changes,
605 so not only should we have a clean, minimal and well documented
606 interface to these classes in the header files, but the class internals
607 should be much clearer too.
610 grfx::GCache -> grfx::Cache,
611 grfx::GCacheItem -> grfx::CacheItem,
612 grfx::GConverter -> grfx::Converter,
613 grfx::GImage -> grfx::Image,
614 grfx::GImageXPM -> grfx::ImageXPM,
615 grfx::GParams -> grfx::Params.
617 2002-06-26 Angus Leeming <leeming@lyx.org>
619 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
620 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
623 2002-06-26 Angus Leeming <leeming@lyx.org>
625 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
626 move the DisplayType enum out of grfx::GParams to here.
628 * GraphicsCacheItem.h: re-write preliminary description to reflect
631 * GraphicsParams.[Ch]:
632 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
633 grfx::DisplayType out of grfx::GParams.
635 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
636 that was in frontends/screen.C and insets/insetgraphics.C into a
637 single, easy-to-use class.
639 * Makefile.am: add these files.
641 2002-06-25 Angus Leeming <leeming@lyx.org>
643 * GraphicsCache.[Ch]:
644 * GraphicsCacheItem.[Ch]:
645 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
646 file into memory. The cache no longer controls the generation of the
647 pixmap. Instead, it just emits a signal when the loading status of an
649 The cache no longer stores InsetGraphics pointers and nor does it
650 assume responsibility for modifying an image (scaling, rotating etc).
651 Instead, that must now be performed elsewhere.
653 2002-06-19 Angus Leeming <leeming@lyx.org>
655 * GraphicsConverter.C: add using std::endl directive.
657 2002-06-17 Herbert Voss <voss@lyx.org>
659 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
660 default when nothing different was found
661 (convertToDisplayFormat): handle zipped files in the right way and
662 choose always convert as a default converter when no other
663 userdefined was found
665 * GraphicsConverter.C: add more lyxerr comments and choose
666 convert when no other userdefined converter was found
668 2002-06-10 Herbert Voss <voss@lyx.org>
670 * GraphicsImageXPM.C (convertTo7chars): get another special color
671 format from convert work in the right way
673 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
675 * GraphicsCache.C: use right colormap incantation
677 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
679 * GraphicsCache.C: use lyx_gui namespace
681 * GraphicsImageXPM.C: back down to using xforms
684 2002-06-07 Angus Leeming <leeming@lyx.org>
686 Fixes needed to compile with Compaq cxx 6.5.
687 * GraphicsConverter.h: forward declare class ConvProcess.
689 * GraphicsImageXPM.C:
690 all c-library variables have been moved into namespace std.
691 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
693 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
695 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
697 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
699 * GraphicsImageXPM.C: SigC to boot::signals changes.
700 (newImage): fix () bug when using new.
702 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
704 * switch from SigC signals to boost::signals.
706 2002-05-29 André Pönitz <poenitz@gmx.net>
708 * GraphicsParam.C: remove unneeded #include, move vomment
710 2002-05-28 André Pönitz <poenitz@gmx.net>
712 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
714 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
716 * GraphicsImageXPM.C: ColorHandler moved
718 2002-05-24 Juergen Vigna <jug@sad.it>
721 * GraphicsImage.h: include LString.h first.
723 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
725 * GraphicsCacheItem.h: use more specific smart_ptr header.
726 * GraphicsTypes.h: ditto
727 * GraphicsImage.h: ditto
728 * GraphicsConverter.h: ditto
730 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
732 * GraphicsImageXPM.C: understand convert's use of "opaque"
735 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
737 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
738 GImage::loadableFormats() that ensures that the signal is connected
739 to the derived class' method.
741 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
743 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
744 only work on the string.
746 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
748 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
749 the simple image loader when it encounters colour strings like
752 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
754 * GraphicsCacheItem.C (convertToDisplayFormat):
755 * GraphicsConverter.C (build_script): remove the Alerts when things go
756 wrong as the inset displays the message anyway. Moreover, Alert seems
757 pretty temperamemtal at the moment.
759 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
761 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
763 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
765 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
766 a reference to a temp object that's going out of scope...
768 2002-04-09 Herbert Voss <voss@lyx.org>
770 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
771 LyXLength::inBP instead of inPixels.
773 2002-04-10 Herbert Voss <voss@perce.de>
775 * GraphicsCache.[Ch]:
776 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
777 to read the "Bounding Box" from non (e)ps files.
779 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
781 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
782 the EPS file too, to ensure that the clipped Bounding Box is relative
783 to the original. (From Herbert.)
785 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
787 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
788 variables are initialised. Clean-up parsing of the string (with thanks
791 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
793 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
794 if the file can't be found.
796 * GraphicsParams.h (c-tor): remove string() as default argument.
798 * GraphicsCacheItem.C: a couple of changes as a result.
800 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
802 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
803 path to graphics file.
805 * GraphicsParams.[Ch] (c-tor): now passed filepath.
807 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
809 * most files: ws cleanup
811 * Makefile.am: remove ld -r stuff
813 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
815 * Makefile.am: special rules if partial linking
817 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
819 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
821 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
823 * GraphicsConverter.[Ch] (converted): make first arg const ref.
825 * GraphicsCacheItem.h: doxy change
827 * GraphicsCacheItem.C: ws change
829 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
831 * Makefile.am: if there is no image loading class leveraging the power
832 of the appropriate gui library, then compile the basic alternative
833 found in GraphicsImageXPM.[Ch].
835 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
837 * GraphicsCache.C: change associated with move of initialiseGraphics
840 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
842 * GraphicsParams.[Ch]:
844 * GraphicsImageXPM.C: properly resolve more warnings about comparison
845 between signed and unsigned integer expressions.
847 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
849 * GraphicsCache.C: move connections to the GImage-derived classes to
852 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
854 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
855 conversion, then do that.
857 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
859 * GraphicsCache.C: improve commentary to graphicsInit and where it
862 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
863 that became a memory leak properly. (Let the shared_c_ptr free the
865 (reset, mapcolor): tidy up and introduce a work around for XPM files
866 with crappy color entries. Print out a nice friendly message on what's
867 gone wrong and how to resolve it properly.
869 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
871 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
872 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
874 (unique_color_string): use the correct string c-tor.
876 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
879 * ImageLoaderXPM.[Ch]: removed.
881 * GraphicsConverter.[Ch]:
882 * GraphicsImage.[Ch]:
883 * GraphicsImageXPM.[Ch]:
884 * GraphicsParams.[Ch]:
885 * GraphicsTypes.h: new files.
887 * All files. A total re-write of the graphics cache. The cache now
888 supports asynchronous file conversion and file loading. Images
889 can be cropped, rotated and scaled for display on the LyX screen.
890 The old LyXImage and ImageLoader have been combined in a new class
891 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
894 2002-02-07 Herbert Voss <voss@lyx.org>
896 * GraphicsCacheItem.C: use unzipFile() from support/filetools
898 2002-01-31 Herbert Voss <voss@lyx.org>
900 * GraphicsCacheItem.h: handle filetype without the file extension;
901 getting type from contents; handle zipped files
903 2002-01-27 Herbert Voss <voss@lyx.org>
905 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
907 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
909 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
911 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
913 * GraphicsCacheItem.h: do not include <config.h> in header files
915 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
917 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
918 transparent colour, then set it to the colour of the background.
919 Also take account of the monochrome, grayscale of color
922 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
924 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
925 are different. Thus, don't delete the "to" if it's the original!
927 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
929 * ImageLoadXPM.C: remove setting of alloc colour mask,
930 led to crash as we don't define a callback
932 2001-07-29 Baruch Even <baruch@lyx.org>
934 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
935 colors with closeness of 10000.
937 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
939 2001-07-29 Baruch Even <baruch@lyx.org>
941 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
944 2001-07-23 Baruch Even <baruch@lyx.org>
946 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
947 the image after conversion.
949 2001-07-17 Baruch Even <baruch@lyx.org>
951 * GraphicsCacheItem.h:
952 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
953 from synchronous to asynchronous and to ease the coming changes.
955 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
957 * ImageLoaderXPM.C (runImageLoader): get display information from
960 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
963 * GraphicsCacheItem.C:
965 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
967 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
969 * GraphicsCache.h: inherit privately from noncopyable
970 * ImageLoader.h: ditto
971 * GraphicsCacheItem.h: ditto
973 2001-04-16 Allan Rae <rae@lyx.org>
975 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
976 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
979 2001-04-02 Baruch Even <baruch@lyx.org>
981 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
982 of hard coding ImageMagick.
984 2001-03-10 Baruch Even <baruch@lyx.org>
986 * GraphicsCache.C: Style change from (*it).field to it->field
988 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
990 * GraphicsCache.h: noncopyable is in namespace boost
991 * ImageLoader.h: ditto
992 * GraphicsCacheItem.h: ditto
994 2001-03-07 Baruch Even <baruch@lyx.org>
996 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
997 was false and it's not needed anyhow since the shared_ptr's in the cache
998 will destroy everything on exit.
1000 2001-02-28 Baruch Even <baruch@ev-en.org>
1003 * GraphicsCache.C: Changed the singleton pattern implementation, the
1004 former version "leaked" in the sense that it was not deallocated at
1007 2001-02-20 Baruch Even <baruch@ev-en.org>
1009 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1010 instead of a pure pointer.
1012 * GraphicsCacheItem.[Ch]:
1013 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1014 removed the reference counting that was inside. Also fixed a bug where
1015 a temporary file wouldn't get erased.
1017 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1018 Ownership is now dropped when the caller requests the image_ pointer.
1020 2001-02-20 Baruch Even <baruch@ev-en.org>
1022 * GraphicsCache.C: Cleared up the confusion on when and how it is
1025 * GraphicsCacheItem.C: Indentation change.
1027 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1028 figure correctly when the image has been loaded successfully.
1030 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1032 * ImageLoader.C: add a "using" directive.
1034 * ImageLoader.h: remove extra comma at the end of enum; add an
1035 std:: qualifier for vector.
1037 2001-01-21 Baruch Even <baruch@ev-en.org>
1039 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1040 height in the image itself and minor cleanups.
1042 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1043 new ImageLoader class instead of the older Renderer class. This
1044 means change of responsibilities.