1 2003-09-05 Angus Leeming <leeming@lyx.org>
3 * *.C: strip out redundant #includes. (26 in total.)
5 2003-09-04 Angus Leeming <angus@localhost.localdomain>
9 2003-09-04 Angus Leeming <leeming@lyx.org>
12 * GraphicsCacheItem.C:
13 * GraphicsConverter.C:
17 * Previews.C: 'namespace support = lyx::support' rather than
20 * Previews.h: cleaned up some comments.
22 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
24 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
26 * GraphicsTypes.h: do not declare displayTranstor here (and remove
29 2003-07-27 José Matos <jamatos@fep.up.pt>
31 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
34 2003-07-21 Angus Leeming <leeming@lyx.org>
37 * GraphicsCacheItem.[Ch]:
40 * PreviewedInset.[Ch]:
41 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
43 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
45 * Change namespace grfx to lyx::graphics.
47 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
49 * introcude namespace lyx::support
51 2003-06-04 Angus Leeming <leeming@lyx.org>
53 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
54 (operator=): if it has a copy c-tor, it should have this too.
56 2003-06-03 Angus Leeming <leeming@lyx.org>
58 * GraphicsLoader.[Ch] (Loader): add copy constructor.
60 2003-05-23 Angus Leeming <leeming@lyx.org>
62 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
64 2003-05-22 Angus Leeming <leeming@lyx.org>
66 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
67 the inset::latex method.
69 2003-05-22 Angus Leeming <leeming@lyx.org>
71 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
72 the inset::latex method.
74 2003-05-22 Angus Leeming <leeming@lyx.org>
76 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
77 makeLaTeXFile is now encapsulated within runparams.
79 2003-05-22 Angus Leeming <leeming@lyx.org>
81 * PreviewLoader.C (dumpPreamble):
82 pass around a LatexRunParams parameter.
84 2003-05-13 André Pönitz <poenitz@gmx.net>
86 * GraphicsConverter.C:
87 * PreviewLoader.C: use tostr from own header
89 2003-05-12 André Pönitz <poenitz@gmx.net>
91 * PreviewLoader.C: boost::format -> bformat
93 2003-04-15 Angus Leeming <leeming@lyx.org>
95 * GraphicsConverter.C: #include lstrings.h.
97 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
100 * PreviewLoader.C: added #include "format.h"
102 2003-02-26 Angus Leeming <leeming@lyx.org>
104 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
105 use the cache of the parent inset instead.
107 * PreviewLoader.C (startLoading): Prevent a crash if the user is
108 not using a tmp directory.
110 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
112 * GraphicsLoader.[Ch],
114 * PreviewedInset.C: Removed unneeded list of owner insets
116 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
118 * GraphicsConverter (startConversion): add the call to
121 * GraphicsLoader.[Ch],
123 * PreviewedInset.C: Removed unneeded BufferView
125 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
127 * LoaderQueue.[Ch]: a simplification of the code, eliminated
128 the unneeded input bucket.
130 * GraphicsCacheItem.C (imageConverted): move warning inside the
133 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
135 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
137 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
139 * LoaderQueue.[Ch] (setPriority): added
141 * PreviewLoader.C (finishedGenerating): reversed the loading order so
142 first images get 'touched' last, and so load first.
144 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
146 * LoaderQueue.[Ch]: added. Implements a service queue that loads
148 * GraphicsSupport.[Ch]: removed
149 * Makefile.am: the changes above
150 * GraphicsLoader.C: use the loading queue
152 2003-01-21 Angus Leeming <leeming@lyx.org>
154 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
155 previews from being generated.
157 2003-01-13 Angus Leeming <leeming@lyx.org>
159 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
160 format to be PPM not XPM.
162 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
164 * Makefile.am (EXTRA_DIST): remove variable
166 2002-12-13 Angus Leeming <leeming@lyx.org>
168 * GraphicsImageXPM.[Ch]: removed.
170 * Makefile.am: associated change.
172 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
174 * several files: ws changes
176 2002-11-21 Angus Leeming <leeming@lyx.org>
178 * GraphicsConverter.C (build_script, move_file):
179 Don't use "if [ $? -ne 0 ]; then..."
181 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
183 * PreviewLoader.C (IncrementedFileName): STRCONV
184 (startLoading): ditto
186 * GraphicsConverter.C (Impl): STRCONV
189 * GraphicsTypes.C: include config.h
191 2002-10-25 Angus Leeming <leeming@lyx.org>
193 * GraphicsConverter.C (Impl::converted)
194 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
195 string as first arg, reflecting change in ForkedCall interface.
197 * PreviewLoader.C: use pid rather than command as identifier in
200 2002-10-18 Angus Leeming <leeming@lyx.org>
202 * GraphicsCacheItem.C (findTargetFormat): add debug message.
204 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
206 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
208 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
210 * GraphicsConverter.C (build_script): do not use ChangeExtension
214 2002-09-05 Angus Leeming <leeming@lyx.org>
216 * all files: modify the headers as discussed on the list.
218 2002-09-04 Angus Leeming <leeming@lyx.org>
220 * PreviewLoader.C (startLoading): pass the desired output format to the
223 2002-09-04 Angus Leeming <leeming@lyx.org>
225 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
227 2002-09-03 Angus Leeming <leeming@lyx.org>
229 * PreviewLoader.C: fix crash reported by Norbert Koksch when
230 generating more than 999 preview snippets. Use filenames with 5 digit
231 numbers, not 3, in the first instance, although more general code is
232 commented out. I don't suppose /anyone/ has 100000 formulae in one
235 2002-09-03 Angus Leeming <leeming@lyx.org>
237 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
239 2002-09-03 Angus Leeming <leeming@lyx.org>
241 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
243 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
245 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
246 convertDefault command with "sh ".
248 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
250 * GraphicsImage.C: small style fix to width/height setting.
252 * GraphicsTypes.h: have a displayTranslator here.
255 * GraphicsTypes.C: new file added for the setDisplayTranslator();
257 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
260 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
261 because this input has gone from the graphics dialog.
263 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
265 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
267 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
268 for support/smart_ptr.h, switch to boost smart ptr.
270 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
271 (~Data): let the smart_ptr handle cleanup
272 (reset): use nifty 3rd arg
274 (free_color_table): free the table manually
276 2002-08-09 Angus Leeming <leeming@lyx.org>
278 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
279 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
280 input@path is now set correctly.
282 2002-08-06 Angus Leeming <leeming@lyx.org>
284 * PreviewLoader.C: add support for preview.sty 0.73 (currently
285 #ifdef-ed out, awaiting the formal release).
287 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
288 the contents of a file that has changed.
290 2002-08-05 Angus Leeming <leeming@lyx.org>
292 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
293 to preview.sty. Works only for versions of preview.sty > 0.72b but
294 doesn't hurt earlier versions. Allows me to test the new parsing of
295 LyX-specific data from the generated log file.
297 2002-08-02 Angus Leeming <leeming@lyx.org>
299 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
301 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
302 (add): don't add empty snippets.
304 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
305 (view, setView): access to to the cache_.
307 2002-08-02 Angus Leeming <leeming@lyx.org>
309 * PreviewedInset.[Ch]: cache the LaTeX snippet.
311 2002-08-01 Angus Leeming <leeming@lyx.org>
313 * PreviewedInset.[Ch]: new files. An abstract base class that can help
314 insets to generate previews.
315 The daughter class must instantiate three small methods.
316 The Inset would own an instance of this daughter class and invoke it
317 as necessary. For example, mathd/formula.C gets previews at the cost
318 of 15 or so lines of code.
320 * Makefile.am: add PreviewedInset.[Ch].
322 * PreviewLoader.C (add): add debug message.
324 * Previews.C (generateBufferPreviews): remove if-block from loop.
326 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
328 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
330 (setAscentFractions): ditto
332 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
334 * PreviewLoader.C (setAscentFractions): modify because of strip
337 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
339 * GraphicsConverter.C (build_script): take a ostream as a more
340 general argument than ostringstream.
342 2002-07-22 Herbert Voss <voss@lyx.org>
344 * GraphicsConverter.C: get the "default converter" run again
346 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
348 * PreviewLoader.C: use BufferParams::getLyXTextClass
350 2002-07-21 Herbert Voss <voss@lyx.org>
352 * GraphicsImage.C: get the LyXAspectRatio run.
354 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
356 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
358 * PreviewLoader.C (startLoading): pass an interger as resolution
359 to the lyxpreview converter
361 * GraphicsParams.C: include <cstdlib>
363 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
365 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
366 preview converter script
368 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
370 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
373 2002-07-18 Angus Leeming <leeming@lyx.org>
375 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
377 (startMonitoring, monitoring, checksum): new methods to interact with
380 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
381 methods invoking the CacheItem methods of the same name.
382 (resetFile): if monitoring and the file changes, start monitoring this
385 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
387 * Makefile.am: remove FileMonitor.[Ch]
389 2002-06-17 Herbert Voss <voss@lyx.org>
391 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
392 for old ps-files (Garst). It's now handled by defining a converter and
393 disabling the ps-support of xforms.
395 2002-07-17 Angus Leeming <leeming@lyx.org>
397 Be true to the Pimpl idiom, moving all signals into the respective
398 Impl classes and defining methods to connect them to an outside slot.
399 Const-ify all visible class methods as they act only on a const pimpl_.
401 * GraphicsCache.[Ch] (add, remove): const-ify.
403 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
404 (statusChanged): move the signal into the Impl class.
405 (connect): new method, enabling a listener to connect to this signal.
407 * GraphicsConverter.[Ch]: (startConversion): const-ify.
408 (finishedConversion): move the signal into the Impl class.
409 (connect): new method, enabling a listener to connect to this signal.
411 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
412 (statusChanged): move the signal into the Impl class.
413 (connect): new method, enabling a listener to connect to this signal.
415 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
416 (imageReady): move the signal into the Impl class.
417 (connect): new method, enabling a listener to connect to this signal.
418 (emitSignal): new method, enabling PreviewImage to tell the outside
419 world that the file has been loaded into memory.
421 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
425 * GraphicsCacheItem.C:
426 * GraphicsConverter.[Ch]:
428 * GraphicsImageXPM.C:
430 * PreviewLoader.[Ch]: whitespace clean-up.
432 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
434 * PreviewLoader.C (setConverter): remove unused variable
436 * GraphicsImageXPM.C (isDrawable): implement
437 (setPixmap): the opaque color is black, not white
439 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
441 * GraphicsImageXPM.C (color_none_id):
442 (contains_color_none): use ascii_lowercase instead of lowercase
444 2002-07-16 Angus Leeming <leeming@lyx.org>
446 * PreviewLoader.C: greater use of STL algorithms.
448 * Previews.[Ch]: use const in more places.
449 (generateBufferPreviews): now takes a Buffer const & argument, not a
452 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
454 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
456 2002-07-12 Angus Leeming <leeming@lyx.org>
458 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
459 if visible 2 secs after the call to load them is first made.
461 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
462 BufferView to ascertain whether the inset is visible or not.
464 * Makefile.am: added GraphicsSupport.[Ch].
466 * PreviewImage.[Ch]: use this smart loader.
468 * PreviewLoader.C: don't load generated image files indiscimminantly.
469 Instead emit the imageReady signal and allow the image owner to decide.
471 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
473 * GraphicsCache.C: remove init_graphics()
475 2002-07-09 Angus Leeming <leeming@lyx.org>
477 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
478 arithmetic when it should be floating.
480 2002-07-09 Angus Leeming <leeming@lyx.org>
482 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
483 Output equation labels as "(#)" if lyxrc preference is set.
484 (setFontScalingFactor): use lyxrc variable preview_scale_factor
485 rather than hard-coding this.
487 2002-07-09 Angus Leeming <leeming@lyx.org>
489 * PreviewLoader.C: Further refactoring of the code. Should now be
492 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
493 past its sell-by date. The code to read the metrics file is now found
494 as a helper function in PreviewLoader.C.
496 * GraphicsImageXPM.C (scale): use boost::tie.
498 2002-07-08 Herbert Voss <voss@lyx.org>
500 * PreviewLoader.C: use of preview_size_factor to get the right
501 font-size! 0.9 is the default.
503 2002-07-08 Angus Leeming <leeming@lyx.org>
505 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
506 invocation of preview.sty.
507 Perform something of an internal clean-up.
509 2002-07-06 Angus Leeming <leeming@lyx.org>
511 * PreviewLoader.C: ensure that the metrics data is used by the
515 * PreviewImage.C: (Impl d-tor): remove all generated files that still
516 exist (perhaps because the process was curtailed before the images
519 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
521 2002-07-05 Angus Leeming <leeming@lyx.org>
530 * Previews.C: new files. The previewed LaTeX snippet stuff.
532 * Makefile.am: add these files.
534 2002-07-05 Angus Leeming <leeming@lyx.org>
536 * GraphicsLoader.h: whitespace.
538 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
540 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
541 boost::function from boost::signal.
543 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
545 * GraphicsConverter.C (convert): do not use ChangeExtension
546 because to_file_base may contain a dot.
548 2002-06-28 Angus Leeming <leeming@lyx.org>
550 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
551 by moving those SignalPtrs into the grfx::Image and grfx::Converter
552 classes where they really belong.
553 Use the Pimpl idiom to hide the class internals from public view.
555 * GraphicsTypes: remove the typedefs, leaving only the enums.
557 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
558 passed a reference to one in the load() method.
560 * GraphicsConverter.[Ch]: totally refactored. An instance of
561 grfx::Converter now represents a single conversion process.
562 Thus grfx::CachItem now has a grfx::Converter * that is set when the
563 conversion is initiated and destroyed on completion.
565 * GraphicsCache.[Ch]:
566 * GraphicsCacheItem.[Ch]:
567 * GraphicsConverter.[Ch]:
568 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
570 Note that I have done this only after making the above changes,
571 so not only should we have a clean, minimal and well documented
572 interface to these classes in the header files, but the class internals
573 should be much clearer too.
576 grfx::GCache -> grfx::Cache,
577 grfx::GCacheItem -> grfx::CacheItem,
578 grfx::GConverter -> grfx::Converter,
579 grfx::GImage -> grfx::Image,
580 grfx::GImageXPM -> grfx::ImageXPM,
581 grfx::GParams -> grfx::Params.
583 2002-06-26 Angus Leeming <leeming@lyx.org>
585 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
586 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
589 2002-06-26 Angus Leeming <leeming@lyx.org>
591 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
592 move the DisplayType enum out of grfx::GParams to here.
594 * GraphicsCacheItem.h: re-write preliminary description to reflect
597 * GraphicsParams.[Ch]:
598 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
599 grfx::DisplayType out of grfx::GParams.
601 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
602 that was in frontends/screen.C and insets/insetgraphics.C into a
603 single, easy-to-use class.
605 * Makefile.am: add these files.
607 2002-06-25 Angus Leeming <leeming@lyx.org>
609 * GraphicsCache.[Ch]:
610 * GraphicsCacheItem.[Ch]:
611 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
612 file into memory. The cache no longer controls the generation of the
613 pixmap. Instead, it just emits a signal when the loading status of an
615 The cache no longer stores InsetGraphics pointers and nor does it
616 assume responsibility for modifying an image (scaling, rotating etc).
617 Instead, that must now be performed elsewhere.
619 2002-06-19 Angus Leeming <leeming@lyx.org>
621 * GraphicsConverter.C: add using std::endl directive.
623 2002-06-17 Herbert Voss <voss@lyx.org>
625 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
626 default when nothing different was found
627 (convertToDisplayFormat): handle zipped files in the right way and
628 choose always convert as a default converter when no other
629 userdefined was found
631 * GraphicsConverter.C: add more lyxerr comments and choose
632 convert when no other userdefined converter was found
634 2002-06-10 Herbert Voss <voss@lyx.org>
636 * GraphicsImageXPM.C (convertTo7chars): get another special color
637 format from convert work in the right way
639 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
641 * GraphicsCache.C: use right colormap incantation
643 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
645 * GraphicsCache.C: use lyx_gui namespace
647 * GraphicsImageXPM.C: back down to using xforms
650 2002-06-07 Angus Leeming <leeming@lyx.org>
652 Fixes needed to compile with Compaq cxx 6.5.
653 * GraphicsConverter.h: forward declare class ConvProcess.
655 * GraphicsImageXPM.C:
656 all c-library variables have been moved into namespace std.
657 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
659 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
661 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
663 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
665 * GraphicsImageXPM.C: SigC to boot::signals changes.
666 (newImage): fix () bug when using new.
668 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
670 * switch from SigC signals to boost::signals.
672 2002-05-29 André Pönitz <poenitz@gmx.net>
674 * GraphicsParam.C: remove unneeded #include, move vomment
676 2002-05-28 André Pönitz <poenitz@gmx.net>
678 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
680 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
682 * GraphicsImageXPM.C: ColorHandler moved
684 2002-05-24 Juergen Vigna <jug@sad.it>
687 * GraphicsImage.h: include LString.h first.
689 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
691 * GraphicsCacheItem.h: use more specific smart_ptr header.
692 * GraphicsTypes.h: ditto
693 * GraphicsImage.h: ditto
694 * GraphicsConverter.h: ditto
696 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
698 * GraphicsImageXPM.C: understand convert's use of "opaque"
701 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
703 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
704 GImage::loadableFormats() that ensures that the signal is connected
705 to the derived class' method.
707 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
709 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
710 only work on the string.
712 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
714 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
715 the simple image loader when it encounters colour strings like
718 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
720 * GraphicsCacheItem.C (convertToDisplayFormat):
721 * GraphicsConverter.C (build_script): remove the Alerts when things go
722 wrong as the inset displays the message anyway. Moreover, Alert seems
723 pretty temperamemtal at the moment.
725 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
727 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
729 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
731 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
732 a reference to a temp object that's going out of scope...
734 2002-04-09 Herbert Voss <voss@lyx.org>
736 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
737 LyXLength::inBP instead of inPixels.
739 2002-04-10 Herbert Voss <voss@perce.de>
741 * GraphicsCache.[Ch]:
742 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
743 to read the "Bounding Box" from non (e)ps files.
745 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
747 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
748 the EPS file too, to ensure that the clipped Bounding Box is relative
749 to the original. (From Herbert.)
751 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
753 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
754 variables are initialised. Clean-up parsing of the string (with thanks
757 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
759 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
760 if the file can't be found.
762 * GraphicsParams.h (c-tor): remove string() as default argument.
764 * GraphicsCacheItem.C: a couple of changes as a result.
766 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
768 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
769 path to graphics file.
771 * GraphicsParams.[Ch] (c-tor): now passed filepath.
773 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
775 * most files: ws cleanup
777 * Makefile.am: remove ld -r stuff
779 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
781 * Makefile.am: special rules if partial linking
783 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
785 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
787 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
789 * GraphicsConverter.[Ch] (converted): make first arg const ref.
791 * GraphicsCacheItem.h: doxy change
793 * GraphicsCacheItem.C: ws change
795 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
797 * Makefile.am: if there is no image loading class leveraging the power
798 of the appropriate gui library, then compile the basic alternative
799 found in GraphicsImageXPM.[Ch].
801 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
803 * GraphicsCache.C: change associated with move of initialiseGraphics
806 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
808 * GraphicsParams.[Ch]:
810 * GraphicsImageXPM.C: properly resolve more warnings about comparison
811 between signed and unsigned integer expressions.
813 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
815 * GraphicsCache.C: move connections to the GImage-derived classes to
818 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
820 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
821 conversion, then do that.
823 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
825 * GraphicsCache.C: improve commentary to graphicsInit and where it
828 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
829 that became a memory leak properly. (Let the shared_c_ptr free the
831 (reset, mapcolor): tidy up and introduce a work around for XPM files
832 with crappy color entries. Print out a nice friendly message on what's
833 gone wrong and how to resolve it properly.
835 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
837 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
838 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
840 (unique_color_string): use the correct string c-tor.
842 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
845 * ImageLoaderXPM.[Ch]: removed.
847 * GraphicsConverter.[Ch]:
848 * GraphicsImage.[Ch]:
849 * GraphicsImageXPM.[Ch]:
850 * GraphicsParams.[Ch]:
851 * GraphicsTypes.h: new files.
853 * All files. A total re-write of the graphics cache. The cache now
854 supports asynchronous file conversion and file loading. Images
855 can be cropped, rotated and scaled for display on the LyX screen.
856 The old LyXImage and ImageLoader have been combined in a new class
857 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
860 2002-02-07 Herbert Voss <voss@lyx.org>
862 * GraphicsCacheItem.C: use unzipFile() from support/filetools
864 2002-01-31 Herbert Voss <voss@lyx.org>
866 * GraphicsCacheItem.h: handle filetype without the file extension;
867 getting type from contents; handle zipped files
869 2002-01-27 Herbert Voss <voss@lyx.org>
871 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
873 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
875 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
877 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
879 * GraphicsCacheItem.h: do not include <config.h> in header files
881 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
883 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
884 transparent colour, then set it to the colour of the background.
885 Also take account of the monochrome, grayscale of color
888 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
890 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
891 are different. Thus, don't delete the "to" if it's the original!
893 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
895 * ImageLoadXPM.C: remove setting of alloc colour mask,
896 led to crash as we don't define a callback
898 2001-07-29 Baruch Even <baruch@lyx.org>
900 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
901 colors with closeness of 10000.
903 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
905 2001-07-29 Baruch Even <baruch@lyx.org>
907 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
910 2001-07-23 Baruch Even <baruch@lyx.org>
912 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
913 the image after conversion.
915 2001-07-17 Baruch Even <baruch@lyx.org>
917 * GraphicsCacheItem.h:
918 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
919 from synchronous to asynchronous and to ease the coming changes.
921 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
923 * ImageLoaderXPM.C (runImageLoader): get display information from
926 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
929 * GraphicsCacheItem.C:
931 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
933 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
935 * GraphicsCache.h: inherit privately from noncopyable
936 * ImageLoader.h: ditto
937 * GraphicsCacheItem.h: ditto
939 2001-04-16 Allan Rae <rae@lyx.org>
941 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
942 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
945 2001-04-02 Baruch Even <baruch@lyx.org>
947 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
948 of hard coding ImageMagick.
950 2001-03-10 Baruch Even <baruch@lyx.org>
952 * GraphicsCache.C: Style change from (*it).field to it->field
954 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
956 * GraphicsCache.h: noncopyable is in namespace boost
957 * ImageLoader.h: ditto
958 * GraphicsCacheItem.h: ditto
960 2001-03-07 Baruch Even <baruch@lyx.org>
962 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
963 was false and it's not needed anyhow since the shared_ptr's in the cache
964 will destroy everything on exit.
966 2001-02-28 Baruch Even <baruch@ev-en.org>
969 * GraphicsCache.C: Changed the singleton pattern implementation, the
970 former version "leaked" in the sense that it was not deallocated at
973 2001-02-20 Baruch Even <baruch@ev-en.org>
975 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
976 instead of a pure pointer.
978 * GraphicsCacheItem.[Ch]:
979 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
980 removed the reference counting that was inside. Also fixed a bug where
981 a temporary file wouldn't get erased.
983 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
984 Ownership is now dropped when the caller requests the image_ pointer.
986 2001-02-20 Baruch Even <baruch@ev-en.org>
988 * GraphicsCache.C: Cleared up the confusion on when and how it is
991 * GraphicsCacheItem.C: Indentation change.
993 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
994 figure correctly when the image has been loaded successfully.
996 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
998 * ImageLoader.C: add a "using" directive.
1000 * ImageLoader.h: remove extra comma at the end of enum; add an
1001 std:: qualifier for vector.
1003 2001-01-21 Baruch Even <baruch@ev-en.org>
1005 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1006 height in the image itself and minor cleanups.
1008 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1009 new ImageLoader class instead of the older Renderer class. This
1010 means change of responsibilities.