1 2003-09-18 Angus Leeming <leeming@lyx.org>
3 * PreviewedInset.C (latexString): add a Buffer const & arg.
4 * PreviewedInset.C (addPreview): pass the buffer to latexString.
6 2003-09-16 Angus Leeming <leeming@lyx.org>
8 * PreviewedInset.[Ch] (c-tor) move out of line.
10 (inset): return a const reference rather than a non-const pointer.
12 2003-09-16 Angus Leeming <leeming@lyx.org>
14 * GraphicsImage.h: separate interface from implementation. Make all the
15 pure virtual functions private.
17 2003-09-16 Angus Leeming <leeming@lyx.org>
19 * PreviewLoader.C: add #include "LColor.h".
21 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
24 * PreviewLoader.C: remove usage of STRCONV
26 2003-09-14 Angus Leeming <leeming@lyx.org>
28 * PreviewLoader.C (remove): consider all InProgressProcesses when
29 ascertaining which ones to remove from the list, not every other one.
31 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
33 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
36 2003-09-08 Angus Leeming <leeming@lyx.org>
40 * PreviewLoader.C: remove redundant using directives.
42 2003-09-07 Angus Leeming <leeming@lyx.org>
45 * Previews.h: remove #include "support/std_string.h".
47 2003-09-06 Angus Leeming <leeming@lyx.org>
49 * PreviewedInset.C: add #include "insets/inset.h"
51 2003-09-05 Angus Leeming <leeming@lyx.org>
53 * *.C: strip out redundant #includes. (26 in total.)
55 2003-09-04 Angus Leeming <leeming@lyx.org>
57 * LoaderQueue.C (get):
59 2003-09-04 Angus Leeming <leeming@lyx.org>
62 * GraphicsCacheItem.C:
63 * GraphicsConverter.C:
67 * Previews.C: 'namespace support = lyx::support' rather than
70 * Previews.h: cleaned up some comments.
72 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
74 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
76 * GraphicsTypes.h: do not declare displayTranstor here (and remove
79 2003-07-27 José Matos <jamatos@fep.up.pt>
81 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
84 2003-07-21 Angus Leeming <leeming@lyx.org>
87 * GraphicsCacheItem.[Ch]:
90 * PreviewedInset.[Ch]:
91 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
93 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
95 * Change namespace grfx to lyx::graphics.
97 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
99 * introcude namespace lyx::support
101 2003-06-04 Angus Leeming <leeming@lyx.org>
103 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
104 (operator=): if it has a copy c-tor, it should have this too.
106 2003-06-03 Angus Leeming <leeming@lyx.org>
108 * GraphicsLoader.[Ch] (Loader): add copy constructor.
110 2003-05-23 Angus Leeming <leeming@lyx.org>
112 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
114 2003-05-22 Angus Leeming <leeming@lyx.org>
116 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
117 the inset::latex method.
119 2003-05-22 Angus Leeming <leeming@lyx.org>
121 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
122 the inset::latex method.
124 2003-05-22 Angus Leeming <leeming@lyx.org>
126 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
127 makeLaTeXFile is now encapsulated within runparams.
129 2003-05-22 Angus Leeming <leeming@lyx.org>
131 * PreviewLoader.C (dumpPreamble):
132 pass around a LatexRunParams parameter.
134 2003-05-13 André Pönitz <poenitz@gmx.net>
136 * GraphicsConverter.C:
137 * PreviewLoader.C: use tostr from own header
139 2003-05-12 André Pönitz <poenitz@gmx.net>
141 * PreviewLoader.C: boost::format -> bformat
143 2003-04-15 Angus Leeming <leeming@lyx.org>
145 * GraphicsConverter.C: #include lstrings.h.
147 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
149 * GraphicsConverter.C
150 * PreviewLoader.C: added #include "format.h"
152 2003-02-26 Angus Leeming <leeming@lyx.org>
154 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
155 use the cache of the parent inset instead.
157 * PreviewLoader.C (startLoading): Prevent a crash if the user is
158 not using a tmp directory.
160 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
162 * GraphicsLoader.[Ch],
164 * PreviewedInset.C: Removed unneeded list of owner insets
166 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
168 * GraphicsConverter (startConversion): add the call to
171 * GraphicsLoader.[Ch],
173 * PreviewedInset.C: Removed unneeded BufferView
175 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
177 * LoaderQueue.[Ch]: a simplification of the code, eliminated
178 the unneeded input bucket.
180 * GraphicsCacheItem.C (imageConverted): move warning inside the
183 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
185 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
187 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
189 * LoaderQueue.[Ch] (setPriority): added
191 * PreviewLoader.C (finishedGenerating): reversed the loading order so
192 first images get 'touched' last, and so load first.
194 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
196 * LoaderQueue.[Ch]: added. Implements a service queue that loads
198 * GraphicsSupport.[Ch]: removed
199 * Makefile.am: the changes above
200 * GraphicsLoader.C: use the loading queue
202 2003-01-21 Angus Leeming <leeming@lyx.org>
204 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
205 previews from being generated.
207 2003-01-13 Angus Leeming <leeming@lyx.org>
209 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
210 format to be PPM not XPM.
212 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
214 * Makefile.am (EXTRA_DIST): remove variable
216 2002-12-13 Angus Leeming <leeming@lyx.org>
218 * GraphicsImageXPM.[Ch]: removed.
220 * Makefile.am: associated change.
222 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
224 * several files: ws changes
226 2002-11-21 Angus Leeming <leeming@lyx.org>
228 * GraphicsConverter.C (build_script, move_file):
229 Don't use "if [ $? -ne 0 ]; then..."
231 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
233 * PreviewLoader.C (IncrementedFileName): STRCONV
234 (startLoading): ditto
236 * GraphicsConverter.C (Impl): STRCONV
239 * GraphicsTypes.C: include config.h
241 2002-10-25 Angus Leeming <leeming@lyx.org>
243 * GraphicsConverter.C (Impl::converted)
244 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
245 string as first arg, reflecting change in ForkedCall interface.
247 * PreviewLoader.C: use pid rather than command as identifier in
250 2002-10-18 Angus Leeming <leeming@lyx.org>
252 * GraphicsCacheItem.C (findTargetFormat): add debug message.
254 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
256 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
258 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
260 * GraphicsConverter.C (build_script): do not use ChangeExtension
264 2002-09-05 Angus Leeming <leeming@lyx.org>
266 * all files: modify the headers as discussed on the list.
268 2002-09-04 Angus Leeming <leeming@lyx.org>
270 * PreviewLoader.C (startLoading): pass the desired output format to the
273 2002-09-04 Angus Leeming <leeming@lyx.org>
275 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
277 2002-09-03 Angus Leeming <leeming@lyx.org>
279 * PreviewLoader.C: fix crash reported by Norbert Koksch when
280 generating more than 999 preview snippets. Use filenames with 5 digit
281 numbers, not 3, in the first instance, although more general code is
282 commented out. I don't suppose /anyone/ has 100000 formulae in one
285 2002-09-03 Angus Leeming <leeming@lyx.org>
287 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
289 2002-09-03 Angus Leeming <leeming@lyx.org>
291 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
293 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
295 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
296 convertDefault command with "sh ".
298 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
300 * GraphicsImage.C: small style fix to width/height setting.
302 * GraphicsTypes.h: have a displayTranslator here.
305 * GraphicsTypes.C: new file added for the setDisplayTranslator();
307 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
310 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
311 because this input has gone from the graphics dialog.
313 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
315 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
317 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
318 for support/smart_ptr.h, switch to boost smart ptr.
320 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
321 (~Data): let the smart_ptr handle cleanup
322 (reset): use nifty 3rd arg
324 (free_color_table): free the table manually
326 2002-08-09 Angus Leeming <leeming@lyx.org>
328 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
329 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
330 input@path is now set correctly.
332 2002-08-06 Angus Leeming <leeming@lyx.org>
334 * PreviewLoader.C: add support for preview.sty 0.73 (currently
335 #ifdef-ed out, awaiting the formal release).
337 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
338 the contents of a file that has changed.
340 2002-08-05 Angus Leeming <leeming@lyx.org>
342 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
343 to preview.sty. Works only for versions of preview.sty > 0.72b but
344 doesn't hurt earlier versions. Allows me to test the new parsing of
345 LyX-specific data from the generated log file.
347 2002-08-02 Angus Leeming <leeming@lyx.org>
349 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
351 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
352 (add): don't add empty snippets.
354 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
355 (view, setView): access to to the cache_.
357 2002-08-02 Angus Leeming <leeming@lyx.org>
359 * PreviewedInset.[Ch]: cache the LaTeX snippet.
361 2002-08-01 Angus Leeming <leeming@lyx.org>
363 * PreviewedInset.[Ch]: new files. An abstract base class that can help
364 insets to generate previews.
365 The daughter class must instantiate three small methods.
366 The Inset would own an instance of this daughter class and invoke it
367 as necessary. For example, mathd/formula.C gets previews at the cost
368 of 15 or so lines of code.
370 * Makefile.am: add PreviewedInset.[Ch].
372 * PreviewLoader.C (add): add debug message.
374 * Previews.C (generateBufferPreviews): remove if-block from loop.
376 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
378 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
380 (setAscentFractions): ditto
382 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
384 * PreviewLoader.C (setAscentFractions): modify because of strip
387 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
389 * GraphicsConverter.C (build_script): take a ostream as a more
390 general argument than ostringstream.
392 2002-07-22 Herbert Voss <voss@lyx.org>
394 * GraphicsConverter.C: get the "default converter" run again
396 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
398 * PreviewLoader.C: use BufferParams::getLyXTextClass
400 2002-07-21 Herbert Voss <voss@lyx.org>
402 * GraphicsImage.C: get the LyXAspectRatio run.
404 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
406 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
408 * PreviewLoader.C (startLoading): pass an interger as resolution
409 to the lyxpreview converter
411 * GraphicsParams.C: include <cstdlib>
413 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
415 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
416 preview converter script
418 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
420 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
423 2002-07-18 Angus Leeming <leeming@lyx.org>
425 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
427 (startMonitoring, monitoring, checksum): new methods to interact with
430 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
431 methods invoking the CacheItem methods of the same name.
432 (resetFile): if monitoring and the file changes, start monitoring this
435 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
437 * Makefile.am: remove FileMonitor.[Ch]
439 2002-06-17 Herbert Voss <voss@lyx.org>
441 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
442 for old ps-files (Garst). It's now handled by defining a converter and
443 disabling the ps-support of xforms.
445 2002-07-17 Angus Leeming <leeming@lyx.org>
447 Be true to the Pimpl idiom, moving all signals into the respective
448 Impl classes and defining methods to connect them to an outside slot.
449 Const-ify all visible class methods as they act only on a const pimpl_.
451 * GraphicsCache.[Ch] (add, remove): const-ify.
453 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
454 (statusChanged): move the signal into the Impl class.
455 (connect): new method, enabling a listener to connect to this signal.
457 * GraphicsConverter.[Ch]: (startConversion): const-ify.
458 (finishedConversion): move the signal into the Impl class.
459 (connect): new method, enabling a listener to connect to this signal.
461 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
462 (statusChanged): move the signal into the Impl class.
463 (connect): new method, enabling a listener to connect to this signal.
465 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
466 (imageReady): move the signal into the Impl class.
467 (connect): new method, enabling a listener to connect to this signal.
468 (emitSignal): new method, enabling PreviewImage to tell the outside
469 world that the file has been loaded into memory.
471 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
475 * GraphicsCacheItem.C:
476 * GraphicsConverter.[Ch]:
478 * GraphicsImageXPM.C:
480 * PreviewLoader.[Ch]: whitespace clean-up.
482 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
484 * PreviewLoader.C (setConverter): remove unused variable
486 * GraphicsImageXPM.C (isDrawable): implement
487 (setPixmap): the opaque color is black, not white
489 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
491 * GraphicsImageXPM.C (color_none_id):
492 (contains_color_none): use ascii_lowercase instead of lowercase
494 2002-07-16 Angus Leeming <leeming@lyx.org>
496 * PreviewLoader.C: greater use of STL algorithms.
498 * Previews.[Ch]: use const in more places.
499 (generateBufferPreviews): now takes a Buffer const & argument, not a
502 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
504 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
506 2002-07-12 Angus Leeming <leeming@lyx.org>
508 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
509 if visible 2 secs after the call to load them is first made.
511 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
512 BufferView to ascertain whether the inset is visible or not.
514 * Makefile.am: added GraphicsSupport.[Ch].
516 * PreviewImage.[Ch]: use this smart loader.
518 * PreviewLoader.C: don't load generated image files indiscimminantly.
519 Instead emit the imageReady signal and allow the image owner to decide.
521 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
523 * GraphicsCache.C: remove init_graphics()
525 2002-07-09 Angus Leeming <leeming@lyx.org>
527 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
528 arithmetic when it should be floating.
530 2002-07-09 Angus Leeming <leeming@lyx.org>
532 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
533 Output equation labels as "(#)" if lyxrc preference is set.
534 (setFontScalingFactor): use lyxrc variable preview_scale_factor
535 rather than hard-coding this.
537 2002-07-09 Angus Leeming <leeming@lyx.org>
539 * PreviewLoader.C: Further refactoring of the code. Should now be
542 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
543 past its sell-by date. The code to read the metrics file is now found
544 as a helper function in PreviewLoader.C.
546 * GraphicsImageXPM.C (scale): use boost::tie.
548 2002-07-08 Herbert Voss <voss@lyx.org>
550 * PreviewLoader.C: use of preview_size_factor to get the right
551 font-size! 0.9 is the default.
553 2002-07-08 Angus Leeming <leeming@lyx.org>
555 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
556 invocation of preview.sty.
557 Perform something of an internal clean-up.
559 2002-07-06 Angus Leeming <leeming@lyx.org>
561 * PreviewLoader.C: ensure that the metrics data is used by the
565 * PreviewImage.C: (Impl d-tor): remove all generated files that still
566 exist (perhaps because the process was curtailed before the images
569 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
571 2002-07-05 Angus Leeming <leeming@lyx.org>
580 * Previews.C: new files. The previewed LaTeX snippet stuff.
582 * Makefile.am: add these files.
584 2002-07-05 Angus Leeming <leeming@lyx.org>
586 * GraphicsLoader.h: whitespace.
588 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
590 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
591 boost::function from boost::signal.
593 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
595 * GraphicsConverter.C (convert): do not use ChangeExtension
596 because to_file_base may contain a dot.
598 2002-06-28 Angus Leeming <leeming@lyx.org>
600 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
601 by moving those SignalPtrs into the grfx::Image and grfx::Converter
602 classes where they really belong.
603 Use the Pimpl idiom to hide the class internals from public view.
605 * GraphicsTypes: remove the typedefs, leaving only the enums.
607 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
608 passed a reference to one in the load() method.
610 * GraphicsConverter.[Ch]: totally refactored. An instance of
611 grfx::Converter now represents a single conversion process.
612 Thus grfx::CachItem now has a grfx::Converter * that is set when the
613 conversion is initiated and destroyed on completion.
615 * GraphicsCache.[Ch]:
616 * GraphicsCacheItem.[Ch]:
617 * GraphicsConverter.[Ch]:
618 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
620 Note that I have done this only after making the above changes,
621 so not only should we have a clean, minimal and well documented
622 interface to these classes in the header files, but the class internals
623 should be much clearer too.
626 grfx::GCache -> grfx::Cache,
627 grfx::GCacheItem -> grfx::CacheItem,
628 grfx::GConverter -> grfx::Converter,
629 grfx::GImage -> grfx::Image,
630 grfx::GImageXPM -> grfx::ImageXPM,
631 grfx::GParams -> grfx::Params.
633 2002-06-26 Angus Leeming <leeming@lyx.org>
635 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
636 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
639 2002-06-26 Angus Leeming <leeming@lyx.org>
641 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
642 move the DisplayType enum out of grfx::GParams to here.
644 * GraphicsCacheItem.h: re-write preliminary description to reflect
647 * GraphicsParams.[Ch]:
648 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
649 grfx::DisplayType out of grfx::GParams.
651 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
652 that was in frontends/screen.C and insets/insetgraphics.C into a
653 single, easy-to-use class.
655 * Makefile.am: add these files.
657 2002-06-25 Angus Leeming <leeming@lyx.org>
659 * GraphicsCache.[Ch]:
660 * GraphicsCacheItem.[Ch]:
661 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
662 file into memory. The cache no longer controls the generation of the
663 pixmap. Instead, it just emits a signal when the loading status of an
665 The cache no longer stores InsetGraphics pointers and nor does it
666 assume responsibility for modifying an image (scaling, rotating etc).
667 Instead, that must now be performed elsewhere.
669 2002-06-19 Angus Leeming <leeming@lyx.org>
671 * GraphicsConverter.C: add using std::endl directive.
673 2002-06-17 Herbert Voss <voss@lyx.org>
675 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
676 default when nothing different was found
677 (convertToDisplayFormat): handle zipped files in the right way and
678 choose always convert as a default converter when no other
679 userdefined was found
681 * GraphicsConverter.C: add more lyxerr comments and choose
682 convert when no other userdefined converter was found
684 2002-06-10 Herbert Voss <voss@lyx.org>
686 * GraphicsImageXPM.C (convertTo7chars): get another special color
687 format from convert work in the right way
689 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
691 * GraphicsCache.C: use right colormap incantation
693 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
695 * GraphicsCache.C: use lyx_gui namespace
697 * GraphicsImageXPM.C: back down to using xforms
700 2002-06-07 Angus Leeming <leeming@lyx.org>
702 Fixes needed to compile with Compaq cxx 6.5.
703 * GraphicsConverter.h: forward declare class ConvProcess.
705 * GraphicsImageXPM.C:
706 all c-library variables have been moved into namespace std.
707 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
709 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
711 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
713 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
715 * GraphicsImageXPM.C: SigC to boot::signals changes.
716 (newImage): fix () bug when using new.
718 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
720 * switch from SigC signals to boost::signals.
722 2002-05-29 André Pönitz <poenitz@gmx.net>
724 * GraphicsParam.C: remove unneeded #include, move vomment
726 2002-05-28 André Pönitz <poenitz@gmx.net>
728 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
730 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
732 * GraphicsImageXPM.C: ColorHandler moved
734 2002-05-24 Juergen Vigna <jug@sad.it>
737 * GraphicsImage.h: include LString.h first.
739 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
741 * GraphicsCacheItem.h: use more specific smart_ptr header.
742 * GraphicsTypes.h: ditto
743 * GraphicsImage.h: ditto
744 * GraphicsConverter.h: ditto
746 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
748 * GraphicsImageXPM.C: understand convert's use of "opaque"
751 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
753 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
754 GImage::loadableFormats() that ensures that the signal is connected
755 to the derived class' method.
757 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
759 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
760 only work on the string.
762 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
764 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
765 the simple image loader when it encounters colour strings like
768 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
770 * GraphicsCacheItem.C (convertToDisplayFormat):
771 * GraphicsConverter.C (build_script): remove the Alerts when things go
772 wrong as the inset displays the message anyway. Moreover, Alert seems
773 pretty temperamemtal at the moment.
775 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
777 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
779 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
781 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
782 a reference to a temp object that's going out of scope...
784 2002-04-09 Herbert Voss <voss@lyx.org>
786 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
787 LyXLength::inBP instead of inPixels.
789 2002-04-10 Herbert Voss <voss@perce.de>
791 * GraphicsCache.[Ch]:
792 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
793 to read the "Bounding Box" from non (e)ps files.
795 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
797 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
798 the EPS file too, to ensure that the clipped Bounding Box is relative
799 to the original. (From Herbert.)
801 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
803 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
804 variables are initialised. Clean-up parsing of the string (with thanks
807 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
809 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
810 if the file can't be found.
812 * GraphicsParams.h (c-tor): remove string() as default argument.
814 * GraphicsCacheItem.C: a couple of changes as a result.
816 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
818 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
819 path to graphics file.
821 * GraphicsParams.[Ch] (c-tor): now passed filepath.
823 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
825 * most files: ws cleanup
827 * Makefile.am: remove ld -r stuff
829 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
831 * Makefile.am: special rules if partial linking
833 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
835 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
837 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
839 * GraphicsConverter.[Ch] (converted): make first arg const ref.
841 * GraphicsCacheItem.h: doxy change
843 * GraphicsCacheItem.C: ws change
845 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
847 * Makefile.am: if there is no image loading class leveraging the power
848 of the appropriate gui library, then compile the basic alternative
849 found in GraphicsImageXPM.[Ch].
851 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
853 * GraphicsCache.C: change associated with move of initialiseGraphics
856 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
858 * GraphicsParams.[Ch]:
860 * GraphicsImageXPM.C: properly resolve more warnings about comparison
861 between signed and unsigned integer expressions.
863 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
865 * GraphicsCache.C: move connections to the GImage-derived classes to
868 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
870 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
871 conversion, then do that.
873 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
875 * GraphicsCache.C: improve commentary to graphicsInit and where it
878 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
879 that became a memory leak properly. (Let the shared_c_ptr free the
881 (reset, mapcolor): tidy up and introduce a work around for XPM files
882 with crappy color entries. Print out a nice friendly message on what's
883 gone wrong and how to resolve it properly.
885 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
887 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
888 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
890 (unique_color_string): use the correct string c-tor.
892 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
895 * ImageLoaderXPM.[Ch]: removed.
897 * GraphicsConverter.[Ch]:
898 * GraphicsImage.[Ch]:
899 * GraphicsImageXPM.[Ch]:
900 * GraphicsParams.[Ch]:
901 * GraphicsTypes.h: new files.
903 * All files. A total re-write of the graphics cache. The cache now
904 supports asynchronous file conversion and file loading. Images
905 can be cropped, rotated and scaled for display on the LyX screen.
906 The old LyXImage and ImageLoader have been combined in a new class
907 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
910 2002-02-07 Herbert Voss <voss@lyx.org>
912 * GraphicsCacheItem.C: use unzipFile() from support/filetools
914 2002-01-31 Herbert Voss <voss@lyx.org>
916 * GraphicsCacheItem.h: handle filetype without the file extension;
917 getting type from contents; handle zipped files
919 2002-01-27 Herbert Voss <voss@lyx.org>
921 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
923 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
925 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
927 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
929 * GraphicsCacheItem.h: do not include <config.h> in header files
931 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
933 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
934 transparent colour, then set it to the colour of the background.
935 Also take account of the monochrome, grayscale of color
938 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
940 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
941 are different. Thus, don't delete the "to" if it's the original!
943 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
945 * ImageLoadXPM.C: remove setting of alloc colour mask,
946 led to crash as we don't define a callback
948 2001-07-29 Baruch Even <baruch@lyx.org>
950 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
951 colors with closeness of 10000.
953 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
955 2001-07-29 Baruch Even <baruch@lyx.org>
957 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
960 2001-07-23 Baruch Even <baruch@lyx.org>
962 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
963 the image after conversion.
965 2001-07-17 Baruch Even <baruch@lyx.org>
967 * GraphicsCacheItem.h:
968 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
969 from synchronous to asynchronous and to ease the coming changes.
971 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
973 * ImageLoaderXPM.C (runImageLoader): get display information from
976 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
979 * GraphicsCacheItem.C:
981 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
983 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
985 * GraphicsCache.h: inherit privately from noncopyable
986 * ImageLoader.h: ditto
987 * GraphicsCacheItem.h: ditto
989 2001-04-16 Allan Rae <rae@lyx.org>
991 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
992 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
995 2001-04-02 Baruch Even <baruch@lyx.org>
997 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
998 of hard coding ImageMagick.
1000 2001-03-10 Baruch Even <baruch@lyx.org>
1002 * GraphicsCache.C: Style change from (*it).field to it->field
1004 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1006 * GraphicsCache.h: noncopyable is in namespace boost
1007 * ImageLoader.h: ditto
1008 * GraphicsCacheItem.h: ditto
1010 2001-03-07 Baruch Even <baruch@lyx.org>
1012 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1013 was false and it's not needed anyhow since the shared_ptr's in the cache
1014 will destroy everything on exit.
1016 2001-02-28 Baruch Even <baruch@ev-en.org>
1019 * GraphicsCache.C: Changed the singleton pattern implementation, the
1020 former version "leaked" in the sense that it was not deallocated at
1023 2001-02-20 Baruch Even <baruch@ev-en.org>
1025 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1026 instead of a pure pointer.
1028 * GraphicsCacheItem.[Ch]:
1029 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1030 removed the reference counting that was inside. Also fixed a bug where
1031 a temporary file wouldn't get erased.
1033 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1034 Ownership is now dropped when the caller requests the image_ pointer.
1036 2001-02-20 Baruch Even <baruch@ev-en.org>
1038 * GraphicsCache.C: Cleared up the confusion on when and how it is
1041 * GraphicsCacheItem.C: Indentation change.
1043 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1044 figure correctly when the image has been loaded successfully.
1046 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1048 * ImageLoader.C: add a "using" directive.
1050 * ImageLoader.h: remove extra comma at the end of enum; add an
1051 std:: qualifier for vector.
1053 2001-01-21 Baruch Even <baruch@ev-en.org>
1055 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1056 height in the image itself and minor cleanups.
1058 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1059 new ImageLoader class instead of the older Renderer class. This
1060 means change of responsibilities.