1 2003-09-07 Angus Leeming <leeming@lyx.org>
4 * Previews.h: remove #include "support/std_string.h".
6 2003-09-06 Angus Leeming <leeming@lyx.org>
8 * PreviewedInset.C: add #include "insets/inset.h"
10 2003-09-05 Angus Leeming <leeming@lyx.org>
12 * *.C: strip out redundant #includes. (26 in total.)
14 2003-09-04 Angus Leeming <angus@localhost.localdomain>
16 * LoaderQueue.C (get):
18 2003-09-04 Angus Leeming <leeming@lyx.org>
21 * GraphicsCacheItem.C:
22 * GraphicsConverter.C:
26 * Previews.C: 'namespace support = lyx::support' rather than
29 * Previews.h: cleaned up some comments.
31 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
33 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
35 * GraphicsTypes.h: do not declare displayTranstor here (and remove
38 2003-07-27 José Matos <jamatos@fep.up.pt>
40 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
43 2003-07-21 Angus Leeming <leeming@lyx.org>
46 * GraphicsCacheItem.[Ch]:
49 * PreviewedInset.[Ch]:
50 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
52 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
54 * Change namespace grfx to lyx::graphics.
56 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
58 * introcude namespace lyx::support
60 2003-06-04 Angus Leeming <leeming@lyx.org>
62 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
63 (operator=): if it has a copy c-tor, it should have this too.
65 2003-06-03 Angus Leeming <leeming@lyx.org>
67 * GraphicsLoader.[Ch] (Loader): add copy constructor.
69 2003-05-23 Angus Leeming <leeming@lyx.org>
71 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
73 2003-05-22 Angus Leeming <leeming@lyx.org>
75 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
76 the inset::latex method.
78 2003-05-22 Angus Leeming <leeming@lyx.org>
80 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
81 the inset::latex method.
83 2003-05-22 Angus Leeming <leeming@lyx.org>
85 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
86 makeLaTeXFile is now encapsulated within runparams.
88 2003-05-22 Angus Leeming <leeming@lyx.org>
90 * PreviewLoader.C (dumpPreamble):
91 pass around a LatexRunParams parameter.
93 2003-05-13 André Pönitz <poenitz@gmx.net>
95 * GraphicsConverter.C:
96 * PreviewLoader.C: use tostr from own header
98 2003-05-12 André Pönitz <poenitz@gmx.net>
100 * PreviewLoader.C: boost::format -> bformat
102 2003-04-15 Angus Leeming <leeming@lyx.org>
104 * GraphicsConverter.C: #include lstrings.h.
106 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
108 * GraphicsConverter.C
109 * PreviewLoader.C: added #include "format.h"
111 2003-02-26 Angus Leeming <leeming@lyx.org>
113 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
114 use the cache of the parent inset instead.
116 * PreviewLoader.C (startLoading): Prevent a crash if the user is
117 not using a tmp directory.
119 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
121 * GraphicsLoader.[Ch],
123 * PreviewedInset.C: Removed unneeded list of owner insets
125 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
127 * GraphicsConverter (startConversion): add the call to
130 * GraphicsLoader.[Ch],
132 * PreviewedInset.C: Removed unneeded BufferView
134 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
136 * LoaderQueue.[Ch]: a simplification of the code, eliminated
137 the unneeded input bucket.
139 * GraphicsCacheItem.C (imageConverted): move warning inside the
142 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
144 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
146 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
148 * LoaderQueue.[Ch] (setPriority): added
150 * PreviewLoader.C (finishedGenerating): reversed the loading order so
151 first images get 'touched' last, and so load first.
153 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
155 * LoaderQueue.[Ch]: added. Implements a service queue that loads
157 * GraphicsSupport.[Ch]: removed
158 * Makefile.am: the changes above
159 * GraphicsLoader.C: use the loading queue
161 2003-01-21 Angus Leeming <leeming@lyx.org>
163 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
164 previews from being generated.
166 2003-01-13 Angus Leeming <leeming@lyx.org>
168 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
169 format to be PPM not XPM.
171 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
173 * Makefile.am (EXTRA_DIST): remove variable
175 2002-12-13 Angus Leeming <leeming@lyx.org>
177 * GraphicsImageXPM.[Ch]: removed.
179 * Makefile.am: associated change.
181 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
183 * several files: ws changes
185 2002-11-21 Angus Leeming <leeming@lyx.org>
187 * GraphicsConverter.C (build_script, move_file):
188 Don't use "if [ $? -ne 0 ]; then..."
190 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
192 * PreviewLoader.C (IncrementedFileName): STRCONV
193 (startLoading): ditto
195 * GraphicsConverter.C (Impl): STRCONV
198 * GraphicsTypes.C: include config.h
200 2002-10-25 Angus Leeming <leeming@lyx.org>
202 * GraphicsConverter.C (Impl::converted)
203 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
204 string as first arg, reflecting change in ForkedCall interface.
206 * PreviewLoader.C: use pid rather than command as identifier in
209 2002-10-18 Angus Leeming <leeming@lyx.org>
211 * GraphicsCacheItem.C (findTargetFormat): add debug message.
213 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
215 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
217 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
219 * GraphicsConverter.C (build_script): do not use ChangeExtension
223 2002-09-05 Angus Leeming <leeming@lyx.org>
225 * all files: modify the headers as discussed on the list.
227 2002-09-04 Angus Leeming <leeming@lyx.org>
229 * PreviewLoader.C (startLoading): pass the desired output format to the
232 2002-09-04 Angus Leeming <leeming@lyx.org>
234 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
236 2002-09-03 Angus Leeming <leeming@lyx.org>
238 * PreviewLoader.C: fix crash reported by Norbert Koksch when
239 generating more than 999 preview snippets. Use filenames with 5 digit
240 numbers, not 3, in the first instance, although more general code is
241 commented out. I don't suppose /anyone/ has 100000 formulae in one
244 2002-09-03 Angus Leeming <leeming@lyx.org>
246 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
248 2002-09-03 Angus Leeming <leeming@lyx.org>
250 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
252 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
254 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
255 convertDefault command with "sh ".
257 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
259 * GraphicsImage.C: small style fix to width/height setting.
261 * GraphicsTypes.h: have a displayTranslator here.
264 * GraphicsTypes.C: new file added for the setDisplayTranslator();
266 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
269 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
270 because this input has gone from the graphics dialog.
272 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
274 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
276 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
277 for support/smart_ptr.h, switch to boost smart ptr.
279 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
280 (~Data): let the smart_ptr handle cleanup
281 (reset): use nifty 3rd arg
283 (free_color_table): free the table manually
285 2002-08-09 Angus Leeming <leeming@lyx.org>
287 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
288 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
289 input@path is now set correctly.
291 2002-08-06 Angus Leeming <leeming@lyx.org>
293 * PreviewLoader.C: add support for preview.sty 0.73 (currently
294 #ifdef-ed out, awaiting the formal release).
296 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
297 the contents of a file that has changed.
299 2002-08-05 Angus Leeming <leeming@lyx.org>
301 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
302 to preview.sty. Works only for versions of preview.sty > 0.72b but
303 doesn't hurt earlier versions. Allows me to test the new parsing of
304 LyX-specific data from the generated log file.
306 2002-08-02 Angus Leeming <leeming@lyx.org>
308 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
310 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
311 (add): don't add empty snippets.
313 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
314 (view, setView): access to to the cache_.
316 2002-08-02 Angus Leeming <leeming@lyx.org>
318 * PreviewedInset.[Ch]: cache the LaTeX snippet.
320 2002-08-01 Angus Leeming <leeming@lyx.org>
322 * PreviewedInset.[Ch]: new files. An abstract base class that can help
323 insets to generate previews.
324 The daughter class must instantiate three small methods.
325 The Inset would own an instance of this daughter class and invoke it
326 as necessary. For example, mathd/formula.C gets previews at the cost
327 of 15 or so lines of code.
329 * Makefile.am: add PreviewedInset.[Ch].
331 * PreviewLoader.C (add): add debug message.
333 * Previews.C (generateBufferPreviews): remove if-block from loop.
335 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
337 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
339 (setAscentFractions): ditto
341 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
343 * PreviewLoader.C (setAscentFractions): modify because of strip
346 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
348 * GraphicsConverter.C (build_script): take a ostream as a more
349 general argument than ostringstream.
351 2002-07-22 Herbert Voss <voss@lyx.org>
353 * GraphicsConverter.C: get the "default converter" run again
355 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
357 * PreviewLoader.C: use BufferParams::getLyXTextClass
359 2002-07-21 Herbert Voss <voss@lyx.org>
361 * GraphicsImage.C: get the LyXAspectRatio run.
363 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
365 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
367 * PreviewLoader.C (startLoading): pass an interger as resolution
368 to the lyxpreview converter
370 * GraphicsParams.C: include <cstdlib>
372 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
374 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
375 preview converter script
377 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
379 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
382 2002-07-18 Angus Leeming <leeming@lyx.org>
384 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
386 (startMonitoring, monitoring, checksum): new methods to interact with
389 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
390 methods invoking the CacheItem methods of the same name.
391 (resetFile): if monitoring and the file changes, start monitoring this
394 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
396 * Makefile.am: remove FileMonitor.[Ch]
398 2002-06-17 Herbert Voss <voss@lyx.org>
400 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
401 for old ps-files (Garst). It's now handled by defining a converter and
402 disabling the ps-support of xforms.
404 2002-07-17 Angus Leeming <leeming@lyx.org>
406 Be true to the Pimpl idiom, moving all signals into the respective
407 Impl classes and defining methods to connect them to an outside slot.
408 Const-ify all visible class methods as they act only on a const pimpl_.
410 * GraphicsCache.[Ch] (add, remove): const-ify.
412 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
413 (statusChanged): move the signal into the Impl class.
414 (connect): new method, enabling a listener to connect to this signal.
416 * GraphicsConverter.[Ch]: (startConversion): const-ify.
417 (finishedConversion): move the signal into the Impl class.
418 (connect): new method, enabling a listener to connect to this signal.
420 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
421 (statusChanged): move the signal into the Impl class.
422 (connect): new method, enabling a listener to connect to this signal.
424 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
425 (imageReady): move the signal into the Impl class.
426 (connect): new method, enabling a listener to connect to this signal.
427 (emitSignal): new method, enabling PreviewImage to tell the outside
428 world that the file has been loaded into memory.
430 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
434 * GraphicsCacheItem.C:
435 * GraphicsConverter.[Ch]:
437 * GraphicsImageXPM.C:
439 * PreviewLoader.[Ch]: whitespace clean-up.
441 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
443 * PreviewLoader.C (setConverter): remove unused variable
445 * GraphicsImageXPM.C (isDrawable): implement
446 (setPixmap): the opaque color is black, not white
448 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
450 * GraphicsImageXPM.C (color_none_id):
451 (contains_color_none): use ascii_lowercase instead of lowercase
453 2002-07-16 Angus Leeming <leeming@lyx.org>
455 * PreviewLoader.C: greater use of STL algorithms.
457 * Previews.[Ch]: use const in more places.
458 (generateBufferPreviews): now takes a Buffer const & argument, not a
461 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
463 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
465 2002-07-12 Angus Leeming <leeming@lyx.org>
467 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
468 if visible 2 secs after the call to load them is first made.
470 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
471 BufferView to ascertain whether the inset is visible or not.
473 * Makefile.am: added GraphicsSupport.[Ch].
475 * PreviewImage.[Ch]: use this smart loader.
477 * PreviewLoader.C: don't load generated image files indiscimminantly.
478 Instead emit the imageReady signal and allow the image owner to decide.
480 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
482 * GraphicsCache.C: remove init_graphics()
484 2002-07-09 Angus Leeming <leeming@lyx.org>
486 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
487 arithmetic when it should be floating.
489 2002-07-09 Angus Leeming <leeming@lyx.org>
491 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
492 Output equation labels as "(#)" if lyxrc preference is set.
493 (setFontScalingFactor): use lyxrc variable preview_scale_factor
494 rather than hard-coding this.
496 2002-07-09 Angus Leeming <leeming@lyx.org>
498 * PreviewLoader.C: Further refactoring of the code. Should now be
501 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
502 past its sell-by date. The code to read the metrics file is now found
503 as a helper function in PreviewLoader.C.
505 * GraphicsImageXPM.C (scale): use boost::tie.
507 2002-07-08 Herbert Voss <voss@lyx.org>
509 * PreviewLoader.C: use of preview_size_factor to get the right
510 font-size! 0.9 is the default.
512 2002-07-08 Angus Leeming <leeming@lyx.org>
514 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
515 invocation of preview.sty.
516 Perform something of an internal clean-up.
518 2002-07-06 Angus Leeming <leeming@lyx.org>
520 * PreviewLoader.C: ensure that the metrics data is used by the
524 * PreviewImage.C: (Impl d-tor): remove all generated files that still
525 exist (perhaps because the process was curtailed before the images
528 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
530 2002-07-05 Angus Leeming <leeming@lyx.org>
539 * Previews.C: new files. The previewed LaTeX snippet stuff.
541 * Makefile.am: add these files.
543 2002-07-05 Angus Leeming <leeming@lyx.org>
545 * GraphicsLoader.h: whitespace.
547 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
549 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
550 boost::function from boost::signal.
552 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
554 * GraphicsConverter.C (convert): do not use ChangeExtension
555 because to_file_base may contain a dot.
557 2002-06-28 Angus Leeming <leeming@lyx.org>
559 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
560 by moving those SignalPtrs into the grfx::Image and grfx::Converter
561 classes where they really belong.
562 Use the Pimpl idiom to hide the class internals from public view.
564 * GraphicsTypes: remove the typedefs, leaving only the enums.
566 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
567 passed a reference to one in the load() method.
569 * GraphicsConverter.[Ch]: totally refactored. An instance of
570 grfx::Converter now represents a single conversion process.
571 Thus grfx::CachItem now has a grfx::Converter * that is set when the
572 conversion is initiated and destroyed on completion.
574 * GraphicsCache.[Ch]:
575 * GraphicsCacheItem.[Ch]:
576 * GraphicsConverter.[Ch]:
577 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
579 Note that I have done this only after making the above changes,
580 so not only should we have a clean, minimal and well documented
581 interface to these classes in the header files, but the class internals
582 should be much clearer too.
585 grfx::GCache -> grfx::Cache,
586 grfx::GCacheItem -> grfx::CacheItem,
587 grfx::GConverter -> grfx::Converter,
588 grfx::GImage -> grfx::Image,
589 grfx::GImageXPM -> grfx::ImageXPM,
590 grfx::GParams -> grfx::Params.
592 2002-06-26 Angus Leeming <leeming@lyx.org>
594 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
595 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
598 2002-06-26 Angus Leeming <leeming@lyx.org>
600 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
601 move the DisplayType enum out of grfx::GParams to here.
603 * GraphicsCacheItem.h: re-write preliminary description to reflect
606 * GraphicsParams.[Ch]:
607 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
608 grfx::DisplayType out of grfx::GParams.
610 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
611 that was in frontends/screen.C and insets/insetgraphics.C into a
612 single, easy-to-use class.
614 * Makefile.am: add these files.
616 2002-06-25 Angus Leeming <leeming@lyx.org>
618 * GraphicsCache.[Ch]:
619 * GraphicsCacheItem.[Ch]:
620 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
621 file into memory. The cache no longer controls the generation of the
622 pixmap. Instead, it just emits a signal when the loading status of an
624 The cache no longer stores InsetGraphics pointers and nor does it
625 assume responsibility for modifying an image (scaling, rotating etc).
626 Instead, that must now be performed elsewhere.
628 2002-06-19 Angus Leeming <leeming@lyx.org>
630 * GraphicsConverter.C: add using std::endl directive.
632 2002-06-17 Herbert Voss <voss@lyx.org>
634 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
635 default when nothing different was found
636 (convertToDisplayFormat): handle zipped files in the right way and
637 choose always convert as a default converter when no other
638 userdefined was found
640 * GraphicsConverter.C: add more lyxerr comments and choose
641 convert when no other userdefined converter was found
643 2002-06-10 Herbert Voss <voss@lyx.org>
645 * GraphicsImageXPM.C (convertTo7chars): get another special color
646 format from convert work in the right way
648 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
650 * GraphicsCache.C: use right colormap incantation
652 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
654 * GraphicsCache.C: use lyx_gui namespace
656 * GraphicsImageXPM.C: back down to using xforms
659 2002-06-07 Angus Leeming <leeming@lyx.org>
661 Fixes needed to compile with Compaq cxx 6.5.
662 * GraphicsConverter.h: forward declare class ConvProcess.
664 * GraphicsImageXPM.C:
665 all c-library variables have been moved into namespace std.
666 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
668 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
670 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
672 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
674 * GraphicsImageXPM.C: SigC to boot::signals changes.
675 (newImage): fix () bug when using new.
677 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
679 * switch from SigC signals to boost::signals.
681 2002-05-29 André Pönitz <poenitz@gmx.net>
683 * GraphicsParam.C: remove unneeded #include, move vomment
685 2002-05-28 André Pönitz <poenitz@gmx.net>
687 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
689 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
691 * GraphicsImageXPM.C: ColorHandler moved
693 2002-05-24 Juergen Vigna <jug@sad.it>
696 * GraphicsImage.h: include LString.h first.
698 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
700 * GraphicsCacheItem.h: use more specific smart_ptr header.
701 * GraphicsTypes.h: ditto
702 * GraphicsImage.h: ditto
703 * GraphicsConverter.h: ditto
705 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
707 * GraphicsImageXPM.C: understand convert's use of "opaque"
710 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
712 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
713 GImage::loadableFormats() that ensures that the signal is connected
714 to the derived class' method.
716 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
718 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
719 only work on the string.
721 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
723 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
724 the simple image loader when it encounters colour strings like
727 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
729 * GraphicsCacheItem.C (convertToDisplayFormat):
730 * GraphicsConverter.C (build_script): remove the Alerts when things go
731 wrong as the inset displays the message anyway. Moreover, Alert seems
732 pretty temperamemtal at the moment.
734 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
736 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
738 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
740 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
741 a reference to a temp object that's going out of scope...
743 2002-04-09 Herbert Voss <voss@lyx.org>
745 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
746 LyXLength::inBP instead of inPixels.
748 2002-04-10 Herbert Voss <voss@perce.de>
750 * GraphicsCache.[Ch]:
751 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
752 to read the "Bounding Box" from non (e)ps files.
754 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
756 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
757 the EPS file too, to ensure that the clipped Bounding Box is relative
758 to the original. (From Herbert.)
760 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
762 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
763 variables are initialised. Clean-up parsing of the string (with thanks
766 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
768 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
769 if the file can't be found.
771 * GraphicsParams.h (c-tor): remove string() as default argument.
773 * GraphicsCacheItem.C: a couple of changes as a result.
775 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
777 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
778 path to graphics file.
780 * GraphicsParams.[Ch] (c-tor): now passed filepath.
782 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
784 * most files: ws cleanup
786 * Makefile.am: remove ld -r stuff
788 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
790 * Makefile.am: special rules if partial linking
792 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
794 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
796 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
798 * GraphicsConverter.[Ch] (converted): make first arg const ref.
800 * GraphicsCacheItem.h: doxy change
802 * GraphicsCacheItem.C: ws change
804 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
806 * Makefile.am: if there is no image loading class leveraging the power
807 of the appropriate gui library, then compile the basic alternative
808 found in GraphicsImageXPM.[Ch].
810 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
812 * GraphicsCache.C: change associated with move of initialiseGraphics
815 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
817 * GraphicsParams.[Ch]:
819 * GraphicsImageXPM.C: properly resolve more warnings about comparison
820 between signed and unsigned integer expressions.
822 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
824 * GraphicsCache.C: move connections to the GImage-derived classes to
827 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
829 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
830 conversion, then do that.
832 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
834 * GraphicsCache.C: improve commentary to graphicsInit and where it
837 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
838 that became a memory leak properly. (Let the shared_c_ptr free the
840 (reset, mapcolor): tidy up and introduce a work around for XPM files
841 with crappy color entries. Print out a nice friendly message on what's
842 gone wrong and how to resolve it properly.
844 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
846 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
847 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
849 (unique_color_string): use the correct string c-tor.
851 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
854 * ImageLoaderXPM.[Ch]: removed.
856 * GraphicsConverter.[Ch]:
857 * GraphicsImage.[Ch]:
858 * GraphicsImageXPM.[Ch]:
859 * GraphicsParams.[Ch]:
860 * GraphicsTypes.h: new files.
862 * All files. A total re-write of the graphics cache. The cache now
863 supports asynchronous file conversion and file loading. Images
864 can be cropped, rotated and scaled for display on the LyX screen.
865 The old LyXImage and ImageLoader have been combined in a new class
866 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
869 2002-02-07 Herbert Voss <voss@lyx.org>
871 * GraphicsCacheItem.C: use unzipFile() from support/filetools
873 2002-01-31 Herbert Voss <voss@lyx.org>
875 * GraphicsCacheItem.h: handle filetype without the file extension;
876 getting type from contents; handle zipped files
878 2002-01-27 Herbert Voss <voss@lyx.org>
880 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
882 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
884 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
886 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
888 * GraphicsCacheItem.h: do not include <config.h> in header files
890 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
892 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
893 transparent colour, then set it to the colour of the background.
894 Also take account of the monochrome, grayscale of color
897 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
899 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
900 are different. Thus, don't delete the "to" if it's the original!
902 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
904 * ImageLoadXPM.C: remove setting of alloc colour mask,
905 led to crash as we don't define a callback
907 2001-07-29 Baruch Even <baruch@lyx.org>
909 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
910 colors with closeness of 10000.
912 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
914 2001-07-29 Baruch Even <baruch@lyx.org>
916 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
919 2001-07-23 Baruch Even <baruch@lyx.org>
921 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
922 the image after conversion.
924 2001-07-17 Baruch Even <baruch@lyx.org>
926 * GraphicsCacheItem.h:
927 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
928 from synchronous to asynchronous and to ease the coming changes.
930 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
932 * ImageLoaderXPM.C (runImageLoader): get display information from
935 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
938 * GraphicsCacheItem.C:
940 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
942 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
944 * GraphicsCache.h: inherit privately from noncopyable
945 * ImageLoader.h: ditto
946 * GraphicsCacheItem.h: ditto
948 2001-04-16 Allan Rae <rae@lyx.org>
950 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
951 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
954 2001-04-02 Baruch Even <baruch@lyx.org>
956 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
957 of hard coding ImageMagick.
959 2001-03-10 Baruch Even <baruch@lyx.org>
961 * GraphicsCache.C: Style change from (*it).field to it->field
963 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
965 * GraphicsCache.h: noncopyable is in namespace boost
966 * ImageLoader.h: ditto
967 * GraphicsCacheItem.h: ditto
969 2001-03-07 Baruch Even <baruch@lyx.org>
971 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
972 was false and it's not needed anyhow since the shared_ptr's in the cache
973 will destroy everything on exit.
975 2001-02-28 Baruch Even <baruch@ev-en.org>
978 * GraphicsCache.C: Changed the singleton pattern implementation, the
979 former version "leaked" in the sense that it was not deallocated at
982 2001-02-20 Baruch Even <baruch@ev-en.org>
984 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
985 instead of a pure pointer.
987 * GraphicsCacheItem.[Ch]:
988 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
989 removed the reference counting that was inside. Also fixed a bug where
990 a temporary file wouldn't get erased.
992 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
993 Ownership is now dropped when the caller requests the image_ pointer.
995 2001-02-20 Baruch Even <baruch@ev-en.org>
997 * GraphicsCache.C: Cleared up the confusion on when and how it is
1000 * GraphicsCacheItem.C: Indentation change.
1002 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1003 figure correctly when the image has been loaded successfully.
1005 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1007 * ImageLoader.C: add a "using" directive.
1009 * ImageLoader.h: remove extra comma at the end of enum; add an
1010 std:: qualifier for vector.
1012 2001-01-21 Baruch Even <baruch@ev-en.org>
1014 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1015 height in the image itself and minor cleanups.
1017 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1018 new ImageLoader class instead of the older Renderer class. This
1019 means change of responsibilities.