1 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
3 * Previews.C (Previews): fix new bug
5 * GraphicsCache.C (Cache): fix new bug
7 2003-09-19 Angus Leeming <leeming@lyx.org>
9 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
10 a 'Buffer const &' argument.
12 2003-09-18 Angus Leeming <leeming@lyx.org>
14 * PreviewedInset.C (latexString): add a Buffer const & arg.
15 * PreviewedInset.C (addPreview): pass the buffer to latexString.
17 2003-09-16 Angus Leeming <leeming@lyx.org>
19 * PreviewedInset.[Ch] (c-tor) move out of line.
20 (d-tor): make private.
21 (inset): return a const reference rather than a non-const pointer.
23 2003-09-16 Angus Leeming <leeming@lyx.org>
25 * GraphicsImage.h: separate interface from implementation. Make all the
26 pure virtual functions private.
28 2003-09-16 Angus Leeming <leeming@lyx.org>
30 * PreviewLoader.C: add #include "LColor.h".
32 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
35 * PreviewLoader.C: remove usage of STRCONV
37 2003-09-14 Angus Leeming <leeming@lyx.org>
39 * PreviewLoader.C (remove): consider all InProgressProcesses when
40 ascertaining which ones to remove from the list, not every other one.
42 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
44 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
47 2003-09-08 Angus Leeming <leeming@lyx.org>
51 * PreviewLoader.C: remove redundant using directives.
53 2003-09-07 Angus Leeming <leeming@lyx.org>
56 * Previews.h: remove #include "support/std_string.h".
58 2003-09-06 Angus Leeming <leeming@lyx.org>
60 * PreviewedInset.C: add #include "insets/inset.h"
62 2003-09-05 Angus Leeming <leeming@lyx.org>
64 * *.C: strip out redundant #includes. (26 in total.)
66 2003-09-04 Angus Leeming <leeming@lyx.org>
68 * LoaderQueue.C (get):
70 2003-09-04 Angus Leeming <leeming@lyx.org>
73 * GraphicsCacheItem.C:
74 * GraphicsConverter.C:
78 * Previews.C: 'namespace support = lyx::support' rather than
81 * Previews.h: cleaned up some comments.
83 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
85 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
87 * GraphicsTypes.h: do not declare displayTranstor here (and remove
90 2003-07-27 José Matos <jamatos@fep.up.pt>
92 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
95 2003-07-21 Angus Leeming <leeming@lyx.org>
98 * GraphicsCacheItem.[Ch]:
101 * PreviewedInset.[Ch]:
102 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
104 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
106 * Change namespace grfx to lyx::graphics.
108 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
110 * introcude namespace lyx::support
112 2003-06-04 Angus Leeming <leeming@lyx.org>
114 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
115 (operator=): if it has a copy c-tor, it should have this too.
117 2003-06-03 Angus Leeming <leeming@lyx.org>
119 * GraphicsLoader.[Ch] (Loader): add copy constructor.
121 2003-05-23 Angus Leeming <leeming@lyx.org>
123 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
125 2003-05-22 Angus Leeming <leeming@lyx.org>
127 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
128 the inset::latex method.
130 2003-05-22 Angus Leeming <leeming@lyx.org>
132 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
133 the inset::latex method.
135 2003-05-22 Angus Leeming <leeming@lyx.org>
137 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
138 makeLaTeXFile is now encapsulated within runparams.
140 2003-05-22 Angus Leeming <leeming@lyx.org>
142 * PreviewLoader.C (dumpPreamble):
143 pass around a LatexRunParams parameter.
145 2003-05-13 André Pönitz <poenitz@gmx.net>
147 * GraphicsConverter.C:
148 * PreviewLoader.C: use tostr from own header
150 2003-05-12 André Pönitz <poenitz@gmx.net>
152 * PreviewLoader.C: boost::format -> bformat
154 2003-04-15 Angus Leeming <leeming@lyx.org>
156 * GraphicsConverter.C: #include lstrings.h.
158 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
160 * GraphicsConverter.C
161 * PreviewLoader.C: added #include "format.h"
163 2003-02-26 Angus Leeming <leeming@lyx.org>
165 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
166 use the cache of the parent inset instead.
168 * PreviewLoader.C (startLoading): Prevent a crash if the user is
169 not using a tmp directory.
171 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
173 * GraphicsLoader.[Ch],
175 * PreviewedInset.C: Removed unneeded list of owner insets
177 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
179 * GraphicsConverter (startConversion): add the call to
182 * GraphicsLoader.[Ch],
184 * PreviewedInset.C: Removed unneeded BufferView
186 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
188 * LoaderQueue.[Ch]: a simplification of the code, eliminated
189 the unneeded input bucket.
191 * GraphicsCacheItem.C (imageConverted): move warning inside the
194 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
196 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
198 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
200 * LoaderQueue.[Ch] (setPriority): added
202 * PreviewLoader.C (finishedGenerating): reversed the loading order so
203 first images get 'touched' last, and so load first.
205 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
207 * LoaderQueue.[Ch]: added. Implements a service queue that loads
209 * GraphicsSupport.[Ch]: removed
210 * Makefile.am: the changes above
211 * GraphicsLoader.C: use the loading queue
213 2003-01-21 Angus Leeming <leeming@lyx.org>
215 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
216 previews from being generated.
218 2003-01-13 Angus Leeming <leeming@lyx.org>
220 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
221 format to be PPM not XPM.
223 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
225 * Makefile.am (EXTRA_DIST): remove variable
227 2002-12-13 Angus Leeming <leeming@lyx.org>
229 * GraphicsImageXPM.[Ch]: removed.
231 * Makefile.am: associated change.
233 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
235 * several files: ws changes
237 2002-11-21 Angus Leeming <leeming@lyx.org>
239 * GraphicsConverter.C (build_script, move_file):
240 Don't use "if [ $? -ne 0 ]; then..."
242 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
244 * PreviewLoader.C (IncrementedFileName): STRCONV
245 (startLoading): ditto
247 * GraphicsConverter.C (Impl): STRCONV
250 * GraphicsTypes.C: include config.h
252 2002-10-25 Angus Leeming <leeming@lyx.org>
254 * GraphicsConverter.C (Impl::converted)
255 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
256 string as first arg, reflecting change in ForkedCall interface.
258 * PreviewLoader.C: use pid rather than command as identifier in
261 2002-10-18 Angus Leeming <leeming@lyx.org>
263 * GraphicsCacheItem.C (findTargetFormat): add debug message.
265 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
267 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
269 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
271 * GraphicsConverter.C (build_script): do not use ChangeExtension
275 2002-09-05 Angus Leeming <leeming@lyx.org>
277 * all files: modify the headers as discussed on the list.
279 2002-09-04 Angus Leeming <leeming@lyx.org>
281 * PreviewLoader.C (startLoading): pass the desired output format to the
284 2002-09-04 Angus Leeming <leeming@lyx.org>
286 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
288 2002-09-03 Angus Leeming <leeming@lyx.org>
290 * PreviewLoader.C: fix crash reported by Norbert Koksch when
291 generating more than 999 preview snippets. Use filenames with 5 digit
292 numbers, not 3, in the first instance, although more general code is
293 commented out. I don't suppose /anyone/ has 100000 formulae in one
296 2002-09-03 Angus Leeming <leeming@lyx.org>
298 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
300 2002-09-03 Angus Leeming <leeming@lyx.org>
302 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
304 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
306 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
307 convertDefault command with "sh ".
309 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
311 * GraphicsImage.C: small style fix to width/height setting.
313 * GraphicsTypes.h: have a displayTranslator here.
316 * GraphicsTypes.C: new file added for the setDisplayTranslator();
318 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
321 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
322 because this input has gone from the graphics dialog.
324 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
326 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
328 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
329 for support/smart_ptr.h, switch to boost smart ptr.
331 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
332 (~Data): let the smart_ptr handle cleanup
333 (reset): use nifty 3rd arg
335 (free_color_table): free the table manually
337 2002-08-09 Angus Leeming <leeming@lyx.org>
339 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
340 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
341 input@path is now set correctly.
343 2002-08-06 Angus Leeming <leeming@lyx.org>
345 * PreviewLoader.C: add support for preview.sty 0.73 (currently
346 #ifdef-ed out, awaiting the formal release).
348 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
349 the contents of a file that has changed.
351 2002-08-05 Angus Leeming <leeming@lyx.org>
353 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
354 to preview.sty. Works only for versions of preview.sty > 0.72b but
355 doesn't hurt earlier versions. Allows me to test the new parsing of
356 LyX-specific data from the generated log file.
358 2002-08-02 Angus Leeming <leeming@lyx.org>
360 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
362 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
363 (add): don't add empty snippets.
365 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
366 (view, setView): access to to the cache_.
368 2002-08-02 Angus Leeming <leeming@lyx.org>
370 * PreviewedInset.[Ch]: cache the LaTeX snippet.
372 2002-08-01 Angus Leeming <leeming@lyx.org>
374 * PreviewedInset.[Ch]: new files. An abstract base class that can help
375 insets to generate previews.
376 The daughter class must instantiate three small methods.
377 The Inset would own an instance of this daughter class and invoke it
378 as necessary. For example, mathd/formula.C gets previews at the cost
379 of 15 or so lines of code.
381 * Makefile.am: add PreviewedInset.[Ch].
383 * PreviewLoader.C (add): add debug message.
385 * Previews.C (generateBufferPreviews): remove if-block from loop.
387 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
389 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
391 (setAscentFractions): ditto
393 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
395 * PreviewLoader.C (setAscentFractions): modify because of strip
398 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
400 * GraphicsConverter.C (build_script): take a ostream as a more
401 general argument than ostringstream.
403 2002-07-22 Herbert Voss <voss@lyx.org>
405 * GraphicsConverter.C: get the "default converter" run again
407 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
409 * PreviewLoader.C: use BufferParams::getLyXTextClass
411 2002-07-21 Herbert Voss <voss@lyx.org>
413 * GraphicsImage.C: get the LyXAspectRatio run.
415 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
417 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
419 * PreviewLoader.C (startLoading): pass an interger as resolution
420 to the lyxpreview converter
422 * GraphicsParams.C: include <cstdlib>
424 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
426 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
427 preview converter script
429 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
431 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
434 2002-07-18 Angus Leeming <leeming@lyx.org>
436 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
438 (startMonitoring, monitoring, checksum): new methods to interact with
441 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
442 methods invoking the CacheItem methods of the same name.
443 (resetFile): if monitoring and the file changes, start monitoring this
446 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
448 * Makefile.am: remove FileMonitor.[Ch]
450 2002-06-17 Herbert Voss <voss@lyx.org>
452 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
453 for old ps-files (Garst). It's now handled by defining a converter and
454 disabling the ps-support of xforms.
456 2002-07-17 Angus Leeming <leeming@lyx.org>
458 Be true to the Pimpl idiom, moving all signals into the respective
459 Impl classes and defining methods to connect them to an outside slot.
460 Const-ify all visible class methods as they act only on a const pimpl_.
462 * GraphicsCache.[Ch] (add, remove): const-ify.
464 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
465 (statusChanged): move the signal into the Impl class.
466 (connect): new method, enabling a listener to connect to this signal.
468 * GraphicsConverter.[Ch]: (startConversion): const-ify.
469 (finishedConversion): move the signal into the Impl class.
470 (connect): new method, enabling a listener to connect to this signal.
472 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
473 (statusChanged): move the signal into the Impl class.
474 (connect): new method, enabling a listener to connect to this signal.
476 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
477 (imageReady): move the signal into the Impl class.
478 (connect): new method, enabling a listener to connect to this signal.
479 (emitSignal): new method, enabling PreviewImage to tell the outside
480 world that the file has been loaded into memory.
482 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
486 * GraphicsCacheItem.C:
487 * GraphicsConverter.[Ch]:
489 * GraphicsImageXPM.C:
491 * PreviewLoader.[Ch]: whitespace clean-up.
493 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
495 * PreviewLoader.C (setConverter): remove unused variable
497 * GraphicsImageXPM.C (isDrawable): implement
498 (setPixmap): the opaque color is black, not white
500 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
502 * GraphicsImageXPM.C (color_none_id):
503 (contains_color_none): use ascii_lowercase instead of lowercase
505 2002-07-16 Angus Leeming <leeming@lyx.org>
507 * PreviewLoader.C: greater use of STL algorithms.
509 * Previews.[Ch]: use const in more places.
510 (generateBufferPreviews): now takes a Buffer const & argument, not a
513 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
515 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
517 2002-07-12 Angus Leeming <leeming@lyx.org>
519 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
520 if visible 2 secs after the call to load them is first made.
522 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
523 BufferView to ascertain whether the inset is visible or not.
525 * Makefile.am: added GraphicsSupport.[Ch].
527 * PreviewImage.[Ch]: use this smart loader.
529 * PreviewLoader.C: don't load generated image files indiscimminantly.
530 Instead emit the imageReady signal and allow the image owner to decide.
532 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
534 * GraphicsCache.C: remove init_graphics()
536 2002-07-09 Angus Leeming <leeming@lyx.org>
538 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
539 arithmetic when it should be floating.
541 2002-07-09 Angus Leeming <leeming@lyx.org>
543 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
544 Output equation labels as "(#)" if lyxrc preference is set.
545 (setFontScalingFactor): use lyxrc variable preview_scale_factor
546 rather than hard-coding this.
548 2002-07-09 Angus Leeming <leeming@lyx.org>
550 * PreviewLoader.C: Further refactoring of the code. Should now be
553 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
554 past its sell-by date. The code to read the metrics file is now found
555 as a helper function in PreviewLoader.C.
557 * GraphicsImageXPM.C (scale): use boost::tie.
559 2002-07-08 Herbert Voss <voss@lyx.org>
561 * PreviewLoader.C: use of preview_size_factor to get the right
562 font-size! 0.9 is the default.
564 2002-07-08 Angus Leeming <leeming@lyx.org>
566 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
567 invocation of preview.sty.
568 Perform something of an internal clean-up.
570 2002-07-06 Angus Leeming <leeming@lyx.org>
572 * PreviewLoader.C: ensure that the metrics data is used by the
576 * PreviewImage.C: (Impl d-tor): remove all generated files that still
577 exist (perhaps because the process was curtailed before the images
580 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
582 2002-07-05 Angus Leeming <leeming@lyx.org>
591 * Previews.C: new files. The previewed LaTeX snippet stuff.
593 * Makefile.am: add these files.
595 2002-07-05 Angus Leeming <leeming@lyx.org>
597 * GraphicsLoader.h: whitespace.
599 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
601 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
602 boost::function from boost::signal.
604 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
606 * GraphicsConverter.C (convert): do not use ChangeExtension
607 because to_file_base may contain a dot.
609 2002-06-28 Angus Leeming <leeming@lyx.org>
611 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
612 by moving those SignalPtrs into the grfx::Image and grfx::Converter
613 classes where they really belong.
614 Use the Pimpl idiom to hide the class internals from public view.
616 * GraphicsTypes: remove the typedefs, leaving only the enums.
618 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
619 passed a reference to one in the load() method.
621 * GraphicsConverter.[Ch]: totally refactored. An instance of
622 grfx::Converter now represents a single conversion process.
623 Thus grfx::CachItem now has a grfx::Converter * that is set when the
624 conversion is initiated and destroyed on completion.
626 * GraphicsCache.[Ch]:
627 * GraphicsCacheItem.[Ch]:
628 * GraphicsConverter.[Ch]:
629 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
631 Note that I have done this only after making the above changes,
632 so not only should we have a clean, minimal and well documented
633 interface to these classes in the header files, but the class internals
634 should be much clearer too.
637 grfx::GCache -> grfx::Cache,
638 grfx::GCacheItem -> grfx::CacheItem,
639 grfx::GConverter -> grfx::Converter,
640 grfx::GImage -> grfx::Image,
641 grfx::GImageXPM -> grfx::ImageXPM,
642 grfx::GParams -> grfx::Params.
644 2002-06-26 Angus Leeming <leeming@lyx.org>
646 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
647 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
650 2002-06-26 Angus Leeming <leeming@lyx.org>
652 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
653 move the DisplayType enum out of grfx::GParams to here.
655 * GraphicsCacheItem.h: re-write preliminary description to reflect
658 * GraphicsParams.[Ch]:
659 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
660 grfx::DisplayType out of grfx::GParams.
662 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
663 that was in frontends/screen.C and insets/insetgraphics.C into a
664 single, easy-to-use class.
666 * Makefile.am: add these files.
668 2002-06-25 Angus Leeming <leeming@lyx.org>
670 * GraphicsCache.[Ch]:
671 * GraphicsCacheItem.[Ch]:
672 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
673 file into memory. The cache no longer controls the generation of the
674 pixmap. Instead, it just emits a signal when the loading status of an
676 The cache no longer stores InsetGraphics pointers and nor does it
677 assume responsibility for modifying an image (scaling, rotating etc).
678 Instead, that must now be performed elsewhere.
680 2002-06-19 Angus Leeming <leeming@lyx.org>
682 * GraphicsConverter.C: add using std::endl directive.
684 2002-06-17 Herbert Voss <voss@lyx.org>
686 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
687 default when nothing different was found
688 (convertToDisplayFormat): handle zipped files in the right way and
689 choose always convert as a default converter when no other
690 userdefined was found
692 * GraphicsConverter.C: add more lyxerr comments and choose
693 convert when no other userdefined converter was found
695 2002-06-10 Herbert Voss <voss@lyx.org>
697 * GraphicsImageXPM.C (convertTo7chars): get another special color
698 format from convert work in the right way
700 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
702 * GraphicsCache.C: use right colormap incantation
704 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
706 * GraphicsCache.C: use lyx_gui namespace
708 * GraphicsImageXPM.C: back down to using xforms
711 2002-06-07 Angus Leeming <leeming@lyx.org>
713 Fixes needed to compile with Compaq cxx 6.5.
714 * GraphicsConverter.h: forward declare class ConvProcess.
716 * GraphicsImageXPM.C:
717 all c-library variables have been moved into namespace std.
718 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
720 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
722 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
724 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
726 * GraphicsImageXPM.C: SigC to boot::signals changes.
727 (newImage): fix () bug when using new.
729 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
731 * switch from SigC signals to boost::signals.
733 2002-05-29 André Pönitz <poenitz@gmx.net>
735 * GraphicsParam.C: remove unneeded #include, move vomment
737 2002-05-28 André Pönitz <poenitz@gmx.net>
739 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
741 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
743 * GraphicsImageXPM.C: ColorHandler moved
745 2002-05-24 Juergen Vigna <jug@sad.it>
748 * GraphicsImage.h: include LString.h first.
750 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
752 * GraphicsCacheItem.h: use more specific smart_ptr header.
753 * GraphicsTypes.h: ditto
754 * GraphicsImage.h: ditto
755 * GraphicsConverter.h: ditto
757 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
759 * GraphicsImageXPM.C: understand convert's use of "opaque"
762 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
764 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
765 GImage::loadableFormats() that ensures that the signal is connected
766 to the derived class' method.
768 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
770 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
771 only work on the string.
773 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
775 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
776 the simple image loader when it encounters colour strings like
779 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
781 * GraphicsCacheItem.C (convertToDisplayFormat):
782 * GraphicsConverter.C (build_script): remove the Alerts when things go
783 wrong as the inset displays the message anyway. Moreover, Alert seems
784 pretty temperamemtal at the moment.
786 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
788 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
790 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
792 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
793 a reference to a temp object that's going out of scope...
795 2002-04-09 Herbert Voss <voss@lyx.org>
797 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
798 LyXLength::inBP instead of inPixels.
800 2002-04-10 Herbert Voss <voss@perce.de>
802 * GraphicsCache.[Ch]:
803 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
804 to read the "Bounding Box" from non (e)ps files.
806 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
808 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
809 the EPS file too, to ensure that the clipped Bounding Box is relative
810 to the original. (From Herbert.)
812 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
814 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
815 variables are initialised. Clean-up parsing of the string (with thanks
818 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
820 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
821 if the file can't be found.
823 * GraphicsParams.h (c-tor): remove string() as default argument.
825 * GraphicsCacheItem.C: a couple of changes as a result.
827 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
829 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
830 path to graphics file.
832 * GraphicsParams.[Ch] (c-tor): now passed filepath.
834 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
836 * most files: ws cleanup
838 * Makefile.am: remove ld -r stuff
840 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
842 * Makefile.am: special rules if partial linking
844 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
846 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
848 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
850 * GraphicsConverter.[Ch] (converted): make first arg const ref.
852 * GraphicsCacheItem.h: doxy change
854 * GraphicsCacheItem.C: ws change
856 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
858 * Makefile.am: if there is no image loading class leveraging the power
859 of the appropriate gui library, then compile the basic alternative
860 found in GraphicsImageXPM.[Ch].
862 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
864 * GraphicsCache.C: change associated with move of initialiseGraphics
867 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
869 * GraphicsParams.[Ch]:
871 * GraphicsImageXPM.C: properly resolve more warnings about comparison
872 between signed and unsigned integer expressions.
874 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
876 * GraphicsCache.C: move connections to the GImage-derived classes to
879 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
881 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
882 conversion, then do that.
884 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
886 * GraphicsCache.C: improve commentary to graphicsInit and where it
889 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
890 that became a memory leak properly. (Let the shared_c_ptr free the
892 (reset, mapcolor): tidy up and introduce a work around for XPM files
893 with crappy color entries. Print out a nice friendly message on what's
894 gone wrong and how to resolve it properly.
896 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
898 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
899 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
901 (unique_color_string): use the correct string c-tor.
903 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
906 * ImageLoaderXPM.[Ch]: removed.
908 * GraphicsConverter.[Ch]:
909 * GraphicsImage.[Ch]:
910 * GraphicsImageXPM.[Ch]:
911 * GraphicsParams.[Ch]:
912 * GraphicsTypes.h: new files.
914 * All files. A total re-write of the graphics cache. The cache now
915 supports asynchronous file conversion and file loading. Images
916 can be cropped, rotated and scaled for display on the LyX screen.
917 The old LyXImage and ImageLoader have been combined in a new class
918 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
921 2002-02-07 Herbert Voss <voss@lyx.org>
923 * GraphicsCacheItem.C: use unzipFile() from support/filetools
925 2002-01-31 Herbert Voss <voss@lyx.org>
927 * GraphicsCacheItem.h: handle filetype without the file extension;
928 getting type from contents; handle zipped files
930 2002-01-27 Herbert Voss <voss@lyx.org>
932 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
934 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
936 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
938 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
940 * GraphicsCacheItem.h: do not include <config.h> in header files
942 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
944 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
945 transparent colour, then set it to the colour of the background.
946 Also take account of the monochrome, grayscale of color
949 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
951 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
952 are different. Thus, don't delete the "to" if it's the original!
954 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
956 * ImageLoadXPM.C: remove setting of alloc colour mask,
957 led to crash as we don't define a callback
959 2001-07-29 Baruch Even <baruch@lyx.org>
961 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
962 colors with closeness of 10000.
964 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
966 2001-07-29 Baruch Even <baruch@lyx.org>
968 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
971 2001-07-23 Baruch Even <baruch@lyx.org>
973 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
974 the image after conversion.
976 2001-07-17 Baruch Even <baruch@lyx.org>
978 * GraphicsCacheItem.h:
979 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
980 from synchronous to asynchronous and to ease the coming changes.
982 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
984 * ImageLoaderXPM.C (runImageLoader): get display information from
987 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
990 * GraphicsCacheItem.C:
992 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
994 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
996 * GraphicsCache.h: inherit privately from noncopyable
997 * ImageLoader.h: ditto
998 * GraphicsCacheItem.h: ditto
1000 2001-04-16 Allan Rae <rae@lyx.org>
1002 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1003 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1006 2001-04-02 Baruch Even <baruch@lyx.org>
1008 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1009 of hard coding ImageMagick.
1011 2001-03-10 Baruch Even <baruch@lyx.org>
1013 * GraphicsCache.C: Style change from (*it).field to it->field
1015 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1017 * GraphicsCache.h: noncopyable is in namespace boost
1018 * ImageLoader.h: ditto
1019 * GraphicsCacheItem.h: ditto
1021 2001-03-07 Baruch Even <baruch@lyx.org>
1023 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1024 was false and it's not needed anyhow since the shared_ptr's in the cache
1025 will destroy everything on exit.
1027 2001-02-28 Baruch Even <baruch@ev-en.org>
1030 * GraphicsCache.C: Changed the singleton pattern implementation, the
1031 former version "leaked" in the sense that it was not deallocated at
1034 2001-02-20 Baruch Even <baruch@ev-en.org>
1036 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1037 instead of a pure pointer.
1039 * GraphicsCacheItem.[Ch]:
1040 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1041 removed the reference counting that was inside. Also fixed a bug where
1042 a temporary file wouldn't get erased.
1044 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1045 Ownership is now dropped when the caller requests the image_ pointer.
1047 2001-02-20 Baruch Even <baruch@ev-en.org>
1049 * GraphicsCache.C: Cleared up the confusion on when and how it is
1052 * GraphicsCacheItem.C: Indentation change.
1054 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1055 figure correctly when the image has been loaded successfully.
1057 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1059 * ImageLoader.C: add a "using" directive.
1061 * ImageLoader.h: remove extra comma at the end of enum; add an
1062 std:: qualifier for vector.
1064 2001-01-21 Baruch Even <baruch@ev-en.org>
1066 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1067 height in the image itself and minor cleanups.
1069 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1070 new ImageLoader class instead of the older Renderer class. This
1071 means change of responsibilities.