1 2004-04-13 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (dumpPreamble):
4 * Previews.C (generateBufferPreviews): re-enable iteration over all
7 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
9 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
11 * PreviewLoader.C: use always a temp dir
12 * PreviewLoader.C: check successfull creation of LaTeX file
14 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
16 * PreviewLoader.C (FindFirst): inherit from std::unary_function
17 and make operator() const
18 (FindSnippet): inherit from unary_function, simplify slightly.
20 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
22 * GraphicsTypes.C: include <string>
24 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
26 * Previews.C: include paragraph.h
27 * PreviewLoader.C: ditto
29 2003-11-05 José Matos <jamatos@lyx.org>
31 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
32 and LatexRunParams to OutputParams.
34 2003-10-22 Angus Leeming <leeming@lyx.org>
36 * PreviewImage.C (statusChanged): always pass on the signal, not just
37 when the preview is ready for display.
39 2003-10-22 Angus Leeming <leeming@lyx.org>
41 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
42 to contain the conversion script cannot be opened.
44 2003-10-22 Angus Leeming <leeming@lyx.org>
46 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
49 2003-10-13 Angus Leeming <leeming@lyx.org>
51 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
52 Make displayTranslator a function,
54 2003-10-10 Angus Leeming <leeming@lyx.org>
56 * PreviewedInset.[Ch]: removed.
58 * Makefile.am: remove PreviewedInset.[Ch].
60 2003-10-09 Angus Leeming <leeming@lyx.org>
62 * PreviewedInset.[Ch] (previewReady): remove the side effects.
63 Now simply reports whether the preview is ready.
65 2003-10-09 Angus Leeming <leeming@lyx.org>
67 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
68 Remove the inset and view member functions.
69 Add a new connect member function and preview_ready_signal_ member
70 variable, to enable the class to tell an arbirary connectee that the
73 2003-10-09 Angus Leeming <leeming@lyx.org>
75 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
76 are now passed a 'Buffer const &', eliminating most of the remaining
77 need for PreviewedInset to use a BufferView cache.
79 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
82 * PreviewImage.h: add <string> and other small fixes to make
83 Lars' std::string patch compile with STLport.
85 2003-09-29 Angus Leeming <leeming@lyx.org>
87 * GraphicsParams.[Ch] (asString): removed. Replaced with
88 operator<<(std::ostream &, BoundingBox const &).
90 2003-09-25 Angus Leeming <leeming@lyx.org>
92 * GraphicsParams.[Ch] (asString): new member function.
94 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
96 * Previews.C (Previews): fix new bug
98 * GraphicsCache.C (Cache): fix new bug
100 2003-09-19 Angus Leeming <leeming@lyx.org>
102 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
103 a 'Buffer const &' argument.
105 2003-09-18 Angus Leeming <leeming@lyx.org>
107 * PreviewedInset.C (latexString): add a Buffer const & arg.
108 * PreviewedInset.C (addPreview): pass the buffer to latexString.
110 2003-09-16 Angus Leeming <leeming@lyx.org>
112 * PreviewedInset.[Ch] (c-tor) move out of line.
113 (d-tor): make private.
114 (inset): return a const reference rather than a non-const pointer.
116 2003-09-16 Angus Leeming <leeming@lyx.org>
118 * GraphicsImage.h: separate interface from implementation. Make all the
119 pure virtual functions private.
121 2003-09-16 Angus Leeming <leeming@lyx.org>
123 * PreviewLoader.C: add #include "LColor.h".
125 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
127 * GraphicsConverter.C
128 * PreviewLoader.C: remove usage of STRCONV
130 2003-09-14 Angus Leeming <leeming@lyx.org>
132 * PreviewLoader.C (remove): consider all InProgressProcesses when
133 ascertaining which ones to remove from the list, not every other one.
135 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
137 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
140 2003-09-08 Angus Leeming <leeming@lyx.org>
144 * PreviewLoader.C: remove redundant using directives.
146 2003-09-07 Angus Leeming <leeming@lyx.org>
149 * Previews.h: remove #include "support/std_string.h".
151 2003-09-06 Angus Leeming <leeming@lyx.org>
153 * PreviewedInset.C: add #include "insets/inset.h"
155 2003-09-05 Angus Leeming <leeming@lyx.org>
157 * *.C: strip out redundant #includes. (26 in total.)
159 2003-09-04 Angus Leeming <leeming@lyx.org>
161 * LoaderQueue.C (get):
163 2003-09-04 Angus Leeming <leeming@lyx.org>
166 * GraphicsCacheItem.C:
167 * GraphicsConverter.C:
171 * Previews.C: 'namespace support = lyx::support' rather than
172 'using lyx::support'.
174 * Previews.h: cleaned up some comments.
176 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
178 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
180 * GraphicsTypes.h: do not declare displayTranstor here (and remove
183 2003-07-27 José Matos <jamatos@fep.up.pt>
185 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
188 2003-07-21 Angus Leeming <leeming@lyx.org>
191 * GraphicsCacheItem.[Ch]:
194 * PreviewedInset.[Ch]:
195 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
197 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
199 * Change namespace grfx to lyx::graphics.
201 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
203 * introcude namespace lyx::support
205 2003-06-04 Angus Leeming <leeming@lyx.org>
207 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
208 (operator=): if it has a copy c-tor, it should have this too.
210 2003-06-03 Angus Leeming <leeming@lyx.org>
212 * GraphicsLoader.[Ch] (Loader): add copy constructor.
214 2003-05-23 Angus Leeming <leeming@lyx.org>
216 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
218 2003-05-22 Angus Leeming <leeming@lyx.org>
220 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
221 the inset::latex method.
223 2003-05-22 Angus Leeming <leeming@lyx.org>
225 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
226 the inset::latex method.
228 2003-05-22 Angus Leeming <leeming@lyx.org>
230 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
231 makeLaTeXFile is now encapsulated within runparams.
233 2003-05-22 Angus Leeming <leeming@lyx.org>
235 * PreviewLoader.C (dumpPreamble):
236 pass around a LatexRunParams parameter.
238 2003-05-13 André Pönitz <poenitz@gmx.net>
240 * GraphicsConverter.C:
241 * PreviewLoader.C: use tostr from own header
243 2003-05-12 André Pönitz <poenitz@gmx.net>
245 * PreviewLoader.C: boost::format -> bformat
247 2003-04-15 Angus Leeming <leeming@lyx.org>
249 * GraphicsConverter.C: #include lstrings.h.
251 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
253 * GraphicsConverter.C
254 * PreviewLoader.C: added #include "format.h"
256 2003-02-26 Angus Leeming <leeming@lyx.org>
258 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
259 use the cache of the parent inset instead.
261 * PreviewLoader.C (startLoading): Prevent a crash if the user is
262 not using a tmp directory.
264 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
266 * GraphicsLoader.[Ch],
268 * PreviewedInset.C: Removed unneeded list of owner insets
270 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
272 * GraphicsConverter (startConversion): add the call to
275 * GraphicsLoader.[Ch],
277 * PreviewedInset.C: Removed unneeded BufferView
279 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
281 * LoaderQueue.[Ch]: a simplification of the code, eliminated
282 the unneeded input bucket.
284 * GraphicsCacheItem.C (imageConverted): move warning inside the
287 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
289 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
291 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
293 * LoaderQueue.[Ch] (setPriority): added
295 * PreviewLoader.C (finishedGenerating): reversed the loading order so
296 first images get 'touched' last, and so load first.
298 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
300 * LoaderQueue.[Ch]: added. Implements a service queue that loads
302 * GraphicsSupport.[Ch]: removed
303 * Makefile.am: the changes above
304 * GraphicsLoader.C: use the loading queue
306 2003-01-21 Angus Leeming <leeming@lyx.org>
308 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
309 previews from being generated.
311 2003-01-13 Angus Leeming <leeming@lyx.org>
313 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
314 format to be PPM not XPM.
316 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
318 * Makefile.am (EXTRA_DIST): remove variable
320 2002-12-13 Angus Leeming <leeming@lyx.org>
322 * GraphicsImageXPM.[Ch]: removed.
324 * Makefile.am: associated change.
326 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
328 * several files: ws changes
330 2002-11-21 Angus Leeming <leeming@lyx.org>
332 * GraphicsConverter.C (build_script, move_file):
333 Don't use "if [ $? -ne 0 ]; then..."
335 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
337 * PreviewLoader.C (IncrementedFileName): STRCONV
338 (startLoading): ditto
340 * GraphicsConverter.C (Impl): STRCONV
343 * GraphicsTypes.C: include config.h
345 2002-10-25 Angus Leeming <leeming@lyx.org>
347 * GraphicsConverter.C (Impl::converted)
348 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
349 string as first arg, reflecting change in ForkedCall interface.
351 * PreviewLoader.C: use pid rather than command as identifier in
354 2002-10-18 Angus Leeming <leeming@lyx.org>
356 * GraphicsCacheItem.C (findTargetFormat): add debug message.
358 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
360 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
362 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
364 * GraphicsConverter.C (build_script): do not use ChangeExtension
368 2002-09-05 Angus Leeming <leeming@lyx.org>
370 * all files: modify the headers as discussed on the list.
372 2002-09-04 Angus Leeming <leeming@lyx.org>
374 * PreviewLoader.C (startLoading): pass the desired output format to the
377 2002-09-04 Angus Leeming <leeming@lyx.org>
379 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
381 2002-09-03 Angus Leeming <leeming@lyx.org>
383 * PreviewLoader.C: fix crash reported by Norbert Koksch when
384 generating more than 999 preview snippets. Use filenames with 5 digit
385 numbers, not 3, in the first instance, although more general code is
386 commented out. I don't suppose /anyone/ has 100000 formulae in one
389 2002-09-03 Angus Leeming <leeming@lyx.org>
391 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
393 2002-09-03 Angus Leeming <leeming@lyx.org>
395 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
397 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
399 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
400 convertDefault command with "sh ".
402 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
404 * GraphicsImage.C: small style fix to width/height setting.
406 * GraphicsTypes.h: have a displayTranslator here.
409 * GraphicsTypes.C: new file added for the setDisplayTranslator();
411 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
414 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
415 because this input has gone from the graphics dialog.
417 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
419 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
421 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
422 for support/smart_ptr.h, switch to boost smart ptr.
424 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
425 (~Data): let the smart_ptr handle cleanup
426 (reset): use nifty 3rd arg
428 (free_color_table): free the table manually
430 2002-08-09 Angus Leeming <leeming@lyx.org>
432 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
433 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
434 input@path is now set correctly.
436 2002-08-06 Angus Leeming <leeming@lyx.org>
438 * PreviewLoader.C: add support for preview.sty 0.73 (currently
439 #ifdef-ed out, awaiting the formal release).
441 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
442 the contents of a file that has changed.
444 2002-08-05 Angus Leeming <leeming@lyx.org>
446 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
447 to preview.sty. Works only for versions of preview.sty > 0.72b but
448 doesn't hurt earlier versions. Allows me to test the new parsing of
449 LyX-specific data from the generated log file.
451 2002-08-02 Angus Leeming <leeming@lyx.org>
453 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
455 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
456 (add): don't add empty snippets.
458 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
459 (view, setView): access to to the cache_.
461 2002-08-02 Angus Leeming <leeming@lyx.org>
463 * PreviewedInset.[Ch]: cache the LaTeX snippet.
465 2002-08-01 Angus Leeming <leeming@lyx.org>
467 * PreviewedInset.[Ch]: new files. An abstract base class that can help
468 insets to generate previews.
469 The daughter class must instantiate three small methods.
470 The Inset would own an instance of this daughter class and invoke it
471 as necessary. For example, mathd/formula.C gets previews at the cost
472 of 15 or so lines of code.
474 * Makefile.am: add PreviewedInset.[Ch].
476 * PreviewLoader.C (add): add debug message.
478 * Previews.C (generateBufferPreviews): remove if-block from loop.
480 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
482 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
484 (setAscentFractions): ditto
486 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
488 * PreviewLoader.C (setAscentFractions): modify because of strip
491 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
493 * GraphicsConverter.C (build_script): take a ostream as a more
494 general argument than ostringstream.
496 2002-07-22 Herbert Voss <voss@lyx.org>
498 * GraphicsConverter.C: get the "default converter" run again
500 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
502 * PreviewLoader.C: use BufferParams::getLyXTextClass
504 2002-07-21 Herbert Voss <voss@lyx.org>
506 * GraphicsImage.C: get the LyXAspectRatio run.
508 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
510 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
512 * PreviewLoader.C (startLoading): pass an interger as resolution
513 to the lyxpreview converter
515 * GraphicsParams.C: include <cstdlib>
517 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
519 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
520 preview converter script
522 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
524 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
527 2002-07-18 Angus Leeming <leeming@lyx.org>
529 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
531 (startMonitoring, monitoring, checksum): new methods to interact with
534 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
535 methods invoking the CacheItem methods of the same name.
536 (resetFile): if monitoring and the file changes, start monitoring this
539 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
541 * Makefile.am: remove FileMonitor.[Ch]
543 2002-06-17 Herbert Voss <voss@lyx.org>
545 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
546 for old ps-files (Garst). It's now handled by defining a converter and
547 disabling the ps-support of xforms.
549 2002-07-17 Angus Leeming <leeming@lyx.org>
551 Be true to the Pimpl idiom, moving all signals into the respective
552 Impl classes and defining methods to connect them to an outside slot.
553 Const-ify all visible class methods as they act only on a const pimpl_.
555 * GraphicsCache.[Ch] (add, remove): const-ify.
557 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
558 (statusChanged): move the signal into the Impl class.
559 (connect): new method, enabling a listener to connect to this signal.
561 * GraphicsConverter.[Ch]: (startConversion): const-ify.
562 (finishedConversion): move the signal into the Impl class.
563 (connect): new method, enabling a listener to connect to this signal.
565 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
566 (statusChanged): move the signal into the Impl class.
567 (connect): new method, enabling a listener to connect to this signal.
569 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
570 (imageReady): move the signal into the Impl class.
571 (connect): new method, enabling a listener to connect to this signal.
572 (emitSignal): new method, enabling PreviewImage to tell the outside
573 world that the file has been loaded into memory.
575 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
579 * GraphicsCacheItem.C:
580 * GraphicsConverter.[Ch]:
582 * GraphicsImageXPM.C:
584 * PreviewLoader.[Ch]: whitespace clean-up.
586 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
588 * PreviewLoader.C (setConverter): remove unused variable
590 * GraphicsImageXPM.C (isDrawable): implement
591 (setPixmap): the opaque color is black, not white
593 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
595 * GraphicsImageXPM.C (color_none_id):
596 (contains_color_none): use ascii_lowercase instead of lowercase
598 2002-07-16 Angus Leeming <leeming@lyx.org>
600 * PreviewLoader.C: greater use of STL algorithms.
602 * Previews.[Ch]: use const in more places.
603 (generateBufferPreviews): now takes a Buffer const & argument, not a
606 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
608 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
610 2002-07-12 Angus Leeming <leeming@lyx.org>
612 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
613 if visible 2 secs after the call to load them is first made.
615 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
616 BufferView to ascertain whether the inset is visible or not.
618 * Makefile.am: added GraphicsSupport.[Ch].
620 * PreviewImage.[Ch]: use this smart loader.
622 * PreviewLoader.C: don't load generated image files indiscimminantly.
623 Instead emit the imageReady signal and allow the image owner to decide.
625 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
627 * GraphicsCache.C: remove init_graphics()
629 2002-07-09 Angus Leeming <leeming@lyx.org>
631 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
632 arithmetic when it should be floating.
634 2002-07-09 Angus Leeming <leeming@lyx.org>
636 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
637 Output equation labels as "(#)" if lyxrc preference is set.
638 (setFontScalingFactor): use lyxrc variable preview_scale_factor
639 rather than hard-coding this.
641 2002-07-09 Angus Leeming <leeming@lyx.org>
643 * PreviewLoader.C: Further refactoring of the code. Should now be
646 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
647 past its sell-by date. The code to read the metrics file is now found
648 as a helper function in PreviewLoader.C.
650 * GraphicsImageXPM.C (scale): use boost::tie.
652 2002-07-08 Herbert Voss <voss@lyx.org>
654 * PreviewLoader.C: use of preview_size_factor to get the right
655 font-size! 0.9 is the default.
657 2002-07-08 Angus Leeming <leeming@lyx.org>
659 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
660 invocation of preview.sty.
661 Perform something of an internal clean-up.
663 2002-07-06 Angus Leeming <leeming@lyx.org>
665 * PreviewLoader.C: ensure that the metrics data is used by the
669 * PreviewImage.C: (Impl d-tor): remove all generated files that still
670 exist (perhaps because the process was curtailed before the images
673 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
675 2002-07-05 Angus Leeming <leeming@lyx.org>
684 * Previews.C: new files. The previewed LaTeX snippet stuff.
686 * Makefile.am: add these files.
688 2002-07-05 Angus Leeming <leeming@lyx.org>
690 * GraphicsLoader.h: whitespace.
692 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
694 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
695 boost::function from boost::signal.
697 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
699 * GraphicsConverter.C (convert): do not use ChangeExtension
700 because to_file_base may contain a dot.
702 2002-06-28 Angus Leeming <leeming@lyx.org>
704 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
705 by moving those SignalPtrs into the grfx::Image and grfx::Converter
706 classes where they really belong.
707 Use the Pimpl idiom to hide the class internals from public view.
709 * GraphicsTypes: remove the typedefs, leaving only the enums.
711 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
712 passed a reference to one in the load() method.
714 * GraphicsConverter.[Ch]: totally refactored. An instance of
715 grfx::Converter now represents a single conversion process.
716 Thus grfx::CachItem now has a grfx::Converter * that is set when the
717 conversion is initiated and destroyed on completion.
719 * GraphicsCache.[Ch]:
720 * GraphicsCacheItem.[Ch]:
721 * GraphicsConverter.[Ch]:
722 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
724 Note that I have done this only after making the above changes,
725 so not only should we have a clean, minimal and well documented
726 interface to these classes in the header files, but the class internals
727 should be much clearer too.
730 grfx::GCache -> grfx::Cache,
731 grfx::GCacheItem -> grfx::CacheItem,
732 grfx::GConverter -> grfx::Converter,
733 grfx::GImage -> grfx::Image,
734 grfx::GImageXPM -> grfx::ImageXPM,
735 grfx::GParams -> grfx::Params.
737 2002-06-26 Angus Leeming <leeming@lyx.org>
739 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
740 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
743 2002-06-26 Angus Leeming <leeming@lyx.org>
745 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
746 move the DisplayType enum out of grfx::GParams to here.
748 * GraphicsCacheItem.h: re-write preliminary description to reflect
751 * GraphicsParams.[Ch]:
752 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
753 grfx::DisplayType out of grfx::GParams.
755 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
756 that was in frontends/screen.C and insets/insetgraphics.C into a
757 single, easy-to-use class.
759 * Makefile.am: add these files.
761 2002-06-25 Angus Leeming <leeming@lyx.org>
763 * GraphicsCache.[Ch]:
764 * GraphicsCacheItem.[Ch]:
765 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
766 file into memory. The cache no longer controls the generation of the
767 pixmap. Instead, it just emits a signal when the loading status of an
769 The cache no longer stores InsetGraphics pointers and nor does it
770 assume responsibility for modifying an image (scaling, rotating etc).
771 Instead, that must now be performed elsewhere.
773 2002-06-19 Angus Leeming <leeming@lyx.org>
775 * GraphicsConverter.C: add using std::endl directive.
777 2002-06-17 Herbert Voss <voss@lyx.org>
779 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
780 default when nothing different was found
781 (convertToDisplayFormat): handle zipped files in the right way and
782 choose always convert as a default converter when no other
783 userdefined was found
785 * GraphicsConverter.C: add more lyxerr comments and choose
786 convert when no other userdefined converter was found
788 2002-06-10 Herbert Voss <voss@lyx.org>
790 * GraphicsImageXPM.C (convertTo7chars): get another special color
791 format from convert work in the right way
793 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
795 * GraphicsCache.C: use right colormap incantation
797 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
799 * GraphicsCache.C: use lyx_gui namespace
801 * GraphicsImageXPM.C: back down to using xforms
804 2002-06-07 Angus Leeming <leeming@lyx.org>
806 Fixes needed to compile with Compaq cxx 6.5.
807 * GraphicsConverter.h: forward declare class ConvProcess.
809 * GraphicsImageXPM.C:
810 all c-library variables have been moved into namespace std.
811 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
813 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
815 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
817 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
819 * GraphicsImageXPM.C: SigC to boot::signals changes.
820 (newImage): fix () bug when using new.
822 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
824 * switch from SigC signals to boost::signals.
826 2002-05-29 André Pönitz <poenitz@gmx.net>
828 * GraphicsParam.C: remove unneeded #include, move vomment
830 2002-05-28 André Pönitz <poenitz@gmx.net>
832 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
834 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
836 * GraphicsImageXPM.C: ColorHandler moved
838 2002-05-24 Juergen Vigna <jug@sad.it>
841 * GraphicsImage.h: include LString.h first.
843 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
845 * GraphicsCacheItem.h: use more specific smart_ptr header.
846 * GraphicsTypes.h: ditto
847 * GraphicsImage.h: ditto
848 * GraphicsConverter.h: ditto
850 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
852 * GraphicsImageXPM.C: understand convert's use of "opaque"
855 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
857 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
858 GImage::loadableFormats() that ensures that the signal is connected
859 to the derived class' method.
861 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
863 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
864 only work on the string.
866 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
868 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
869 the simple image loader when it encounters colour strings like
872 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
874 * GraphicsCacheItem.C (convertToDisplayFormat):
875 * GraphicsConverter.C (build_script): remove the Alerts when things go
876 wrong as the inset displays the message anyway. Moreover, Alert seems
877 pretty temperamemtal at the moment.
879 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
881 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
883 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
885 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
886 a reference to a temp object that's going out of scope...
888 2002-04-09 Herbert Voss <voss@lyx.org>
890 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
891 LyXLength::inBP instead of inPixels.
893 2002-04-10 Herbert Voss <voss@perce.de>
895 * GraphicsCache.[Ch]:
896 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
897 to read the "Bounding Box" from non (e)ps files.
899 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
901 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
902 the EPS file too, to ensure that the clipped Bounding Box is relative
903 to the original. (From Herbert.)
905 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
907 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
908 variables are initialised. Clean-up parsing of the string (with thanks
911 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
913 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
914 if the file can't be found.
916 * GraphicsParams.h (c-tor): remove string() as default argument.
918 * GraphicsCacheItem.C: a couple of changes as a result.
920 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
922 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
923 path to graphics file.
925 * GraphicsParams.[Ch] (c-tor): now passed filepath.
927 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
929 * most files: ws cleanup
931 * Makefile.am: remove ld -r stuff
933 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
935 * Makefile.am: special rules if partial linking
937 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
939 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
941 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
943 * GraphicsConverter.[Ch] (converted): make first arg const ref.
945 * GraphicsCacheItem.h: doxy change
947 * GraphicsCacheItem.C: ws change
949 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
951 * Makefile.am: if there is no image loading class leveraging the power
952 of the appropriate gui library, then compile the basic alternative
953 found in GraphicsImageXPM.[Ch].
955 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
957 * GraphicsCache.C: change associated with move of initialiseGraphics
960 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
962 * GraphicsParams.[Ch]:
964 * GraphicsImageXPM.C: properly resolve more warnings about comparison
965 between signed and unsigned integer expressions.
967 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
969 * GraphicsCache.C: move connections to the GImage-derived classes to
972 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
974 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
975 conversion, then do that.
977 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
979 * GraphicsCache.C: improve commentary to graphicsInit and where it
982 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
983 that became a memory leak properly. (Let the shared_c_ptr free the
985 (reset, mapcolor): tidy up and introduce a work around for XPM files
986 with crappy color entries. Print out a nice friendly message on what's
987 gone wrong and how to resolve it properly.
989 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
991 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
992 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
994 (unique_color_string): use the correct string c-tor.
996 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
999 * ImageLoaderXPM.[Ch]: removed.
1001 * GraphicsConverter.[Ch]:
1002 * GraphicsImage.[Ch]:
1003 * GraphicsImageXPM.[Ch]:
1004 * GraphicsParams.[Ch]:
1005 * GraphicsTypes.h: new files.
1007 * All files. A total re-write of the graphics cache. The cache now
1008 supports asynchronous file conversion and file loading. Images
1009 can be cropped, rotated and scaled for display on the LyX screen.
1010 The old LyXImage and ImageLoader have been combined in a new class
1011 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1014 2002-02-07 Herbert Voss <voss@lyx.org>
1016 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1018 2002-01-31 Herbert Voss <voss@lyx.org>
1020 * GraphicsCacheItem.h: handle filetype without the file extension;
1021 getting type from contents; handle zipped files
1023 2002-01-27 Herbert Voss <voss@lyx.org>
1025 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1027 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1029 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1031 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1033 * GraphicsCacheItem.h: do not include <config.h> in header files
1035 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1037 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1038 transparent colour, then set it to the colour of the background.
1039 Also take account of the monochrome, grayscale of color
1042 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1044 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1045 are different. Thus, don't delete the "to" if it's the original!
1047 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1049 * ImageLoadXPM.C: remove setting of alloc colour mask,
1050 led to crash as we don't define a callback
1052 2001-07-29 Baruch Even <baruch@lyx.org>
1054 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1055 colors with closeness of 10000.
1057 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1059 2001-07-29 Baruch Even <baruch@lyx.org>
1061 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1064 2001-07-23 Baruch Even <baruch@lyx.org>
1066 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1067 the image after conversion.
1069 2001-07-17 Baruch Even <baruch@lyx.org>
1071 * GraphicsCacheItem.h:
1072 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1073 from synchronous to asynchronous and to ease the coming changes.
1075 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1077 * ImageLoaderXPM.C (runImageLoader): get display information from
1080 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1083 * GraphicsCacheItem.C:
1085 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1087 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1089 * GraphicsCache.h: inherit privately from noncopyable
1090 * ImageLoader.h: ditto
1091 * GraphicsCacheItem.h: ditto
1093 2001-04-16 Allan Rae <rae@lyx.org>
1095 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1096 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1099 2001-04-02 Baruch Even <baruch@lyx.org>
1101 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1102 of hard coding ImageMagick.
1104 2001-03-10 Baruch Even <baruch@lyx.org>
1106 * GraphicsCache.C: Style change from (*it).field to it->field
1108 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1110 * GraphicsCache.h: noncopyable is in namespace boost
1111 * ImageLoader.h: ditto
1112 * GraphicsCacheItem.h: ditto
1114 2001-03-07 Baruch Even <baruch@lyx.org>
1116 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1117 was false and it's not needed anyhow since the shared_ptr's in the cache
1118 will destroy everything on exit.
1120 2001-02-28 Baruch Even <baruch@ev-en.org>
1123 * GraphicsCache.C: Changed the singleton pattern implementation, the
1124 former version "leaked" in the sense that it was not deallocated at
1127 2001-02-20 Baruch Even <baruch@ev-en.org>
1129 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1130 instead of a pure pointer.
1132 * GraphicsCacheItem.[Ch]:
1133 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1134 removed the reference counting that was inside. Also fixed a bug where
1135 a temporary file wouldn't get erased.
1137 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1138 Ownership is now dropped when the caller requests the image_ pointer.
1140 2001-02-20 Baruch Even <baruch@ev-en.org>
1142 * GraphicsCache.C: Cleared up the confusion on when and how it is
1145 * GraphicsCacheItem.C: Indentation change.
1147 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1148 figure correctly when the image has been loaded successfully.
1150 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1152 * ImageLoader.C: add a "using" directive.
1154 * ImageLoader.h: remove extra comma at the end of enum; add an
1155 std:: qualifier for vector.
1157 2001-01-21 Baruch Even <baruch@ev-en.org>
1159 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1160 height in the image itself and minor cleanups.
1162 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1163 new ImageLoader class instead of the older Renderer class. This
1164 means change of responsibilities.