1 2003-09-29 Angus Leeming <leeming@lyx.org>
3 * GraphicsParams.[Ch] (asString): removed. Replaced with
4 operator<<(std::ostream &, BoundingBox const &).
6 2003-09-25 Angus Leeming <leeming@lyx.org>
8 * GraphicsParams.[Ch] (asString): new member function.
10 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
12 * Previews.C (Previews): fix new bug
14 * GraphicsCache.C (Cache): fix new bug
16 2003-09-19 Angus Leeming <leeming@lyx.org>
18 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
19 a 'Buffer const &' argument.
21 2003-09-18 Angus Leeming <leeming@lyx.org>
23 * PreviewedInset.C (latexString): add a Buffer const & arg.
24 * PreviewedInset.C (addPreview): pass the buffer to latexString.
26 2003-09-16 Angus Leeming <leeming@lyx.org>
28 * PreviewedInset.[Ch] (c-tor) move out of line.
29 (d-tor): make private.
30 (inset): return a const reference rather than a non-const pointer.
32 2003-09-16 Angus Leeming <leeming@lyx.org>
34 * GraphicsImage.h: separate interface from implementation. Make all the
35 pure virtual functions private.
37 2003-09-16 Angus Leeming <leeming@lyx.org>
39 * PreviewLoader.C: add #include "LColor.h".
41 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
44 * PreviewLoader.C: remove usage of STRCONV
46 2003-09-14 Angus Leeming <leeming@lyx.org>
48 * PreviewLoader.C (remove): consider all InProgressProcesses when
49 ascertaining which ones to remove from the list, not every other one.
51 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
53 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
56 2003-09-08 Angus Leeming <leeming@lyx.org>
60 * PreviewLoader.C: remove redundant using directives.
62 2003-09-07 Angus Leeming <leeming@lyx.org>
65 * Previews.h: remove #include "support/std_string.h".
67 2003-09-06 Angus Leeming <leeming@lyx.org>
69 * PreviewedInset.C: add #include "insets/inset.h"
71 2003-09-05 Angus Leeming <leeming@lyx.org>
73 * *.C: strip out redundant #includes. (26 in total.)
75 2003-09-04 Angus Leeming <leeming@lyx.org>
77 * LoaderQueue.C (get):
79 2003-09-04 Angus Leeming <leeming@lyx.org>
82 * GraphicsCacheItem.C:
83 * GraphicsConverter.C:
87 * Previews.C: 'namespace support = lyx::support' rather than
90 * Previews.h: cleaned up some comments.
92 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
94 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
96 * GraphicsTypes.h: do not declare displayTranstor here (and remove
99 2003-07-27 José Matos <jamatos@fep.up.pt>
101 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
104 2003-07-21 Angus Leeming <leeming@lyx.org>
107 * GraphicsCacheItem.[Ch]:
110 * PreviewedInset.[Ch]:
111 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
113 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
115 * Change namespace grfx to lyx::graphics.
117 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
119 * introcude namespace lyx::support
121 2003-06-04 Angus Leeming <leeming@lyx.org>
123 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
124 (operator=): if it has a copy c-tor, it should have this too.
126 2003-06-03 Angus Leeming <leeming@lyx.org>
128 * GraphicsLoader.[Ch] (Loader): add copy constructor.
130 2003-05-23 Angus Leeming <leeming@lyx.org>
132 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
134 2003-05-22 Angus Leeming <leeming@lyx.org>
136 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
137 the inset::latex method.
139 2003-05-22 Angus Leeming <leeming@lyx.org>
141 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
142 the inset::latex method.
144 2003-05-22 Angus Leeming <leeming@lyx.org>
146 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
147 makeLaTeXFile is now encapsulated within runparams.
149 2003-05-22 Angus Leeming <leeming@lyx.org>
151 * PreviewLoader.C (dumpPreamble):
152 pass around a LatexRunParams parameter.
154 2003-05-13 André Pönitz <poenitz@gmx.net>
156 * GraphicsConverter.C:
157 * PreviewLoader.C: use tostr from own header
159 2003-05-12 André Pönitz <poenitz@gmx.net>
161 * PreviewLoader.C: boost::format -> bformat
163 2003-04-15 Angus Leeming <leeming@lyx.org>
165 * GraphicsConverter.C: #include lstrings.h.
167 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
169 * GraphicsConverter.C
170 * PreviewLoader.C: added #include "format.h"
172 2003-02-26 Angus Leeming <leeming@lyx.org>
174 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
175 use the cache of the parent inset instead.
177 * PreviewLoader.C (startLoading): Prevent a crash if the user is
178 not using a tmp directory.
180 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
182 * GraphicsLoader.[Ch],
184 * PreviewedInset.C: Removed unneeded list of owner insets
186 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
188 * GraphicsConverter (startConversion): add the call to
191 * GraphicsLoader.[Ch],
193 * PreviewedInset.C: Removed unneeded BufferView
195 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
197 * LoaderQueue.[Ch]: a simplification of the code, eliminated
198 the unneeded input bucket.
200 * GraphicsCacheItem.C (imageConverted): move warning inside the
203 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
205 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
207 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
209 * LoaderQueue.[Ch] (setPriority): added
211 * PreviewLoader.C (finishedGenerating): reversed the loading order so
212 first images get 'touched' last, and so load first.
214 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
216 * LoaderQueue.[Ch]: added. Implements a service queue that loads
218 * GraphicsSupport.[Ch]: removed
219 * Makefile.am: the changes above
220 * GraphicsLoader.C: use the loading queue
222 2003-01-21 Angus Leeming <leeming@lyx.org>
224 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
225 previews from being generated.
227 2003-01-13 Angus Leeming <leeming@lyx.org>
229 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
230 format to be PPM not XPM.
232 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
234 * Makefile.am (EXTRA_DIST): remove variable
236 2002-12-13 Angus Leeming <leeming@lyx.org>
238 * GraphicsImageXPM.[Ch]: removed.
240 * Makefile.am: associated change.
242 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
244 * several files: ws changes
246 2002-11-21 Angus Leeming <leeming@lyx.org>
248 * GraphicsConverter.C (build_script, move_file):
249 Don't use "if [ $? -ne 0 ]; then..."
251 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
253 * PreviewLoader.C (IncrementedFileName): STRCONV
254 (startLoading): ditto
256 * GraphicsConverter.C (Impl): STRCONV
259 * GraphicsTypes.C: include config.h
261 2002-10-25 Angus Leeming <leeming@lyx.org>
263 * GraphicsConverter.C (Impl::converted)
264 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
265 string as first arg, reflecting change in ForkedCall interface.
267 * PreviewLoader.C: use pid rather than command as identifier in
270 2002-10-18 Angus Leeming <leeming@lyx.org>
272 * GraphicsCacheItem.C (findTargetFormat): add debug message.
274 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
276 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
278 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
280 * GraphicsConverter.C (build_script): do not use ChangeExtension
284 2002-09-05 Angus Leeming <leeming@lyx.org>
286 * all files: modify the headers as discussed on the list.
288 2002-09-04 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C (startLoading): pass the desired output format to the
293 2002-09-04 Angus Leeming <leeming@lyx.org>
295 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
297 2002-09-03 Angus Leeming <leeming@lyx.org>
299 * PreviewLoader.C: fix crash reported by Norbert Koksch when
300 generating more than 999 preview snippets. Use filenames with 5 digit
301 numbers, not 3, in the first instance, although more general code is
302 commented out. I don't suppose /anyone/ has 100000 formulae in one
305 2002-09-03 Angus Leeming <leeming@lyx.org>
307 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
309 2002-09-03 Angus Leeming <leeming@lyx.org>
311 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
313 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
315 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
316 convertDefault command with "sh ".
318 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
320 * GraphicsImage.C: small style fix to width/height setting.
322 * GraphicsTypes.h: have a displayTranslator here.
325 * GraphicsTypes.C: new file added for the setDisplayTranslator();
327 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
330 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
331 because this input has gone from the graphics dialog.
333 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
335 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
337 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
338 for support/smart_ptr.h, switch to boost smart ptr.
340 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
341 (~Data): let the smart_ptr handle cleanup
342 (reset): use nifty 3rd arg
344 (free_color_table): free the table manually
346 2002-08-09 Angus Leeming <leeming@lyx.org>
348 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
349 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
350 input@path is now set correctly.
352 2002-08-06 Angus Leeming <leeming@lyx.org>
354 * PreviewLoader.C: add support for preview.sty 0.73 (currently
355 #ifdef-ed out, awaiting the formal release).
357 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
358 the contents of a file that has changed.
360 2002-08-05 Angus Leeming <leeming@lyx.org>
362 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
363 to preview.sty. Works only for versions of preview.sty > 0.72b but
364 doesn't hurt earlier versions. Allows me to test the new parsing of
365 LyX-specific data from the generated log file.
367 2002-08-02 Angus Leeming <leeming@lyx.org>
369 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
371 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
372 (add): don't add empty snippets.
374 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
375 (view, setView): access to to the cache_.
377 2002-08-02 Angus Leeming <leeming@lyx.org>
379 * PreviewedInset.[Ch]: cache the LaTeX snippet.
381 2002-08-01 Angus Leeming <leeming@lyx.org>
383 * PreviewedInset.[Ch]: new files. An abstract base class that can help
384 insets to generate previews.
385 The daughter class must instantiate three small methods.
386 The Inset would own an instance of this daughter class and invoke it
387 as necessary. For example, mathd/formula.C gets previews at the cost
388 of 15 or so lines of code.
390 * Makefile.am: add PreviewedInset.[Ch].
392 * PreviewLoader.C (add): add debug message.
394 * Previews.C (generateBufferPreviews): remove if-block from loop.
396 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
398 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
400 (setAscentFractions): ditto
402 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
404 * PreviewLoader.C (setAscentFractions): modify because of strip
407 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
409 * GraphicsConverter.C (build_script): take a ostream as a more
410 general argument than ostringstream.
412 2002-07-22 Herbert Voss <voss@lyx.org>
414 * GraphicsConverter.C: get the "default converter" run again
416 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
418 * PreviewLoader.C: use BufferParams::getLyXTextClass
420 2002-07-21 Herbert Voss <voss@lyx.org>
422 * GraphicsImage.C: get the LyXAspectRatio run.
424 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
426 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
428 * PreviewLoader.C (startLoading): pass an interger as resolution
429 to the lyxpreview converter
431 * GraphicsParams.C: include <cstdlib>
433 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
435 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
436 preview converter script
438 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
440 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
443 2002-07-18 Angus Leeming <leeming@lyx.org>
445 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
447 (startMonitoring, monitoring, checksum): new methods to interact with
450 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
451 methods invoking the CacheItem methods of the same name.
452 (resetFile): if monitoring and the file changes, start monitoring this
455 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
457 * Makefile.am: remove FileMonitor.[Ch]
459 2002-06-17 Herbert Voss <voss@lyx.org>
461 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
462 for old ps-files (Garst). It's now handled by defining a converter and
463 disabling the ps-support of xforms.
465 2002-07-17 Angus Leeming <leeming@lyx.org>
467 Be true to the Pimpl idiom, moving all signals into the respective
468 Impl classes and defining methods to connect them to an outside slot.
469 Const-ify all visible class methods as they act only on a const pimpl_.
471 * GraphicsCache.[Ch] (add, remove): const-ify.
473 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
474 (statusChanged): move the signal into the Impl class.
475 (connect): new method, enabling a listener to connect to this signal.
477 * GraphicsConverter.[Ch]: (startConversion): const-ify.
478 (finishedConversion): move the signal into the Impl class.
479 (connect): new method, enabling a listener to connect to this signal.
481 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
482 (statusChanged): move the signal into the Impl class.
483 (connect): new method, enabling a listener to connect to this signal.
485 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
486 (imageReady): move the signal into the Impl class.
487 (connect): new method, enabling a listener to connect to this signal.
488 (emitSignal): new method, enabling PreviewImage to tell the outside
489 world that the file has been loaded into memory.
491 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
495 * GraphicsCacheItem.C:
496 * GraphicsConverter.[Ch]:
498 * GraphicsImageXPM.C:
500 * PreviewLoader.[Ch]: whitespace clean-up.
502 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
504 * PreviewLoader.C (setConverter): remove unused variable
506 * GraphicsImageXPM.C (isDrawable): implement
507 (setPixmap): the opaque color is black, not white
509 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
511 * GraphicsImageXPM.C (color_none_id):
512 (contains_color_none): use ascii_lowercase instead of lowercase
514 2002-07-16 Angus Leeming <leeming@lyx.org>
516 * PreviewLoader.C: greater use of STL algorithms.
518 * Previews.[Ch]: use const in more places.
519 (generateBufferPreviews): now takes a Buffer const & argument, not a
522 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
524 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
526 2002-07-12 Angus Leeming <leeming@lyx.org>
528 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
529 if visible 2 secs after the call to load them is first made.
531 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
532 BufferView to ascertain whether the inset is visible or not.
534 * Makefile.am: added GraphicsSupport.[Ch].
536 * PreviewImage.[Ch]: use this smart loader.
538 * PreviewLoader.C: don't load generated image files indiscimminantly.
539 Instead emit the imageReady signal and allow the image owner to decide.
541 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
543 * GraphicsCache.C: remove init_graphics()
545 2002-07-09 Angus Leeming <leeming@lyx.org>
547 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
548 arithmetic when it should be floating.
550 2002-07-09 Angus Leeming <leeming@lyx.org>
552 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
553 Output equation labels as "(#)" if lyxrc preference is set.
554 (setFontScalingFactor): use lyxrc variable preview_scale_factor
555 rather than hard-coding this.
557 2002-07-09 Angus Leeming <leeming@lyx.org>
559 * PreviewLoader.C: Further refactoring of the code. Should now be
562 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
563 past its sell-by date. The code to read the metrics file is now found
564 as a helper function in PreviewLoader.C.
566 * GraphicsImageXPM.C (scale): use boost::tie.
568 2002-07-08 Herbert Voss <voss@lyx.org>
570 * PreviewLoader.C: use of preview_size_factor to get the right
571 font-size! 0.9 is the default.
573 2002-07-08 Angus Leeming <leeming@lyx.org>
575 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
576 invocation of preview.sty.
577 Perform something of an internal clean-up.
579 2002-07-06 Angus Leeming <leeming@lyx.org>
581 * PreviewLoader.C: ensure that the metrics data is used by the
585 * PreviewImage.C: (Impl d-tor): remove all generated files that still
586 exist (perhaps because the process was curtailed before the images
589 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
591 2002-07-05 Angus Leeming <leeming@lyx.org>
600 * Previews.C: new files. The previewed LaTeX snippet stuff.
602 * Makefile.am: add these files.
604 2002-07-05 Angus Leeming <leeming@lyx.org>
606 * GraphicsLoader.h: whitespace.
608 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
610 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
611 boost::function from boost::signal.
613 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
615 * GraphicsConverter.C (convert): do not use ChangeExtension
616 because to_file_base may contain a dot.
618 2002-06-28 Angus Leeming <leeming@lyx.org>
620 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
621 by moving those SignalPtrs into the grfx::Image and grfx::Converter
622 classes where they really belong.
623 Use the Pimpl idiom to hide the class internals from public view.
625 * GraphicsTypes: remove the typedefs, leaving only the enums.
627 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
628 passed a reference to one in the load() method.
630 * GraphicsConverter.[Ch]: totally refactored. An instance of
631 grfx::Converter now represents a single conversion process.
632 Thus grfx::CachItem now has a grfx::Converter * that is set when the
633 conversion is initiated and destroyed on completion.
635 * GraphicsCache.[Ch]:
636 * GraphicsCacheItem.[Ch]:
637 * GraphicsConverter.[Ch]:
638 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
640 Note that I have done this only after making the above changes,
641 so not only should we have a clean, minimal and well documented
642 interface to these classes in the header files, but the class internals
643 should be much clearer too.
646 grfx::GCache -> grfx::Cache,
647 grfx::GCacheItem -> grfx::CacheItem,
648 grfx::GConverter -> grfx::Converter,
649 grfx::GImage -> grfx::Image,
650 grfx::GImageXPM -> grfx::ImageXPM,
651 grfx::GParams -> grfx::Params.
653 2002-06-26 Angus Leeming <leeming@lyx.org>
655 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
656 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
659 2002-06-26 Angus Leeming <leeming@lyx.org>
661 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
662 move the DisplayType enum out of grfx::GParams to here.
664 * GraphicsCacheItem.h: re-write preliminary description to reflect
667 * GraphicsParams.[Ch]:
668 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
669 grfx::DisplayType out of grfx::GParams.
671 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
672 that was in frontends/screen.C and insets/insetgraphics.C into a
673 single, easy-to-use class.
675 * Makefile.am: add these files.
677 2002-06-25 Angus Leeming <leeming@lyx.org>
679 * GraphicsCache.[Ch]:
680 * GraphicsCacheItem.[Ch]:
681 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
682 file into memory. The cache no longer controls the generation of the
683 pixmap. Instead, it just emits a signal when the loading status of an
685 The cache no longer stores InsetGraphics pointers and nor does it
686 assume responsibility for modifying an image (scaling, rotating etc).
687 Instead, that must now be performed elsewhere.
689 2002-06-19 Angus Leeming <leeming@lyx.org>
691 * GraphicsConverter.C: add using std::endl directive.
693 2002-06-17 Herbert Voss <voss@lyx.org>
695 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
696 default when nothing different was found
697 (convertToDisplayFormat): handle zipped files in the right way and
698 choose always convert as a default converter when no other
699 userdefined was found
701 * GraphicsConverter.C: add more lyxerr comments and choose
702 convert when no other userdefined converter was found
704 2002-06-10 Herbert Voss <voss@lyx.org>
706 * GraphicsImageXPM.C (convertTo7chars): get another special color
707 format from convert work in the right way
709 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
711 * GraphicsCache.C: use right colormap incantation
713 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
715 * GraphicsCache.C: use lyx_gui namespace
717 * GraphicsImageXPM.C: back down to using xforms
720 2002-06-07 Angus Leeming <leeming@lyx.org>
722 Fixes needed to compile with Compaq cxx 6.5.
723 * GraphicsConverter.h: forward declare class ConvProcess.
725 * GraphicsImageXPM.C:
726 all c-library variables have been moved into namespace std.
727 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
729 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
731 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
733 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
735 * GraphicsImageXPM.C: SigC to boot::signals changes.
736 (newImage): fix () bug when using new.
738 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
740 * switch from SigC signals to boost::signals.
742 2002-05-29 André Pönitz <poenitz@gmx.net>
744 * GraphicsParam.C: remove unneeded #include, move vomment
746 2002-05-28 André Pönitz <poenitz@gmx.net>
748 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
750 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
752 * GraphicsImageXPM.C: ColorHandler moved
754 2002-05-24 Juergen Vigna <jug@sad.it>
757 * GraphicsImage.h: include LString.h first.
759 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
761 * GraphicsCacheItem.h: use more specific smart_ptr header.
762 * GraphicsTypes.h: ditto
763 * GraphicsImage.h: ditto
764 * GraphicsConverter.h: ditto
766 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
768 * GraphicsImageXPM.C: understand convert's use of "opaque"
771 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
773 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
774 GImage::loadableFormats() that ensures that the signal is connected
775 to the derived class' method.
777 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
779 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
780 only work on the string.
782 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
784 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
785 the simple image loader when it encounters colour strings like
788 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
790 * GraphicsCacheItem.C (convertToDisplayFormat):
791 * GraphicsConverter.C (build_script): remove the Alerts when things go
792 wrong as the inset displays the message anyway. Moreover, Alert seems
793 pretty temperamemtal at the moment.
795 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
797 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
799 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
801 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
802 a reference to a temp object that's going out of scope...
804 2002-04-09 Herbert Voss <voss@lyx.org>
806 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
807 LyXLength::inBP instead of inPixels.
809 2002-04-10 Herbert Voss <voss@perce.de>
811 * GraphicsCache.[Ch]:
812 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
813 to read the "Bounding Box" from non (e)ps files.
815 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
817 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
818 the EPS file too, to ensure that the clipped Bounding Box is relative
819 to the original. (From Herbert.)
821 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
823 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
824 variables are initialised. Clean-up parsing of the string (with thanks
827 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
829 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
830 if the file can't be found.
832 * GraphicsParams.h (c-tor): remove string() as default argument.
834 * GraphicsCacheItem.C: a couple of changes as a result.
836 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
838 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
839 path to graphics file.
841 * GraphicsParams.[Ch] (c-tor): now passed filepath.
843 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
845 * most files: ws cleanup
847 * Makefile.am: remove ld -r stuff
849 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
851 * Makefile.am: special rules if partial linking
853 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
855 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
857 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
859 * GraphicsConverter.[Ch] (converted): make first arg const ref.
861 * GraphicsCacheItem.h: doxy change
863 * GraphicsCacheItem.C: ws change
865 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
867 * Makefile.am: if there is no image loading class leveraging the power
868 of the appropriate gui library, then compile the basic alternative
869 found in GraphicsImageXPM.[Ch].
871 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
873 * GraphicsCache.C: change associated with move of initialiseGraphics
876 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
878 * GraphicsParams.[Ch]:
880 * GraphicsImageXPM.C: properly resolve more warnings about comparison
881 between signed and unsigned integer expressions.
883 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
885 * GraphicsCache.C: move connections to the GImage-derived classes to
888 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
890 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
891 conversion, then do that.
893 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
895 * GraphicsCache.C: improve commentary to graphicsInit and where it
898 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
899 that became a memory leak properly. (Let the shared_c_ptr free the
901 (reset, mapcolor): tidy up and introduce a work around for XPM files
902 with crappy color entries. Print out a nice friendly message on what's
903 gone wrong and how to resolve it properly.
905 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
907 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
908 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
910 (unique_color_string): use the correct string c-tor.
912 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
915 * ImageLoaderXPM.[Ch]: removed.
917 * GraphicsConverter.[Ch]:
918 * GraphicsImage.[Ch]:
919 * GraphicsImageXPM.[Ch]:
920 * GraphicsParams.[Ch]:
921 * GraphicsTypes.h: new files.
923 * All files. A total re-write of the graphics cache. The cache now
924 supports asynchronous file conversion and file loading. Images
925 can be cropped, rotated and scaled for display on the LyX screen.
926 The old LyXImage and ImageLoader have been combined in a new class
927 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
930 2002-02-07 Herbert Voss <voss@lyx.org>
932 * GraphicsCacheItem.C: use unzipFile() from support/filetools
934 2002-01-31 Herbert Voss <voss@lyx.org>
936 * GraphicsCacheItem.h: handle filetype without the file extension;
937 getting type from contents; handle zipped files
939 2002-01-27 Herbert Voss <voss@lyx.org>
941 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
943 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
945 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
947 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
949 * GraphicsCacheItem.h: do not include <config.h> in header files
951 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
953 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
954 transparent colour, then set it to the colour of the background.
955 Also take account of the monochrome, grayscale of color
958 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
960 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
961 are different. Thus, don't delete the "to" if it's the original!
963 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
965 * ImageLoadXPM.C: remove setting of alloc colour mask,
966 led to crash as we don't define a callback
968 2001-07-29 Baruch Even <baruch@lyx.org>
970 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
971 colors with closeness of 10000.
973 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
975 2001-07-29 Baruch Even <baruch@lyx.org>
977 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
980 2001-07-23 Baruch Even <baruch@lyx.org>
982 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
983 the image after conversion.
985 2001-07-17 Baruch Even <baruch@lyx.org>
987 * GraphicsCacheItem.h:
988 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
989 from synchronous to asynchronous and to ease the coming changes.
991 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
993 * ImageLoaderXPM.C (runImageLoader): get display information from
996 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
999 * GraphicsCacheItem.C:
1001 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1003 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1005 * GraphicsCache.h: inherit privately from noncopyable
1006 * ImageLoader.h: ditto
1007 * GraphicsCacheItem.h: ditto
1009 2001-04-16 Allan Rae <rae@lyx.org>
1011 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1012 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1015 2001-04-02 Baruch Even <baruch@lyx.org>
1017 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1018 of hard coding ImageMagick.
1020 2001-03-10 Baruch Even <baruch@lyx.org>
1022 * GraphicsCache.C: Style change from (*it).field to it->field
1024 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1026 * GraphicsCache.h: noncopyable is in namespace boost
1027 * ImageLoader.h: ditto
1028 * GraphicsCacheItem.h: ditto
1030 2001-03-07 Baruch Even <baruch@lyx.org>
1032 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1033 was false and it's not needed anyhow since the shared_ptr's in the cache
1034 will destroy everything on exit.
1036 2001-02-28 Baruch Even <baruch@ev-en.org>
1039 * GraphicsCache.C: Changed the singleton pattern implementation, the
1040 former version "leaked" in the sense that it was not deallocated at
1043 2001-02-20 Baruch Even <baruch@ev-en.org>
1045 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1046 instead of a pure pointer.
1048 * GraphicsCacheItem.[Ch]:
1049 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1050 removed the reference counting that was inside. Also fixed a bug where
1051 a temporary file wouldn't get erased.
1053 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1054 Ownership is now dropped when the caller requests the image_ pointer.
1056 2001-02-20 Baruch Even <baruch@ev-en.org>
1058 * GraphicsCache.C: Cleared up the confusion on when and how it is
1061 * GraphicsCacheItem.C: Indentation change.
1063 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1064 figure correctly when the image has been loaded successfully.
1066 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1068 * ImageLoader.C: add a "using" directive.
1070 * ImageLoader.h: remove extra comma at the end of enum; add an
1071 std:: qualifier for vector.
1073 2001-01-21 Baruch Even <baruch@ev-en.org>
1075 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1076 height in the image itself and minor cleanups.
1078 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1079 new ImageLoader class instead of the older Renderer class. This
1080 means change of responsibilities.