2 2003-05-12 André Pönitz <poenitz@gmx.net>
4 * PreviewLoader.C: boost::format -> bformat
6 2003-04-15 Angus Leeming <leeming@lyx.org>
8 * GraphicsConverter.C: #include lstrings.h.
10 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
13 * PreviewLoader.C: added #include "format.h"
15 2003-02-26 Angus Leeming <leeming@lyx.org>
17 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
18 use the cache of the parent inset instead.
20 * PreviewLoader.C (startLoading): Prevent a crash if the user is
21 not using a tmp directory.
23 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
25 * GraphicsLoader.[Ch],
27 * PreviewedInset.C: Removed unneeded list of owner insets
29 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
31 * GraphicsConverter (startConversion): add the call to
34 * GraphicsLoader.[Ch],
36 * PreviewedInset.C: Removed unneeded BufferView
38 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
40 * LoaderQueue.[Ch]: a simplification of the code, eliminated
41 the unneeded input bucket.
43 * GraphicsCacheItem.C (imageConverted): move warning inside the
46 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
48 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
50 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
52 * LoaderQueue.[Ch] (setPriority): added
54 * PreviewLoader.C (finishedGenerating): reversed the loading order so
55 first images get 'touched' last, and so load first.
57 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
59 * LoaderQueue.[Ch]: added. Implements a service queue that loads
61 * GraphicsSupport.[Ch]: removed
62 * Makefile.am: the changes above
63 * GraphicsLoader.C: use the loading queue
65 2003-01-21 Angus Leeming <leeming@lyx.org>
67 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
68 previews from being generated.
70 2003-01-13 Angus Leeming <leeming@lyx.org>
72 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
73 format to be PPM not XPM.
75 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
77 * Makefile.am (EXTRA_DIST): remove variable
79 2002-12-13 Angus Leeming <leeming@lyx.org>
81 * GraphicsImageXPM.[Ch]: removed.
83 * Makefile.am: associated change.
85 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
87 * several files: ws changes
89 2002-11-21 Angus Leeming <leeming@lyx.org>
91 * GraphicsConverter.C (build_script, move_file):
92 Don't use "if [ $? -ne 0 ]; then..."
94 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
96 * PreviewLoader.C (IncrementedFileName): STRCONV
99 * GraphicsConverter.C (Impl): STRCONV
102 * GraphicsTypes.C: include config.h
104 2002-10-25 Angus Leeming <leeming@lyx.org>
106 * GraphicsConverter.C (Impl::converted)
107 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
108 string as first arg, reflecting change in ForkedCall interface.
110 * PreviewLoader.C: use pid rather than command as identifier in
113 2002-10-18 Angus Leeming <leeming@lyx.org>
115 * GraphicsCacheItem.C (findTargetFormat): add debug message.
117 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
119 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
121 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
123 * GraphicsConverter.C (build_script): do not use ChangeExtension
127 2002-09-05 Angus Leeming <leeming@lyx.org>
129 * all files: modify the headers as discussed on the list.
131 2002-09-04 Angus Leeming <leeming@lyx.org>
133 * PreviewLoader.C (startLoading): pass the desired output format to the
136 2002-09-04 Angus Leeming <leeming@lyx.org>
138 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
140 2002-09-03 Angus Leeming <leeming@lyx.org>
142 * PreviewLoader.C: fix crash reported by Norbert Koksch when
143 generating more than 999 preview snippets. Use filenames with 5 digit
144 numbers, not 3, in the first instance, although more general code is
145 commented out. I don't suppose /anyone/ has 100000 formulae in one
148 2002-09-03 Angus Leeming <leeming@lyx.org>
150 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
152 2002-09-03 Angus Leeming <leeming@lyx.org>
154 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
156 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
158 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
159 convertDefault command with "sh ".
161 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
163 * GraphicsImage.C: small style fix to width/height setting.
165 * GraphicsTypes.h: have a displayTranslator here.
168 * GraphicsTypes.C: new file added for the setDisplayTranslator();
170 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
173 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
174 because this input has gone from the graphics dialog.
176 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
178 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
180 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
181 for support/smart_ptr.h, switch to boost smart ptr.
183 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
184 (~Data): let the smart_ptr handle cleanup
185 (reset): use nifty 3rd arg
187 (free_color_table): free the table manually
189 2002-08-09 Angus Leeming <leeming@lyx.org>
191 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
192 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
193 input@path is now set correctly.
195 2002-08-06 Angus Leeming <leeming@lyx.org>
197 * PreviewLoader.C: add support for preview.sty 0.73 (currently
198 #ifdef-ed out, awaiting the formal release).
200 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
201 the contents of a file that has changed.
203 2002-08-05 Angus Leeming <leeming@lyx.org>
205 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
206 to preview.sty. Works only for versions of preview.sty > 0.72b but
207 doesn't hurt earlier versions. Allows me to test the new parsing of
208 LyX-specific data from the generated log file.
210 2002-08-02 Angus Leeming <leeming@lyx.org>
212 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
214 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
215 (add): don't add empty snippets.
217 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
218 (view, setView): access to to the cache_.
220 2002-08-02 Angus Leeming <leeming@lyx.org>
222 * PreviewedInset.[Ch]: cache the LaTeX snippet.
224 2002-08-01 Angus Leeming <leeming@lyx.org>
226 * PreviewedInset.[Ch]: new files. An abstract base class that can help
227 insets to generate previews.
228 The daughter class must instantiate three small methods.
229 The Inset would own an instance of this daughter class and invoke it
230 as necessary. For example, mathd/formula.C gets previews at the cost
231 of 15 or so lines of code.
233 * Makefile.am: add PreviewedInset.[Ch].
235 * PreviewLoader.C (add): add debug message.
237 * Previews.C (generateBufferPreviews): remove if-block from loop.
239 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
241 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
243 (setAscentFractions): ditto
245 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
247 * PreviewLoader.C (setAscentFractions): modify because of strip
250 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
252 * GraphicsConverter.C (build_script): take a ostream as a more
253 general argument than ostringstream.
255 2002-07-22 Herbert Voss <voss@lyx.org>
257 * GraphicsConverter.C: get the "default converter" run again
259 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
261 * PreviewLoader.C: use BufferParams::getLyXTextClass
263 2002-07-21 Herbert Voss <voss@lyx.org>
265 * GraphicsImage.C: get the LyXAspectRatio run.
267 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
269 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
271 * PreviewLoader.C (startLoading): pass an interger as resolution
272 to the lyxpreview converter
274 * GraphicsParams.C: include <cstdlib>
276 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
278 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
279 preview converter script
281 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
283 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
286 2002-07-18 Angus Leeming <leeming@lyx.org>
288 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
290 (startMonitoring, monitoring, checksum): new methods to interact with
293 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
294 methods invoking the CacheItem methods of the same name.
295 (resetFile): if monitoring and the file changes, start monitoring this
298 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
300 * Makefile.am: remove FileMonitor.[Ch]
302 2002-06-17 Herbert Voss <voss@lyx.org>
304 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
305 for old ps-files (Garst). It's now handled by defining a converter and
306 disabling the ps-support of xforms.
308 2002-07-17 Angus Leeming <leeming@lyx.org>
310 Be true to the Pimpl idiom, moving all signals into the respective
311 Impl classes and defining methods to connect them to an outside slot.
312 Const-ify all visible class methods as they act only on a const pimpl_.
314 * GraphicsCache.[Ch] (add, remove): const-ify.
316 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
317 (statusChanged): move the signal into the Impl class.
318 (connect): new method, enabling a listener to connect to this signal.
320 * GraphicsConverter.[Ch]: (startConversion): const-ify.
321 (finishedConversion): move the signal into the Impl class.
322 (connect): new method, enabling a listener to connect to this signal.
324 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
325 (statusChanged): move the signal into the Impl class.
326 (connect): new method, enabling a listener to connect to this signal.
328 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
329 (imageReady): move the signal into the Impl class.
330 (connect): new method, enabling a listener to connect to this signal.
331 (emitSignal): new method, enabling PreviewImage to tell the outside
332 world that the file has been loaded into memory.
334 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
338 * GraphicsCacheItem.C:
339 * GraphicsConverter.[Ch]:
341 * GraphicsImageXPM.C:
343 * PreviewLoader.[Ch]: whitespace clean-up.
345 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
347 * PreviewLoader.C (setConverter): remove unused variable
349 * GraphicsImageXPM.C (isDrawable): implement
350 (setPixmap): the opaque color is black, not white
352 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
354 * GraphicsImageXPM.C (color_none_id):
355 (contains_color_none): use ascii_lowercase instead of lowercase
357 2002-07-16 Angus Leeming <leeming@lyx.org>
359 * PreviewLoader.C: greater use of STL algorithms.
361 * Previews.[Ch]: use const in more places.
362 (generateBufferPreviews): now takes a Buffer const & argument, not a
365 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
367 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
369 2002-07-12 Angus Leeming <leeming@lyx.org>
371 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
372 if visible 2 secs after the call to load them is first made.
374 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
375 BufferView to ascertain whether the inset is visible or not.
377 * Makefile.am: added GraphicsSupport.[Ch].
379 * PreviewImage.[Ch]: use this smart loader.
381 * PreviewLoader.C: don't load generated image files indiscimminantly.
382 Instead emit the imageReady signal and allow the image owner to decide.
384 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
386 * GraphicsCache.C: remove init_graphics()
388 2002-07-09 Angus Leeming <leeming@lyx.org>
390 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
391 arithmetic when it should be floating.
393 2002-07-09 Angus Leeming <leeming@lyx.org>
395 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
396 Output equation labels as "(#)" if lyxrc preference is set.
397 (setFontScalingFactor): use lyxrc variable preview_scale_factor
398 rather than hard-coding this.
400 2002-07-09 Angus Leeming <leeming@lyx.org>
402 * PreviewLoader.C: Further refactoring of the code. Should now be
405 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
406 past its sell-by date. The code to read the metrics file is now found
407 as a helper function in PreviewLoader.C.
409 * GraphicsImageXPM.C (scale): use boost::tie.
411 2002-07-08 Herbert Voss <voss@lyx.org>
413 * PreviewLoader.C: use of preview_size_factor to get the right
414 font-size! 0.9 is the default.
416 2002-07-08 Angus Leeming <leeming@lyx.org>
418 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
419 invocation of preview.sty.
420 Perform something of an internal clean-up.
422 2002-07-06 Angus Leeming <leeming@lyx.org>
424 * PreviewLoader.C: ensure that the metrics data is used by the
428 * PreviewImage.C: (Impl d-tor): remove all generated files that still
429 exist (perhaps because the process was curtailed before the images
432 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
434 2002-07-05 Angus Leeming <leeming@lyx.org>
443 * Previews.C: new files. The previewed LaTeX snippet stuff.
445 * Makefile.am: add these files.
447 2002-07-05 Angus Leeming <leeming@lyx.org>
449 * GraphicsLoader.h: whitespace.
451 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
453 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
454 boost::function from boost::signal.
456 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
458 * GraphicsConverter.C (convert): do not use ChangeExtension
459 because to_file_base may contain a dot.
461 2002-06-28 Angus Leeming <leeming@lyx.org>
463 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
464 by moving those SignalPtrs into the grfx::Image and grfx::Converter
465 classes where they really belong.
466 Use the Pimpl idiom to hide the class internals from public view.
468 * GraphicsTypes: remove the typedefs, leaving only the enums.
470 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
471 passed a reference to one in the load() method.
473 * GraphicsConverter.[Ch]: totally refactored. An instance of
474 grfx::Converter now represents a single conversion process.
475 Thus grfx::CachItem now has a grfx::Converter * that is set when the
476 conversion is initiated and destroyed on completion.
478 * GraphicsCache.[Ch]:
479 * GraphicsCacheItem.[Ch]:
480 * GraphicsConverter.[Ch]:
481 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
483 Note that I have done this only after making the above changes,
484 so not only should we have a clean, minimal and well documented
485 interface to these classes in the header files, but the class internals
486 should be much clearer too.
489 grfx::GCache -> grfx::Cache,
490 grfx::GCacheItem -> grfx::CacheItem,
491 grfx::GConverter -> grfx::Converter,
492 grfx::GImage -> grfx::Image,
493 grfx::GImageXPM -> grfx::ImageXPM,
494 grfx::GParams -> grfx::Params.
496 2002-06-26 Angus Leeming <leeming@lyx.org>
498 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
499 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
502 2002-06-26 Angus Leeming <leeming@lyx.org>
504 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
505 move the DisplayType enum out of grfx::GParams to here.
507 * GraphicsCacheItem.h: re-write preliminary description to reflect
510 * GraphicsParams.[Ch]:
511 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
512 grfx::DisplayType out of grfx::GParams.
514 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
515 that was in frontends/screen.C and insets/insetgraphics.C into a
516 single, easy-to-use class.
518 * Makefile.am: add these files.
520 2002-06-25 Angus Leeming <leeming@lyx.org>
522 * GraphicsCache.[Ch]:
523 * GraphicsCacheItem.[Ch]:
524 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
525 file into memory. The cache no longer controls the generation of the
526 pixmap. Instead, it just emits a signal when the loading status of an
528 The cache no longer stores InsetGraphics pointers and nor does it
529 assume responsibility for modifying an image (scaling, rotating etc).
530 Instead, that must now be performed elsewhere.
532 2002-06-19 Angus Leeming <leeming@lyx.org>
534 * GraphicsConverter.C: add using std::endl directive.
536 2002-06-17 Herbert Voss <voss@lyx.org>
538 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
539 default when nothing different was found
540 (convertToDisplayFormat): handle zipped files in the right way and
541 choose always convert as a default converter when no other
542 userdefined was found
544 * GraphicsConverter.C: add more lyxerr comments and choose
545 convert when no other userdefined converter was found
547 2002-06-10 Herbert Voss <voss@lyx.org>
549 * GraphicsImageXPM.C (convertTo7chars): get another special color
550 format from convert work in the right way
552 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
554 * GraphicsCache.C: use right colormap incantation
556 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
558 * GraphicsCache.C: use lyx_gui namespace
560 * GraphicsImageXPM.C: back down to using xforms
563 2002-06-07 Angus Leeming <leeming@lyx.org>
565 Fixes needed to compile with Compaq cxx 6.5.
566 * GraphicsConverter.h: forward declare class ConvProcess.
568 * GraphicsImageXPM.C:
569 all c-library variables have been moved into namespace std.
570 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
572 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
574 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
576 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
578 * GraphicsImageXPM.C: SigC to boot::signals changes.
579 (newImage): fix () bug when using new.
581 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
583 * switch from SigC signals to boost::signals.
585 2002-05-29 André Pönitz <poenitz@gmx.net>
587 * GraphicsParam.C: remove unneeded #include, move vomment
589 2002-05-28 André Pönitz <poenitz@gmx.net>
591 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
593 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
595 * GraphicsImageXPM.C: ColorHandler moved
597 2002-05-24 Juergen Vigna <jug@sad.it>
600 * GraphicsImage.h: include LString.h first.
602 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
604 * GraphicsCacheItem.h: use more specific smart_ptr header.
605 * GraphicsTypes.h: ditto
606 * GraphicsImage.h: ditto
607 * GraphicsConverter.h: ditto
609 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
611 * GraphicsImageXPM.C: understand convert's use of "opaque"
614 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
616 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
617 GImage::loadableFormats() that ensures that the signal is connected
618 to the derived class' method.
620 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
622 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
623 only work on the string.
625 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
627 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
628 the simple image loader when it encounters colour strings like
631 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
633 * GraphicsCacheItem.C (convertToDisplayFormat):
634 * GraphicsConverter.C (build_script): remove the Alerts when things go
635 wrong as the inset displays the message anyway. Moreover, Alert seems
636 pretty temperamemtal at the moment.
638 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
640 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
642 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
644 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
645 a reference to a temp object that's going out of scope...
647 2002-04-09 Herbert Voss <voss@lyx.org>
649 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
650 LyXLength::inBP instead of inPixels.
652 2002-04-10 Herbert Voss <voss@perce.de>
654 * GraphicsCache.[Ch]:
655 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
656 to read the "Bounding Box" from non (e)ps files.
658 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
660 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
661 the EPS file too, to ensure that the clipped Bounding Box is relative
662 to the original. (From Herbert.)
664 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
666 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
667 variables are initialised. Clean-up parsing of the string (with thanks
670 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
672 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
673 if the file can't be found.
675 * GraphicsParams.h (c-tor): remove string() as default argument.
677 * GraphicsCacheItem.C: a couple of changes as a result.
679 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
681 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
682 path to graphics file.
684 * GraphicsParams.[Ch] (c-tor): now passed filepath.
686 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
688 * most files: ws cleanup
690 * Makefile.am: remove ld -r stuff
692 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
694 * Makefile.am: special rules if partial linking
696 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
698 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
700 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
702 * GraphicsConverter.[Ch] (converted): make first arg const ref.
704 * GraphicsCacheItem.h: doxy change
706 * GraphicsCacheItem.C: ws change
708 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
710 * Makefile.am: if there is no image loading class leveraging the power
711 of the appropriate gui library, then compile the basic alternative
712 found in GraphicsImageXPM.[Ch].
714 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
716 * GraphicsCache.C: change associated with move of initialiseGraphics
719 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
721 * GraphicsParams.[Ch]:
723 * GraphicsImageXPM.C: properly resolve more warnings about comparison
724 between signed and unsigned integer expressions.
726 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
728 * GraphicsCache.C: move connections to the GImage-derived classes to
731 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
733 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
734 conversion, then do that.
736 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
738 * GraphicsCache.C: improve commentary to graphicsInit and where it
741 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
742 that became a memory leak properly. (Let the shared_c_ptr free the
744 (reset, mapcolor): tidy up and introduce a work around for XPM files
745 with crappy color entries. Print out a nice friendly message on what's
746 gone wrong and how to resolve it properly.
748 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
750 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
751 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
753 (unique_color_string): use the correct string c-tor.
755 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
758 * ImageLoaderXPM.[Ch]: removed.
760 * GraphicsConverter.[Ch]:
761 * GraphicsImage.[Ch]:
762 * GraphicsImageXPM.[Ch]:
763 * GraphicsParams.[Ch]:
764 * GraphicsTypes.h: new files.
766 * All files. A total re-write of the graphics cache. The cache now
767 supports asynchronous file conversion and file loading. Images
768 can be cropped, rotated and scaled for display on the LyX screen.
769 The old LyXImage and ImageLoader have been combined in a new class
770 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
773 2002-02-07 Herbert Voss <voss@lyx.org>
775 * GraphicsCacheItem.C: use unzipFile() from support/filetools
777 2002-01-31 Herbert Voss <voss@lyx.org>
779 * GraphicsCacheItem.h: handle filetype without the file extension;
780 getting type from contents; handle zipped files
782 2002-01-27 Herbert Voss <voss@lyx.org>
784 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
786 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
788 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
790 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
792 * GraphicsCacheItem.h: do not include <config.h> in header files
794 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
796 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
797 transparent colour, then set it to the colour of the background.
798 Also take account of the monochrome, grayscale of color
801 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
803 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
804 are different. Thus, don't delete the "to" if it's the original!
806 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
808 * ImageLoadXPM.C: remove setting of alloc colour mask,
809 led to crash as we don't define a callback
811 2001-07-29 Baruch Even <baruch@lyx.org>
813 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
814 colors with closeness of 10000.
816 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
818 2001-07-29 Baruch Even <baruch@lyx.org>
820 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
823 2001-07-23 Baruch Even <baruch@lyx.org>
825 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
826 the image after conversion.
828 2001-07-17 Baruch Even <baruch@lyx.org>
830 * GraphicsCacheItem.h:
831 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
832 from synchronous to asynchronous and to ease the coming changes.
834 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
836 * ImageLoaderXPM.C (runImageLoader): get display information from
839 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
842 * GraphicsCacheItem.C:
844 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
846 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
848 * GraphicsCache.h: inherit privately from noncopyable
849 * ImageLoader.h: ditto
850 * GraphicsCacheItem.h: ditto
852 2001-04-16 Allan Rae <rae@lyx.org>
854 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
855 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
858 2001-04-02 Baruch Even <baruch@lyx.org>
860 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
861 of hard coding ImageMagick.
863 2001-03-10 Baruch Even <baruch@lyx.org>
865 * GraphicsCache.C: Style change from (*it).field to it->field
867 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
869 * GraphicsCache.h: noncopyable is in namespace boost
870 * ImageLoader.h: ditto
871 * GraphicsCacheItem.h: ditto
873 2001-03-07 Baruch Even <baruch@lyx.org>
875 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
876 was false and it's not needed anyhow since the shared_ptr's in the cache
877 will destroy everything on exit.
879 2001-02-28 Baruch Even <baruch@ev-en.org>
882 * GraphicsCache.C: Changed the singleton pattern implementation, the
883 former version "leaked" in the sense that it was not deallocated at
886 2001-02-20 Baruch Even <baruch@ev-en.org>
888 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
889 instead of a pure pointer.
891 * GraphicsCacheItem.[Ch]:
892 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
893 removed the reference counting that was inside. Also fixed a bug where
894 a temporary file wouldn't get erased.
896 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
897 Ownership is now dropped when the caller requests the image_ pointer.
899 2001-02-20 Baruch Even <baruch@ev-en.org>
901 * GraphicsCache.C: Cleared up the confusion on when and how it is
904 * GraphicsCacheItem.C: Indentation change.
906 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
907 figure correctly when the image has been loaded successfully.
909 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
911 * ImageLoader.C: add a "using" directive.
913 * ImageLoader.h: remove extra comma at the end of enum; add an
914 std:: qualifier for vector.
916 2001-01-21 Baruch Even <baruch@ev-en.org>
918 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
919 height in the image itself and minor cleanups.
921 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
922 new ImageLoader class instead of the older Renderer class. This
923 means change of responsibilities.