1 2003-10-22 Angus Leeming <leeming@lyx.org>
3 * PreviewImage.C (statusChanged): always pass on the signal, not just
4 when the preview is ready for display.
6 2003-10-22 Angus Leeming <leeming@lyx.org>
8 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
9 to contain the conversion script cannot be opened.
11 2003-10-22 Angus Leeming <leeming@lyx.org>
13 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
16 2003-10-13 Angus Leeming <leeming@lyx.org>
18 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
19 Make displayTranslator a function,
21 2003-10-10 Angus Leeming <leeming@lyx.org>
23 * PreviewedInset.[Ch]: removed.
25 * Makefile.am: remove PreviewedInset.[Ch].
27 2003-10-09 Angus Leeming <leeming@lyx.org>
29 * PreviewedInset.[Ch] (previewReady): remove the side effects.
30 Now simply reports whether the preview is ready.
32 2003-10-09 Angus Leeming <leeming@lyx.org>
34 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
35 Remove the inset and view member functions.
36 Add a new connect member function and preview_ready_signal_ member
37 variable, to enable the class to tell an arbirary connectee that the
40 2003-10-09 Angus Leeming <leeming@lyx.org>
42 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
43 are now passed a 'Buffer const &', eliminating most of the remaining
44 need for PreviewedInset to use a BufferView cache.
46 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
49 * PreviewImage.h: add <string> and other small fixes to make
50 Lars' std::string patch compile with STLport.
52 2003-09-29 Angus Leeming <leeming@lyx.org>
54 * GraphicsParams.[Ch] (asString): removed. Replaced with
55 operator<<(std::ostream &, BoundingBox const &).
57 2003-09-25 Angus Leeming <leeming@lyx.org>
59 * GraphicsParams.[Ch] (asString): new member function.
61 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
63 * Previews.C (Previews): fix new bug
65 * GraphicsCache.C (Cache): fix new bug
67 2003-09-19 Angus Leeming <leeming@lyx.org>
69 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
70 a 'Buffer const &' argument.
72 2003-09-18 Angus Leeming <leeming@lyx.org>
74 * PreviewedInset.C (latexString): add a Buffer const & arg.
75 * PreviewedInset.C (addPreview): pass the buffer to latexString.
77 2003-09-16 Angus Leeming <leeming@lyx.org>
79 * PreviewedInset.[Ch] (c-tor) move out of line.
80 (d-tor): make private.
81 (inset): return a const reference rather than a non-const pointer.
83 2003-09-16 Angus Leeming <leeming@lyx.org>
85 * GraphicsImage.h: separate interface from implementation. Make all the
86 pure virtual functions private.
88 2003-09-16 Angus Leeming <leeming@lyx.org>
90 * PreviewLoader.C: add #include "LColor.h".
92 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
95 * PreviewLoader.C: remove usage of STRCONV
97 2003-09-14 Angus Leeming <leeming@lyx.org>
99 * PreviewLoader.C (remove): consider all InProgressProcesses when
100 ascertaining which ones to remove from the list, not every other one.
102 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
104 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
107 2003-09-08 Angus Leeming <leeming@lyx.org>
111 * PreviewLoader.C: remove redundant using directives.
113 2003-09-07 Angus Leeming <leeming@lyx.org>
116 * Previews.h: remove #include "support/std_string.h".
118 2003-09-06 Angus Leeming <leeming@lyx.org>
120 * PreviewedInset.C: add #include "insets/inset.h"
122 2003-09-05 Angus Leeming <leeming@lyx.org>
124 * *.C: strip out redundant #includes. (26 in total.)
126 2003-09-04 Angus Leeming <leeming@lyx.org>
128 * LoaderQueue.C (get):
130 2003-09-04 Angus Leeming <leeming@lyx.org>
133 * GraphicsCacheItem.C:
134 * GraphicsConverter.C:
138 * Previews.C: 'namespace support = lyx::support' rather than
139 'using lyx::support'.
141 * Previews.h: cleaned up some comments.
143 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
145 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
147 * GraphicsTypes.h: do not declare displayTranstor here (and remove
150 2003-07-27 José Matos <jamatos@fep.up.pt>
152 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
155 2003-07-21 Angus Leeming <leeming@lyx.org>
158 * GraphicsCacheItem.[Ch]:
161 * PreviewedInset.[Ch]:
162 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
164 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
166 * Change namespace grfx to lyx::graphics.
168 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
170 * introcude namespace lyx::support
172 2003-06-04 Angus Leeming <leeming@lyx.org>
174 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
175 (operator=): if it has a copy c-tor, it should have this too.
177 2003-06-03 Angus Leeming <leeming@lyx.org>
179 * GraphicsLoader.[Ch] (Loader): add copy constructor.
181 2003-05-23 Angus Leeming <leeming@lyx.org>
183 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
185 2003-05-22 Angus Leeming <leeming@lyx.org>
187 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
188 the inset::latex method.
190 2003-05-22 Angus Leeming <leeming@lyx.org>
192 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
193 the inset::latex method.
195 2003-05-22 Angus Leeming <leeming@lyx.org>
197 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
198 makeLaTeXFile is now encapsulated within runparams.
200 2003-05-22 Angus Leeming <leeming@lyx.org>
202 * PreviewLoader.C (dumpPreamble):
203 pass around a LatexRunParams parameter.
205 2003-05-13 André Pönitz <poenitz@gmx.net>
207 * GraphicsConverter.C:
208 * PreviewLoader.C: use tostr from own header
210 2003-05-12 André Pönitz <poenitz@gmx.net>
212 * PreviewLoader.C: boost::format -> bformat
214 2003-04-15 Angus Leeming <leeming@lyx.org>
216 * GraphicsConverter.C: #include lstrings.h.
218 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
220 * GraphicsConverter.C
221 * PreviewLoader.C: added #include "format.h"
223 2003-02-26 Angus Leeming <leeming@lyx.org>
225 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
226 use the cache of the parent inset instead.
228 * PreviewLoader.C (startLoading): Prevent a crash if the user is
229 not using a tmp directory.
231 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
233 * GraphicsLoader.[Ch],
235 * PreviewedInset.C: Removed unneeded list of owner insets
237 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
239 * GraphicsConverter (startConversion): add the call to
242 * GraphicsLoader.[Ch],
244 * PreviewedInset.C: Removed unneeded BufferView
246 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
248 * LoaderQueue.[Ch]: a simplification of the code, eliminated
249 the unneeded input bucket.
251 * GraphicsCacheItem.C (imageConverted): move warning inside the
254 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
256 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
258 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
260 * LoaderQueue.[Ch] (setPriority): added
262 * PreviewLoader.C (finishedGenerating): reversed the loading order so
263 first images get 'touched' last, and so load first.
265 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
267 * LoaderQueue.[Ch]: added. Implements a service queue that loads
269 * GraphicsSupport.[Ch]: removed
270 * Makefile.am: the changes above
271 * GraphicsLoader.C: use the loading queue
273 2003-01-21 Angus Leeming <leeming@lyx.org>
275 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
276 previews from being generated.
278 2003-01-13 Angus Leeming <leeming@lyx.org>
280 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
281 format to be PPM not XPM.
283 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
285 * Makefile.am (EXTRA_DIST): remove variable
287 2002-12-13 Angus Leeming <leeming@lyx.org>
289 * GraphicsImageXPM.[Ch]: removed.
291 * Makefile.am: associated change.
293 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
295 * several files: ws changes
297 2002-11-21 Angus Leeming <leeming@lyx.org>
299 * GraphicsConverter.C (build_script, move_file):
300 Don't use "if [ $? -ne 0 ]; then..."
302 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
304 * PreviewLoader.C (IncrementedFileName): STRCONV
305 (startLoading): ditto
307 * GraphicsConverter.C (Impl): STRCONV
310 * GraphicsTypes.C: include config.h
312 2002-10-25 Angus Leeming <leeming@lyx.org>
314 * GraphicsConverter.C (Impl::converted)
315 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
316 string as first arg, reflecting change in ForkedCall interface.
318 * PreviewLoader.C: use pid rather than command as identifier in
321 2002-10-18 Angus Leeming <leeming@lyx.org>
323 * GraphicsCacheItem.C (findTargetFormat): add debug message.
325 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
327 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
329 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
331 * GraphicsConverter.C (build_script): do not use ChangeExtension
335 2002-09-05 Angus Leeming <leeming@lyx.org>
337 * all files: modify the headers as discussed on the list.
339 2002-09-04 Angus Leeming <leeming@lyx.org>
341 * PreviewLoader.C (startLoading): pass the desired output format to the
344 2002-09-04 Angus Leeming <leeming@lyx.org>
346 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
348 2002-09-03 Angus Leeming <leeming@lyx.org>
350 * PreviewLoader.C: fix crash reported by Norbert Koksch when
351 generating more than 999 preview snippets. Use filenames with 5 digit
352 numbers, not 3, in the first instance, although more general code is
353 commented out. I don't suppose /anyone/ has 100000 formulae in one
356 2002-09-03 Angus Leeming <leeming@lyx.org>
358 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
360 2002-09-03 Angus Leeming <leeming@lyx.org>
362 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
364 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
366 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
367 convertDefault command with "sh ".
369 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
371 * GraphicsImage.C: small style fix to width/height setting.
373 * GraphicsTypes.h: have a displayTranslator here.
376 * GraphicsTypes.C: new file added for the setDisplayTranslator();
378 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
381 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
382 because this input has gone from the graphics dialog.
384 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
386 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
388 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
389 for support/smart_ptr.h, switch to boost smart ptr.
391 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
392 (~Data): let the smart_ptr handle cleanup
393 (reset): use nifty 3rd arg
395 (free_color_table): free the table manually
397 2002-08-09 Angus Leeming <leeming@lyx.org>
399 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
400 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
401 input@path is now set correctly.
403 2002-08-06 Angus Leeming <leeming@lyx.org>
405 * PreviewLoader.C: add support for preview.sty 0.73 (currently
406 #ifdef-ed out, awaiting the formal release).
408 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
409 the contents of a file that has changed.
411 2002-08-05 Angus Leeming <leeming@lyx.org>
413 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
414 to preview.sty. Works only for versions of preview.sty > 0.72b but
415 doesn't hurt earlier versions. Allows me to test the new parsing of
416 LyX-specific data from the generated log file.
418 2002-08-02 Angus Leeming <leeming@lyx.org>
420 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
422 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
423 (add): don't add empty snippets.
425 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
426 (view, setView): access to to the cache_.
428 2002-08-02 Angus Leeming <leeming@lyx.org>
430 * PreviewedInset.[Ch]: cache the LaTeX snippet.
432 2002-08-01 Angus Leeming <leeming@lyx.org>
434 * PreviewedInset.[Ch]: new files. An abstract base class that can help
435 insets to generate previews.
436 The daughter class must instantiate three small methods.
437 The Inset would own an instance of this daughter class and invoke it
438 as necessary. For example, mathd/formula.C gets previews at the cost
439 of 15 or so lines of code.
441 * Makefile.am: add PreviewedInset.[Ch].
443 * PreviewLoader.C (add): add debug message.
445 * Previews.C (generateBufferPreviews): remove if-block from loop.
447 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
449 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
451 (setAscentFractions): ditto
453 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
455 * PreviewLoader.C (setAscentFractions): modify because of strip
458 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
460 * GraphicsConverter.C (build_script): take a ostream as a more
461 general argument than ostringstream.
463 2002-07-22 Herbert Voss <voss@lyx.org>
465 * GraphicsConverter.C: get the "default converter" run again
467 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
469 * PreviewLoader.C: use BufferParams::getLyXTextClass
471 2002-07-21 Herbert Voss <voss@lyx.org>
473 * GraphicsImage.C: get the LyXAspectRatio run.
475 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
477 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
479 * PreviewLoader.C (startLoading): pass an interger as resolution
480 to the lyxpreview converter
482 * GraphicsParams.C: include <cstdlib>
484 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
486 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
487 preview converter script
489 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
491 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
494 2002-07-18 Angus Leeming <leeming@lyx.org>
496 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
498 (startMonitoring, monitoring, checksum): new methods to interact with
501 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
502 methods invoking the CacheItem methods of the same name.
503 (resetFile): if monitoring and the file changes, start monitoring this
506 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
508 * Makefile.am: remove FileMonitor.[Ch]
510 2002-06-17 Herbert Voss <voss@lyx.org>
512 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
513 for old ps-files (Garst). It's now handled by defining a converter and
514 disabling the ps-support of xforms.
516 2002-07-17 Angus Leeming <leeming@lyx.org>
518 Be true to the Pimpl idiom, moving all signals into the respective
519 Impl classes and defining methods to connect them to an outside slot.
520 Const-ify all visible class methods as they act only on a const pimpl_.
522 * GraphicsCache.[Ch] (add, remove): const-ify.
524 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
525 (statusChanged): move the signal into the Impl class.
526 (connect): new method, enabling a listener to connect to this signal.
528 * GraphicsConverter.[Ch]: (startConversion): const-ify.
529 (finishedConversion): move the signal into the Impl class.
530 (connect): new method, enabling a listener to connect to this signal.
532 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
533 (statusChanged): move the signal into the Impl class.
534 (connect): new method, enabling a listener to connect to this signal.
536 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
537 (imageReady): move the signal into the Impl class.
538 (connect): new method, enabling a listener to connect to this signal.
539 (emitSignal): new method, enabling PreviewImage to tell the outside
540 world that the file has been loaded into memory.
542 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
546 * GraphicsCacheItem.C:
547 * GraphicsConverter.[Ch]:
549 * GraphicsImageXPM.C:
551 * PreviewLoader.[Ch]: whitespace clean-up.
553 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
555 * PreviewLoader.C (setConverter): remove unused variable
557 * GraphicsImageXPM.C (isDrawable): implement
558 (setPixmap): the opaque color is black, not white
560 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
562 * GraphicsImageXPM.C (color_none_id):
563 (contains_color_none): use ascii_lowercase instead of lowercase
565 2002-07-16 Angus Leeming <leeming@lyx.org>
567 * PreviewLoader.C: greater use of STL algorithms.
569 * Previews.[Ch]: use const in more places.
570 (generateBufferPreviews): now takes a Buffer const & argument, not a
573 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
575 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
577 2002-07-12 Angus Leeming <leeming@lyx.org>
579 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
580 if visible 2 secs after the call to load them is first made.
582 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
583 BufferView to ascertain whether the inset is visible or not.
585 * Makefile.am: added GraphicsSupport.[Ch].
587 * PreviewImage.[Ch]: use this smart loader.
589 * PreviewLoader.C: don't load generated image files indiscimminantly.
590 Instead emit the imageReady signal and allow the image owner to decide.
592 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
594 * GraphicsCache.C: remove init_graphics()
596 2002-07-09 Angus Leeming <leeming@lyx.org>
598 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
599 arithmetic when it should be floating.
601 2002-07-09 Angus Leeming <leeming@lyx.org>
603 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
604 Output equation labels as "(#)" if lyxrc preference is set.
605 (setFontScalingFactor): use lyxrc variable preview_scale_factor
606 rather than hard-coding this.
608 2002-07-09 Angus Leeming <leeming@lyx.org>
610 * PreviewLoader.C: Further refactoring of the code. Should now be
613 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
614 past its sell-by date. The code to read the metrics file is now found
615 as a helper function in PreviewLoader.C.
617 * GraphicsImageXPM.C (scale): use boost::tie.
619 2002-07-08 Herbert Voss <voss@lyx.org>
621 * PreviewLoader.C: use of preview_size_factor to get the right
622 font-size! 0.9 is the default.
624 2002-07-08 Angus Leeming <leeming@lyx.org>
626 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
627 invocation of preview.sty.
628 Perform something of an internal clean-up.
630 2002-07-06 Angus Leeming <leeming@lyx.org>
632 * PreviewLoader.C: ensure that the metrics data is used by the
636 * PreviewImage.C: (Impl d-tor): remove all generated files that still
637 exist (perhaps because the process was curtailed before the images
640 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
642 2002-07-05 Angus Leeming <leeming@lyx.org>
651 * Previews.C: new files. The previewed LaTeX snippet stuff.
653 * Makefile.am: add these files.
655 2002-07-05 Angus Leeming <leeming@lyx.org>
657 * GraphicsLoader.h: whitespace.
659 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
661 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
662 boost::function from boost::signal.
664 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
666 * GraphicsConverter.C (convert): do not use ChangeExtension
667 because to_file_base may contain a dot.
669 2002-06-28 Angus Leeming <leeming@lyx.org>
671 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
672 by moving those SignalPtrs into the grfx::Image and grfx::Converter
673 classes where they really belong.
674 Use the Pimpl idiom to hide the class internals from public view.
676 * GraphicsTypes: remove the typedefs, leaving only the enums.
678 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
679 passed a reference to one in the load() method.
681 * GraphicsConverter.[Ch]: totally refactored. An instance of
682 grfx::Converter now represents a single conversion process.
683 Thus grfx::CachItem now has a grfx::Converter * that is set when the
684 conversion is initiated and destroyed on completion.
686 * GraphicsCache.[Ch]:
687 * GraphicsCacheItem.[Ch]:
688 * GraphicsConverter.[Ch]:
689 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
691 Note that I have done this only after making the above changes,
692 so not only should we have a clean, minimal and well documented
693 interface to these classes in the header files, but the class internals
694 should be much clearer too.
697 grfx::GCache -> grfx::Cache,
698 grfx::GCacheItem -> grfx::CacheItem,
699 grfx::GConverter -> grfx::Converter,
700 grfx::GImage -> grfx::Image,
701 grfx::GImageXPM -> grfx::ImageXPM,
702 grfx::GParams -> grfx::Params.
704 2002-06-26 Angus Leeming <leeming@lyx.org>
706 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
707 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
710 2002-06-26 Angus Leeming <leeming@lyx.org>
712 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
713 move the DisplayType enum out of grfx::GParams to here.
715 * GraphicsCacheItem.h: re-write preliminary description to reflect
718 * GraphicsParams.[Ch]:
719 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
720 grfx::DisplayType out of grfx::GParams.
722 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
723 that was in frontends/screen.C and insets/insetgraphics.C into a
724 single, easy-to-use class.
726 * Makefile.am: add these files.
728 2002-06-25 Angus Leeming <leeming@lyx.org>
730 * GraphicsCache.[Ch]:
731 * GraphicsCacheItem.[Ch]:
732 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
733 file into memory. The cache no longer controls the generation of the
734 pixmap. Instead, it just emits a signal when the loading status of an
736 The cache no longer stores InsetGraphics pointers and nor does it
737 assume responsibility for modifying an image (scaling, rotating etc).
738 Instead, that must now be performed elsewhere.
740 2002-06-19 Angus Leeming <leeming@lyx.org>
742 * GraphicsConverter.C: add using std::endl directive.
744 2002-06-17 Herbert Voss <voss@lyx.org>
746 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
747 default when nothing different was found
748 (convertToDisplayFormat): handle zipped files in the right way and
749 choose always convert as a default converter when no other
750 userdefined was found
752 * GraphicsConverter.C: add more lyxerr comments and choose
753 convert when no other userdefined converter was found
755 2002-06-10 Herbert Voss <voss@lyx.org>
757 * GraphicsImageXPM.C (convertTo7chars): get another special color
758 format from convert work in the right way
760 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
762 * GraphicsCache.C: use right colormap incantation
764 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
766 * GraphicsCache.C: use lyx_gui namespace
768 * GraphicsImageXPM.C: back down to using xforms
771 2002-06-07 Angus Leeming <leeming@lyx.org>
773 Fixes needed to compile with Compaq cxx 6.5.
774 * GraphicsConverter.h: forward declare class ConvProcess.
776 * GraphicsImageXPM.C:
777 all c-library variables have been moved into namespace std.
778 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
780 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
782 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
784 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
786 * GraphicsImageXPM.C: SigC to boot::signals changes.
787 (newImage): fix () bug when using new.
789 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
791 * switch from SigC signals to boost::signals.
793 2002-05-29 André Pönitz <poenitz@gmx.net>
795 * GraphicsParam.C: remove unneeded #include, move vomment
797 2002-05-28 André Pönitz <poenitz@gmx.net>
799 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
801 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
803 * GraphicsImageXPM.C: ColorHandler moved
805 2002-05-24 Juergen Vigna <jug@sad.it>
808 * GraphicsImage.h: include LString.h first.
810 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
812 * GraphicsCacheItem.h: use more specific smart_ptr header.
813 * GraphicsTypes.h: ditto
814 * GraphicsImage.h: ditto
815 * GraphicsConverter.h: ditto
817 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
819 * GraphicsImageXPM.C: understand convert's use of "opaque"
822 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
824 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
825 GImage::loadableFormats() that ensures that the signal is connected
826 to the derived class' method.
828 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
830 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
831 only work on the string.
833 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
835 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
836 the simple image loader when it encounters colour strings like
839 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
841 * GraphicsCacheItem.C (convertToDisplayFormat):
842 * GraphicsConverter.C (build_script): remove the Alerts when things go
843 wrong as the inset displays the message anyway. Moreover, Alert seems
844 pretty temperamemtal at the moment.
846 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
848 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
850 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
852 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
853 a reference to a temp object that's going out of scope...
855 2002-04-09 Herbert Voss <voss@lyx.org>
857 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
858 LyXLength::inBP instead of inPixels.
860 2002-04-10 Herbert Voss <voss@perce.de>
862 * GraphicsCache.[Ch]:
863 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
864 to read the "Bounding Box" from non (e)ps files.
866 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
868 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
869 the EPS file too, to ensure that the clipped Bounding Box is relative
870 to the original. (From Herbert.)
872 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
874 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
875 variables are initialised. Clean-up parsing of the string (with thanks
878 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
880 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
881 if the file can't be found.
883 * GraphicsParams.h (c-tor): remove string() as default argument.
885 * GraphicsCacheItem.C: a couple of changes as a result.
887 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
889 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
890 path to graphics file.
892 * GraphicsParams.[Ch] (c-tor): now passed filepath.
894 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
896 * most files: ws cleanup
898 * Makefile.am: remove ld -r stuff
900 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
902 * Makefile.am: special rules if partial linking
904 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
906 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
908 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
910 * GraphicsConverter.[Ch] (converted): make first arg const ref.
912 * GraphicsCacheItem.h: doxy change
914 * GraphicsCacheItem.C: ws change
916 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
918 * Makefile.am: if there is no image loading class leveraging the power
919 of the appropriate gui library, then compile the basic alternative
920 found in GraphicsImageXPM.[Ch].
922 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
924 * GraphicsCache.C: change associated with move of initialiseGraphics
927 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
929 * GraphicsParams.[Ch]:
931 * GraphicsImageXPM.C: properly resolve more warnings about comparison
932 between signed and unsigned integer expressions.
934 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
936 * GraphicsCache.C: move connections to the GImage-derived classes to
939 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
941 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
942 conversion, then do that.
944 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
946 * GraphicsCache.C: improve commentary to graphicsInit and where it
949 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
950 that became a memory leak properly. (Let the shared_c_ptr free the
952 (reset, mapcolor): tidy up and introduce a work around for XPM files
953 with crappy color entries. Print out a nice friendly message on what's
954 gone wrong and how to resolve it properly.
956 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
958 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
959 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
961 (unique_color_string): use the correct string c-tor.
963 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
966 * ImageLoaderXPM.[Ch]: removed.
968 * GraphicsConverter.[Ch]:
969 * GraphicsImage.[Ch]:
970 * GraphicsImageXPM.[Ch]:
971 * GraphicsParams.[Ch]:
972 * GraphicsTypes.h: new files.
974 * All files. A total re-write of the graphics cache. The cache now
975 supports asynchronous file conversion and file loading. Images
976 can be cropped, rotated and scaled for display on the LyX screen.
977 The old LyXImage and ImageLoader have been combined in a new class
978 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
981 2002-02-07 Herbert Voss <voss@lyx.org>
983 * GraphicsCacheItem.C: use unzipFile() from support/filetools
985 2002-01-31 Herbert Voss <voss@lyx.org>
987 * GraphicsCacheItem.h: handle filetype without the file extension;
988 getting type from contents; handle zipped files
990 2002-01-27 Herbert Voss <voss@lyx.org>
992 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
994 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
996 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
998 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1000 * GraphicsCacheItem.h: do not include <config.h> in header files
1002 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1004 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1005 transparent colour, then set it to the colour of the background.
1006 Also take account of the monochrome, grayscale of color
1009 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1011 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1012 are different. Thus, don't delete the "to" if it's the original!
1014 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1016 * ImageLoadXPM.C: remove setting of alloc colour mask,
1017 led to crash as we don't define a callback
1019 2001-07-29 Baruch Even <baruch@lyx.org>
1021 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1022 colors with closeness of 10000.
1024 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1026 2001-07-29 Baruch Even <baruch@lyx.org>
1028 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1031 2001-07-23 Baruch Even <baruch@lyx.org>
1033 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1034 the image after conversion.
1036 2001-07-17 Baruch Even <baruch@lyx.org>
1038 * GraphicsCacheItem.h:
1039 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1040 from synchronous to asynchronous and to ease the coming changes.
1042 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1044 * ImageLoaderXPM.C (runImageLoader): get display information from
1047 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1050 * GraphicsCacheItem.C:
1052 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1054 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1056 * GraphicsCache.h: inherit privately from noncopyable
1057 * ImageLoader.h: ditto
1058 * GraphicsCacheItem.h: ditto
1060 2001-04-16 Allan Rae <rae@lyx.org>
1062 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1063 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1066 2001-04-02 Baruch Even <baruch@lyx.org>
1068 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1069 of hard coding ImageMagick.
1071 2001-03-10 Baruch Even <baruch@lyx.org>
1073 * GraphicsCache.C: Style change from (*it).field to it->field
1075 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1077 * GraphicsCache.h: noncopyable is in namespace boost
1078 * ImageLoader.h: ditto
1079 * GraphicsCacheItem.h: ditto
1081 2001-03-07 Baruch Even <baruch@lyx.org>
1083 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1084 was false and it's not needed anyhow since the shared_ptr's in the cache
1085 will destroy everything on exit.
1087 2001-02-28 Baruch Even <baruch@ev-en.org>
1090 * GraphicsCache.C: Changed the singleton pattern implementation, the
1091 former version "leaked" in the sense that it was not deallocated at
1094 2001-02-20 Baruch Even <baruch@ev-en.org>
1096 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1097 instead of a pure pointer.
1099 * GraphicsCacheItem.[Ch]:
1100 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1101 removed the reference counting that was inside. Also fixed a bug where
1102 a temporary file wouldn't get erased.
1104 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1105 Ownership is now dropped when the caller requests the image_ pointer.
1107 2001-02-20 Baruch Even <baruch@ev-en.org>
1109 * GraphicsCache.C: Cleared up the confusion on when and how it is
1112 * GraphicsCacheItem.C: Indentation change.
1114 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1115 figure correctly when the image has been loaded successfully.
1117 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1119 * ImageLoader.C: add a "using" directive.
1121 * ImageLoader.h: remove extra comma at the end of enum; add an
1122 std:: qualifier for vector.
1124 2001-01-21 Baruch Even <baruch@ev-en.org>
1126 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1127 height in the image itself and minor cleanups.
1129 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1130 new ImageLoader class instead of the older Renderer class. This
1131 means change of responsibilities.