1 2003-09-16 Angus Leeming <leeming@lyx.org>
3 * PreviewedInset.[Ch] (c-tor) move out of line.
5 (inset): return a const reference rather than a non-const pointer.
7 2003-09-16 Angus Leeming <leeming@lyx.org>
9 * GraphicsImage.h: separate interface from implementation. Make all the
10 pure virtual functions private.
12 2003-09-16 Angus Leeming <leeming@lyx.org>
14 * PreviewLoader.C: add #include "LColor.h".
16 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
19 * PreviewLoader.C: remove usage of STRCONV
21 2003-09-14 Angus Leeming <leeming@lyx.org>
23 * PreviewLoader.C (remove): consider all InProgressProcesses when
24 ascertaining which ones to remove from the list, not every other one.
26 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
28 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
31 2003-09-08 Angus Leeming <leeming@lyx.org>
35 * PreviewLoader.C: remove redundant using directives.
37 2003-09-07 Angus Leeming <leeming@lyx.org>
40 * Previews.h: remove #include "support/std_string.h".
42 2003-09-06 Angus Leeming <leeming@lyx.org>
44 * PreviewedInset.C: add #include "insets/inset.h"
46 2003-09-05 Angus Leeming <leeming@lyx.org>
48 * *.C: strip out redundant #includes. (26 in total.)
50 2003-09-04 Angus Leeming <leeming@lyx.org>
52 * LoaderQueue.C (get):
54 2003-09-04 Angus Leeming <leeming@lyx.org>
57 * GraphicsCacheItem.C:
58 * GraphicsConverter.C:
62 * Previews.C: 'namespace support = lyx::support' rather than
65 * Previews.h: cleaned up some comments.
67 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
69 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
71 * GraphicsTypes.h: do not declare displayTranstor here (and remove
74 2003-07-27 José Matos <jamatos@fep.up.pt>
76 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
79 2003-07-21 Angus Leeming <leeming@lyx.org>
82 * GraphicsCacheItem.[Ch]:
85 * PreviewedInset.[Ch]:
86 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
88 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
90 * Change namespace grfx to lyx::graphics.
92 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
94 * introcude namespace lyx::support
96 2003-06-04 Angus Leeming <leeming@lyx.org>
98 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
99 (operator=): if it has a copy c-tor, it should have this too.
101 2003-06-03 Angus Leeming <leeming@lyx.org>
103 * GraphicsLoader.[Ch] (Loader): add copy constructor.
105 2003-05-23 Angus Leeming <leeming@lyx.org>
107 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
109 2003-05-22 Angus Leeming <leeming@lyx.org>
111 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
112 the inset::latex method.
114 2003-05-22 Angus Leeming <leeming@lyx.org>
116 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
117 the inset::latex method.
119 2003-05-22 Angus Leeming <leeming@lyx.org>
121 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
122 makeLaTeXFile is now encapsulated within runparams.
124 2003-05-22 Angus Leeming <leeming@lyx.org>
126 * PreviewLoader.C (dumpPreamble):
127 pass around a LatexRunParams parameter.
129 2003-05-13 André Pönitz <poenitz@gmx.net>
131 * GraphicsConverter.C:
132 * PreviewLoader.C: use tostr from own header
134 2003-05-12 André Pönitz <poenitz@gmx.net>
136 * PreviewLoader.C: boost::format -> bformat
138 2003-04-15 Angus Leeming <leeming@lyx.org>
140 * GraphicsConverter.C: #include lstrings.h.
142 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
144 * GraphicsConverter.C
145 * PreviewLoader.C: added #include "format.h"
147 2003-02-26 Angus Leeming <leeming@lyx.org>
149 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
150 use the cache of the parent inset instead.
152 * PreviewLoader.C (startLoading): Prevent a crash if the user is
153 not using a tmp directory.
155 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
157 * GraphicsLoader.[Ch],
159 * PreviewedInset.C: Removed unneeded list of owner insets
161 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
163 * GraphicsConverter (startConversion): add the call to
166 * GraphicsLoader.[Ch],
168 * PreviewedInset.C: Removed unneeded BufferView
170 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
172 * LoaderQueue.[Ch]: a simplification of the code, eliminated
173 the unneeded input bucket.
175 * GraphicsCacheItem.C (imageConverted): move warning inside the
178 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
180 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
182 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
184 * LoaderQueue.[Ch] (setPriority): added
186 * PreviewLoader.C (finishedGenerating): reversed the loading order so
187 first images get 'touched' last, and so load first.
189 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
191 * LoaderQueue.[Ch]: added. Implements a service queue that loads
193 * GraphicsSupport.[Ch]: removed
194 * Makefile.am: the changes above
195 * GraphicsLoader.C: use the loading queue
197 2003-01-21 Angus Leeming <leeming@lyx.org>
199 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
200 previews from being generated.
202 2003-01-13 Angus Leeming <leeming@lyx.org>
204 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
205 format to be PPM not XPM.
207 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
209 * Makefile.am (EXTRA_DIST): remove variable
211 2002-12-13 Angus Leeming <leeming@lyx.org>
213 * GraphicsImageXPM.[Ch]: removed.
215 * Makefile.am: associated change.
217 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
219 * several files: ws changes
221 2002-11-21 Angus Leeming <leeming@lyx.org>
223 * GraphicsConverter.C (build_script, move_file):
224 Don't use "if [ $? -ne 0 ]; then..."
226 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
228 * PreviewLoader.C (IncrementedFileName): STRCONV
229 (startLoading): ditto
231 * GraphicsConverter.C (Impl): STRCONV
234 * GraphicsTypes.C: include config.h
236 2002-10-25 Angus Leeming <leeming@lyx.org>
238 * GraphicsConverter.C (Impl::converted)
239 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
240 string as first arg, reflecting change in ForkedCall interface.
242 * PreviewLoader.C: use pid rather than command as identifier in
245 2002-10-18 Angus Leeming <leeming@lyx.org>
247 * GraphicsCacheItem.C (findTargetFormat): add debug message.
249 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
251 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
253 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
255 * GraphicsConverter.C (build_script): do not use ChangeExtension
259 2002-09-05 Angus Leeming <leeming@lyx.org>
261 * all files: modify the headers as discussed on the list.
263 2002-09-04 Angus Leeming <leeming@lyx.org>
265 * PreviewLoader.C (startLoading): pass the desired output format to the
268 2002-09-04 Angus Leeming <leeming@lyx.org>
270 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
272 2002-09-03 Angus Leeming <leeming@lyx.org>
274 * PreviewLoader.C: fix crash reported by Norbert Koksch when
275 generating more than 999 preview snippets. Use filenames with 5 digit
276 numbers, not 3, in the first instance, although more general code is
277 commented out. I don't suppose /anyone/ has 100000 formulae in one
280 2002-09-03 Angus Leeming <leeming@lyx.org>
282 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
284 2002-09-03 Angus Leeming <leeming@lyx.org>
286 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
288 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
290 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
291 convertDefault command with "sh ".
293 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
295 * GraphicsImage.C: small style fix to width/height setting.
297 * GraphicsTypes.h: have a displayTranslator here.
300 * GraphicsTypes.C: new file added for the setDisplayTranslator();
302 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
305 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
306 because this input has gone from the graphics dialog.
308 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
310 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
312 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
313 for support/smart_ptr.h, switch to boost smart ptr.
315 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
316 (~Data): let the smart_ptr handle cleanup
317 (reset): use nifty 3rd arg
319 (free_color_table): free the table manually
321 2002-08-09 Angus Leeming <leeming@lyx.org>
323 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
324 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
325 input@path is now set correctly.
327 2002-08-06 Angus Leeming <leeming@lyx.org>
329 * PreviewLoader.C: add support for preview.sty 0.73 (currently
330 #ifdef-ed out, awaiting the formal release).
332 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
333 the contents of a file that has changed.
335 2002-08-05 Angus Leeming <leeming@lyx.org>
337 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
338 to preview.sty. Works only for versions of preview.sty > 0.72b but
339 doesn't hurt earlier versions. Allows me to test the new parsing of
340 LyX-specific data from the generated log file.
342 2002-08-02 Angus Leeming <leeming@lyx.org>
344 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
346 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
347 (add): don't add empty snippets.
349 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
350 (view, setView): access to to the cache_.
352 2002-08-02 Angus Leeming <leeming@lyx.org>
354 * PreviewedInset.[Ch]: cache the LaTeX snippet.
356 2002-08-01 Angus Leeming <leeming@lyx.org>
358 * PreviewedInset.[Ch]: new files. An abstract base class that can help
359 insets to generate previews.
360 The daughter class must instantiate three small methods.
361 The Inset would own an instance of this daughter class and invoke it
362 as necessary. For example, mathd/formula.C gets previews at the cost
363 of 15 or so lines of code.
365 * Makefile.am: add PreviewedInset.[Ch].
367 * PreviewLoader.C (add): add debug message.
369 * Previews.C (generateBufferPreviews): remove if-block from loop.
371 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
373 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
375 (setAscentFractions): ditto
377 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
379 * PreviewLoader.C (setAscentFractions): modify because of strip
382 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
384 * GraphicsConverter.C (build_script): take a ostream as a more
385 general argument than ostringstream.
387 2002-07-22 Herbert Voss <voss@lyx.org>
389 * GraphicsConverter.C: get the "default converter" run again
391 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
393 * PreviewLoader.C: use BufferParams::getLyXTextClass
395 2002-07-21 Herbert Voss <voss@lyx.org>
397 * GraphicsImage.C: get the LyXAspectRatio run.
399 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
401 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
403 * PreviewLoader.C (startLoading): pass an interger as resolution
404 to the lyxpreview converter
406 * GraphicsParams.C: include <cstdlib>
408 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
410 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
411 preview converter script
413 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
415 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
418 2002-07-18 Angus Leeming <leeming@lyx.org>
420 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
422 (startMonitoring, monitoring, checksum): new methods to interact with
425 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
426 methods invoking the CacheItem methods of the same name.
427 (resetFile): if monitoring and the file changes, start monitoring this
430 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
432 * Makefile.am: remove FileMonitor.[Ch]
434 2002-06-17 Herbert Voss <voss@lyx.org>
436 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
437 for old ps-files (Garst). It's now handled by defining a converter and
438 disabling the ps-support of xforms.
440 2002-07-17 Angus Leeming <leeming@lyx.org>
442 Be true to the Pimpl idiom, moving all signals into the respective
443 Impl classes and defining methods to connect them to an outside slot.
444 Const-ify all visible class methods as they act only on a const pimpl_.
446 * GraphicsCache.[Ch] (add, remove): const-ify.
448 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
449 (statusChanged): move the signal into the Impl class.
450 (connect): new method, enabling a listener to connect to this signal.
452 * GraphicsConverter.[Ch]: (startConversion): const-ify.
453 (finishedConversion): move the signal into the Impl class.
454 (connect): new method, enabling a listener to connect to this signal.
456 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
457 (statusChanged): move the signal into the Impl class.
458 (connect): new method, enabling a listener to connect to this signal.
460 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
461 (imageReady): move the signal into the Impl class.
462 (connect): new method, enabling a listener to connect to this signal.
463 (emitSignal): new method, enabling PreviewImage to tell the outside
464 world that the file has been loaded into memory.
466 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
470 * GraphicsCacheItem.C:
471 * GraphicsConverter.[Ch]:
473 * GraphicsImageXPM.C:
475 * PreviewLoader.[Ch]: whitespace clean-up.
477 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
479 * PreviewLoader.C (setConverter): remove unused variable
481 * GraphicsImageXPM.C (isDrawable): implement
482 (setPixmap): the opaque color is black, not white
484 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
486 * GraphicsImageXPM.C (color_none_id):
487 (contains_color_none): use ascii_lowercase instead of lowercase
489 2002-07-16 Angus Leeming <leeming@lyx.org>
491 * PreviewLoader.C: greater use of STL algorithms.
493 * Previews.[Ch]: use const in more places.
494 (generateBufferPreviews): now takes a Buffer const & argument, not a
497 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
499 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
501 2002-07-12 Angus Leeming <leeming@lyx.org>
503 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
504 if visible 2 secs after the call to load them is first made.
506 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
507 BufferView to ascertain whether the inset is visible or not.
509 * Makefile.am: added GraphicsSupport.[Ch].
511 * PreviewImage.[Ch]: use this smart loader.
513 * PreviewLoader.C: don't load generated image files indiscimminantly.
514 Instead emit the imageReady signal and allow the image owner to decide.
516 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
518 * GraphicsCache.C: remove init_graphics()
520 2002-07-09 Angus Leeming <leeming@lyx.org>
522 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
523 arithmetic when it should be floating.
525 2002-07-09 Angus Leeming <leeming@lyx.org>
527 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
528 Output equation labels as "(#)" if lyxrc preference is set.
529 (setFontScalingFactor): use lyxrc variable preview_scale_factor
530 rather than hard-coding this.
532 2002-07-09 Angus Leeming <leeming@lyx.org>
534 * PreviewLoader.C: Further refactoring of the code. Should now be
537 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
538 past its sell-by date. The code to read the metrics file is now found
539 as a helper function in PreviewLoader.C.
541 * GraphicsImageXPM.C (scale): use boost::tie.
543 2002-07-08 Herbert Voss <voss@lyx.org>
545 * PreviewLoader.C: use of preview_size_factor to get the right
546 font-size! 0.9 is the default.
548 2002-07-08 Angus Leeming <leeming@lyx.org>
550 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
551 invocation of preview.sty.
552 Perform something of an internal clean-up.
554 2002-07-06 Angus Leeming <leeming@lyx.org>
556 * PreviewLoader.C: ensure that the metrics data is used by the
560 * PreviewImage.C: (Impl d-tor): remove all generated files that still
561 exist (perhaps because the process was curtailed before the images
564 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
566 2002-07-05 Angus Leeming <leeming@lyx.org>
575 * Previews.C: new files. The previewed LaTeX snippet stuff.
577 * Makefile.am: add these files.
579 2002-07-05 Angus Leeming <leeming@lyx.org>
581 * GraphicsLoader.h: whitespace.
583 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
585 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
586 boost::function from boost::signal.
588 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
590 * GraphicsConverter.C (convert): do not use ChangeExtension
591 because to_file_base may contain a dot.
593 2002-06-28 Angus Leeming <leeming@lyx.org>
595 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
596 by moving those SignalPtrs into the grfx::Image and grfx::Converter
597 classes where they really belong.
598 Use the Pimpl idiom to hide the class internals from public view.
600 * GraphicsTypes: remove the typedefs, leaving only the enums.
602 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
603 passed a reference to one in the load() method.
605 * GraphicsConverter.[Ch]: totally refactored. An instance of
606 grfx::Converter now represents a single conversion process.
607 Thus grfx::CachItem now has a grfx::Converter * that is set when the
608 conversion is initiated and destroyed on completion.
610 * GraphicsCache.[Ch]:
611 * GraphicsCacheItem.[Ch]:
612 * GraphicsConverter.[Ch]:
613 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
615 Note that I have done this only after making the above changes,
616 so not only should we have a clean, minimal and well documented
617 interface to these classes in the header files, but the class internals
618 should be much clearer too.
621 grfx::GCache -> grfx::Cache,
622 grfx::GCacheItem -> grfx::CacheItem,
623 grfx::GConverter -> grfx::Converter,
624 grfx::GImage -> grfx::Image,
625 grfx::GImageXPM -> grfx::ImageXPM,
626 grfx::GParams -> grfx::Params.
628 2002-06-26 Angus Leeming <leeming@lyx.org>
630 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
631 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
634 2002-06-26 Angus Leeming <leeming@lyx.org>
636 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
637 move the DisplayType enum out of grfx::GParams to here.
639 * GraphicsCacheItem.h: re-write preliminary description to reflect
642 * GraphicsParams.[Ch]:
643 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
644 grfx::DisplayType out of grfx::GParams.
646 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
647 that was in frontends/screen.C and insets/insetgraphics.C into a
648 single, easy-to-use class.
650 * Makefile.am: add these files.
652 2002-06-25 Angus Leeming <leeming@lyx.org>
654 * GraphicsCache.[Ch]:
655 * GraphicsCacheItem.[Ch]:
656 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
657 file into memory. The cache no longer controls the generation of the
658 pixmap. Instead, it just emits a signal when the loading status of an
660 The cache no longer stores InsetGraphics pointers and nor does it
661 assume responsibility for modifying an image (scaling, rotating etc).
662 Instead, that must now be performed elsewhere.
664 2002-06-19 Angus Leeming <leeming@lyx.org>
666 * GraphicsConverter.C: add using std::endl directive.
668 2002-06-17 Herbert Voss <voss@lyx.org>
670 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
671 default when nothing different was found
672 (convertToDisplayFormat): handle zipped files in the right way and
673 choose always convert as a default converter when no other
674 userdefined was found
676 * GraphicsConverter.C: add more lyxerr comments and choose
677 convert when no other userdefined converter was found
679 2002-06-10 Herbert Voss <voss@lyx.org>
681 * GraphicsImageXPM.C (convertTo7chars): get another special color
682 format from convert work in the right way
684 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
686 * GraphicsCache.C: use right colormap incantation
688 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
690 * GraphicsCache.C: use lyx_gui namespace
692 * GraphicsImageXPM.C: back down to using xforms
695 2002-06-07 Angus Leeming <leeming@lyx.org>
697 Fixes needed to compile with Compaq cxx 6.5.
698 * GraphicsConverter.h: forward declare class ConvProcess.
700 * GraphicsImageXPM.C:
701 all c-library variables have been moved into namespace std.
702 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
704 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
706 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
708 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
710 * GraphicsImageXPM.C: SigC to boot::signals changes.
711 (newImage): fix () bug when using new.
713 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
715 * switch from SigC signals to boost::signals.
717 2002-05-29 André Pönitz <poenitz@gmx.net>
719 * GraphicsParam.C: remove unneeded #include, move vomment
721 2002-05-28 André Pönitz <poenitz@gmx.net>
723 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
725 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
727 * GraphicsImageXPM.C: ColorHandler moved
729 2002-05-24 Juergen Vigna <jug@sad.it>
732 * GraphicsImage.h: include LString.h first.
734 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
736 * GraphicsCacheItem.h: use more specific smart_ptr header.
737 * GraphicsTypes.h: ditto
738 * GraphicsImage.h: ditto
739 * GraphicsConverter.h: ditto
741 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
743 * GraphicsImageXPM.C: understand convert's use of "opaque"
746 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
748 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
749 GImage::loadableFormats() that ensures that the signal is connected
750 to the derived class' method.
752 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
754 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
755 only work on the string.
757 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
759 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
760 the simple image loader when it encounters colour strings like
763 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
765 * GraphicsCacheItem.C (convertToDisplayFormat):
766 * GraphicsConverter.C (build_script): remove the Alerts when things go
767 wrong as the inset displays the message anyway. Moreover, Alert seems
768 pretty temperamemtal at the moment.
770 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
772 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
774 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
776 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
777 a reference to a temp object that's going out of scope...
779 2002-04-09 Herbert Voss <voss@lyx.org>
781 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
782 LyXLength::inBP instead of inPixels.
784 2002-04-10 Herbert Voss <voss@perce.de>
786 * GraphicsCache.[Ch]:
787 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
788 to read the "Bounding Box" from non (e)ps files.
790 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
792 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
793 the EPS file too, to ensure that the clipped Bounding Box is relative
794 to the original. (From Herbert.)
796 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
798 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
799 variables are initialised. Clean-up parsing of the string (with thanks
802 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
804 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
805 if the file can't be found.
807 * GraphicsParams.h (c-tor): remove string() as default argument.
809 * GraphicsCacheItem.C: a couple of changes as a result.
811 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
813 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
814 path to graphics file.
816 * GraphicsParams.[Ch] (c-tor): now passed filepath.
818 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
820 * most files: ws cleanup
822 * Makefile.am: remove ld -r stuff
824 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
826 * Makefile.am: special rules if partial linking
828 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
830 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
832 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
834 * GraphicsConverter.[Ch] (converted): make first arg const ref.
836 * GraphicsCacheItem.h: doxy change
838 * GraphicsCacheItem.C: ws change
840 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
842 * Makefile.am: if there is no image loading class leveraging the power
843 of the appropriate gui library, then compile the basic alternative
844 found in GraphicsImageXPM.[Ch].
846 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
848 * GraphicsCache.C: change associated with move of initialiseGraphics
851 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
853 * GraphicsParams.[Ch]:
855 * GraphicsImageXPM.C: properly resolve more warnings about comparison
856 between signed and unsigned integer expressions.
858 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
860 * GraphicsCache.C: move connections to the GImage-derived classes to
863 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
865 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
866 conversion, then do that.
868 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
870 * GraphicsCache.C: improve commentary to graphicsInit and where it
873 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
874 that became a memory leak properly. (Let the shared_c_ptr free the
876 (reset, mapcolor): tidy up and introduce a work around for XPM files
877 with crappy color entries. Print out a nice friendly message on what's
878 gone wrong and how to resolve it properly.
880 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
882 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
883 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
885 (unique_color_string): use the correct string c-tor.
887 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
890 * ImageLoaderXPM.[Ch]: removed.
892 * GraphicsConverter.[Ch]:
893 * GraphicsImage.[Ch]:
894 * GraphicsImageXPM.[Ch]:
895 * GraphicsParams.[Ch]:
896 * GraphicsTypes.h: new files.
898 * All files. A total re-write of the graphics cache. The cache now
899 supports asynchronous file conversion and file loading. Images
900 can be cropped, rotated and scaled for display on the LyX screen.
901 The old LyXImage and ImageLoader have been combined in a new class
902 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
905 2002-02-07 Herbert Voss <voss@lyx.org>
907 * GraphicsCacheItem.C: use unzipFile() from support/filetools
909 2002-01-31 Herbert Voss <voss@lyx.org>
911 * GraphicsCacheItem.h: handle filetype without the file extension;
912 getting type from contents; handle zipped files
914 2002-01-27 Herbert Voss <voss@lyx.org>
916 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
918 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
920 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
922 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
924 * GraphicsCacheItem.h: do not include <config.h> in header files
926 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
928 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
929 transparent colour, then set it to the colour of the background.
930 Also take account of the monochrome, grayscale of color
933 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
935 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
936 are different. Thus, don't delete the "to" if it's the original!
938 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
940 * ImageLoadXPM.C: remove setting of alloc colour mask,
941 led to crash as we don't define a callback
943 2001-07-29 Baruch Even <baruch@lyx.org>
945 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
946 colors with closeness of 10000.
948 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
950 2001-07-29 Baruch Even <baruch@lyx.org>
952 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
955 2001-07-23 Baruch Even <baruch@lyx.org>
957 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
958 the image after conversion.
960 2001-07-17 Baruch Even <baruch@lyx.org>
962 * GraphicsCacheItem.h:
963 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
964 from synchronous to asynchronous and to ease the coming changes.
966 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
968 * ImageLoaderXPM.C (runImageLoader): get display information from
971 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
974 * GraphicsCacheItem.C:
976 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
978 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
980 * GraphicsCache.h: inherit privately from noncopyable
981 * ImageLoader.h: ditto
982 * GraphicsCacheItem.h: ditto
984 2001-04-16 Allan Rae <rae@lyx.org>
986 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
987 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
990 2001-04-02 Baruch Even <baruch@lyx.org>
992 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
993 of hard coding ImageMagick.
995 2001-03-10 Baruch Even <baruch@lyx.org>
997 * GraphicsCache.C: Style change from (*it).field to it->field
999 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1001 * GraphicsCache.h: noncopyable is in namespace boost
1002 * ImageLoader.h: ditto
1003 * GraphicsCacheItem.h: ditto
1005 2001-03-07 Baruch Even <baruch@lyx.org>
1007 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1008 was false and it's not needed anyhow since the shared_ptr's in the cache
1009 will destroy everything on exit.
1011 2001-02-28 Baruch Even <baruch@ev-en.org>
1014 * GraphicsCache.C: Changed the singleton pattern implementation, the
1015 former version "leaked" in the sense that it was not deallocated at
1018 2001-02-20 Baruch Even <baruch@ev-en.org>
1020 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1021 instead of a pure pointer.
1023 * GraphicsCacheItem.[Ch]:
1024 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1025 removed the reference counting that was inside. Also fixed a bug where
1026 a temporary file wouldn't get erased.
1028 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1029 Ownership is now dropped when the caller requests the image_ pointer.
1031 2001-02-20 Baruch Even <baruch@ev-en.org>
1033 * GraphicsCache.C: Cleared up the confusion on when and how it is
1036 * GraphicsCacheItem.C: Indentation change.
1038 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1039 figure correctly when the image has been loaded successfully.
1041 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1043 * ImageLoader.C: add a "using" directive.
1045 * ImageLoader.h: remove extra comma at the end of enum; add an
1046 std:: qualifier for vector.
1048 2001-01-21 Baruch Even <baruch@ev-en.org>
1050 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1051 height in the image itself and minor cleanups.
1053 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1054 new ImageLoader class instead of the older Renderer class. This
1055 means change of responsibilities.