1 2003-11-05 José Matos <jamatos@lyx.org>
3 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
4 and LatexRunParams to OutputParams.
6 2003-10-22 Angus Leeming <leeming@lyx.org>
8 * PreviewImage.C (statusChanged): always pass on the signal, not just
9 when the preview is ready for display.
11 2003-10-22 Angus Leeming <leeming@lyx.org>
13 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
14 to contain the conversion script cannot be opened.
16 2003-10-22 Angus Leeming <leeming@lyx.org>
18 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
21 2003-10-13 Angus Leeming <leeming@lyx.org>
23 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
24 Make displayTranslator a function,
26 2003-10-10 Angus Leeming <leeming@lyx.org>
28 * PreviewedInset.[Ch]: removed.
30 * Makefile.am: remove PreviewedInset.[Ch].
32 2003-10-09 Angus Leeming <leeming@lyx.org>
34 * PreviewedInset.[Ch] (previewReady): remove the side effects.
35 Now simply reports whether the preview is ready.
37 2003-10-09 Angus Leeming <leeming@lyx.org>
39 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
40 Remove the inset and view member functions.
41 Add a new connect member function and preview_ready_signal_ member
42 variable, to enable the class to tell an arbirary connectee that the
45 2003-10-09 Angus Leeming <leeming@lyx.org>
47 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
48 are now passed a 'Buffer const &', eliminating most of the remaining
49 need for PreviewedInset to use a BufferView cache.
51 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
54 * PreviewImage.h: add <string> and other small fixes to make
55 Lars' std::string patch compile with STLport.
57 2003-09-29 Angus Leeming <leeming@lyx.org>
59 * GraphicsParams.[Ch] (asString): removed. Replaced with
60 operator<<(std::ostream &, BoundingBox const &).
62 2003-09-25 Angus Leeming <leeming@lyx.org>
64 * GraphicsParams.[Ch] (asString): new member function.
66 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
68 * Previews.C (Previews): fix new bug
70 * GraphicsCache.C (Cache): fix new bug
72 2003-09-19 Angus Leeming <leeming@lyx.org>
74 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
75 a 'Buffer const &' argument.
77 2003-09-18 Angus Leeming <leeming@lyx.org>
79 * PreviewedInset.C (latexString): add a Buffer const & arg.
80 * PreviewedInset.C (addPreview): pass the buffer to latexString.
82 2003-09-16 Angus Leeming <leeming@lyx.org>
84 * PreviewedInset.[Ch] (c-tor) move out of line.
85 (d-tor): make private.
86 (inset): return a const reference rather than a non-const pointer.
88 2003-09-16 Angus Leeming <leeming@lyx.org>
90 * GraphicsImage.h: separate interface from implementation. Make all the
91 pure virtual functions private.
93 2003-09-16 Angus Leeming <leeming@lyx.org>
95 * PreviewLoader.C: add #include "LColor.h".
97 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
100 * PreviewLoader.C: remove usage of STRCONV
102 2003-09-14 Angus Leeming <leeming@lyx.org>
104 * PreviewLoader.C (remove): consider all InProgressProcesses when
105 ascertaining which ones to remove from the list, not every other one.
107 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
109 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
112 2003-09-08 Angus Leeming <leeming@lyx.org>
116 * PreviewLoader.C: remove redundant using directives.
118 2003-09-07 Angus Leeming <leeming@lyx.org>
121 * Previews.h: remove #include "support/std_string.h".
123 2003-09-06 Angus Leeming <leeming@lyx.org>
125 * PreviewedInset.C: add #include "insets/inset.h"
127 2003-09-05 Angus Leeming <leeming@lyx.org>
129 * *.C: strip out redundant #includes. (26 in total.)
131 2003-09-04 Angus Leeming <leeming@lyx.org>
133 * LoaderQueue.C (get):
135 2003-09-04 Angus Leeming <leeming@lyx.org>
138 * GraphicsCacheItem.C:
139 * GraphicsConverter.C:
143 * Previews.C: 'namespace support = lyx::support' rather than
144 'using lyx::support'.
146 * Previews.h: cleaned up some comments.
148 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
150 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
152 * GraphicsTypes.h: do not declare displayTranstor here (and remove
155 2003-07-27 José Matos <jamatos@fep.up.pt>
157 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
160 2003-07-21 Angus Leeming <leeming@lyx.org>
163 * GraphicsCacheItem.[Ch]:
166 * PreviewedInset.[Ch]:
167 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
169 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
171 * Change namespace grfx to lyx::graphics.
173 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
175 * introcude namespace lyx::support
177 2003-06-04 Angus Leeming <leeming@lyx.org>
179 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
180 (operator=): if it has a copy c-tor, it should have this too.
182 2003-06-03 Angus Leeming <leeming@lyx.org>
184 * GraphicsLoader.[Ch] (Loader): add copy constructor.
186 2003-05-23 Angus Leeming <leeming@lyx.org>
188 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
190 2003-05-22 Angus Leeming <leeming@lyx.org>
192 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
193 the inset::latex method.
195 2003-05-22 Angus Leeming <leeming@lyx.org>
197 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
198 the inset::latex method.
200 2003-05-22 Angus Leeming <leeming@lyx.org>
202 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
203 makeLaTeXFile is now encapsulated within runparams.
205 2003-05-22 Angus Leeming <leeming@lyx.org>
207 * PreviewLoader.C (dumpPreamble):
208 pass around a LatexRunParams parameter.
210 2003-05-13 André Pönitz <poenitz@gmx.net>
212 * GraphicsConverter.C:
213 * PreviewLoader.C: use tostr from own header
215 2003-05-12 André Pönitz <poenitz@gmx.net>
217 * PreviewLoader.C: boost::format -> bformat
219 2003-04-15 Angus Leeming <leeming@lyx.org>
221 * GraphicsConverter.C: #include lstrings.h.
223 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
225 * GraphicsConverter.C
226 * PreviewLoader.C: added #include "format.h"
228 2003-02-26 Angus Leeming <leeming@lyx.org>
230 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
231 use the cache of the parent inset instead.
233 * PreviewLoader.C (startLoading): Prevent a crash if the user is
234 not using a tmp directory.
236 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
238 * GraphicsLoader.[Ch],
240 * PreviewedInset.C: Removed unneeded list of owner insets
242 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
244 * GraphicsConverter (startConversion): add the call to
247 * GraphicsLoader.[Ch],
249 * PreviewedInset.C: Removed unneeded BufferView
251 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
253 * LoaderQueue.[Ch]: a simplification of the code, eliminated
254 the unneeded input bucket.
256 * GraphicsCacheItem.C (imageConverted): move warning inside the
259 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
261 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
263 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
265 * LoaderQueue.[Ch] (setPriority): added
267 * PreviewLoader.C (finishedGenerating): reversed the loading order so
268 first images get 'touched' last, and so load first.
270 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
272 * LoaderQueue.[Ch]: added. Implements a service queue that loads
274 * GraphicsSupport.[Ch]: removed
275 * Makefile.am: the changes above
276 * GraphicsLoader.C: use the loading queue
278 2003-01-21 Angus Leeming <leeming@lyx.org>
280 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
281 previews from being generated.
283 2003-01-13 Angus Leeming <leeming@lyx.org>
285 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
286 format to be PPM not XPM.
288 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
290 * Makefile.am (EXTRA_DIST): remove variable
292 2002-12-13 Angus Leeming <leeming@lyx.org>
294 * GraphicsImageXPM.[Ch]: removed.
296 * Makefile.am: associated change.
298 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
300 * several files: ws changes
302 2002-11-21 Angus Leeming <leeming@lyx.org>
304 * GraphicsConverter.C (build_script, move_file):
305 Don't use "if [ $? -ne 0 ]; then..."
307 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
309 * PreviewLoader.C (IncrementedFileName): STRCONV
310 (startLoading): ditto
312 * GraphicsConverter.C (Impl): STRCONV
315 * GraphicsTypes.C: include config.h
317 2002-10-25 Angus Leeming <leeming@lyx.org>
319 * GraphicsConverter.C (Impl::converted)
320 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
321 string as first arg, reflecting change in ForkedCall interface.
323 * PreviewLoader.C: use pid rather than command as identifier in
326 2002-10-18 Angus Leeming <leeming@lyx.org>
328 * GraphicsCacheItem.C (findTargetFormat): add debug message.
330 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
332 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
334 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
336 * GraphicsConverter.C (build_script): do not use ChangeExtension
340 2002-09-05 Angus Leeming <leeming@lyx.org>
342 * all files: modify the headers as discussed on the list.
344 2002-09-04 Angus Leeming <leeming@lyx.org>
346 * PreviewLoader.C (startLoading): pass the desired output format to the
349 2002-09-04 Angus Leeming <leeming@lyx.org>
351 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
353 2002-09-03 Angus Leeming <leeming@lyx.org>
355 * PreviewLoader.C: fix crash reported by Norbert Koksch when
356 generating more than 999 preview snippets. Use filenames with 5 digit
357 numbers, not 3, in the first instance, although more general code is
358 commented out. I don't suppose /anyone/ has 100000 formulae in one
361 2002-09-03 Angus Leeming <leeming@lyx.org>
363 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
365 2002-09-03 Angus Leeming <leeming@lyx.org>
367 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
369 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
371 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
372 convertDefault command with "sh ".
374 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
376 * GraphicsImage.C: small style fix to width/height setting.
378 * GraphicsTypes.h: have a displayTranslator here.
381 * GraphicsTypes.C: new file added for the setDisplayTranslator();
383 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
386 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
387 because this input has gone from the graphics dialog.
389 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
391 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
393 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
394 for support/smart_ptr.h, switch to boost smart ptr.
396 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
397 (~Data): let the smart_ptr handle cleanup
398 (reset): use nifty 3rd arg
400 (free_color_table): free the table manually
402 2002-08-09 Angus Leeming <leeming@lyx.org>
404 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
405 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
406 input@path is now set correctly.
408 2002-08-06 Angus Leeming <leeming@lyx.org>
410 * PreviewLoader.C: add support for preview.sty 0.73 (currently
411 #ifdef-ed out, awaiting the formal release).
413 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
414 the contents of a file that has changed.
416 2002-08-05 Angus Leeming <leeming@lyx.org>
418 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
419 to preview.sty. Works only for versions of preview.sty > 0.72b but
420 doesn't hurt earlier versions. Allows me to test the new parsing of
421 LyX-specific data from the generated log file.
423 2002-08-02 Angus Leeming <leeming@lyx.org>
425 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
427 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
428 (add): don't add empty snippets.
430 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
431 (view, setView): access to to the cache_.
433 2002-08-02 Angus Leeming <leeming@lyx.org>
435 * PreviewedInset.[Ch]: cache the LaTeX snippet.
437 2002-08-01 Angus Leeming <leeming@lyx.org>
439 * PreviewedInset.[Ch]: new files. An abstract base class that can help
440 insets to generate previews.
441 The daughter class must instantiate three small methods.
442 The Inset would own an instance of this daughter class and invoke it
443 as necessary. For example, mathd/formula.C gets previews at the cost
444 of 15 or so lines of code.
446 * Makefile.am: add PreviewedInset.[Ch].
448 * PreviewLoader.C (add): add debug message.
450 * Previews.C (generateBufferPreviews): remove if-block from loop.
452 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
454 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
456 (setAscentFractions): ditto
458 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
460 * PreviewLoader.C (setAscentFractions): modify because of strip
463 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
465 * GraphicsConverter.C (build_script): take a ostream as a more
466 general argument than ostringstream.
468 2002-07-22 Herbert Voss <voss@lyx.org>
470 * GraphicsConverter.C: get the "default converter" run again
472 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
474 * PreviewLoader.C: use BufferParams::getLyXTextClass
476 2002-07-21 Herbert Voss <voss@lyx.org>
478 * GraphicsImage.C: get the LyXAspectRatio run.
480 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
482 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
484 * PreviewLoader.C (startLoading): pass an interger as resolution
485 to the lyxpreview converter
487 * GraphicsParams.C: include <cstdlib>
489 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
491 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
492 preview converter script
494 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
496 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
499 2002-07-18 Angus Leeming <leeming@lyx.org>
501 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
503 (startMonitoring, monitoring, checksum): new methods to interact with
506 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
507 methods invoking the CacheItem methods of the same name.
508 (resetFile): if monitoring and the file changes, start monitoring this
511 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
513 * Makefile.am: remove FileMonitor.[Ch]
515 2002-06-17 Herbert Voss <voss@lyx.org>
517 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
518 for old ps-files (Garst). It's now handled by defining a converter and
519 disabling the ps-support of xforms.
521 2002-07-17 Angus Leeming <leeming@lyx.org>
523 Be true to the Pimpl idiom, moving all signals into the respective
524 Impl classes and defining methods to connect them to an outside slot.
525 Const-ify all visible class methods as they act only on a const pimpl_.
527 * GraphicsCache.[Ch] (add, remove): const-ify.
529 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
530 (statusChanged): move the signal into the Impl class.
531 (connect): new method, enabling a listener to connect to this signal.
533 * GraphicsConverter.[Ch]: (startConversion): const-ify.
534 (finishedConversion): move the signal into the Impl class.
535 (connect): new method, enabling a listener to connect to this signal.
537 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
538 (statusChanged): move the signal into the Impl class.
539 (connect): new method, enabling a listener to connect to this signal.
541 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
542 (imageReady): move the signal into the Impl class.
543 (connect): new method, enabling a listener to connect to this signal.
544 (emitSignal): new method, enabling PreviewImage to tell the outside
545 world that the file has been loaded into memory.
547 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
551 * GraphicsCacheItem.C:
552 * GraphicsConverter.[Ch]:
554 * GraphicsImageXPM.C:
556 * PreviewLoader.[Ch]: whitespace clean-up.
558 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
560 * PreviewLoader.C (setConverter): remove unused variable
562 * GraphicsImageXPM.C (isDrawable): implement
563 (setPixmap): the opaque color is black, not white
565 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
567 * GraphicsImageXPM.C (color_none_id):
568 (contains_color_none): use ascii_lowercase instead of lowercase
570 2002-07-16 Angus Leeming <leeming@lyx.org>
572 * PreviewLoader.C: greater use of STL algorithms.
574 * Previews.[Ch]: use const in more places.
575 (generateBufferPreviews): now takes a Buffer const & argument, not a
578 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
580 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
582 2002-07-12 Angus Leeming <leeming@lyx.org>
584 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
585 if visible 2 secs after the call to load them is first made.
587 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
588 BufferView to ascertain whether the inset is visible or not.
590 * Makefile.am: added GraphicsSupport.[Ch].
592 * PreviewImage.[Ch]: use this smart loader.
594 * PreviewLoader.C: don't load generated image files indiscimminantly.
595 Instead emit the imageReady signal and allow the image owner to decide.
597 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
599 * GraphicsCache.C: remove init_graphics()
601 2002-07-09 Angus Leeming <leeming@lyx.org>
603 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
604 arithmetic when it should be floating.
606 2002-07-09 Angus Leeming <leeming@lyx.org>
608 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
609 Output equation labels as "(#)" if lyxrc preference is set.
610 (setFontScalingFactor): use lyxrc variable preview_scale_factor
611 rather than hard-coding this.
613 2002-07-09 Angus Leeming <leeming@lyx.org>
615 * PreviewLoader.C: Further refactoring of the code. Should now be
618 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
619 past its sell-by date. The code to read the metrics file is now found
620 as a helper function in PreviewLoader.C.
622 * GraphicsImageXPM.C (scale): use boost::tie.
624 2002-07-08 Herbert Voss <voss@lyx.org>
626 * PreviewLoader.C: use of preview_size_factor to get the right
627 font-size! 0.9 is the default.
629 2002-07-08 Angus Leeming <leeming@lyx.org>
631 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
632 invocation of preview.sty.
633 Perform something of an internal clean-up.
635 2002-07-06 Angus Leeming <leeming@lyx.org>
637 * PreviewLoader.C: ensure that the metrics data is used by the
641 * PreviewImage.C: (Impl d-tor): remove all generated files that still
642 exist (perhaps because the process was curtailed before the images
645 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
647 2002-07-05 Angus Leeming <leeming@lyx.org>
656 * Previews.C: new files. The previewed LaTeX snippet stuff.
658 * Makefile.am: add these files.
660 2002-07-05 Angus Leeming <leeming@lyx.org>
662 * GraphicsLoader.h: whitespace.
664 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
666 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
667 boost::function from boost::signal.
669 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
671 * GraphicsConverter.C (convert): do not use ChangeExtension
672 because to_file_base may contain a dot.
674 2002-06-28 Angus Leeming <leeming@lyx.org>
676 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
677 by moving those SignalPtrs into the grfx::Image and grfx::Converter
678 classes where they really belong.
679 Use the Pimpl idiom to hide the class internals from public view.
681 * GraphicsTypes: remove the typedefs, leaving only the enums.
683 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
684 passed a reference to one in the load() method.
686 * GraphicsConverter.[Ch]: totally refactored. An instance of
687 grfx::Converter now represents a single conversion process.
688 Thus grfx::CachItem now has a grfx::Converter * that is set when the
689 conversion is initiated and destroyed on completion.
691 * GraphicsCache.[Ch]:
692 * GraphicsCacheItem.[Ch]:
693 * GraphicsConverter.[Ch]:
694 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
696 Note that I have done this only after making the above changes,
697 so not only should we have a clean, minimal and well documented
698 interface to these classes in the header files, but the class internals
699 should be much clearer too.
702 grfx::GCache -> grfx::Cache,
703 grfx::GCacheItem -> grfx::CacheItem,
704 grfx::GConverter -> grfx::Converter,
705 grfx::GImage -> grfx::Image,
706 grfx::GImageXPM -> grfx::ImageXPM,
707 grfx::GParams -> grfx::Params.
709 2002-06-26 Angus Leeming <leeming@lyx.org>
711 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
712 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
715 2002-06-26 Angus Leeming <leeming@lyx.org>
717 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
718 move the DisplayType enum out of grfx::GParams to here.
720 * GraphicsCacheItem.h: re-write preliminary description to reflect
723 * GraphicsParams.[Ch]:
724 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
725 grfx::DisplayType out of grfx::GParams.
727 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
728 that was in frontends/screen.C and insets/insetgraphics.C into a
729 single, easy-to-use class.
731 * Makefile.am: add these files.
733 2002-06-25 Angus Leeming <leeming@lyx.org>
735 * GraphicsCache.[Ch]:
736 * GraphicsCacheItem.[Ch]:
737 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
738 file into memory. The cache no longer controls the generation of the
739 pixmap. Instead, it just emits a signal when the loading status of an
741 The cache no longer stores InsetGraphics pointers and nor does it
742 assume responsibility for modifying an image (scaling, rotating etc).
743 Instead, that must now be performed elsewhere.
745 2002-06-19 Angus Leeming <leeming@lyx.org>
747 * GraphicsConverter.C: add using std::endl directive.
749 2002-06-17 Herbert Voss <voss@lyx.org>
751 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
752 default when nothing different was found
753 (convertToDisplayFormat): handle zipped files in the right way and
754 choose always convert as a default converter when no other
755 userdefined was found
757 * GraphicsConverter.C: add more lyxerr comments and choose
758 convert when no other userdefined converter was found
760 2002-06-10 Herbert Voss <voss@lyx.org>
762 * GraphicsImageXPM.C (convertTo7chars): get another special color
763 format from convert work in the right way
765 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
767 * GraphicsCache.C: use right colormap incantation
769 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
771 * GraphicsCache.C: use lyx_gui namespace
773 * GraphicsImageXPM.C: back down to using xforms
776 2002-06-07 Angus Leeming <leeming@lyx.org>
778 Fixes needed to compile with Compaq cxx 6.5.
779 * GraphicsConverter.h: forward declare class ConvProcess.
781 * GraphicsImageXPM.C:
782 all c-library variables have been moved into namespace std.
783 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
785 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
787 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
789 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
791 * GraphicsImageXPM.C: SigC to boot::signals changes.
792 (newImage): fix () bug when using new.
794 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
796 * switch from SigC signals to boost::signals.
798 2002-05-29 André Pönitz <poenitz@gmx.net>
800 * GraphicsParam.C: remove unneeded #include, move vomment
802 2002-05-28 André Pönitz <poenitz@gmx.net>
804 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
806 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
808 * GraphicsImageXPM.C: ColorHandler moved
810 2002-05-24 Juergen Vigna <jug@sad.it>
813 * GraphicsImage.h: include LString.h first.
815 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
817 * GraphicsCacheItem.h: use more specific smart_ptr header.
818 * GraphicsTypes.h: ditto
819 * GraphicsImage.h: ditto
820 * GraphicsConverter.h: ditto
822 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
824 * GraphicsImageXPM.C: understand convert's use of "opaque"
827 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
829 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
830 GImage::loadableFormats() that ensures that the signal is connected
831 to the derived class' method.
833 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
835 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
836 only work on the string.
838 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
840 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
841 the simple image loader when it encounters colour strings like
844 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
846 * GraphicsCacheItem.C (convertToDisplayFormat):
847 * GraphicsConverter.C (build_script): remove the Alerts when things go
848 wrong as the inset displays the message anyway. Moreover, Alert seems
849 pretty temperamemtal at the moment.
851 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
853 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
855 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
857 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
858 a reference to a temp object that's going out of scope...
860 2002-04-09 Herbert Voss <voss@lyx.org>
862 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
863 LyXLength::inBP instead of inPixels.
865 2002-04-10 Herbert Voss <voss@perce.de>
867 * GraphicsCache.[Ch]:
868 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
869 to read the "Bounding Box" from non (e)ps files.
871 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
873 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
874 the EPS file too, to ensure that the clipped Bounding Box is relative
875 to the original. (From Herbert.)
877 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
879 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
880 variables are initialised. Clean-up parsing of the string (with thanks
883 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
885 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
886 if the file can't be found.
888 * GraphicsParams.h (c-tor): remove string() as default argument.
890 * GraphicsCacheItem.C: a couple of changes as a result.
892 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
894 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
895 path to graphics file.
897 * GraphicsParams.[Ch] (c-tor): now passed filepath.
899 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
901 * most files: ws cleanup
903 * Makefile.am: remove ld -r stuff
905 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
907 * Makefile.am: special rules if partial linking
909 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
911 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
913 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
915 * GraphicsConverter.[Ch] (converted): make first arg const ref.
917 * GraphicsCacheItem.h: doxy change
919 * GraphicsCacheItem.C: ws change
921 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
923 * Makefile.am: if there is no image loading class leveraging the power
924 of the appropriate gui library, then compile the basic alternative
925 found in GraphicsImageXPM.[Ch].
927 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
929 * GraphicsCache.C: change associated with move of initialiseGraphics
932 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
934 * GraphicsParams.[Ch]:
936 * GraphicsImageXPM.C: properly resolve more warnings about comparison
937 between signed and unsigned integer expressions.
939 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
941 * GraphicsCache.C: move connections to the GImage-derived classes to
944 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
946 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
947 conversion, then do that.
949 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
951 * GraphicsCache.C: improve commentary to graphicsInit and where it
954 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
955 that became a memory leak properly. (Let the shared_c_ptr free the
957 (reset, mapcolor): tidy up and introduce a work around for XPM files
958 with crappy color entries. Print out a nice friendly message on what's
959 gone wrong and how to resolve it properly.
961 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
963 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
964 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
966 (unique_color_string): use the correct string c-tor.
968 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
971 * ImageLoaderXPM.[Ch]: removed.
973 * GraphicsConverter.[Ch]:
974 * GraphicsImage.[Ch]:
975 * GraphicsImageXPM.[Ch]:
976 * GraphicsParams.[Ch]:
977 * GraphicsTypes.h: new files.
979 * All files. A total re-write of the graphics cache. The cache now
980 supports asynchronous file conversion and file loading. Images
981 can be cropped, rotated and scaled for display on the LyX screen.
982 The old LyXImage and ImageLoader have been combined in a new class
983 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
986 2002-02-07 Herbert Voss <voss@lyx.org>
988 * GraphicsCacheItem.C: use unzipFile() from support/filetools
990 2002-01-31 Herbert Voss <voss@lyx.org>
992 * GraphicsCacheItem.h: handle filetype without the file extension;
993 getting type from contents; handle zipped files
995 2002-01-27 Herbert Voss <voss@lyx.org>
997 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
999 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1001 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1003 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1005 * GraphicsCacheItem.h: do not include <config.h> in header files
1007 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1009 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1010 transparent colour, then set it to the colour of the background.
1011 Also take account of the monochrome, grayscale of color
1014 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1016 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1017 are different. Thus, don't delete the "to" if it's the original!
1019 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1021 * ImageLoadXPM.C: remove setting of alloc colour mask,
1022 led to crash as we don't define a callback
1024 2001-07-29 Baruch Even <baruch@lyx.org>
1026 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1027 colors with closeness of 10000.
1029 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1031 2001-07-29 Baruch Even <baruch@lyx.org>
1033 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1036 2001-07-23 Baruch Even <baruch@lyx.org>
1038 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1039 the image after conversion.
1041 2001-07-17 Baruch Even <baruch@lyx.org>
1043 * GraphicsCacheItem.h:
1044 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1045 from synchronous to asynchronous and to ease the coming changes.
1047 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1049 * ImageLoaderXPM.C (runImageLoader): get display information from
1052 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1055 * GraphicsCacheItem.C:
1057 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1059 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1061 * GraphicsCache.h: inherit privately from noncopyable
1062 * ImageLoader.h: ditto
1063 * GraphicsCacheItem.h: ditto
1065 2001-04-16 Allan Rae <rae@lyx.org>
1067 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1068 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1071 2001-04-02 Baruch Even <baruch@lyx.org>
1073 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1074 of hard coding ImageMagick.
1076 2001-03-10 Baruch Even <baruch@lyx.org>
1078 * GraphicsCache.C: Style change from (*it).field to it->field
1080 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1082 * GraphicsCache.h: noncopyable is in namespace boost
1083 * ImageLoader.h: ditto
1084 * GraphicsCacheItem.h: ditto
1086 2001-03-07 Baruch Even <baruch@lyx.org>
1088 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1089 was false and it's not needed anyhow since the shared_ptr's in the cache
1090 will destroy everything on exit.
1092 2001-02-28 Baruch Even <baruch@ev-en.org>
1095 * GraphicsCache.C: Changed the singleton pattern implementation, the
1096 former version "leaked" in the sense that it was not deallocated at
1099 2001-02-20 Baruch Even <baruch@ev-en.org>
1101 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1102 instead of a pure pointer.
1104 * GraphicsCacheItem.[Ch]:
1105 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1106 removed the reference counting that was inside. Also fixed a bug where
1107 a temporary file wouldn't get erased.
1109 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1110 Ownership is now dropped when the caller requests the image_ pointer.
1112 2001-02-20 Baruch Even <baruch@ev-en.org>
1114 * GraphicsCache.C: Cleared up the confusion on when and how it is
1117 * GraphicsCacheItem.C: Indentation change.
1119 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1120 figure correctly when the image has been loaded successfully.
1122 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1124 * ImageLoader.C: add a "using" directive.
1126 * ImageLoader.h: remove extra comma at the end of enum; add an
1127 std:: qualifier for vector.
1129 2001-01-21 Baruch Even <baruch@ev-en.org>
1131 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1132 height in the image itself and minor cleanups.
1134 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1135 new ImageLoader class instead of the older Renderer class. This
1136 means change of responsibilities.