1 2004-04-15 Angus Leeming <leeming@lyx.org>
3 * PreviewLoader.C (startLoading): change arguments passed to the
4 preview-generation script to include the foreground and background
6 (dumpPreamble): no longer write the foreground and background
7 colours to the latex file as PostScript specials.
8 (setConverter): consider only those 'to' formats that are
9 loadable natively by the GUI library, rather than all formats
10 for which a converter exists.
11 (setAscentFractions): re-written to parse much simplified metrics
14 2004-04-13 Angus Leeming <leeming@lyx.org>
16 * PreviewLoader.C (dumpPreamble):
17 * Previews.C (generateBufferPreviews): re-enable iteration over all
20 2004-02-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
22 * GraphicsCacheItem.C (convertToDisplayFormat): unzip zipped files
24 * PreviewLoader.C: use always a temp dir
25 * PreviewLoader.C: check successfull creation of LaTeX file
27 2004-01-31 Lars Gullik Bjonnes <larsbj@gullik.net>
29 * PreviewLoader.C (FindFirst): inherit from std::unary_function
30 and make operator() const
31 (FindSnippet): inherit from unary_function, simplify slightly.
33 2004-01-07 Lars Gullik Bjonnes <larsbj@gullik.net>
35 * GraphicsTypes.C: include <string>
37 2003-11-20 Lars Gullik Bjonnes <larsbj@gullik.net>
39 * Previews.C: include paragraph.h
40 * PreviewLoader.C: ditto
42 2003-11-05 José Matos <jamatos@lyx.org>
44 * PreviewLoader.C (dumpPreamble): rename ascii to plaintext
45 and LatexRunParams to OutputParams.
47 2003-10-22 Angus Leeming <leeming@lyx.org>
49 * PreviewImage.C (statusChanged): always pass on the signal, not just
50 when the preview is ready for display.
52 2003-10-22 Angus Leeming <leeming@lyx.org>
54 * GraphicsConverter.C (Impl c-tor): add a warning message if the file
55 to contain the conversion script cannot be opened.
57 2003-10-22 Angus Leeming <leeming@lyx.org>
59 * PreviewLoader.C (startLoading): do nothing if the buffer is not yet
62 2003-10-13 Angus Leeming <leeming@lyx.org>
64 * GraphicsTypes.[Ch] (setDisplayTranslator): removed.
65 Make displayTranslator a function,
67 2003-10-10 Angus Leeming <leeming@lyx.org>
69 * PreviewedInset.[Ch]: removed.
71 * Makefile.am: remove PreviewedInset.[Ch].
73 2003-10-09 Angus Leeming <leeming@lyx.org>
75 * PreviewedInset.[Ch] (previewReady): remove the side effects.
76 Now simply reports whether the preview is ready.
78 2003-10-09 Angus Leeming <leeming@lyx.org>
80 * PreviewedInset.[Ch]: move PreviewedInset out of namespace lyx::graphics.
81 Remove the inset and view member functions.
82 Add a new connect member function and preview_ready_signal_ member
83 variable, to enable the class to tell an arbirary connectee that the
86 2003-10-09 Angus Leeming <leeming@lyx.org>
88 * PreviewedInset.[Ch] (removePreview, previewReady): these functions
89 are now passed a 'Buffer const &', eliminating most of the remaining
90 need for PreviewedInset to use a BufferView cache.
92 2003-10-07 Martin Vermeer <martin.vermeer@hut.fi>
95 * PreviewImage.h: add <string> and other small fixes to make
96 Lars' std::string patch compile with STLport.
98 2003-09-29 Angus Leeming <leeming@lyx.org>
100 * GraphicsParams.[Ch] (asString): removed. Replaced with
101 operator<<(std::ostream &, BoundingBox const &).
103 2003-09-25 Angus Leeming <leeming@lyx.org>
105 * GraphicsParams.[Ch] (asString): new member function.
107 2003-09-21 Lars Gullik Bjønnes <larsbj@gullik.net>
109 * Previews.C (Previews): fix new bug
111 * GraphicsCache.C (Cache): fix new bug
113 2003-09-19 Angus Leeming <leeming@lyx.org>
115 * PreviewedInset.[Ch] (generatePreview, previewWanted): now passed
116 a 'Buffer const &' argument.
118 2003-09-18 Angus Leeming <leeming@lyx.org>
120 * PreviewedInset.C (latexString): add a Buffer const & arg.
121 * PreviewedInset.C (addPreview): pass the buffer to latexString.
123 2003-09-16 Angus Leeming <leeming@lyx.org>
125 * PreviewedInset.[Ch] (c-tor) move out of line.
126 (d-tor): make private.
127 (inset): return a const reference rather than a non-const pointer.
129 2003-09-16 Angus Leeming <leeming@lyx.org>
131 * GraphicsImage.h: separate interface from implementation. Make all the
132 pure virtual functions private.
134 2003-09-16 Angus Leeming <leeming@lyx.org>
136 * PreviewLoader.C: add #include "LColor.h".
138 2003-09-15 Lars Gullik Bjønnes <larsbj@gullik.net>
140 * GraphicsConverter.C
141 * PreviewLoader.C: remove usage of STRCONV
143 2003-09-14 Angus Leeming <leeming@lyx.org>
145 * PreviewLoader.C (remove): consider all InProgressProcesses when
146 ascertaining which ones to remove from the list, not every other one.
148 2003-09-09 Lars Gullik Bjønnes <larsbj@lyx.org>
150 * GraphicsCacheItem.C: change Assert to BOOST_ASSERT
153 2003-09-08 Angus Leeming <leeming@lyx.org>
157 * PreviewLoader.C: remove redundant using directives.
159 2003-09-07 Angus Leeming <leeming@lyx.org>
162 * Previews.h: remove #include "support/std_string.h".
164 2003-09-06 Angus Leeming <leeming@lyx.org>
166 * PreviewedInset.C: add #include "insets/inset.h"
168 2003-09-05 Angus Leeming <leeming@lyx.org>
170 * *.C: strip out redundant #includes. (26 in total.)
172 2003-09-04 Angus Leeming <leeming@lyx.org>
174 * LoaderQueue.C (get):
176 2003-09-04 Angus Leeming <leeming@lyx.org>
179 * GraphicsCacheItem.C:
180 * GraphicsConverter.C:
184 * Previews.C: 'namespace support = lyx::support' rather than
185 'using lyx::support'.
187 * Previews.h: cleaned up some comments.
189 * LoaderQueue.[Ch]: move #include "GraphicsCacheItem.h" into the .C file.
191 2003-07-26 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
193 * GraphicsTypes.h: do not declare displayTranstor here (and remove
196 2003-07-27 José Matos <jamatos@fep.up.pt>
198 * PreviewLoader.C (Impl::dumpPreamble): comply with makeLaTeXFile
201 2003-07-21 Angus Leeming <leeming@lyx.org>
204 * GraphicsCacheItem.[Ch]:
207 * PreviewedInset.[Ch]:
208 * Previews.h: use namespace lyx::graphics rather than grfx shortcut.
210 2003-07-04 Lars Gullik Bjønnes <larsbj@gullik.net>
212 * Change namespace grfx to lyx::graphics.
214 2003-07-01 Lars Gullik Bjønnes <larsbj@gullik.net>
216 * introcude namespace lyx::support
218 2003-06-04 Angus Leeming <leeming@lyx.org>
220 * GraphicsLoader.C (Loader copy c-tor): make it work as expected. ;-)
221 (operator=): if it has a copy c-tor, it should have this too.
223 2003-06-03 Angus Leeming <leeming@lyx.org>
225 * GraphicsLoader.[Ch] (Loader): add copy constructor.
227 2003-05-23 Angus Leeming <leeming@lyx.org>
229 * PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.
231 2003-05-22 Angus Leeming <leeming@lyx.org>
233 * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
234 the inset::latex method.
236 2003-05-22 Angus Leeming <leeming@lyx.org>
238 * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
239 the inset::latex method.
241 2003-05-22 Angus Leeming <leeming@lyx.org>
243 * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
244 makeLaTeXFile is now encapsulated within runparams.
246 2003-05-22 Angus Leeming <leeming@lyx.org>
248 * PreviewLoader.C (dumpPreamble):
249 pass around a LatexRunParams parameter.
251 2003-05-13 André Pönitz <poenitz@gmx.net>
253 * GraphicsConverter.C:
254 * PreviewLoader.C: use tostr from own header
256 2003-05-12 André Pönitz <poenitz@gmx.net>
258 * PreviewLoader.C: boost::format -> bformat
260 2003-04-15 Angus Leeming <leeming@lyx.org>
262 * GraphicsConverter.C: #include lstrings.h.
264 2003-02-28 Alfredo Braunstein <abraunst@libero.it>
266 * GraphicsConverter.C
267 * PreviewLoader.C: added #include "format.h"
269 2003-02-26 Angus Leeming <leeming@lyx.org>
271 * PreviewedInset.[Ch]: strip out the caching of the BufferView and
272 use the cache of the parent inset instead.
274 * PreviewLoader.C (startLoading): Prevent a crash if the user is
275 not using a tmp directory.
277 2003-02-26 Alfredo Braunstein <abraunst@libero.it>
279 * GraphicsLoader.[Ch],
281 * PreviewedInset.C: Removed unneeded list of owner insets
283 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
285 * GraphicsConverter (startConversion): add the call to
288 * GraphicsLoader.[Ch],
290 * PreviewedInset.C: Removed unneeded BufferView
292 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
294 * LoaderQueue.[Ch]: a simplification of the code, eliminated
295 the unneeded input bucket.
297 * GraphicsCacheItem.C (imageConverted): move warning inside the
300 2003-02-25 Alfredo Braunstein <abraunst@libero.it>
302 * PreviewLoader.C (FindFirst): use ==, not < with std::find.
304 2003-02-21 Alfredo Braunstein <abraunst@libero.it>
306 * LoaderQueue.[Ch] (setPriority): added
308 * PreviewLoader.C (finishedGenerating): reversed the loading order so
309 first images get 'touched' last, and so load first.
311 2003-02-20 Alfredo Braunstein <abraunst@libero.it>
313 * LoaderQueue.[Ch]: added. Implements a service queue that loads
315 * GraphicsSupport.[Ch]: removed
316 * Makefile.am: the changes above
317 * GraphicsLoader.C: use the loading queue
319 2003-01-21 Angus Leeming <leeming@lyx.org>
321 * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
322 previews from being generated.
324 2003-01-13 Angus Leeming <leeming@lyx.org>
326 * GraphicsCacheItem.C (findTargetFormat): define the default conversion
327 format to be PPM not XPM.
329 2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
331 * Makefile.am (EXTRA_DIST): remove variable
333 2002-12-13 Angus Leeming <leeming@lyx.org>
335 * GraphicsImageXPM.[Ch]: removed.
337 * Makefile.am: associated change.
339 2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
341 * several files: ws changes
343 2002-11-21 Angus Leeming <leeming@lyx.org>
345 * GraphicsConverter.C (build_script, move_file):
346 Don't use "if [ $? -ne 0 ]; then..."
348 2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
350 * PreviewLoader.C (IncrementedFileName): STRCONV
351 (startLoading): ditto
353 * GraphicsConverter.C (Impl): STRCONV
356 * GraphicsTypes.C: include config.h
358 2002-10-25 Angus Leeming <leeming@lyx.org>
360 * GraphicsConverter.C (Impl::converted)
361 * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
362 string as first arg, reflecting change in ForkedCall interface.
364 * PreviewLoader.C: use pid rather than command as identifier in
367 2002-10-18 Angus Leeming <leeming@lyx.org>
369 * GraphicsCacheItem.C (findTargetFormat): add debug message.
371 2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
373 * Makefile.am (INCLUDES): loose SIGC_INCLUDES
375 2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
377 * GraphicsConverter.C (build_script): do not use ChangeExtension
381 2002-09-05 Angus Leeming <leeming@lyx.org>
383 * all files: modify the headers as discussed on the list.
385 2002-09-04 Angus Leeming <leeming@lyx.org>
387 * PreviewLoader.C (startLoading): pass the desired output format to the
390 2002-09-04 Angus Leeming <leeming@lyx.org>
392 * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
394 2002-09-03 Angus Leeming <leeming@lyx.org>
396 * PreviewLoader.C: fix crash reported by Norbert Koksch when
397 generating more than 999 preview snippets. Use filenames with 5 digit
398 numbers, not 3, in the first instance, although more general code is
399 commented out. I don't suppose /anyone/ has 100000 formulae in one
402 2002-09-03 Angus Leeming <leeming@lyx.org>
404 * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
406 2002-09-03 Angus Leeming <leeming@lyx.org>
408 * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
410 2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
412 * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
413 convertDefault command with "sh ".
415 2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
417 * GraphicsImage.C: small style fix to width/height setting.
419 * GraphicsTypes.h: have a displayTranslator here.
422 * GraphicsTypes.C: new file added for the setDisplayTranslator();
424 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
427 * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
428 because this input has gone from the graphics dialog.
430 * GraphicsTypes.h: add enum DisplayType DefaultDisplay
432 2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
434 * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
435 for support/smart_ptr.h, switch to boost smart ptr.
437 * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
438 (~Data): let the smart_ptr handle cleanup
439 (reset): use nifty 3rd arg
441 (free_color_table): free the table manually
443 2002-08-09 Angus Leeming <leeming@lyx.org>
445 * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
446 Buffer::makeLaTeXFile() so that LaTeX can find \input files because
447 input@path is now set correctly.
449 2002-08-06 Angus Leeming <leeming@lyx.org>
451 * PreviewLoader.C: add support for preview.sty 0.73 (currently
452 #ifdef-ed out, awaiting the formal release).
454 * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
455 the contents of a file that has changed.
457 2002-08-05 Angus Leeming <leeming@lyx.org>
459 * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
460 to preview.sty. Works only for versions of preview.sty > 0.72b but
461 doesn't hurt earlier versions. Allows me to test the new parsing of
462 LyX-specific data from the generated log file.
464 2002-08-02 Angus Leeming <leeming@lyx.org>
466 * GraphicsLoader.C: cache the BufferView as a weak_ptr.
468 * PreviewLoader.[Ch] (buffer): new method, returning the owner.
469 (add): don't add empty snippets.
471 * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
472 (view, setView): access to to the cache_.
474 2002-08-02 Angus Leeming <leeming@lyx.org>
476 * PreviewedInset.[Ch]: cache the LaTeX snippet.
478 2002-08-01 Angus Leeming <leeming@lyx.org>
480 * PreviewedInset.[Ch]: new files. An abstract base class that can help
481 insets to generate previews.
482 The daughter class must instantiate three small methods.
483 The Inset would own an instance of this daughter class and invoke it
484 as necessary. For example, mathd/formula.C gets previews at the cost
485 of 15 or so lines of code.
487 * Makefile.am: add PreviewedInset.[Ch].
489 * PreviewLoader.C (add): add debug message.
491 * Previews.C (generateBufferPreviews): remove if-block from loop.
493 2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
495 * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
497 (setAscentFractions): ditto
499 2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
501 * PreviewLoader.C (setAscentFractions): modify because of strip
504 2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
506 * GraphicsConverter.C (build_script): take a ostream as a more
507 general argument than ostringstream.
509 2002-07-22 Herbert Voss <voss@lyx.org>
511 * GraphicsConverter.C: get the "default converter" run again
513 2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
515 * PreviewLoader.C: use BufferParams::getLyXTextClass
517 2002-07-21 Herbert Voss <voss@lyx.org>
519 * GraphicsImage.C: get the LyXAspectRatio run.
521 * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
523 2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
525 * PreviewLoader.C (startLoading): pass an interger as resolution
526 to the lyxpreview converter
528 * GraphicsParams.C: include <cstdlib>
530 2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
532 * PreviewLoader.C (startLoading): use LibScriptSearch to find the
533 preview converter script
535 2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
537 * GraphicsCacheItem.C (reset): use erase() instead of clear() for
540 2002-07-18 Angus Leeming <leeming@lyx.org>
542 * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
544 (startMonitoring, monitoring, checksum): new methods to interact with
547 * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
548 methods invoking the CacheItem methods of the same name.
549 (resetFile): if monitoring and the file changes, start monitoring this
552 2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
554 * Makefile.am: remove FileMonitor.[Ch]
556 2002-06-17 Herbert Voss <voss@lyx.org>
558 * GraphicsCachItem.C (findTargetFormat): remove the speciell case
559 for old ps-files (Garst). It's now handled by defining a converter and
560 disabling the ps-support of xforms.
562 2002-07-17 Angus Leeming <leeming@lyx.org>
564 Be true to the Pimpl idiom, moving all signals into the respective
565 Impl classes and defining methods to connect them to an outside slot.
566 Const-ify all visible class methods as they act only on a const pimpl_.
568 * GraphicsCache.[Ch] (add, remove): const-ify.
570 * GraphicsCacheItem.[Ch] (startLoading): const-ify.
571 (statusChanged): move the signal into the Impl class.
572 (connect): new method, enabling a listener to connect to this signal.
574 * GraphicsConverter.[Ch]: (startConversion): const-ify.
575 (finishedConversion): move the signal into the Impl class.
576 (connect): new method, enabling a listener to connect to this signal.
578 * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
579 (statusChanged): move the signal into the Impl class.
580 (connect): new method, enabling a listener to connect to this signal.
582 * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
583 (imageReady): move the signal into the Impl class.
584 (connect): new method, enabling a listener to connect to this signal.
585 (emitSignal): new method, enabling PreviewImage to tell the outside
586 world that the file has been loaded into memory.
588 * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
592 * GraphicsCacheItem.C:
593 * GraphicsConverter.[Ch]:
595 * GraphicsImageXPM.C:
597 * PreviewLoader.[Ch]: whitespace clean-up.
599 2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
601 * PreviewLoader.C (setConverter): remove unused variable
603 * GraphicsImageXPM.C (isDrawable): implement
604 (setPixmap): the opaque color is black, not white
606 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
608 * GraphicsImageXPM.C (color_none_id):
609 (contains_color_none): use ascii_lowercase instead of lowercase
611 2002-07-16 Angus Leeming <leeming@lyx.org>
613 * PreviewLoader.C: greater use of STL algorithms.
615 * Previews.[Ch]: use const in more places.
616 (generateBufferPreviews): now takes a Buffer const & argument, not a
619 2002-07-15 John Levon <moz@compsoc.man.ac.uk>
621 * GraphicsImage.h: remove getPixmap/X, add isDrawable()
623 2002-07-12 Angus Leeming <leeming@lyx.org>
625 * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
626 if visible 2 secs after the call to load them is first made.
628 * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
629 BufferView to ascertain whether the inset is visible or not.
631 * Makefile.am: added GraphicsSupport.[Ch].
633 * PreviewImage.[Ch]: use this smart loader.
635 * PreviewLoader.C: don't load generated image files indiscimminantly.
636 Instead emit the imageReady signal and allow the image owner to decide.
638 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
640 * GraphicsCache.C: remove init_graphics()
642 2002-07-09 Angus Leeming <leeming@lyx.org>
644 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
645 arithmetic when it should be floating.
647 2002-07-09 Angus Leeming <leeming@lyx.org>
649 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
650 Output equation labels as "(#)" if lyxrc preference is set.
651 (setFontScalingFactor): use lyxrc variable preview_scale_factor
652 rather than hard-coding this.
654 2002-07-09 Angus Leeming <leeming@lyx.org>
656 * PreviewLoader.C: Further refactoring of the code. Should now be
659 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
660 past its sell-by date. The code to read the metrics file is now found
661 as a helper function in PreviewLoader.C.
663 * GraphicsImageXPM.C (scale): use boost::tie.
665 2002-07-08 Herbert Voss <voss@lyx.org>
667 * PreviewLoader.C: use of preview_size_factor to get the right
668 font-size! 0.9 is the default.
670 2002-07-08 Angus Leeming <leeming@lyx.org>
672 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
673 invocation of preview.sty.
674 Perform something of an internal clean-up.
676 2002-07-06 Angus Leeming <leeming@lyx.org>
678 * PreviewLoader.C: ensure that the metrics data is used by the
682 * PreviewImage.C: (Impl d-tor): remove all generated files that still
683 exist (perhaps because the process was curtailed before the images
686 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
688 2002-07-05 Angus Leeming <leeming@lyx.org>
697 * Previews.C: new files. The previewed LaTeX snippet stuff.
699 * Makefile.am: add these files.
701 2002-07-05 Angus Leeming <leeming@lyx.org>
703 * GraphicsLoader.h: whitespace.
705 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
707 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
708 boost::function from boost::signal.
710 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
712 * GraphicsConverter.C (convert): do not use ChangeExtension
713 because to_file_base may contain a dot.
715 2002-06-28 Angus Leeming <leeming@lyx.org>
717 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
718 by moving those SignalPtrs into the grfx::Image and grfx::Converter
719 classes where they really belong.
720 Use the Pimpl idiom to hide the class internals from public view.
722 * GraphicsTypes: remove the typedefs, leaving only the enums.
724 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
725 passed a reference to one in the load() method.
727 * GraphicsConverter.[Ch]: totally refactored. An instance of
728 grfx::Converter now represents a single conversion process.
729 Thus grfx::CachItem now has a grfx::Converter * that is set when the
730 conversion is initiated and destroyed on completion.
732 * GraphicsCache.[Ch]:
733 * GraphicsCacheItem.[Ch]:
734 * GraphicsConverter.[Ch]:
735 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
737 Note that I have done this only after making the above changes,
738 so not only should we have a clean, minimal and well documented
739 interface to these classes in the header files, but the class internals
740 should be much clearer too.
743 grfx::GCache -> grfx::Cache,
744 grfx::GCacheItem -> grfx::CacheItem,
745 grfx::GConverter -> grfx::Converter,
746 grfx::GImage -> grfx::Image,
747 grfx::GImageXPM -> grfx::ImageXPM,
748 grfx::GParams -> grfx::Params.
750 2002-06-26 Angus Leeming <leeming@lyx.org>
752 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
753 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
756 2002-06-26 Angus Leeming <leeming@lyx.org>
758 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
759 move the DisplayType enum out of grfx::GParams to here.
761 * GraphicsCacheItem.h: re-write preliminary description to reflect
764 * GraphicsParams.[Ch]:
765 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
766 grfx::DisplayType out of grfx::GParams.
768 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
769 that was in frontends/screen.C and insets/insetgraphics.C into a
770 single, easy-to-use class.
772 * Makefile.am: add these files.
774 2002-06-25 Angus Leeming <leeming@lyx.org>
776 * GraphicsCache.[Ch]:
777 * GraphicsCacheItem.[Ch]:
778 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
779 file into memory. The cache no longer controls the generation of the
780 pixmap. Instead, it just emits a signal when the loading status of an
782 The cache no longer stores InsetGraphics pointers and nor does it
783 assume responsibility for modifying an image (scaling, rotating etc).
784 Instead, that must now be performed elsewhere.
786 2002-06-19 Angus Leeming <leeming@lyx.org>
788 * GraphicsConverter.C: add using std::endl directive.
790 2002-06-17 Herbert Voss <voss@lyx.org>
792 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
793 default when nothing different was found
794 (convertToDisplayFormat): handle zipped files in the right way and
795 choose always convert as a default converter when no other
796 userdefined was found
798 * GraphicsConverter.C: add more lyxerr comments and choose
799 convert when no other userdefined converter was found
801 2002-06-10 Herbert Voss <voss@lyx.org>
803 * GraphicsImageXPM.C (convertTo7chars): get another special color
804 format from convert work in the right way
806 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
808 * GraphicsCache.C: use right colormap incantation
810 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
812 * GraphicsCache.C: use lyx_gui namespace
814 * GraphicsImageXPM.C: back down to using xforms
817 2002-06-07 Angus Leeming <leeming@lyx.org>
819 Fixes needed to compile with Compaq cxx 6.5.
820 * GraphicsConverter.h: forward declare class ConvProcess.
822 * GraphicsImageXPM.C:
823 all c-library variables have been moved into namespace std.
824 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
826 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
828 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
830 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
832 * GraphicsImageXPM.C: SigC to boot::signals changes.
833 (newImage): fix () bug when using new.
835 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
837 * switch from SigC signals to boost::signals.
839 2002-05-29 André Pönitz <poenitz@gmx.net>
841 * GraphicsParam.C: remove unneeded #include, move vomment
843 2002-05-28 André Pönitz <poenitz@gmx.net>
845 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
847 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
849 * GraphicsImageXPM.C: ColorHandler moved
851 2002-05-24 Juergen Vigna <jug@sad.it>
854 * GraphicsImage.h: include LString.h first.
856 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
858 * GraphicsCacheItem.h: use more specific smart_ptr header.
859 * GraphicsTypes.h: ditto
860 * GraphicsImage.h: ditto
861 * GraphicsConverter.h: ditto
863 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
865 * GraphicsImageXPM.C: understand convert's use of "opaque"
868 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
870 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
871 GImage::loadableFormats() that ensures that the signal is connected
872 to the derived class' method.
874 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
876 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
877 only work on the string.
879 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
881 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
882 the simple image loader when it encounters colour strings like
885 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
887 * GraphicsCacheItem.C (convertToDisplayFormat):
888 * GraphicsConverter.C (build_script): remove the Alerts when things go
889 wrong as the inset displays the message anyway. Moreover, Alert seems
890 pretty temperamemtal at the moment.
892 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
894 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
896 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
898 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
899 a reference to a temp object that's going out of scope...
901 2002-04-09 Herbert Voss <voss@lyx.org>
903 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
904 LyXLength::inBP instead of inPixels.
906 2002-04-10 Herbert Voss <voss@perce.de>
908 * GraphicsCache.[Ch]:
909 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
910 to read the "Bounding Box" from non (e)ps files.
912 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
914 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
915 the EPS file too, to ensure that the clipped Bounding Box is relative
916 to the original. (From Herbert.)
918 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
920 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
921 variables are initialised. Clean-up parsing of the string (with thanks
924 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
926 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
927 if the file can't be found.
929 * GraphicsParams.h (c-tor): remove string() as default argument.
931 * GraphicsCacheItem.C: a couple of changes as a result.
933 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
935 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
936 path to graphics file.
938 * GraphicsParams.[Ch] (c-tor): now passed filepath.
940 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
942 * most files: ws cleanup
944 * Makefile.am: remove ld -r stuff
946 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
948 * Makefile.am: special rules if partial linking
950 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
952 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
954 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
956 * GraphicsConverter.[Ch] (converted): make first arg const ref.
958 * GraphicsCacheItem.h: doxy change
960 * GraphicsCacheItem.C: ws change
962 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
964 * Makefile.am: if there is no image loading class leveraging the power
965 of the appropriate gui library, then compile the basic alternative
966 found in GraphicsImageXPM.[Ch].
968 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
970 * GraphicsCache.C: change associated with move of initialiseGraphics
973 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
975 * GraphicsParams.[Ch]:
977 * GraphicsImageXPM.C: properly resolve more warnings about comparison
978 between signed and unsigned integer expressions.
980 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
982 * GraphicsCache.C: move connections to the GImage-derived classes to
985 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
987 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
988 conversion, then do that.
990 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
992 * GraphicsCache.C: improve commentary to graphicsInit and where it
995 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
996 that became a memory leak properly. (Let the shared_c_ptr free the
998 (reset, mapcolor): tidy up and introduce a work around for XPM files
999 with crappy color entries. Print out a nice friendly message on what's
1000 gone wrong and how to resolve it properly.
1002 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
1004 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
1005 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
1006 in free_color_table.
1007 (unique_color_string): use the correct string c-tor.
1009 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
1012 * ImageLoaderXPM.[Ch]: removed.
1014 * GraphicsConverter.[Ch]:
1015 * GraphicsImage.[Ch]:
1016 * GraphicsImageXPM.[Ch]:
1017 * GraphicsParams.[Ch]:
1018 * GraphicsTypes.h: new files.
1020 * All files. A total re-write of the graphics cache. The cache now
1021 supports asynchronous file conversion and file loading. Images
1022 can be cropped, rotated and scaled for display on the LyX screen.
1023 The old LyXImage and ImageLoader have been combined in a new class
1024 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
1027 2002-02-07 Herbert Voss <voss@lyx.org>
1029 * GraphicsCacheItem.C: use unzipFile() from support/filetools
1031 2002-01-31 Herbert Voss <voss@lyx.org>
1033 * GraphicsCacheItem.h: handle filetype without the file extension;
1034 getting type from contents; handle zipped files
1036 2002-01-27 Herbert Voss <voss@lyx.org>
1038 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
1040 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
1042 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
1044 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
1046 * GraphicsCacheItem.h: do not include <config.h> in header files
1048 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
1050 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
1051 transparent colour, then set it to the colour of the background.
1052 Also take account of the monochrome, grayscale of color
1055 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
1057 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
1058 are different. Thus, don't delete the "to" if it's the original!
1060 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
1062 * ImageLoadXPM.C: remove setting of alloc colour mask,
1063 led to crash as we don't define a callback
1065 2001-07-29 Baruch Even <baruch@lyx.org>
1067 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
1068 colors with closeness of 10000.
1070 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
1072 2001-07-29 Baruch Even <baruch@lyx.org>
1074 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
1077 2001-07-23 Baruch Even <baruch@lyx.org>
1079 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
1080 the image after conversion.
1082 2001-07-17 Baruch Even <baruch@lyx.org>
1084 * GraphicsCacheItem.h:
1085 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
1086 from synchronous to asynchronous and to ease the coming changes.
1088 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1090 * ImageLoaderXPM.C (runImageLoader): get display information from
1093 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
1096 * GraphicsCacheItem.C:
1098 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
1100 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
1102 * GraphicsCache.h: inherit privately from noncopyable
1103 * ImageLoader.h: ditto
1104 * GraphicsCacheItem.h: ditto
1106 2001-04-16 Allan Rae <rae@lyx.org>
1108 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
1109 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
1112 2001-04-02 Baruch Even <baruch@lyx.org>
1114 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
1115 of hard coding ImageMagick.
1117 2001-03-10 Baruch Even <baruch@lyx.org>
1119 * GraphicsCache.C: Style change from (*it).field to it->field
1121 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1123 * GraphicsCache.h: noncopyable is in namespace boost
1124 * ImageLoader.h: ditto
1125 * GraphicsCacheItem.h: ditto
1127 2001-03-07 Baruch Even <baruch@lyx.org>
1129 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
1130 was false and it's not needed anyhow since the shared_ptr's in the cache
1131 will destroy everything on exit.
1133 2001-02-28 Baruch Even <baruch@ev-en.org>
1136 * GraphicsCache.C: Changed the singleton pattern implementation, the
1137 former version "leaked" in the sense that it was not deallocated at
1140 2001-02-20 Baruch Even <baruch@ev-en.org>
1142 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
1143 instead of a pure pointer.
1145 * GraphicsCacheItem.[Ch]:
1146 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
1147 removed the reference counting that was inside. Also fixed a bug where
1148 a temporary file wouldn't get erased.
1150 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
1151 Ownership is now dropped when the caller requests the image_ pointer.
1153 2001-02-20 Baruch Even <baruch@ev-en.org>
1155 * GraphicsCache.C: Cleared up the confusion on when and how it is
1158 * GraphicsCacheItem.C: Indentation change.
1160 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
1161 figure correctly when the image has been loaded successfully.
1163 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1165 * ImageLoader.C: add a "using" directive.
1167 * ImageLoader.h: remove extra comma at the end of enum; add an
1168 std:: qualifier for vector.
1170 2001-01-21 Baruch Even <baruch@ev-en.org>
1172 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
1173 height in the image itself and minor cleanups.
1175 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
1176 new ImageLoader class instead of the older Renderer class. This
1177 means change of responsibilities.