1 2004-04-19 Angus Leeming <leeming@lyx.org>
3 * Previews.[Ch] (status): new member function, replacing activated.
5 2004-04-15 Angus Leeming <leeming@lyx.org>
7 * PreviewLoader.C (startLoading): change arguments passed to the
8 preview-generation script to include the foreground and background
10 (dumpPreamble): no longer write the foreground and background
11 colours to the latex file as PostScript specials.
12 (setConverter): consider only those 'to' formats that are
13 loadable natively by the GUI library, rather than all formats
14 for which a converter exists.
15 (setAscentFractions): re-written to parse much simplified metrics
18 2004-04-13 Angus Leeming <leeming@lyx.org>
20 * PreviewLoader.C (dumpPreamble):
21 * Previews.C (generateBufferPreviews): re-enable iteration over all
24 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
26 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
28 * PreviewLoader.C: use always a temp dir
29 * PreviewLoader.C: check successfull creation of LaTeX file
31 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
33 * PreviewLoader.C (FindFirst): inherit from std::unary_function
34 and make operator() const
35 (FindSnippet): inherit from unary_function, simplify slightly.
37 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
39 * GraphicsTypes.C: include <string>
41 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
43 * Previews.C: include paragraph.h
44 * PreviewLoader.C: ditto
46 2003-11-05 José Matos <jamatos@lyx.org>
48 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
49 and LatexRunParams to OutputParams.
51 2003-10-22 Angus Leeming <leeming@lyx.org>
53 * PreviewImage.C (statusChanged): always pass on the signal, not just
54 when the preview is ready for display.
56 2003-10-22 Angus Leeming <leeming@lyx.org>
58 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
59 to contain the conversion script cannot be opened.
61 2003-10-22 Angus Leeming <leeming@lyx.org>
63 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
66 2003-10-13 Angus Leeming <leeming@lyx.org>
68 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
69 Make displayTranslator a function,
71 2003-10-10 Angus Leeming <leeming@lyx.org>
73 * PreviewedInset.[Ch]: removed.
75 * Makefile.am: remove PreviewedInset.[Ch].
77 2003-10-09 Angus Leeming <leeming@lyx.org>
79 * PreviewedInset.[Ch] (previewReady): remove the side effects.
80 Now simply reports whether the preview is ready.
82 2003-10-09 Angus Leeming <leeming@lyx.org>
84 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
85 Remove the inset and view member functions.
86 Add a new connect member function and preview_ready_signal_ member
87 variable, to enable the class to tell an arbirary connectee that the
90 2003-10-09 Angus Leeming <leeming@lyx.org>
92 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
93 are now passed a 'Buffer const &', eliminating most of the remaining
94 need for PreviewedInset to use a BufferView cache.
96 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
99 * PreviewImage.h: add <string> and other small fixes to make
100 Lars' std::string patch compile with STLport.
102 2003-09-29 Angus Leeming <leeming@lyx.org>
104 * GraphicsParams.[Ch] (asString): removed. Replaced with
105 operator<<(std::ostream &, BoundingBox const &).
107 2003-09-25 Angus Leeming <leeming@lyx.org>
109 * GraphicsParams.[Ch] (asString): new member function.
111 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
113 * Previews.C (Previews): fix new bug
115 * GraphicsCache.C (Cache): fix new bug
117 2003-09-19 Angus Leeming <leeming@lyx.org>
119 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
120 a 'Buffer const &' argument.
122 2003-09-18 Angus Leeming <leeming@lyx.org>
124 * PreviewedInset.C (latexString): add a Buffer const & arg.
125 * PreviewedInset.C (addPreview): pass the buffer to latexString.
127 2003-09-16 Angus Leeming <leeming@lyx.org>
129 * PreviewedInset.[Ch] (c-tor) move out of line.
130 (d-tor): make private.
131 (inset): return a const reference rather than a non-const pointer.
133 2003-09-16 Angus Leeming <leeming@lyx.org>
135 * GraphicsImage.h: separate interface from implementation. Make all the
136 pure virtual functions private.
138 2003-09-16 Angus Leeming <leeming@lyx.org>
140 * PreviewLoader.C: add #include "LColor.h".
142 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
144 * GraphicsConverter.C
145 * PreviewLoader.C: remove usage of STRCONV
147 2003-09-14 Angus Leeming <leeming@lyx.org>
149 * PreviewLoader.C (remove): consider all InProgressProcesses when
150 ascertaining which ones to remove from the list, not every other one.
152 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
154 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
157 2003-09-08 Angus Leeming <leeming@lyx.org>
161 * PreviewLoader.C: remove redundant using directives.
163 2003-09-07 Angus Leeming <leeming@lyx.org>
166 * Previews.h: remove #include "support/std_string.h".
168 2003-09-06 Angus Leeming <leeming@lyx.org>
170 * PreviewedInset.C: add #include "insets/inset.h"
172 2003-09-05 Angus Leeming <leeming@lyx.org>
174 * *.C: strip out redundant #includes. (26 in total.)
176 2003-09-04 Angus Leeming <leeming@lyx.org>
178 * LoaderQueue.C (get):
180 2003-09-04 Angus Leeming <leeming@lyx.org>
183 * GraphicsCacheItem.C:
184 * GraphicsConverter.C:
188 * Previews.C: 'namespace support = lyx::support' rather than
189 'using lyx::support'.
191 * Previews.h: cleaned up some comments.
193 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
195 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
197 * GraphicsTypes.h: do not declare displayTranstor here (and remove
200 2003-07-27 José Matos <jamatos@fep.up.pt>
202 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
205 2003-07-21 Angus Leeming <leeming@lyx.org>
208 * GraphicsCacheItem.[Ch]:
211 * PreviewedInset.[Ch]:
212 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
214 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
216 * Change namespace grfx to lyx::graphics.
218 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
220 * introcude namespace lyx::support
222 2003-06-04 Angus Leeming <leeming@lyx.org>
224 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
225 (operator=): if it has a copy c-tor, it should have this too.
227 2003-06-03 Angus Leeming <leeming@lyx.org>
229 * GraphicsLoader.[Ch] (Loader): add copy constructor.
231 2003-05-23 Angus Leeming <leeming@lyx.org>
233 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
235 2003-05-22 Angus Leeming <leeming@lyx.org>
237 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
238 the inset::latex method.
240 2003-05-22 Angus Leeming <leeming@lyx.org>
242 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
243 the inset::latex method.
245 2003-05-22 Angus Leeming <leeming@lyx.org>
247 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
248 makeLaTeXFile is now encapsulated within runparams.
250 2003-05-22 Angus Leeming <leeming@lyx.org>
252 * PreviewLoader.C (dumpPreamble):
253 pass around a LatexRunParams parameter.
255 2003-05-13 André Pönitz <poenitz@gmx.net>
257 * GraphicsConverter.C:
258 * PreviewLoader.C: use tostr from own header
260 2003-05-12 André Pönitz <poenitz@gmx.net>
262 * PreviewLoader.C: boost::format -> bformat
264 2003-04-15 Angus Leeming <leeming@lyx.org>
266 * GraphicsConverter.C: #include lstrings.h.
268 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
270 * GraphicsConverter.C
271 * PreviewLoader.C: added #include "format.h"
273 2003-02-26 Angus Leeming <leeming@lyx.org>
275 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
276 use the cache of the parent inset instead.
278 * PreviewLoader.C (startLoading): Prevent a crash if the user is
279 not using a tmp directory.
281 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
283 * GraphicsLoader.[Ch],
285 * PreviewedInset.C: Removed unneeded list of owner insets
287 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
289 * GraphicsConverter (startConversion): add the call to
292 * GraphicsLoader.[Ch],
294 * PreviewedInset.C: Removed unneeded BufferView
296 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
298 * LoaderQueue.[Ch]: a simplification of the code, eliminated
299 the unneeded input bucket.
301 * GraphicsCacheItem.C (imageConverted): move warning inside the
304 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
306 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
308 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
310 * LoaderQueue.[Ch] (setPriority): added
312 * PreviewLoader.C (finishedGenerating): reversed the loading order so
313 first images get 'touched' last, and so load first.
315 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
317 * LoaderQueue.[Ch]: added. Implements a service queue that loads
319 * GraphicsSupport.[Ch]: removed
320 * Makefile.am: the changes above
321 * GraphicsLoader.C: use the loading queue
323 2003-01-21 Angus Leeming <leeming@lyx.org>
325 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
326 previews from being generated.
328 2003-01-13 Angus Leeming <leeming@lyx.org>
330 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
331 format to be PPM not XPM.
333 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
335 * Makefile.am (EXTRA_DIST): remove variable
337 2002-12-13 Angus Leeming <leeming@lyx.org>
339 * GraphicsImageXPM.[Ch]: removed.
341 * Makefile.am: associated change.
343 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
345 * several files: ws changes
347 2002-11-21 Angus Leeming <leeming@lyx.org>
349 * GraphicsConverter.C (build_script, move_file):
350 Don't use "if [ $? -ne 0 ]; then..."
352 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
354 * PreviewLoader.C (IncrementedFileName): STRCONV
355 (startLoading): ditto
357 * GraphicsConverter.C (Impl): STRCONV
360 * GraphicsTypes.C: include config.h
362 2002-10-25 Angus Leeming <leeming@lyx.org>
364 * GraphicsConverter.C (Impl::converted)
365 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
366 string as first arg, reflecting change in ForkedCall interface.
368 * PreviewLoader.C: use pid rather than command as identifier in
371 2002-10-18 Angus Leeming <leeming@lyx.org>
373 * GraphicsCacheItem.C (findTargetFormat): add debug message.
375 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
377 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
379 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
381 * GraphicsConverter.C (build_script): do not use ChangeExtension
385 2002-09-05 Angus Leeming <leeming@lyx.org>
387 * all files: modify the headers as discussed on the list.
389 2002-09-04 Angus Leeming <leeming@lyx.org>
391 * PreviewLoader.C (startLoading): pass the desired output format to the
394 2002-09-04 Angus Leeming <leeming@lyx.org>
396 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
398 2002-09-03 Angus Leeming <leeming@lyx.org>
400 * PreviewLoader.C: fix crash reported by Norbert Koksch when
401 generating more than 999 preview snippets. Use filenames with 5 digit
402 numbers, not 3, in the first instance, although more general code is
403 commented out. I don't suppose /anyone/ has 100000 formulae in one
406 2002-09-03 Angus Leeming <leeming@lyx.org>
408 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
410 2002-09-03 Angus Leeming <leeming@lyx.org>
412 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
414 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
416 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
417 convertDefault command with "sh ".
419 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
421 * GraphicsImage.C: small style fix to width/height setting.
423 * GraphicsTypes.h: have a displayTranslator here.
426 * GraphicsTypes.C: new file added for the setDisplayTranslator();
428 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
431 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
432 because this input has gone from the graphics dialog.
434 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
436 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
438 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
439 for support/smart_ptr.h, switch to boost smart ptr.
441 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
442 (~Data): let the smart_ptr handle cleanup
443 (reset): use nifty 3rd arg
445 (free_color_table): free the table manually
447 2002-08-09 Angus Leeming <leeming@lyx.org>
449 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
450 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
451 input@path is now set correctly.
453 2002-08-06 Angus Leeming <leeming@lyx.org>
455 * PreviewLoader.C: add support for preview.sty 0.73 (currently
456 #ifdef-ed out, awaiting the formal release).
458 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
459 the contents of a file that has changed.
461 2002-08-05 Angus Leeming <leeming@lyx.org>
463 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
464 to preview.sty. Works only for versions of preview.sty > 0.72b but
465 doesn't hurt earlier versions. Allows me to test the new parsing of
466 LyX-specific data from the generated log file.
468 2002-08-02 Angus Leeming <leeming@lyx.org>
470 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
472 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
473 (add): don't add empty snippets.
475 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
476 (view, setView): access to to the cache_.
478 2002-08-02 Angus Leeming <leeming@lyx.org>
480 * PreviewedInset.[Ch]: cache the LaTeX snippet.
482 2002-08-01 Angus Leeming <leeming@lyx.org>
484 * PreviewedInset.[Ch]: new files. An abstract base class that can help
485 insets to generate previews.
486 The daughter class must instantiate three small methods.
487 The Inset would own an instance of this daughter class and invoke it
488 as necessary. For example, mathd/formula.C gets previews at the cost
489 of 15 or so lines of code.
491 * Makefile.am: add PreviewedInset.[Ch].
493 * PreviewLoader.C (add): add debug message.
495 * Previews.C (generateBufferPreviews): remove if-block from loop.
497 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
499 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
501 (setAscentFractions): ditto
503 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
505 * PreviewLoader.C (setAscentFractions): modify because of strip
508 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
510 * GraphicsConverter.C (build_script): take a ostream as a more
511 general argument than ostringstream.
513 2002-07-22 Herbert Voss <voss@lyx.org>
515 * GraphicsConverter.C: get the "default converter" run again
517 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
519 * PreviewLoader.C: use BufferParams::getLyXTextClass
521 2002-07-21 Herbert Voss <voss@lyx.org>
523 * GraphicsImage.C: get the LyXAspectRatio run.
525 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
527 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
529 * PreviewLoader.C (startLoading): pass an interger as resolution
530 to the lyxpreview converter
532 * GraphicsParams.C: include <cstdlib>
534 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
536 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
537 preview converter script
539 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
541 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
544 2002-07-18 Angus Leeming <leeming@lyx.org>
546 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
548 (startMonitoring, monitoring, checksum): new methods to interact with
551 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
552 methods invoking the CacheItem methods of the same name.
553 (resetFile): if monitoring and the file changes, start monitoring this
556 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
558 * Makefile.am: remove FileMonitor.[Ch]
560 2002-06-17 Herbert Voss <voss@lyx.org>
562 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
563 for old ps-files (Garst). It's now handled by defining a converter and
564 disabling the ps-support of xforms.
566 2002-07-17 Angus Leeming <leeming@lyx.org>
568 Be true to the Pimpl idiom, moving all signals into the respective
569 Impl classes and defining methods to connect them to an outside slot.
570 Const-ify all visible class methods as they act only on a const pimpl_.
572 * GraphicsCache.[Ch] (add, remove): const-ify.
574 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
575 (statusChanged): move the signal into the Impl class.
576 (connect): new method, enabling a listener to connect to this signal.
578 * GraphicsConverter.[Ch]: (startConversion): const-ify.
579 (finishedConversion): move the signal into the Impl class.
580 (connect): new method, enabling a listener to connect to this signal.
582 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
583 (statusChanged): move the signal into the Impl class.
584 (connect): new method, enabling a listener to connect to this signal.
586 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
587 (imageReady): move the signal into the Impl class.
588 (connect): new method, enabling a listener to connect to this signal.
589 (emitSignal): new method, enabling PreviewImage to tell the outside
590 world that the file has been loaded into memory.
592 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
596 * GraphicsCacheItem.C:
597 * GraphicsConverter.[Ch]:
599 * GraphicsImageXPM.C:
601 * PreviewLoader.[Ch]: whitespace clean-up.
603 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
605 * PreviewLoader.C (setConverter): remove unused variable
607 * GraphicsImageXPM.C (isDrawable): implement
608 (setPixmap): the opaque color is black, not white
610 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
612 * GraphicsImageXPM.C (color_none_id):
613 (contains_color_none): use ascii_lowercase instead of lowercase
615 2002-07-16 Angus Leeming <leeming@lyx.org>
617 * PreviewLoader.C: greater use of STL algorithms.
619 * Previews.[Ch]: use const in more places.
620 (generateBufferPreviews): now takes a Buffer const & argument, not a
623 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
625 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
627 2002-07-12 Angus Leeming <leeming@lyx.org>
629 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
630 if visible 2 secs after the call to load them is first made.
632 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
633 BufferView to ascertain whether the inset is visible or not.
635 * Makefile.am: added GraphicsSupport.[Ch].
637 * PreviewImage.[Ch]: use this smart loader.
639 * PreviewLoader.C: don't load generated image files indiscimminantly.
640 Instead emit the imageReady signal and allow the image owner to decide.
642 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
644 * GraphicsCache.C: remove init_graphics()
646 2002-07-09 Angus Leeming <leeming@lyx.org>
648 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
649 arithmetic when it should be floating.
651 2002-07-09 Angus Leeming <leeming@lyx.org>
653 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
654 Output equation labels as "(#)" if lyxrc preference is set.
655 (setFontScalingFactor): use lyxrc variable preview_scale_factor
656 rather than hard-coding this.
658 2002-07-09 Angus Leeming <leeming@lyx.org>
660 * PreviewLoader.C: Further refactoring of the code. Should now be
663 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
664 past its sell-by date. The code to read the metrics file is now found
665 as a helper function in PreviewLoader.C.
667 * GraphicsImageXPM.C (scale): use boost::tie.
669 2002-07-08 Herbert Voss <voss@lyx.org>
671 * PreviewLoader.C: use of preview_size_factor to get the right
672 font-size! 0.9 is the default.
674 2002-07-08 Angus Leeming <leeming@lyx.org>
676 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
677 invocation of preview.sty.
678 Perform something of an internal clean-up.
680 2002-07-06 Angus Leeming <leeming@lyx.org>
682 * PreviewLoader.C: ensure that the metrics data is used by the
686 * PreviewImage.C: (Impl d-tor): remove all generated files that still
687 exist (perhaps because the process was curtailed before the images
690 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
692 2002-07-05 Angus Leeming <leeming@lyx.org>
701 * Previews.C: new files. The previewed LaTeX snippet stuff.
703 * Makefile.am: add these files.
705 2002-07-05 Angus Leeming <leeming@lyx.org>
707 * GraphicsLoader.h: whitespace.
709 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
711 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
712 boost::function from boost::signal.
714 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
716 * GraphicsConverter.C (convert): do not use ChangeExtension
717 because to_file_base may contain a dot.
719 2002-06-28 Angus Leeming <leeming@lyx.org>
721 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
722 by moving those SignalPtrs into the grfx::Image and grfx::Converter
723 classes where they really belong.
724 Use the Pimpl idiom to hide the class internals from public view.
726 * GraphicsTypes: remove the typedefs, leaving only the enums.
728 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
729 passed a reference to one in the load() method.
731 * GraphicsConverter.[Ch]: totally refactored. An instance of
732 grfx::Converter now represents a single conversion process.
733 Thus grfx::CachItem now has a grfx::Converter * that is set when the
734 conversion is initiated and destroyed on completion.
736 * GraphicsCache.[Ch]:
737 * GraphicsCacheItem.[Ch]:
738 * GraphicsConverter.[Ch]:
739 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
741 Note that I have done this only after making the above changes,
742 so not only should we have a clean, minimal and well documented
743 interface to these classes in the header files, but the class internals
744 should be much clearer too.
747 grfx::GCache -> grfx::Cache,
748 grfx::GCacheItem -> grfx::CacheItem,
749 grfx::GConverter -> grfx::Converter,
750 grfx::GImage -> grfx::Image,
751 grfx::GImageXPM -> grfx::ImageXPM,
752 grfx::GParams -> grfx::Params.
754 2002-06-26 Angus Leeming <leeming@lyx.org>
756 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
757 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
760 2002-06-26 Angus Leeming <leeming@lyx.org>
762 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
763 move the DisplayType enum out of grfx::GParams to here.
765 * GraphicsCacheItem.h: re-write preliminary description to reflect
768 * GraphicsParams.[Ch]:
769 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
770 grfx::DisplayType out of grfx::GParams.
772 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
773 that was in frontends/screen.C and insets/insetgraphics.C into a
774 single, easy-to-use class.
776 * Makefile.am: add these files.
778 2002-06-25 Angus Leeming <leeming@lyx.org>
780 * GraphicsCache.[Ch]:
781 * GraphicsCacheItem.[Ch]:
782 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
783 file into memory. The cache no longer controls the generation of the
784 pixmap. Instead, it just emits a signal when the loading status of an
786 The cache no longer stores InsetGraphics pointers and nor does it
787 assume responsibility for modifying an image (scaling, rotating etc).
788 Instead, that must now be performed elsewhere.
790 2002-06-19 Angus Leeming <leeming@lyx.org>
792 * GraphicsConverter.C: add using std::endl directive.
794 2002-06-17 Herbert Voss <voss@lyx.org>
796 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
797 default when nothing different was found
798 (convertToDisplayFormat): handle zipped files in the right way and
799 choose always convert as a default converter when no other
800 userdefined was found
802 * GraphicsConverter.C: add more lyxerr comments and choose
803 convert when no other userdefined converter was found
805 2002-06-10 Herbert Voss <voss@lyx.org>
807 * GraphicsImageXPM.C (convertTo7chars): get another special color
808 format from convert work in the right way
810 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
812 * GraphicsCache.C: use right colormap incantation
814 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
816 * GraphicsCache.C: use lyx_gui namespace
818 * GraphicsImageXPM.C: back down to using xforms
821 2002-06-07 Angus Leeming <leeming@lyx.org>
823 Fixes needed to compile with Compaq cxx 6.5.
824 * GraphicsConverter.h: forward declare class ConvProcess.
826 * GraphicsImageXPM.C:
827 all c-library variables have been moved into namespace std.
828 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
830 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
832 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
834 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
836 * GraphicsImageXPM.C: SigC to boot::signals changes.
837 (newImage): fix () bug when using new.
839 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
841 * switch from SigC signals to boost::signals.
843 2002-05-29 André Pönitz <poenitz@gmx.net>
845 * GraphicsParam.C: remove unneeded #include, move vomment
847 2002-05-28 André Pönitz <poenitz@gmx.net>
849 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
851 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
853 * GraphicsImageXPM.C: ColorHandler moved
855 2002-05-24 Juergen Vigna <jug@sad.it>
858 * GraphicsImage.h: include LString.h first.
860 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
862 * GraphicsCacheItem.h: use more specific smart_ptr header.
863 * GraphicsTypes.h: ditto
864 * GraphicsImage.h: ditto
865 * GraphicsConverter.h: ditto
867 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
869 * GraphicsImageXPM.C: understand convert's use of "opaque"
872 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
874 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
875 GImage::loadableFormats() that ensures that the signal is connected
876 to the derived class' method.
878 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
880 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
881 only work on the string.
883 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
885 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
886 the simple image loader when it encounters colour strings like
889 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
891 * GraphicsCacheItem.C (convertToDisplayFormat):
892 * GraphicsConverter.C (build_script): remove the Alerts when things go
893 wrong as the inset displays the message anyway. Moreover, Alert seems
894 pretty temperamemtal at the moment.
896 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
898 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
900 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
902 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
903 a reference to a temp object that's going out of scope...
905 2002-04-09 Herbert Voss <voss@lyx.org>
907 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
908 LyXLength::inBP instead of inPixels.
910 2002-04-10 Herbert Voss <voss@perce.de>
912 * GraphicsCache.[Ch]:
913 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
914 to read the "Bounding Box" from non (e)ps files.
916 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
918 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
919 the EPS file too, to ensure that the clipped Bounding Box is relative
920 to the original. (From Herbert.)
922 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
924 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
925 variables are initialised. Clean-up parsing of the string (with thanks
928 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
930 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
931 if the file can't be found.
933 * GraphicsParams.h (c-tor): remove string() as default argument.
935 * GraphicsCacheItem.C: a couple of changes as a result.
937 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
939 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
940 path to graphics file.
942 * GraphicsParams.[Ch] (c-tor): now passed filepath.
944 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
946 * most files: ws cleanup
948 * Makefile.am: remove ld -r stuff
950 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
952 * Makefile.am: special rules if partial linking
954 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
956 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
958 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
960 * GraphicsConverter.[Ch] (converted): make first arg const ref.
962 * GraphicsCacheItem.h: doxy change
964 * GraphicsCacheItem.C: ws change
966 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
968 * Makefile.am: if there is no image loading class leveraging the power
969 of the appropriate gui library, then compile the basic alternative
970 found in GraphicsImageXPM.[Ch].
972 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
974 * GraphicsCache.C: change associated with move of initialiseGraphics
977 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
979 * GraphicsParams.[Ch]:
981 * GraphicsImageXPM.C: properly resolve more warnings about comparison
982 between signed and unsigned integer expressions.
984 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
986 * GraphicsCache.C: move connections to the GImage-derived classes to
989 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
991 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
992 conversion, then do that.
994 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
996 * GraphicsCache.C: improve commentary to graphicsInit and where it
999 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
1000 that became a memory leak properly. (Let the shared_c_ptr free the
1002 (reset, mapcolor): tidy up and introduce a work around for XPM files
1003 with crappy color entries. Print out a nice friendly message on what's
1004 gone wrong and how to resolve it properly.
1006 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1008 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1009 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1010 in free_color_table.
1011 (unique_color_string): use the correct string c-tor.
1013 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1016 * ImageLoaderXPM.[Ch]: removed.
1018 * GraphicsConverter.[Ch]:
1019 * GraphicsImage.[Ch]:
1020 * GraphicsImageXPM.[Ch]:
1021 * GraphicsParams.[Ch]:
1022 * GraphicsTypes.h: new files.
1024 * All files. A total re-write of the graphics cache. The cache now
1025 supports asynchronous file conversion and file loading. Images
1026 can be cropped, rotated and scaled for display on the LyX screen.
1027 The old LyXImage and ImageLoader have been combined in a new class
1028 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1031 2002-02-07 Herbert Voss <voss@lyx.org>
1033 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1035 2002-01-31 Herbert Voss <voss@lyx.org>
1037 * GraphicsCacheItem.h: handle filetype without the file extension;
1038 getting type from contents; handle zipped files
1040 2002-01-27 Herbert Voss <voss@lyx.org>
1042 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1044 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1046 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1048 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1050 * GraphicsCacheItem.h: do not include <config.h> in header files
1052 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1054 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1055 transparent colour, then set it to the colour of the background.
1056 Also take account of the monochrome, grayscale of color
1059 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1061 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1062 are different. Thus, don't delete the "to" if it's the original!
1064 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1066 * ImageLoadXPM.C: remove setting of alloc colour mask,
1067 led to crash as we don't define a callback
1069 2001-07-29 Baruch Even <baruch@lyx.org>
1071 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1072 colors with closeness of 10000.
1074 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1076 2001-07-29 Baruch Even <baruch@lyx.org>
1078 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1081 2001-07-23 Baruch Even <baruch@lyx.org>
1083 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1084 the image after conversion.
1086 2001-07-17 Baruch Even <baruch@lyx.org>
1088 * GraphicsCacheItem.h:
1089 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1090 from synchronous to asynchronous and to ease the coming changes.
1092 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1094 * ImageLoaderXPM.C (runImageLoader): get display information from
1097 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1100 * GraphicsCacheItem.C:
1102 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1104 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1106 * GraphicsCache.h: inherit privately from noncopyable
1107 * ImageLoader.h: ditto
1108 * GraphicsCacheItem.h: ditto
1110 2001-04-16 Allan Rae <rae@lyx.org>
1112 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1113 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1116 2001-04-02 Baruch Even <baruch@lyx.org>
1118 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1119 of hard coding ImageMagick.
1121 2001-03-10 Baruch Even <baruch@lyx.org>
1123 * GraphicsCache.C: Style change from (*it).field to it->field
1125 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1127 * GraphicsCache.h: noncopyable is in namespace boost
1128 * ImageLoader.h: ditto
1129 * GraphicsCacheItem.h: ditto
1131 2001-03-07 Baruch Even <baruch@lyx.org>
1133 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1134 was false and it's not needed anyhow since the shared_ptr's in the cache
1135 will destroy everything on exit.
1137 2001-02-28 Baruch Even <baruch@ev-en.org>
1140 * GraphicsCache.C: Changed the singleton pattern implementation, the
1141 former version "leaked" in the sense that it was not deallocated at
1144 2001-02-20 Baruch Even <baruch@ev-en.org>
1146 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1147 instead of a pure pointer.
1149 * GraphicsCacheItem.[Ch]:
1150 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1151 removed the reference counting that was inside. Also fixed a bug where
1152 a temporary file wouldn't get erased.
1154 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1155 Ownership is now dropped when the caller requests the image_ pointer.
1157 2001-02-20 Baruch Even <baruch@ev-en.org>
1159 * GraphicsCache.C: Cleared up the confusion on when and how it is
1162 * GraphicsCacheItem.C: Indentation change.
1164 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1165 figure correctly when the image has been loaded successfully.
1167 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1169 * ImageLoader.C: add a "using" directive.
1171 * ImageLoader.h: remove extra comma at the end of enum; add an
1172 std:: qualifier for vector.
1174 2001-01-21 Baruch Even <baruch@ev-en.org>
1176 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1177 height in the image itself and minor cleanups.
1179 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1180 new ImageLoader class instead of the older Renderer class. This
1181 means change of responsibilities.