1 2003-09-16 Angus Leeming <leeming@lyx.org>
3 * GraphicsImage.h: separate interface from implementation. Make all the
4 pure virtual functions private.
6 2003-09-16 Angus Leeming <leeming@lyx.org>
8 * PreviewLoader.C: add #include "LColor.h".
10 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
13 * PreviewLoader.C: remove usage of STRCONV
15 2003-09-14 Angus Leeming <leeming@lyx.org>
17 * PreviewLoader.C (remove): consider all InProgressProcesses when
18 ascertaining which ones to remove from the list, not every other one.
20 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
22 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
25 2003-09-08 Angus Leeming <leeming@lyx.org>
29 * PreviewLoader.C: remove redundant using directives.
31 2003-09-07 Angus Leeming <leeming@lyx.org>
34 * Previews.h: remove #include "support/std_string.h".
36 2003-09-06 Angus Leeming <leeming@lyx.org>
38 * PreviewedInset.C: add #include "insets/inset.h"
40 2003-09-05 Angus Leeming <leeming@lyx.org>
42 * *.C: strip out redundant #includes. (26 in total.)
44 2003-09-04 Angus Leeming <leeming@lyx.org>
46 * LoaderQueue.C (get):
48 2003-09-04 Angus Leeming <leeming@lyx.org>
51 * GraphicsCacheItem.C:
52 * GraphicsConverter.C:
56 * Previews.C: 'namespace support = lyx::support' rather than
59 * Previews.h: cleaned up some comments.
61 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
63 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
65 * GraphicsTypes.h: do not declare displayTranstor here (and remove
68 2003-07-27 José Matos <jamatos@fep.up.pt>
70 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
73 2003-07-21 Angus Leeming <leeming@lyx.org>
76 * GraphicsCacheItem.[Ch]:
79 * PreviewedInset.[Ch]:
80 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
82 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
84 * Change namespace grfx to lyx::graphics.
86 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
88 * introcude namespace lyx::support
90 2003-06-04 Angus Leeming <leeming@lyx.org>
92 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
93 (operator=): if it has a copy c-tor, it should have this too.
95 2003-06-03 Angus Leeming <leeming@lyx.org>
97 * GraphicsLoader.[Ch] (Loader): add copy constructor.
99 2003-05-23 Angus Leeming <leeming@lyx.org>
101 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
103 2003-05-22 Angus Leeming <leeming@lyx.org>
105 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
106 the inset::latex method.
108 2003-05-22 Angus Leeming <leeming@lyx.org>
110 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
111 the inset::latex method.
113 2003-05-22 Angus Leeming <leeming@lyx.org>
115 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
116 makeLaTeXFile is now encapsulated within runparams.
118 2003-05-22 Angus Leeming <leeming@lyx.org>
120 * PreviewLoader.C (dumpPreamble):
121 pass around a LatexRunParams parameter.
123 2003-05-13 André Pönitz <poenitz@gmx.net>
125 * GraphicsConverter.C:
126 * PreviewLoader.C: use tostr from own header
128 2003-05-12 André Pönitz <poenitz@gmx.net>
130 * PreviewLoader.C: boost::format -> bformat
132 2003-04-15 Angus Leeming <leeming@lyx.org>
134 * GraphicsConverter.C: #include lstrings.h.
136 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
138 * GraphicsConverter.C
139 * PreviewLoader.C: added #include "format.h"
141 2003-02-26 Angus Leeming <leeming@lyx.org>
143 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
144 use the cache of the parent inset instead.
146 * PreviewLoader.C (startLoading): Prevent a crash if the user is
147 not using a tmp directory.
149 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
151 * GraphicsLoader.[Ch],
153 * PreviewedInset.C: Removed unneeded list of owner insets
155 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
157 * GraphicsConverter (startConversion): add the call to
160 * GraphicsLoader.[Ch],
162 * PreviewedInset.C: Removed unneeded BufferView
164 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
166 * LoaderQueue.[Ch]: a simplification of the code, eliminated
167 the unneeded input bucket.
169 * GraphicsCacheItem.C (imageConverted): move warning inside the
172 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
174 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
176 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
178 * LoaderQueue.[Ch] (setPriority): added
180 * PreviewLoader.C (finishedGenerating): reversed the loading order so
181 first images get 'touched' last, and so load first.
183 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
185 * LoaderQueue.[Ch]: added. Implements a service queue that loads
187 * GraphicsSupport.[Ch]: removed
188 * Makefile.am: the changes above
189 * GraphicsLoader.C: use the loading queue
191 2003-01-21 Angus Leeming <leeming@lyx.org>
193 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
194 previews from being generated.
196 2003-01-13 Angus Leeming <leeming@lyx.org>
198 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
199 format to be PPM not XPM.
201 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
203 * Makefile.am (EXTRA_DIST): remove variable
205 2002-12-13 Angus Leeming <leeming@lyx.org>
207 * GraphicsImageXPM.[Ch]: removed.
209 * Makefile.am: associated change.
211 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
213 * several files: ws changes
215 2002-11-21 Angus Leeming <leeming@lyx.org>
217 * GraphicsConverter.C (build_script, move_file):
218 Don't use "if [ $? -ne 0 ]; then..."
220 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
222 * PreviewLoader.C (IncrementedFileName): STRCONV
223 (startLoading): ditto
225 * GraphicsConverter.C (Impl): STRCONV
228 * GraphicsTypes.C: include config.h
230 2002-10-25 Angus Leeming <leeming@lyx.org>
232 * GraphicsConverter.C (Impl::converted)
233 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
234 string as first arg, reflecting change in ForkedCall interface.
236 * PreviewLoader.C: use pid rather than command as identifier in
239 2002-10-18 Angus Leeming <leeming@lyx.org>
241 * GraphicsCacheItem.C (findTargetFormat): add debug message.
243 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
245 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
247 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
249 * GraphicsConverter.C (build_script): do not use ChangeExtension
253 2002-09-05 Angus Leeming <leeming@lyx.org>
255 * all files: modify the headers as discussed on the list.
257 2002-09-04 Angus Leeming <leeming@lyx.org>
259 * PreviewLoader.C (startLoading): pass the desired output format to the
262 2002-09-04 Angus Leeming <leeming@lyx.org>
264 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
266 2002-09-03 Angus Leeming <leeming@lyx.org>
268 * PreviewLoader.C: fix crash reported by Norbert Koksch when
269 generating more than 999 preview snippets. Use filenames with 5 digit
270 numbers, not 3, in the first instance, although more general code is
271 commented out. I don't suppose /anyone/ has 100000 formulae in one
274 2002-09-03 Angus Leeming <leeming@lyx.org>
276 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
278 2002-09-03 Angus Leeming <leeming@lyx.org>
280 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
282 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
284 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
285 convertDefault command with "sh ".
287 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
289 * GraphicsImage.C: small style fix to width/height setting.
291 * GraphicsTypes.h: have a displayTranslator here.
294 * GraphicsTypes.C: new file added for the setDisplayTranslator();
296 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
299 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
300 because this input has gone from the graphics dialog.
302 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
304 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
306 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
307 for support/smart_ptr.h, switch to boost smart ptr.
309 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
310 (~Data): let the smart_ptr handle cleanup
311 (reset): use nifty 3rd arg
313 (free_color_table): free the table manually
315 2002-08-09 Angus Leeming <leeming@lyx.org>
317 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
318 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
319 input@path is now set correctly.
321 2002-08-06 Angus Leeming <leeming@lyx.org>
323 * PreviewLoader.C: add support for preview.sty 0.73 (currently
324 #ifdef-ed out, awaiting the formal release).
326 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
327 the contents of a file that has changed.
329 2002-08-05 Angus Leeming <leeming@lyx.org>
331 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
332 to preview.sty. Works only for versions of preview.sty > 0.72b but
333 doesn't hurt earlier versions. Allows me to test the new parsing of
334 LyX-specific data from the generated log file.
336 2002-08-02 Angus Leeming <leeming@lyx.org>
338 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
340 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
341 (add): don't add empty snippets.
343 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
344 (view, setView): access to to the cache_.
346 2002-08-02 Angus Leeming <leeming@lyx.org>
348 * PreviewedInset.[Ch]: cache the LaTeX snippet.
350 2002-08-01 Angus Leeming <leeming@lyx.org>
352 * PreviewedInset.[Ch]: new files. An abstract base class that can help
353 insets to generate previews.
354 The daughter class must instantiate three small methods.
355 The Inset would own an instance of this daughter class and invoke it
356 as necessary. For example, mathd/formula.C gets previews at the cost
357 of 15 or so lines of code.
359 * Makefile.am: add PreviewedInset.[Ch].
361 * PreviewLoader.C (add): add debug message.
363 * Previews.C (generateBufferPreviews): remove if-block from loop.
365 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
367 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
369 (setAscentFractions): ditto
371 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
373 * PreviewLoader.C (setAscentFractions): modify because of strip
376 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
378 * GraphicsConverter.C (build_script): take a ostream as a more
379 general argument than ostringstream.
381 2002-07-22 Herbert Voss <voss@lyx.org>
383 * GraphicsConverter.C: get the "default converter" run again
385 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
387 * PreviewLoader.C: use BufferParams::getLyXTextClass
389 2002-07-21 Herbert Voss <voss@lyx.org>
391 * GraphicsImage.C: get the LyXAspectRatio run.
393 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
395 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
397 * PreviewLoader.C (startLoading): pass an interger as resolution
398 to the lyxpreview converter
400 * GraphicsParams.C: include <cstdlib>
402 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
404 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
405 preview converter script
407 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
409 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
412 2002-07-18 Angus Leeming <leeming@lyx.org>
414 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
416 (startMonitoring, monitoring, checksum): new methods to interact with
419 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
420 methods invoking the CacheItem methods of the same name.
421 (resetFile): if monitoring and the file changes, start monitoring this
424 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
426 * Makefile.am: remove FileMonitor.[Ch]
428 2002-06-17 Herbert Voss <voss@lyx.org>
430 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
431 for old ps-files (Garst). It's now handled by defining a converter and
432 disabling the ps-support of xforms.
434 2002-07-17 Angus Leeming <leeming@lyx.org>
436 Be true to the Pimpl idiom, moving all signals into the respective
437 Impl classes and defining methods to connect them to an outside slot.
438 Const-ify all visible class methods as they act only on a const pimpl_.
440 * GraphicsCache.[Ch] (add, remove): const-ify.
442 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
443 (statusChanged): move the signal into the Impl class.
444 (connect): new method, enabling a listener to connect to this signal.
446 * GraphicsConverter.[Ch]: (startConversion): const-ify.
447 (finishedConversion): move the signal into the Impl class.
448 (connect): new method, enabling a listener to connect to this signal.
450 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
451 (statusChanged): move the signal into the Impl class.
452 (connect): new method, enabling a listener to connect to this signal.
454 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
455 (imageReady): move the signal into the Impl class.
456 (connect): new method, enabling a listener to connect to this signal.
457 (emitSignal): new method, enabling PreviewImage to tell the outside
458 world that the file has been loaded into memory.
460 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
464 * GraphicsCacheItem.C:
465 * GraphicsConverter.[Ch]:
467 * GraphicsImageXPM.C:
469 * PreviewLoader.[Ch]: whitespace clean-up.
471 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
473 * PreviewLoader.C (setConverter): remove unused variable
475 * GraphicsImageXPM.C (isDrawable): implement
476 (setPixmap): the opaque color is black, not white
478 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
480 * GraphicsImageXPM.C (color_none_id):
481 (contains_color_none): use ascii_lowercase instead of lowercase
483 2002-07-16 Angus Leeming <leeming@lyx.org>
485 * PreviewLoader.C: greater use of STL algorithms.
487 * Previews.[Ch]: use const in more places.
488 (generateBufferPreviews): now takes a Buffer const & argument, not a
491 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
493 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
495 2002-07-12 Angus Leeming <leeming@lyx.org>
497 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
498 if visible 2 secs after the call to load them is first made.
500 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
501 BufferView to ascertain whether the inset is visible or not.
503 * Makefile.am: added GraphicsSupport.[Ch].
505 * PreviewImage.[Ch]: use this smart loader.
507 * PreviewLoader.C: don't load generated image files indiscimminantly.
508 Instead emit the imageReady signal and allow the image owner to decide.
510 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
512 * GraphicsCache.C: remove init_graphics()
514 2002-07-09 Angus Leeming <leeming@lyx.org>
516 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
517 arithmetic when it should be floating.
519 2002-07-09 Angus Leeming <leeming@lyx.org>
521 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
522 Output equation labels as "(#)" if lyxrc preference is set.
523 (setFontScalingFactor): use lyxrc variable preview_scale_factor
524 rather than hard-coding this.
526 2002-07-09 Angus Leeming <leeming@lyx.org>
528 * PreviewLoader.C: Further refactoring of the code. Should now be
531 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
532 past its sell-by date. The code to read the metrics file is now found
533 as a helper function in PreviewLoader.C.
535 * GraphicsImageXPM.C (scale): use boost::tie.
537 2002-07-08 Herbert Voss <voss@lyx.org>
539 * PreviewLoader.C: use of preview_size_factor to get the right
540 font-size! 0.9 is the default.
542 2002-07-08 Angus Leeming <leeming@lyx.org>
544 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
545 invocation of preview.sty.
546 Perform something of an internal clean-up.
548 2002-07-06 Angus Leeming <leeming@lyx.org>
550 * PreviewLoader.C: ensure that the metrics data is used by the
554 * PreviewImage.C: (Impl d-tor): remove all generated files that still
555 exist (perhaps because the process was curtailed before the images
558 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
560 2002-07-05 Angus Leeming <leeming@lyx.org>
569 * Previews.C: new files. The previewed LaTeX snippet stuff.
571 * Makefile.am: add these files.
573 2002-07-05 Angus Leeming <leeming@lyx.org>
575 * GraphicsLoader.h: whitespace.
577 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
579 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
580 boost::function from boost::signal.
582 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
584 * GraphicsConverter.C (convert): do not use ChangeExtension
585 because to_file_base may contain a dot.
587 2002-06-28 Angus Leeming <leeming@lyx.org>
589 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
590 by moving those SignalPtrs into the grfx::Image and grfx::Converter
591 classes where they really belong.
592 Use the Pimpl idiom to hide the class internals from public view.
594 * GraphicsTypes: remove the typedefs, leaving only the enums.
596 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
597 passed a reference to one in the load() method.
599 * GraphicsConverter.[Ch]: totally refactored. An instance of
600 grfx::Converter now represents a single conversion process.
601 Thus grfx::CachItem now has a grfx::Converter * that is set when the
602 conversion is initiated and destroyed on completion.
604 * GraphicsCache.[Ch]:
605 * GraphicsCacheItem.[Ch]:
606 * GraphicsConverter.[Ch]:
607 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
609 Note that I have done this only after making the above changes,
610 so not only should we have a clean, minimal and well documented
611 interface to these classes in the header files, but the class internals
612 should be much clearer too.
615 grfx::GCache -> grfx::Cache,
616 grfx::GCacheItem -> grfx::CacheItem,
617 grfx::GConverter -> grfx::Converter,
618 grfx::GImage -> grfx::Image,
619 grfx::GImageXPM -> grfx::ImageXPM,
620 grfx::GParams -> grfx::Params.
622 2002-06-26 Angus Leeming <leeming@lyx.org>
624 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
625 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
628 2002-06-26 Angus Leeming <leeming@lyx.org>
630 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
631 move the DisplayType enum out of grfx::GParams to here.
633 * GraphicsCacheItem.h: re-write preliminary description to reflect
636 * GraphicsParams.[Ch]:
637 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
638 grfx::DisplayType out of grfx::GParams.
640 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
641 that was in frontends/screen.C and insets/insetgraphics.C into a
642 single, easy-to-use class.
644 * Makefile.am: add these files.
646 2002-06-25 Angus Leeming <leeming@lyx.org>
648 * GraphicsCache.[Ch]:
649 * GraphicsCacheItem.[Ch]:
650 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
651 file into memory. The cache no longer controls the generation of the
652 pixmap. Instead, it just emits a signal when the loading status of an
654 The cache no longer stores InsetGraphics pointers and nor does it
655 assume responsibility for modifying an image (scaling, rotating etc).
656 Instead, that must now be performed elsewhere.
658 2002-06-19 Angus Leeming <leeming@lyx.org>
660 * GraphicsConverter.C: add using std::endl directive.
662 2002-06-17 Herbert Voss <voss@lyx.org>
664 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
665 default when nothing different was found
666 (convertToDisplayFormat): handle zipped files in the right way and
667 choose always convert as a default converter when no other
668 userdefined was found
670 * GraphicsConverter.C: add more lyxerr comments and choose
671 convert when no other userdefined converter was found
673 2002-06-10 Herbert Voss <voss@lyx.org>
675 * GraphicsImageXPM.C (convertTo7chars): get another special color
676 format from convert work in the right way
678 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
680 * GraphicsCache.C: use right colormap incantation
682 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
684 * GraphicsCache.C: use lyx_gui namespace
686 * GraphicsImageXPM.C: back down to using xforms
689 2002-06-07 Angus Leeming <leeming@lyx.org>
691 Fixes needed to compile with Compaq cxx 6.5.
692 * GraphicsConverter.h: forward declare class ConvProcess.
694 * GraphicsImageXPM.C:
695 all c-library variables have been moved into namespace std.
696 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
698 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
700 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
702 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
704 * GraphicsImageXPM.C: SigC to boot::signals changes.
705 (newImage): fix () bug when using new.
707 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
709 * switch from SigC signals to boost::signals.
711 2002-05-29 André Pönitz <poenitz@gmx.net>
713 * GraphicsParam.C: remove unneeded #include, move vomment
715 2002-05-28 André Pönitz <poenitz@gmx.net>
717 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
719 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
721 * GraphicsImageXPM.C: ColorHandler moved
723 2002-05-24 Juergen Vigna <jug@sad.it>
726 * GraphicsImage.h: include LString.h first.
728 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
730 * GraphicsCacheItem.h: use more specific smart_ptr header.
731 * GraphicsTypes.h: ditto
732 * GraphicsImage.h: ditto
733 * GraphicsConverter.h: ditto
735 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
737 * GraphicsImageXPM.C: understand convert's use of "opaque"
740 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
742 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
743 GImage::loadableFormats() that ensures that the signal is connected
744 to the derived class' method.
746 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
748 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
749 only work on the string.
751 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
753 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
754 the simple image loader when it encounters colour strings like
757 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
759 * GraphicsCacheItem.C (convertToDisplayFormat):
760 * GraphicsConverter.C (build_script): remove the Alerts when things go
761 wrong as the inset displays the message anyway. Moreover, Alert seems
762 pretty temperamemtal at the moment.
764 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
766 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
768 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
770 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
771 a reference to a temp object that's going out of scope...
773 2002-04-09 Herbert Voss <voss@lyx.org>
775 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
776 LyXLength::inBP instead of inPixels.
778 2002-04-10 Herbert Voss <voss@perce.de>
780 * GraphicsCache.[Ch]:
781 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
782 to read the "Bounding Box" from non (e)ps files.
784 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
786 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
787 the EPS file too, to ensure that the clipped Bounding Box is relative
788 to the original. (From Herbert.)
790 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
792 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
793 variables are initialised. Clean-up parsing of the string (with thanks
796 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
798 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
799 if the file can't be found.
801 * GraphicsParams.h (c-tor): remove string() as default argument.
803 * GraphicsCacheItem.C: a couple of changes as a result.
805 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
807 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
808 path to graphics file.
810 * GraphicsParams.[Ch] (c-tor): now passed filepath.
812 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
814 * most files: ws cleanup
816 * Makefile.am: remove ld -r stuff
818 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
820 * Makefile.am: special rules if partial linking
822 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
824 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
826 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
828 * GraphicsConverter.[Ch] (converted): make first arg const ref.
830 * GraphicsCacheItem.h: doxy change
832 * GraphicsCacheItem.C: ws change
834 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
836 * Makefile.am: if there is no image loading class leveraging the power
837 of the appropriate gui library, then compile the basic alternative
838 found in GraphicsImageXPM.[Ch].
840 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
842 * GraphicsCache.C: change associated with move of initialiseGraphics
845 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
847 * GraphicsParams.[Ch]:
849 * GraphicsImageXPM.C: properly resolve more warnings about comparison
850 between signed and unsigned integer expressions.
852 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
854 * GraphicsCache.C: move connections to the GImage-derived classes to
857 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
859 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
860 conversion, then do that.
862 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
864 * GraphicsCache.C: improve commentary to graphicsInit and where it
867 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
868 that became a memory leak properly. (Let the shared_c_ptr free the
870 (reset, mapcolor): tidy up and introduce a work around for XPM files
871 with crappy color entries. Print out a nice friendly message on what's
872 gone wrong and how to resolve it properly.
874 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
876 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
877 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
879 (unique_color_string): use the correct string c-tor.
881 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
884 * ImageLoaderXPM.[Ch]: removed.
886 * GraphicsConverter.[Ch]:
887 * GraphicsImage.[Ch]:
888 * GraphicsImageXPM.[Ch]:
889 * GraphicsParams.[Ch]:
890 * GraphicsTypes.h: new files.
892 * All files. A total re-write of the graphics cache. The cache now
893 supports asynchronous file conversion and file loading. Images
894 can be cropped, rotated and scaled for display on the LyX screen.
895 The old LyXImage and ImageLoader have been combined in a new class
896 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
899 2002-02-07 Herbert Voss <voss@lyx.org>
901 * GraphicsCacheItem.C: use unzipFile() from support/filetools
903 2002-01-31 Herbert Voss <voss@lyx.org>
905 * GraphicsCacheItem.h: handle filetype without the file extension;
906 getting type from contents; handle zipped files
908 2002-01-27 Herbert Voss <voss@lyx.org>
910 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
912 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
914 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
916 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
918 * GraphicsCacheItem.h: do not include <config.h> in header files
920 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
922 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
923 transparent colour, then set it to the colour of the background.
924 Also take account of the monochrome, grayscale of color
927 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
929 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
930 are different. Thus, don't delete the "to" if it's the original!
932 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
934 * ImageLoadXPM.C: remove setting of alloc colour mask,
935 led to crash as we don't define a callback
937 2001-07-29 Baruch Even <baruch@lyx.org>
939 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
940 colors with closeness of 10000.
942 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
944 2001-07-29 Baruch Even <baruch@lyx.org>
946 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
949 2001-07-23 Baruch Even <baruch@lyx.org>
951 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
952 the image after conversion.
954 2001-07-17 Baruch Even <baruch@lyx.org>
956 * GraphicsCacheItem.h:
957 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
958 from synchronous to asynchronous and to ease the coming changes.
960 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
962 * ImageLoaderXPM.C (runImageLoader): get display information from
965 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
968 * GraphicsCacheItem.C:
970 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
972 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
974 * GraphicsCache.h: inherit privately from noncopyable
975 * ImageLoader.h: ditto
976 * GraphicsCacheItem.h: ditto
978 2001-04-16 Allan Rae <rae@lyx.org>
980 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
981 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
984 2001-04-02 Baruch Even <baruch@lyx.org>
986 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
987 of hard coding ImageMagick.
989 2001-03-10 Baruch Even <baruch@lyx.org>
991 * GraphicsCache.C: Style change from (*it).field to it->field
993 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
995 * GraphicsCache.h: noncopyable is in namespace boost
996 * ImageLoader.h: ditto
997 * GraphicsCacheItem.h: ditto
999 2001-03-07 Baruch Even <baruch@lyx.org>
1001 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1002 was false and it's not needed anyhow since the shared_ptr's in the cache
1003 will destroy everything on exit.
1005 2001-02-28 Baruch Even <baruch@ev-en.org>
1008 * GraphicsCache.C: Changed the singleton pattern implementation, the
1009 former version "leaked" in the sense that it was not deallocated at
1012 2001-02-20 Baruch Even <baruch@ev-en.org>
1014 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1015 instead of a pure pointer.
1017 * GraphicsCacheItem.[Ch]:
1018 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1019 removed the reference counting that was inside. Also fixed a bug where
1020 a temporary file wouldn't get erased.
1022 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1023 Ownership is now dropped when the caller requests the image_ pointer.
1025 2001-02-20 Baruch Even <baruch@ev-en.org>
1027 * GraphicsCache.C: Cleared up the confusion on when and how it is
1030 * GraphicsCacheItem.C: Indentation change.
1032 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1033 figure correctly when the image has been loaded successfully.
1035 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1037 * ImageLoader.C: add a "using" directive.
1039 * ImageLoader.h: remove extra comma at the end of enum; add an
1040 std:: qualifier for vector.
1042 2001-01-21 Baruch Even <baruch@ev-en.org>
1044 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1045 height in the image itself and minor cleanups.
1047 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1048 new ImageLoader class instead of the older Renderer class. This
1049 means change of responsibilities.