1 2003-09-04 Angus Leeming <angus@localhost.localdomain>
5 2003-09-04 Angus Leeming <leeming@lyx.org>
13 * Previews.C: 'namespace support = lyx::support' rather than
16 * Previews.h: cleaned up some comments.
18 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
20 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
22 * GraphicsTypes.h: do not declare displayTranstor here (and remove
25 2003-07-27 José Matos <jamatos@fep.up.pt>
27 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
30 2003-07-21 Angus Leeming <leeming@lyx.org>
33 * GraphicsCacheItem.[Ch]:
36 * PreviewedInset.[Ch]:
37 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
39 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
41 * Change namespace grfx to lyx::graphics.
43 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
45 * introcude namespace lyx::support
47 2003-06-04 Angus Leeming <leeming@lyx.org>
49 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
50 (operator=): if it has a copy c-tor, it should have this too.
52 2003-06-03 Angus Leeming <leeming@lyx.org>
54 * GraphicsLoader.[Ch] (Loader): add copy constructor.
56 2003-05-23 Angus Leeming <leeming@lyx.org>
58 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
60 2003-05-22 Angus Leeming <leeming@lyx.org>
62 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
63 the inset::latex method.
65 2003-05-22 Angus Leeming <leeming@lyx.org>
67 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
68 the inset::latex method.
70 2003-05-22 Angus Leeming <leeming@lyx.org>
72 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
73 makeLaTeXFile is now encapsulated within runparams.
75 2003-05-22 Angus Leeming <leeming@lyx.org>
77 * PreviewLoader.C (dumpPreamble):
78 pass around a LatexRunParams parameter.
80 2003-05-13 André Pönitz <poenitz@gmx.net>
82 * GraphicsConverter.C:
83 * PreviewLoader.C: use tostr from own header
85 2003-05-12 André Pönitz <poenitz@gmx.net>
87 * PreviewLoader.C: boost::format -> bformat
89 2003-04-15 Angus Leeming <leeming@lyx.org>
91 * GraphicsConverter.C: #include lstrings.h.
93 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
96 * PreviewLoader.C: added #include "format.h"
98 2003-02-26 Angus Leeming <leeming@lyx.org>
100 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
101 use the cache of the parent inset instead.
103 * PreviewLoader.C (startLoading): Prevent a crash if the user is
104 not using a tmp directory.
106 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
108 * GraphicsLoader.[Ch],
110 * PreviewedInset.C: Removed unneeded list of owner insets
112 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
114 * GraphicsConverter (startConversion): add the call to
117 * GraphicsLoader.[Ch],
119 * PreviewedInset.C: Removed unneeded BufferView
121 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
123 * LoaderQueue.[Ch]: a simplification of the code, eliminated
124 the unneeded input bucket.
126 * GraphicsCacheItem.C (imageConverted): move warning inside the
129 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
131 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
133 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
135 * LoaderQueue.[Ch] (setPriority): added
137 * PreviewLoader.C (finishedGenerating): reversed the loading order so
138 first images get 'touched' last, and so load first.
140 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
142 * LoaderQueue.[Ch]: added. Implements a service queue that loads
144 * GraphicsSupport.[Ch]: removed
145 * Makefile.am: the changes above
146 * GraphicsLoader.C: use the loading queue
148 2003-01-21 Angus Leeming <leeming@lyx.org>
150 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
151 previews from being generated.
153 2003-01-13 Angus Leeming <leeming@lyx.org>
155 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
156 format to be PPM not XPM.
158 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
160 * Makefile.am (EXTRA_DIST): remove variable
162 2002-12-13 Angus Leeming <leeming@lyx.org>
164 * GraphicsImageXPM.[Ch]: removed.
166 * Makefile.am: associated change.
168 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
170 * several files: ws changes
172 2002-11-21 Angus Leeming <leeming@lyx.org>
174 * GraphicsConverter.C (build_script, move_file):
175 Don't use "if [ $? -ne 0 ]; then..."
177 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
179 * PreviewLoader.C (IncrementedFileName): STRCONV
180 (startLoading): ditto
182 * GraphicsConverter.C (Impl): STRCONV
185 * GraphicsTypes.C: include config.h
187 2002-10-25 Angus Leeming <leeming@lyx.org>
189 * GraphicsConverter.C (Impl::converted)
190 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
191 string as first arg, reflecting change in ForkedCall interface.
193 * PreviewLoader.C: use pid rather than command as identifier in
196 2002-10-18 Angus Leeming <leeming@lyx.org>
198 * GraphicsCacheItem.C (findTargetFormat): add debug message.
200 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
202 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
204 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
206 * GraphicsConverter.C (build_script): do not use ChangeExtension
210 2002-09-05 Angus Leeming <leeming@lyx.org>
212 * all files: modify the headers as discussed on the list.
214 2002-09-04 Angus Leeming <leeming@lyx.org>
216 * PreviewLoader.C (startLoading): pass the desired output format to the
219 2002-09-04 Angus Leeming <leeming@lyx.org>
221 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
223 2002-09-03 Angus Leeming <leeming@lyx.org>
225 * PreviewLoader.C: fix crash reported by Norbert Koksch when
226 generating more than 999 preview snippets. Use filenames with 5 digit
227 numbers, not 3, in the first instance, although more general code is
228 commented out. I don't suppose /anyone/ has 100000 formulae in one
231 2002-09-03 Angus Leeming <leeming@lyx.org>
233 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
235 2002-09-03 Angus Leeming <leeming@lyx.org>
237 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
239 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
241 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
242 convertDefault command with "sh ".
244 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
246 * GraphicsImage.C: small style fix to width/height setting.
248 * GraphicsTypes.h: have a displayTranslator here.
251 * GraphicsTypes.C: new file added for the setDisplayTranslator();
253 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
256 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
257 because this input has gone from the graphics dialog.
259 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
261 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
263 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
264 for support/smart_ptr.h, switch to boost smart ptr.
266 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
267 (~Data): let the smart_ptr handle cleanup
268 (reset): use nifty 3rd arg
270 (free_color_table): free the table manually
272 2002-08-09 Angus Leeming <leeming@lyx.org>
274 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
275 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
276 input@path is now set correctly.
278 2002-08-06 Angus Leeming <leeming@lyx.org>
280 * PreviewLoader.C: add support for preview.sty 0.73 (currently
281 #ifdef-ed out, awaiting the formal release).
283 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
284 the contents of a file that has changed.
286 2002-08-05 Angus Leeming <leeming@lyx.org>
288 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
289 to preview.sty. Works only for versions of preview.sty > 0.72b but
290 doesn't hurt earlier versions. Allows me to test the new parsing of
291 LyX-specific data from the generated log file.
293 2002-08-02 Angus Leeming <leeming@lyx.org>
295 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
297 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
298 (add): don't add empty snippets.
300 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
301 (view, setView): access to to the cache_.
303 2002-08-02 Angus Leeming <leeming@lyx.org>
305 * PreviewedInset.[Ch]: cache the LaTeX snippet.
307 2002-08-01 Angus Leeming <leeming@lyx.org>
309 * PreviewedInset.[Ch]: new files. An abstract base class that can help
310 insets to generate previews.
311 The daughter class must instantiate three small methods.
312 The Inset would own an instance of this daughter class and invoke it
313 as necessary. For example, mathd/formula.C gets previews at the cost
314 of 15 or so lines of code.
316 * Makefile.am: add PreviewedInset.[Ch].
318 * PreviewLoader.C (add): add debug message.
320 * Previews.C (generateBufferPreviews): remove if-block from loop.
322 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
324 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
326 (setAscentFractions): ditto
328 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
330 * PreviewLoader.C (setAscentFractions): modify because of strip
333 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
335 * GraphicsConverter.C (build_script): take a ostream as a more
336 general argument than ostringstream.
338 2002-07-22 Herbert Voss <voss@lyx.org>
340 * GraphicsConverter.C: get the "default converter" run again
342 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
344 * PreviewLoader.C: use BufferParams::getLyXTextClass
346 2002-07-21 Herbert Voss <voss@lyx.org>
348 * GraphicsImage.C: get the LyXAspectRatio run.
350 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
352 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
354 * PreviewLoader.C (startLoading): pass an interger as resolution
355 to the lyxpreview converter
357 * GraphicsParams.C: include <cstdlib>
359 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
361 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
362 preview converter script
364 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
366 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
369 2002-07-18 Angus Leeming <leeming@lyx.org>
371 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
373 (startMonitoring, monitoring, checksum): new methods to interact with
376 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
377 methods invoking the CacheItem methods of the same name.
378 (resetFile): if monitoring and the file changes, start monitoring this
381 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
383 * Makefile.am: remove FileMonitor.[Ch]
385 2002-06-17 Herbert Voss <voss@lyx.org>
387 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
388 for old ps-files (Garst). It's now handled by defining a converter and
389 disabling the ps-support of xforms.
391 2002-07-17 Angus Leeming <leeming@lyx.org>
393 Be true to the Pimpl idiom, moving all signals into the respective
394 Impl classes and defining methods to connect them to an outside slot.
395 Const-ify all visible class methods as they act only on a const pimpl_.
397 * GraphicsCache.[Ch] (add, remove): const-ify.
399 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
400 (statusChanged): move the signal into the Impl class.
401 (connect): new method, enabling a listener to connect to this signal.
403 * GraphicsConverter.[Ch]: (startConversion): const-ify.
404 (finishedConversion): move the signal into the Impl class.
405 (connect): new method, enabling a listener to connect to this signal.
407 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
408 (statusChanged): move the signal into the Impl class.
409 (connect): new method, enabling a listener to connect to this signal.
411 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
412 (imageReady): move the signal into the Impl class.
413 (connect): new method, enabling a listener to connect to this signal.
414 (emitSignal): new method, enabling PreviewImage to tell the outside
415 world that the file has been loaded into memory.
417 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
421 * GraphicsCacheItem.C:
422 * GraphicsConverter.[Ch]:
424 * GraphicsImageXPM.C:
426 * PreviewLoader.[Ch]: whitespace clean-up.
428 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
430 * PreviewLoader.C (setConverter): remove unused variable
432 * GraphicsImageXPM.C (isDrawable): implement
433 (setPixmap): the opaque color is black, not white
435 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
437 * GraphicsImageXPM.C (color_none_id):
438 (contains_color_none): use ascii_lowercase instead of lowercase
440 2002-07-16 Angus Leeming <leeming@lyx.org>
442 * PreviewLoader.C: greater use of STL algorithms.
444 * Previews.[Ch]: use const in more places.
445 (generateBufferPreviews): now takes a Buffer const & argument, not a
448 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
450 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
452 2002-07-12 Angus Leeming <leeming@lyx.org>
454 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
455 if visible 2 secs after the call to load them is first made.
457 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
458 BufferView to ascertain whether the inset is visible or not.
460 * Makefile.am: added GraphicsSupport.[Ch].
462 * PreviewImage.[Ch]: use this smart loader.
464 * PreviewLoader.C: don't load generated image files indiscimminantly.
465 Instead emit the imageReady signal and allow the image owner to decide.
467 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
469 * GraphicsCache.C: remove init_graphics()
471 2002-07-09 Angus Leeming <leeming@lyx.org>
473 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
474 arithmetic when it should be floating.
476 2002-07-09 Angus Leeming <leeming@lyx.org>
478 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
479 Output equation labels as "(#)" if lyxrc preference is set.
480 (setFontScalingFactor): use lyxrc variable preview_scale_factor
481 rather than hard-coding this.
483 2002-07-09 Angus Leeming <leeming@lyx.org>
485 * PreviewLoader.C: Further refactoring of the code. Should now be
488 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
489 past its sell-by date. The code to read the metrics file is now found
490 as a helper function in PreviewLoader.C.
492 * GraphicsImageXPM.C (scale): use boost::tie.
494 2002-07-08 Herbert Voss <voss@lyx.org>
496 * PreviewLoader.C: use of preview_size_factor to get the right
497 font-size! 0.9 is the default.
499 2002-07-08 Angus Leeming <leeming@lyx.org>
501 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
502 invocation of preview.sty.
503 Perform something of an internal clean-up.
505 2002-07-06 Angus Leeming <leeming@lyx.org>
507 * PreviewLoader.C: ensure that the metrics data is used by the
511 * PreviewImage.C: (Impl d-tor): remove all generated files that still
512 exist (perhaps because the process was curtailed before the images
515 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
517 2002-07-05 Angus Leeming <leeming@lyx.org>
526 * Previews.C: new files. The previewed LaTeX snippet stuff.
528 * Makefile.am: add these files.
530 2002-07-05 Angus Leeming <leeming@lyx.org>
532 * GraphicsLoader.h: whitespace.
534 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
536 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
537 boost::function from boost::signal.
539 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
541 * GraphicsConverter.C (convert): do not use ChangeExtension
542 because to_file_base may contain a dot.
544 2002-06-28 Angus Leeming <leeming@lyx.org>
546 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
547 by moving those SignalPtrs into the grfx::Image and grfx::Converter
548 classes where they really belong.
549 Use the Pimpl idiom to hide the class internals from public view.
551 * GraphicsTypes: remove the typedefs, leaving only the enums.
553 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
554 passed a reference to one in the load() method.
556 * GraphicsConverter.[Ch]: totally refactored. An instance of
557 grfx::Converter now represents a single conversion process.
558 Thus grfx::CachItem now has a grfx::Converter * that is set when the
559 conversion is initiated and destroyed on completion.
561 * GraphicsCache.[Ch]:
562 * GraphicsCacheItem.[Ch]:
563 * GraphicsConverter.[Ch]:
564 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
566 Note that I have done this only after making the above changes,
567 so not only should we have a clean, minimal and well documented
568 interface to these classes in the header files, but the class internals
569 should be much clearer too.
572 grfx::GCache -> grfx::Cache,
573 grfx::GCacheItem -> grfx::CacheItem,
574 grfx::GConverter -> grfx::Converter,
575 grfx::GImage -> grfx::Image,
576 grfx::GImageXPM -> grfx::ImageXPM,
577 grfx::GParams -> grfx::Params.
579 2002-06-26 Angus Leeming <leeming@lyx.org>
581 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
582 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
585 2002-06-26 Angus Leeming <leeming@lyx.org>
587 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
588 move the DisplayType enum out of grfx::GParams to here.
590 * GraphicsCacheItem.h: re-write preliminary description to reflect
593 * GraphicsParams.[Ch]:
594 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
595 grfx::DisplayType out of grfx::GParams.
597 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
598 that was in frontends/screen.C and insets/insetgraphics.C into a
599 single, easy-to-use class.
601 * Makefile.am: add these files.
603 2002-06-25 Angus Leeming <leeming@lyx.org>
605 * GraphicsCache.[Ch]:
606 * GraphicsCacheItem.[Ch]:
607 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
608 file into memory. The cache no longer controls the generation of the
609 pixmap. Instead, it just emits a signal when the loading status of an
611 The cache no longer stores InsetGraphics pointers and nor does it
612 assume responsibility for modifying an image (scaling, rotating etc).
613 Instead, that must now be performed elsewhere.
615 2002-06-19 Angus Leeming <leeming@lyx.org>
617 * GraphicsConverter.C: add using std::endl directive.
619 2002-06-17 Herbert Voss <voss@lyx.org>
621 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
622 default when nothing different was found
623 (convertToDisplayFormat): handle zipped files in the right way and
624 choose always convert as a default converter when no other
625 userdefined was found
627 * GraphicsConverter.C: add more lyxerr comments and choose
628 convert when no other userdefined converter was found
630 2002-06-10 Herbert Voss <voss@lyx.org>
632 * GraphicsImageXPM.C (convertTo7chars): get another special color
633 format from convert work in the right way
635 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
637 * GraphicsCache.C: use right colormap incantation
639 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
641 * GraphicsCache.C: use lyx_gui namespace
643 * GraphicsImageXPM.C: back down to using xforms
646 2002-06-07 Angus Leeming <leeming@lyx.org>
648 Fixes needed to compile with Compaq cxx 6.5.
649 * GraphicsConverter.h: forward declare class ConvProcess.
651 * GraphicsImageXPM.C:
652 all c-library variables have been moved into namespace std.
653 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
655 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
657 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
659 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
661 * GraphicsImageXPM.C: SigC to boot::signals changes.
662 (newImage): fix () bug when using new.
664 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
666 * switch from SigC signals to boost::signals.
668 2002-05-29 André Pönitz <poenitz@gmx.net>
670 * GraphicsParam.C: remove unneeded #include, move vomment
672 2002-05-28 André Pönitz <poenitz@gmx.net>
674 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
676 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
678 * GraphicsImageXPM.C: ColorHandler moved
680 2002-05-24 Juergen Vigna <jug@sad.it>
683 * GraphicsImage.h: include LString.h first.
685 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
687 * GraphicsCacheItem.h: use more specific smart_ptr header.
688 * GraphicsTypes.h: ditto
689 * GraphicsImage.h: ditto
690 * GraphicsConverter.h: ditto
692 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
694 * GraphicsImageXPM.C: understand convert's use of "opaque"
697 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
699 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
700 GImage::loadableFormats() that ensures that the signal is connected
701 to the derived class' method.
703 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
705 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
706 only work on the string.
708 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
710 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
711 the simple image loader when it encounters colour strings like
714 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
716 * GraphicsCacheItem.C (convertToDisplayFormat):
717 * GraphicsConverter.C (build_script): remove the Alerts when things go
718 wrong as the inset displays the message anyway. Moreover, Alert seems
719 pretty temperamemtal at the moment.
721 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
723 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
725 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
727 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
728 a reference to a temp object that's going out of scope...
730 2002-04-09 Herbert Voss <voss@lyx.org>
732 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
733 LyXLength::inBP instead of inPixels.
735 2002-04-10 Herbert Voss <voss@perce.de>
737 * GraphicsCache.[Ch]:
738 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
739 to read the "Bounding Box" from non (e)ps files.
741 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
743 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
744 the EPS file too, to ensure that the clipped Bounding Box is relative
745 to the original. (From Herbert.)
747 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
749 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
750 variables are initialised. Clean-up parsing of the string (with thanks
753 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
755 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
756 if the file can't be found.
758 * GraphicsParams.h (c-tor): remove string() as default argument.
760 * GraphicsCacheItem.C: a couple of changes as a result.
762 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
764 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
765 path to graphics file.
767 * GraphicsParams.[Ch] (c-tor): now passed filepath.
769 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
771 * most files: ws cleanup
773 * Makefile.am: remove ld -r stuff
775 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
777 * Makefile.am: special rules if partial linking
779 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
781 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
783 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
785 * GraphicsConverter.[Ch] (converted): make first arg const ref.
787 * GraphicsCacheItem.h: doxy change
789 * GraphicsCacheItem.C: ws change
791 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
793 * Makefile.am: if there is no image loading class leveraging the power
794 of the appropriate gui library, then compile the basic alternative
795 found in GraphicsImageXPM.[Ch].
797 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
799 * GraphicsCache.C: change associated with move of initialiseGraphics
802 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
804 * GraphicsParams.[Ch]:
806 * GraphicsImageXPM.C: properly resolve more warnings about comparison
807 between signed and unsigned integer expressions.
809 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
811 * GraphicsCache.C: move connections to the GImage-derived classes to
814 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
816 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
817 conversion, then do that.
819 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
821 * GraphicsCache.C: improve commentary to graphicsInit and where it
824 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
825 that became a memory leak properly. (Let the shared_c_ptr free the
827 (reset, mapcolor): tidy up and introduce a work around for XPM files
828 with crappy color entries. Print out a nice friendly message on what's
829 gone wrong and how to resolve it properly.
831 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
833 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
834 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
836 (unique_color_string): use the correct string c-tor.
838 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
841 * ImageLoaderXPM.[Ch]: removed.
843 * GraphicsConverter.[Ch]:
844 * GraphicsImage.[Ch]:
845 * GraphicsImageXPM.[Ch]:
846 * GraphicsParams.[Ch]:
847 * GraphicsTypes.h: new files.
849 * All files. A total re-write of the graphics cache. The cache now
850 supports asynchronous file conversion and file loading. Images
851 can be cropped, rotated and scaled for display on the LyX screen.
852 The old LyXImage and ImageLoader have been combined in a new class
853 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
856 2002-02-07 Herbert Voss <voss@lyx.org>
858 * GraphicsCacheItem.C: use unzipFile() from support/filetools
860 2002-01-31 Herbert Voss <voss@lyx.org>
862 * GraphicsCacheItem.h: handle filetype without the file extension;
863 getting type from contents; handle zipped files
865 2002-01-27 Herbert Voss <voss@lyx.org>
867 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
869 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
871 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
873 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
875 * GraphicsCacheItem.h: do not include <config.h> in header files
877 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
879 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
880 transparent colour, then set it to the colour of the background.
881 Also take account of the monochrome, grayscale of color
884 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
886 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
887 are different. Thus, don't delete the "to" if it's the original!
889 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
891 * ImageLoadXPM.C: remove setting of alloc colour mask,
892 led to crash as we don't define a callback
894 2001-07-29 Baruch Even <baruch@lyx.org>
896 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
897 colors with closeness of 10000.
899 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
901 2001-07-29 Baruch Even <baruch@lyx.org>
903 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
906 2001-07-23 Baruch Even <baruch@lyx.org>
908 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
909 the image after conversion.
911 2001-07-17 Baruch Even <baruch@lyx.org>
913 * GraphicsCacheItem.h:
914 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
915 from synchronous to asynchronous and to ease the coming changes.
917 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
919 * ImageLoaderXPM.C (runImageLoader): get display information from
922 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
925 * GraphicsCacheItem.C:
927 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
929 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
931 * GraphicsCache.h: inherit privately from noncopyable
932 * ImageLoader.h: ditto
933 * GraphicsCacheItem.h: ditto
935 2001-04-16 Allan Rae <rae@lyx.org>
937 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
938 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
941 2001-04-02 Baruch Even <baruch@lyx.org>
943 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
944 of hard coding ImageMagick.
946 2001-03-10 Baruch Even <baruch@lyx.org>
948 * GraphicsCache.C: Style change from (*it).field to it->field
950 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
952 * GraphicsCache.h: noncopyable is in namespace boost
953 * ImageLoader.h: ditto
954 * GraphicsCacheItem.h: ditto
956 2001-03-07 Baruch Even <baruch@lyx.org>
958 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
959 was false and it's not needed anyhow since the shared_ptr's in the cache
960 will destroy everything on exit.
962 2001-02-28 Baruch Even <baruch@ev-en.org>
965 * GraphicsCache.C: Changed the singleton pattern implementation, the
966 former version "leaked" in the sense that it was not deallocated at
969 2001-02-20 Baruch Even <baruch@ev-en.org>
971 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
972 instead of a pure pointer.
974 * GraphicsCacheItem.[Ch]:
975 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
976 removed the reference counting that was inside. Also fixed a bug where
977 a temporary file wouldn't get erased.
979 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
980 Ownership is now dropped when the caller requests the image_ pointer.
982 2001-02-20 Baruch Even <baruch@ev-en.org>
984 * GraphicsCache.C: Cleared up the confusion on when and how it is
987 * GraphicsCacheItem.C: Indentation change.
989 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
990 figure correctly when the image has been loaded successfully.
992 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
994 * ImageLoader.C: add a "using" directive.
996 * ImageLoader.h: remove extra comma at the end of enum; add an
997 std:: qualifier for vector.
999 2001-01-21 Baruch Even <baruch@ev-en.org>
1001 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1002 height in the image itself and minor cleanups.
1004 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1005 new ImageLoader class instead of the older Renderer class. This
1006 means change of responsibilities.