1 2003-10-22 Angus Leeming <leeming@lyx.org>
3 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
4 to contain the conversion script cannot be opened.
6 2003-10-22 Angus Leeming <leeming@lyx.org>
8 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
11 2003-10-13 Angus Leeming <leeming@lyx.org>
13 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
14 Make displayTranslator a function,
16 2003-10-10 Angus Leeming <leeming@lyx.org>
18 * PreviewedInset.[Ch]: removed.
20 * Makefile.am: remove PreviewedInset.[Ch].
22 2003-10-09 Angus Leeming <leeming@lyx.org>
24 * PreviewedInset.[Ch] (previewReady): remove the side effects.
25 Now simply reports whether the preview is ready.
27 2003-10-09 Angus Leeming <leeming@lyx.org>
29 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
30 Remove the inset and view member functions.
31 Add a new connect member function and preview_ready_signal_ member
32 variable, to enable the class to tell an arbirary connectee that the
35 2003-10-09 Angus Leeming <leeming@lyx.org>
37 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
38 are now passed a 'Buffer const &', eliminating most of the remaining
39 need for PreviewedInset to use a BufferView cache.
41 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
44 * PreviewImage.h: add <string> and other small fixes to make
45 Lars' std::string patch compile with STLport.
47 2003-09-29 Angus Leeming <leeming@lyx.org>
49 * GraphicsParams.[Ch] (asString): removed. Replaced with
50 operator<<(std::ostream &, BoundingBox const &).
52 2003-09-25 Angus Leeming <leeming@lyx.org>
54 * GraphicsParams.[Ch] (asString): new member function.
56 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
58 * Previews.C (Previews): fix new bug
60 * GraphicsCache.C (Cache): fix new bug
62 2003-09-19 Angus Leeming <leeming@lyx.org>
64 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
65 a 'Buffer const &' argument.
67 2003-09-18 Angus Leeming <leeming@lyx.org>
69 * PreviewedInset.C (latexString): add a Buffer const & arg.
70 * PreviewedInset.C (addPreview): pass the buffer to latexString.
72 2003-09-16 Angus Leeming <leeming@lyx.org>
74 * PreviewedInset.[Ch] (c-tor) move out of line.
75 (d-tor): make private.
76 (inset): return a const reference rather than a non-const pointer.
78 2003-09-16 Angus Leeming <leeming@lyx.org>
80 * GraphicsImage.h: separate interface from implementation. Make all the
81 pure virtual functions private.
83 2003-09-16 Angus Leeming <leeming@lyx.org>
85 * PreviewLoader.C: add #include "LColor.h".
87 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
90 * PreviewLoader.C: remove usage of STRCONV
92 2003-09-14 Angus Leeming <leeming@lyx.org>
94 * PreviewLoader.C (remove): consider all InProgressProcesses when
95 ascertaining which ones to remove from the list, not every other one.
97 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
99 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
102 2003-09-08 Angus Leeming <leeming@lyx.org>
106 * PreviewLoader.C: remove redundant using directives.
108 2003-09-07 Angus Leeming <leeming@lyx.org>
111 * Previews.h: remove #include "support/std_string.h".
113 2003-09-06 Angus Leeming <leeming@lyx.org>
115 * PreviewedInset.C: add #include "insets/inset.h"
117 2003-09-05 Angus Leeming <leeming@lyx.org>
119 * *.C: strip out redundant #includes. (26 in total.)
121 2003-09-04 Angus Leeming <leeming@lyx.org>
123 * LoaderQueue.C (get):
125 2003-09-04 Angus Leeming <leeming@lyx.org>
128 * GraphicsCacheItem.C:
129 * GraphicsConverter.C:
133 * Previews.C: 'namespace support = lyx::support' rather than
134 'using lyx::support'.
136 * Previews.h: cleaned up some comments.
138 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
140 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
142 * GraphicsTypes.h: do not declare displayTranstor here (and remove
145 2003-07-27 José Matos <jamatos@fep.up.pt>
147 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
150 2003-07-21 Angus Leeming <leeming@lyx.org>
153 * GraphicsCacheItem.[Ch]:
156 * PreviewedInset.[Ch]:
157 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
159 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
161 * Change namespace grfx to lyx::graphics.
163 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
165 * introcude namespace lyx::support
167 2003-06-04 Angus Leeming <leeming@lyx.org>
169 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
170 (operator=): if it has a copy c-tor, it should have this too.
172 2003-06-03 Angus Leeming <leeming@lyx.org>
174 * GraphicsLoader.[Ch] (Loader): add copy constructor.
176 2003-05-23 Angus Leeming <leeming@lyx.org>
178 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
180 2003-05-22 Angus Leeming <leeming@lyx.org>
182 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
183 the inset::latex method.
185 2003-05-22 Angus Leeming <leeming@lyx.org>
187 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
188 the inset::latex method.
190 2003-05-22 Angus Leeming <leeming@lyx.org>
192 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
193 makeLaTeXFile is now encapsulated within runparams.
195 2003-05-22 Angus Leeming <leeming@lyx.org>
197 * PreviewLoader.C (dumpPreamble):
198 pass around a LatexRunParams parameter.
200 2003-05-13 André Pönitz <poenitz@gmx.net>
202 * GraphicsConverter.C:
203 * PreviewLoader.C: use tostr from own header
205 2003-05-12 André Pönitz <poenitz@gmx.net>
207 * PreviewLoader.C: boost::format -> bformat
209 2003-04-15 Angus Leeming <leeming@lyx.org>
211 * GraphicsConverter.C: #include lstrings.h.
213 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
215 * GraphicsConverter.C
216 * PreviewLoader.C: added #include "format.h"
218 2003-02-26 Angus Leeming <leeming@lyx.org>
220 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
221 use the cache of the parent inset instead.
223 * PreviewLoader.C (startLoading): Prevent a crash if the user is
224 not using a tmp directory.
226 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
228 * GraphicsLoader.[Ch],
230 * PreviewedInset.C: Removed unneeded list of owner insets
232 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
234 * GraphicsConverter (startConversion): add the call to
237 * GraphicsLoader.[Ch],
239 * PreviewedInset.C: Removed unneeded BufferView
241 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
243 * LoaderQueue.[Ch]: a simplification of the code, eliminated
244 the unneeded input bucket.
246 * GraphicsCacheItem.C (imageConverted): move warning inside the
249 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
251 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
253 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
255 * LoaderQueue.[Ch] (setPriority): added
257 * PreviewLoader.C (finishedGenerating): reversed the loading order so
258 first images get 'touched' last, and so load first.
260 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
262 * LoaderQueue.[Ch]: added. Implements a service queue that loads
264 * GraphicsSupport.[Ch]: removed
265 * Makefile.am: the changes above
266 * GraphicsLoader.C: use the loading queue
268 2003-01-21 Angus Leeming <leeming@lyx.org>
270 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
271 previews from being generated.
273 2003-01-13 Angus Leeming <leeming@lyx.org>
275 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
276 format to be PPM not XPM.
278 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
280 * Makefile.am (EXTRA_DIST): remove variable
282 2002-12-13 Angus Leeming <leeming@lyx.org>
284 * GraphicsImageXPM.[Ch]: removed.
286 * Makefile.am: associated change.
288 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
290 * several files: ws changes
292 2002-11-21 Angus Leeming <leeming@lyx.org>
294 * GraphicsConverter.C (build_script, move_file):
295 Don't use "if [ $? -ne 0 ]; then..."
297 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
299 * PreviewLoader.C (IncrementedFileName): STRCONV
300 (startLoading): ditto
302 * GraphicsConverter.C (Impl): STRCONV
305 * GraphicsTypes.C: include config.h
307 2002-10-25 Angus Leeming <leeming@lyx.org>
309 * GraphicsConverter.C (Impl::converted)
310 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
311 string as first arg, reflecting change in ForkedCall interface.
313 * PreviewLoader.C: use pid rather than command as identifier in
316 2002-10-18 Angus Leeming <leeming@lyx.org>
318 * GraphicsCacheItem.C (findTargetFormat): add debug message.
320 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
322 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
324 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
326 * GraphicsConverter.C (build_script): do not use ChangeExtension
330 2002-09-05 Angus Leeming <leeming@lyx.org>
332 * all files: modify the headers as discussed on the list.
334 2002-09-04 Angus Leeming <leeming@lyx.org>
336 * PreviewLoader.C (startLoading): pass the desired output format to the
339 2002-09-04 Angus Leeming <leeming@lyx.org>
341 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
343 2002-09-03 Angus Leeming <leeming@lyx.org>
345 * PreviewLoader.C: fix crash reported by Norbert Koksch when
346 generating more than 999 preview snippets. Use filenames with 5 digit
347 numbers, not 3, in the first instance, although more general code is
348 commented out. I don't suppose /anyone/ has 100000 formulae in one
351 2002-09-03 Angus Leeming <leeming@lyx.org>
353 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
355 2002-09-03 Angus Leeming <leeming@lyx.org>
357 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
359 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
361 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
362 convertDefault command with "sh ".
364 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
366 * GraphicsImage.C: small style fix to width/height setting.
368 * GraphicsTypes.h: have a displayTranslator here.
371 * GraphicsTypes.C: new file added for the setDisplayTranslator();
373 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
376 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
377 because this input has gone from the graphics dialog.
379 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
381 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
383 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
384 for support/smart_ptr.h, switch to boost smart ptr.
386 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
387 (~Data): let the smart_ptr handle cleanup
388 (reset): use nifty 3rd arg
390 (free_color_table): free the table manually
392 2002-08-09 Angus Leeming <leeming@lyx.org>
394 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
395 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
396 input@path is now set correctly.
398 2002-08-06 Angus Leeming <leeming@lyx.org>
400 * PreviewLoader.C: add support for preview.sty 0.73 (currently
401 #ifdef-ed out, awaiting the formal release).
403 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
404 the contents of a file that has changed.
406 2002-08-05 Angus Leeming <leeming@lyx.org>
408 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
409 to preview.sty. Works only for versions of preview.sty > 0.72b but
410 doesn't hurt earlier versions. Allows me to test the new parsing of
411 LyX-specific data from the generated log file.
413 2002-08-02 Angus Leeming <leeming@lyx.org>
415 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
417 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
418 (add): don't add empty snippets.
420 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
421 (view, setView): access to to the cache_.
423 2002-08-02 Angus Leeming <leeming@lyx.org>
425 * PreviewedInset.[Ch]: cache the LaTeX snippet.
427 2002-08-01 Angus Leeming <leeming@lyx.org>
429 * PreviewedInset.[Ch]: new files. An abstract base class that can help
430 insets to generate previews.
431 The daughter class must instantiate three small methods.
432 The Inset would own an instance of this daughter class and invoke it
433 as necessary. For example, mathd/formula.C gets previews at the cost
434 of 15 or so lines of code.
436 * Makefile.am: add PreviewedInset.[Ch].
438 * PreviewLoader.C (add): add debug message.
440 * Previews.C (generateBufferPreviews): remove if-block from loop.
442 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
444 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
446 (setAscentFractions): ditto
448 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
450 * PreviewLoader.C (setAscentFractions): modify because of strip
453 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
455 * GraphicsConverter.C (build_script): take a ostream as a more
456 general argument than ostringstream.
458 2002-07-22 Herbert Voss <voss@lyx.org>
460 * GraphicsConverter.C: get the "default converter" run again
462 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
464 * PreviewLoader.C: use BufferParams::getLyXTextClass
466 2002-07-21 Herbert Voss <voss@lyx.org>
468 * GraphicsImage.C: get the LyXAspectRatio run.
470 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
472 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
474 * PreviewLoader.C (startLoading): pass an interger as resolution
475 to the lyxpreview converter
477 * GraphicsParams.C: include <cstdlib>
479 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
481 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
482 preview converter script
484 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
486 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
489 2002-07-18 Angus Leeming <leeming@lyx.org>
491 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
493 (startMonitoring, monitoring, checksum): new methods to interact with
496 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
497 methods invoking the CacheItem methods of the same name.
498 (resetFile): if monitoring and the file changes, start monitoring this
501 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
503 * Makefile.am: remove FileMonitor.[Ch]
505 2002-06-17 Herbert Voss <voss@lyx.org>
507 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
508 for old ps-files (Garst). It's now handled by defining a converter and
509 disabling the ps-support of xforms.
511 2002-07-17 Angus Leeming <leeming@lyx.org>
513 Be true to the Pimpl idiom, moving all signals into the respective
514 Impl classes and defining methods to connect them to an outside slot.
515 Const-ify all visible class methods as they act only on a const pimpl_.
517 * GraphicsCache.[Ch] (add, remove): const-ify.
519 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
520 (statusChanged): move the signal into the Impl class.
521 (connect): new method, enabling a listener to connect to this signal.
523 * GraphicsConverter.[Ch]: (startConversion): const-ify.
524 (finishedConversion): move the signal into the Impl class.
525 (connect): new method, enabling a listener to connect to this signal.
527 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
528 (statusChanged): move the signal into the Impl class.
529 (connect): new method, enabling a listener to connect to this signal.
531 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
532 (imageReady): move the signal into the Impl class.
533 (connect): new method, enabling a listener to connect to this signal.
534 (emitSignal): new method, enabling PreviewImage to tell the outside
535 world that the file has been loaded into memory.
537 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
541 * GraphicsCacheItem.C:
542 * GraphicsConverter.[Ch]:
544 * GraphicsImageXPM.C:
546 * PreviewLoader.[Ch]: whitespace clean-up.
548 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
550 * PreviewLoader.C (setConverter): remove unused variable
552 * GraphicsImageXPM.C (isDrawable): implement
553 (setPixmap): the opaque color is black, not white
555 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
557 * GraphicsImageXPM.C (color_none_id):
558 (contains_color_none): use ascii_lowercase instead of lowercase
560 2002-07-16 Angus Leeming <leeming@lyx.org>
562 * PreviewLoader.C: greater use of STL algorithms.
564 * Previews.[Ch]: use const in more places.
565 (generateBufferPreviews): now takes a Buffer const & argument, not a
568 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
570 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
572 2002-07-12 Angus Leeming <leeming@lyx.org>
574 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
575 if visible 2 secs after the call to load them is first made.
577 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
578 BufferView to ascertain whether the inset is visible or not.
580 * Makefile.am: added GraphicsSupport.[Ch].
582 * PreviewImage.[Ch]: use this smart loader.
584 * PreviewLoader.C: don't load generated image files indiscimminantly.
585 Instead emit the imageReady signal and allow the image owner to decide.
587 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
589 * GraphicsCache.C: remove init_graphics()
591 2002-07-09 Angus Leeming <leeming@lyx.org>
593 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
594 arithmetic when it should be floating.
596 2002-07-09 Angus Leeming <leeming@lyx.org>
598 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
599 Output equation labels as "(#)" if lyxrc preference is set.
600 (setFontScalingFactor): use lyxrc variable preview_scale_factor
601 rather than hard-coding this.
603 2002-07-09 Angus Leeming <leeming@lyx.org>
605 * PreviewLoader.C: Further refactoring of the code. Should now be
608 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
609 past its sell-by date. The code to read the metrics file is now found
610 as a helper function in PreviewLoader.C.
612 * GraphicsImageXPM.C (scale): use boost::tie.
614 2002-07-08 Herbert Voss <voss@lyx.org>
616 * PreviewLoader.C: use of preview_size_factor to get the right
617 font-size! 0.9 is the default.
619 2002-07-08 Angus Leeming <leeming@lyx.org>
621 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
622 invocation of preview.sty.
623 Perform something of an internal clean-up.
625 2002-07-06 Angus Leeming <leeming@lyx.org>
627 * PreviewLoader.C: ensure that the metrics data is used by the
631 * PreviewImage.C: (Impl d-tor): remove all generated files that still
632 exist (perhaps because the process was curtailed before the images
635 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
637 2002-07-05 Angus Leeming <leeming@lyx.org>
646 * Previews.C: new files. The previewed LaTeX snippet stuff.
648 * Makefile.am: add these files.
650 2002-07-05 Angus Leeming <leeming@lyx.org>
652 * GraphicsLoader.h: whitespace.
654 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
656 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
657 boost::function from boost::signal.
659 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
661 * GraphicsConverter.C (convert): do not use ChangeExtension
662 because to_file_base may contain a dot.
664 2002-06-28 Angus Leeming <leeming@lyx.org>
666 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
667 by moving those SignalPtrs into the grfx::Image and grfx::Converter
668 classes where they really belong.
669 Use the Pimpl idiom to hide the class internals from public view.
671 * GraphicsTypes: remove the typedefs, leaving only the enums.
673 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
674 passed a reference to one in the load() method.
676 * GraphicsConverter.[Ch]: totally refactored. An instance of
677 grfx::Converter now represents a single conversion process.
678 Thus grfx::CachItem now has a grfx::Converter * that is set when the
679 conversion is initiated and destroyed on completion.
681 * GraphicsCache.[Ch]:
682 * GraphicsCacheItem.[Ch]:
683 * GraphicsConverter.[Ch]:
684 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
686 Note that I have done this only after making the above changes,
687 so not only should we have a clean, minimal and well documented
688 interface to these classes in the header files, but the class internals
689 should be much clearer too.
692 grfx::GCache -> grfx::Cache,
693 grfx::GCacheItem -> grfx::CacheItem,
694 grfx::GConverter -> grfx::Converter,
695 grfx::GImage -> grfx::Image,
696 grfx::GImageXPM -> grfx::ImageXPM,
697 grfx::GParams -> grfx::Params.
699 2002-06-26 Angus Leeming <leeming@lyx.org>
701 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
702 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
705 2002-06-26 Angus Leeming <leeming@lyx.org>
707 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
708 move the DisplayType enum out of grfx::GParams to here.
710 * GraphicsCacheItem.h: re-write preliminary description to reflect
713 * GraphicsParams.[Ch]:
714 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
715 grfx::DisplayType out of grfx::GParams.
717 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
718 that was in frontends/screen.C and insets/insetgraphics.C into a
719 single, easy-to-use class.
721 * Makefile.am: add these files.
723 2002-06-25 Angus Leeming <leeming@lyx.org>
725 * GraphicsCache.[Ch]:
726 * GraphicsCacheItem.[Ch]:
727 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
728 file into memory. The cache no longer controls the generation of the
729 pixmap. Instead, it just emits a signal when the loading status of an
731 The cache no longer stores InsetGraphics pointers and nor does it
732 assume responsibility for modifying an image (scaling, rotating etc).
733 Instead, that must now be performed elsewhere.
735 2002-06-19 Angus Leeming <leeming@lyx.org>
737 * GraphicsConverter.C: add using std::endl directive.
739 2002-06-17 Herbert Voss <voss@lyx.org>
741 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
742 default when nothing different was found
743 (convertToDisplayFormat): handle zipped files in the right way and
744 choose always convert as a default converter when no other
745 userdefined was found
747 * GraphicsConverter.C: add more lyxerr comments and choose
748 convert when no other userdefined converter was found
750 2002-06-10 Herbert Voss <voss@lyx.org>
752 * GraphicsImageXPM.C (convertTo7chars): get another special color
753 format from convert work in the right way
755 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
757 * GraphicsCache.C: use right colormap incantation
759 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
761 * GraphicsCache.C: use lyx_gui namespace
763 * GraphicsImageXPM.C: back down to using xforms
766 2002-06-07 Angus Leeming <leeming@lyx.org>
768 Fixes needed to compile with Compaq cxx 6.5.
769 * GraphicsConverter.h: forward declare class ConvProcess.
771 * GraphicsImageXPM.C:
772 all c-library variables have been moved into namespace std.
773 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
775 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
777 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
779 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
781 * GraphicsImageXPM.C: SigC to boot::signals changes.
782 (newImage): fix () bug when using new.
784 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
786 * switch from SigC signals to boost::signals.
788 2002-05-29 André Pönitz <poenitz@gmx.net>
790 * GraphicsParam.C: remove unneeded #include, move vomment
792 2002-05-28 André Pönitz <poenitz@gmx.net>
794 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
796 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
798 * GraphicsImageXPM.C: ColorHandler moved
800 2002-05-24 Juergen Vigna <jug@sad.it>
803 * GraphicsImage.h: include LString.h first.
805 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
807 * GraphicsCacheItem.h: use more specific smart_ptr header.
808 * GraphicsTypes.h: ditto
809 * GraphicsImage.h: ditto
810 * GraphicsConverter.h: ditto
812 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
814 * GraphicsImageXPM.C: understand convert's use of "opaque"
817 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
819 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
820 GImage::loadableFormats() that ensures that the signal is connected
821 to the derived class' method.
823 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
825 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
826 only work on the string.
828 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
830 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
831 the simple image loader when it encounters colour strings like
834 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
836 * GraphicsCacheItem.C (convertToDisplayFormat):
837 * GraphicsConverter.C (build_script): remove the Alerts when things go
838 wrong as the inset displays the message anyway. Moreover, Alert seems
839 pretty temperamemtal at the moment.
841 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
843 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
845 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
847 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
848 a reference to a temp object that's going out of scope...
850 2002-04-09 Herbert Voss <voss@lyx.org>
852 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
853 LyXLength::inBP instead of inPixels.
855 2002-04-10 Herbert Voss <voss@perce.de>
857 * GraphicsCache.[Ch]:
858 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
859 to read the "Bounding Box" from non (e)ps files.
861 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
863 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
864 the EPS file too, to ensure that the clipped Bounding Box is relative
865 to the original. (From Herbert.)
867 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
869 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
870 variables are initialised. Clean-up parsing of the string (with thanks
873 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
875 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
876 if the file can't be found.
878 * GraphicsParams.h (c-tor): remove string() as default argument.
880 * GraphicsCacheItem.C: a couple of changes as a result.
882 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
884 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
885 path to graphics file.
887 * GraphicsParams.[Ch] (c-tor): now passed filepath.
889 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
891 * most files: ws cleanup
893 * Makefile.am: remove ld -r stuff
895 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
897 * Makefile.am: special rules if partial linking
899 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
901 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
903 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
905 * GraphicsConverter.[Ch] (converted): make first arg const ref.
907 * GraphicsCacheItem.h: doxy change
909 * GraphicsCacheItem.C: ws change
911 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
913 * Makefile.am: if there is no image loading class leveraging the power
914 of the appropriate gui library, then compile the basic alternative
915 found in GraphicsImageXPM.[Ch].
917 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
919 * GraphicsCache.C: change associated with move of initialiseGraphics
922 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
924 * GraphicsParams.[Ch]:
926 * GraphicsImageXPM.C: properly resolve more warnings about comparison
927 between signed and unsigned integer expressions.
929 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
931 * GraphicsCache.C: move connections to the GImage-derived classes to
934 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
936 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
937 conversion, then do that.
939 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
941 * GraphicsCache.C: improve commentary to graphicsInit and where it
944 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
945 that became a memory leak properly. (Let the shared_c_ptr free the
947 (reset, mapcolor): tidy up and introduce a work around for XPM files
948 with crappy color entries. Print out a nice friendly message on what's
949 gone wrong and how to resolve it properly.
951 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
953 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
954 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
956 (unique_color_string): use the correct string c-tor.
958 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
961 * ImageLoaderXPM.[Ch]: removed.
963 * GraphicsConverter.[Ch]:
964 * GraphicsImage.[Ch]:
965 * GraphicsImageXPM.[Ch]:
966 * GraphicsParams.[Ch]:
967 * GraphicsTypes.h: new files.
969 * All files. A total re-write of the graphics cache. The cache now
970 supports asynchronous file conversion and file loading. Images
971 can be cropped, rotated and scaled for display on the LyX screen.
972 The old LyXImage and ImageLoader have been combined in a new class
973 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
976 2002-02-07 Herbert Voss <voss@lyx.org>
978 * GraphicsCacheItem.C: use unzipFile() from support/filetools
980 2002-01-31 Herbert Voss <voss@lyx.org>
982 * GraphicsCacheItem.h: handle filetype without the file extension;
983 getting type from contents; handle zipped files
985 2002-01-27 Herbert Voss <voss@lyx.org>
987 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
989 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
991 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
993 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
995 * GraphicsCacheItem.h: do not include <config.h> in header files
997 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
999 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1000 transparent colour, then set it to the colour of the background.
1001 Also take account of the monochrome, grayscale of color
1004 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1006 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1007 are different. Thus, don't delete the "to" if it's the original!
1009 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1011 * ImageLoadXPM.C: remove setting of alloc colour mask,
1012 led to crash as we don't define a callback
1014 2001-07-29 Baruch Even <baruch@lyx.org>
1016 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1017 colors with closeness of 10000.
1019 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1021 2001-07-29 Baruch Even <baruch@lyx.org>
1023 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1026 2001-07-23 Baruch Even <baruch@lyx.org>
1028 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1029 the image after conversion.
1031 2001-07-17 Baruch Even <baruch@lyx.org>
1033 * GraphicsCacheItem.h:
1034 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1035 from synchronous to asynchronous and to ease the coming changes.
1037 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1039 * ImageLoaderXPM.C (runImageLoader): get display information from
1042 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1045 * GraphicsCacheItem.C:
1047 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1049 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1051 * GraphicsCache.h: inherit privately from noncopyable
1052 * ImageLoader.h: ditto
1053 * GraphicsCacheItem.h: ditto
1055 2001-04-16 Allan Rae <rae@lyx.org>
1057 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1058 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1061 2001-04-02 Baruch Even <baruch@lyx.org>
1063 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1064 of hard coding ImageMagick.
1066 2001-03-10 Baruch Even <baruch@lyx.org>
1068 * GraphicsCache.C: Style change from (*it).field to it->field
1070 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1072 * GraphicsCache.h: noncopyable is in namespace boost
1073 * ImageLoader.h: ditto
1074 * GraphicsCacheItem.h: ditto
1076 2001-03-07 Baruch Even <baruch@lyx.org>
1078 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1079 was false and it's not needed anyhow since the shared_ptr's in the cache
1080 will destroy everything on exit.
1082 2001-02-28 Baruch Even <baruch@ev-en.org>
1085 * GraphicsCache.C: Changed the singleton pattern implementation, the
1086 former version "leaked" in the sense that it was not deallocated at
1089 2001-02-20 Baruch Even <baruch@ev-en.org>
1091 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1092 instead of a pure pointer.
1094 * GraphicsCacheItem.[Ch]:
1095 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1096 removed the reference counting that was inside. Also fixed a bug where
1097 a temporary file wouldn't get erased.
1099 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1100 Ownership is now dropped when the caller requests the image_ pointer.
1102 2001-02-20 Baruch Even <baruch@ev-en.org>
1104 * GraphicsCache.C: Cleared up the confusion on when and how it is
1107 * GraphicsCacheItem.C: Indentation change.
1109 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1110 figure correctly when the image has been loaded successfully.
1112 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1114 * ImageLoader.C: add a "using" directive.
1116 * ImageLoader.h: remove extra comma at the end of enum; add an
1117 std:: qualifier for vector.
1119 2001-01-21 Baruch Even <baruch@ev-en.org>
1121 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1122 height in the image itself and minor cleanups.
1124 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1125 new ImageLoader class instead of the older Renderer class. This
1126 means change of responsibilities.