+2003-05-22 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): no longer pass a free_spacing arg to
+ the inset::latex method.
+
+2003-05-22 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): no longer pass a fragile arg to
+ the inset::latex method.
+
+2003-05-22 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): the 'nice' param passed to
+ makeLaTeXFile is now encapsulated within runparams.
+
+2003-05-22 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble):
+ pass around a LatexRunParams parameter.
+
+2003-05-13 André Pönitz <poenitz@gmx.net>
+
+ * GraphicsConverter.C:
+ * PreviewLoader.C: use tostr from own header
+
+2003-05-12 André Pönitz <poenitz@gmx.net>
+
+ * PreviewLoader.C: boost::format -> bformat
+
+2003-04-15 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsConverter.C: #include lstrings.h.
+
+2003-02-28 Alfredo Braunstein <abraunst@libero.it>
+
+ * GraphicsConverter.C
+ * PreviewLoader.C: added #include "format.h"
+
+2003-02-26 Angus Leeming <leeming@lyx.org>
+
+ * PreviewedInset.[Ch]: strip out the caching of the BufferView and
+ use the cache of the parent inset instead.
+
+ * PreviewLoader.C (startLoading): Prevent a crash if the user is
+ not using a tmp directory.
+
+2003-02-26 Alfredo Braunstein <abraunst@libero.it>
+
+ * GraphicsLoader.[Ch],
+ * PreviewImage.[Ch],
+ * PreviewedInset.C: Removed unneeded list of owner insets
+
+2003-02-25 Alfredo Braunstein <abraunst@libero.it>
+
+ * GraphicsConverter (startConversion): add the call to
+ ForkedCallQueue::add
+
+ * GraphicsLoader.[Ch],
+ * PreviewImage.[Ch],
+ * PreviewedInset.C: Removed unneeded BufferView
+
+2003-02-25 Alfredo Braunstein <abraunst@libero.it>
+
+ * LoaderQueue.[Ch]: a simplification of the code, eliminated
+ the unneeded input bucket.
+
+ * GraphicsCacheItem.C (imageConverted): move warning inside the
+ !success block.
+
+2003-02-25 Alfredo Braunstein <abraunst@libero.it>
+
+ * PreviewLoader.C (FindFirst): use ==, not < with std::find.
+
+2003-02-21 Alfredo Braunstein <abraunst@libero.it>
+
+ * LoaderQueue.[Ch] (setPriority): added
+
+ * PreviewLoader.C (finishedGenerating): reversed the loading order so
+ first images get 'touched' last, and so load first.
+
+2003-02-20 Alfredo Braunstein <abraunst@libero.it>
+
+ * LoaderQueue.[Ch]: added. Implements a service queue that loads
+ images in background
+ * GraphicsSupport.[Ch]: removed
+ * Makefile.am: the changes above
+ * GraphicsLoader.C: use the loading queue
+
+2003-01-21 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): ensure that \lyxlock does not prevent
+ previews from being generated.
+
+2003-01-13 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsCacheItem.C (findTargetFormat): define the default conversion
+ format to be PPM not XPM.
+
+2002-12-17 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * Makefile.am (EXTRA_DIST): remove variable
+
+2002-12-13 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsImageXPM.[Ch]: removed.
+
+ * Makefile.am: associated change.
+
+2002-12-01 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * several files: ws changes
+
+2002-11-21 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsConverter.C (build_script, move_file):
+ Don't use "if [ $? -ne 0 ]; then..."
+
+2002-11-04 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * PreviewLoader.C (IncrementedFileName): STRCONV
+ (startLoading): ditto
+
+ * GraphicsConverter.C (Impl): STRCONV
+ (move_file): ditto
+
+ * GraphicsTypes.C: include config.h
+
+2002-10-25 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsConverter.C (Impl::converted)
+ * PreviewLoader.C (Impl::finishedGenerating): no longer receives a
+ string as first arg, reflecting change in ForkedCall interface.
+
+ * PreviewLoader.C: use pid rather than command as identifier in
+ InProgress map.
+
+2002-10-18 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsCacheItem.C (findTargetFormat): add debug message.
+
+2002-09-24 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * Makefile.am (INCLUDES): loose SIGC_INCLUDES
+
+2002-09-10 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * GraphicsConverter.C (build_script): do not use ChangeExtension
+ on a base name
+ (Impl): ditto
+
+2002-09-05 Angus Leeming <leeming@lyx.org>
+
+ * all files: modify the headers as discussed on the list.
+
+2002-09-04 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (startLoading): pass the desired output format to the
+ conversion script.
+
+2002-09-04 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: remove this ndigits stuff as an unnecessary extra.
+
+2002-09-03 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: fix crash reported by Norbert Koksch when
+ generating more than 999 preview snippets. Use filenames with 5 digit
+ numbers, not 3, in the first instance, although more general code is
+ commented out. I don't suppose /anyone/ has 100000 formulae in one
+ document...
+
+2002-09-03 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: activate #ifdef USING_NEW_PREVIEW_STY code.
+
+2002-09-03 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsConverter.C (Impl c-tor): remove lyxpreview2xpm cruft.
+
+2002-09-03 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * GraphicsConverter.C (Impl c-tor): "hide" crash by prefixing
+ convertDefault command with "sh ".
+
+2002-08-28 Rob Lahaye <lahaye@snu.ac.kr>
+
+ * GraphicsImage.C: small style fix to width/height setting.
+
+ * GraphicsTypes.h: have a displayTranslator here.
+
+ * Makefile.am:
+ * GraphicsTypes.C: new file added for the setDisplayTranslator();
+
+2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
+
+ * GraphicsImage.C:
+ * GraphicsParams.[Ch]: remove keepLyXAspectRatio, width and height
+ because this input has gone from the graphics dialog.
+
+ * GraphicsTypes.h: add enum DisplayType DefaultDisplay
+
+2002-08-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
+
+ * GraphicsImageXPM.h: inlcude boost/shared_ptr.hpp, remove include
+ for support/smart_ptr.h, switch to boost smart ptr.
+
+ * GraphicsImageXPM.C: reorder includes, include boost/bind.hpp
+ (~Data): let the smart_ptr handle cleanup
+ (reset): use nifty 3rd arg
+ (resetData): ditto
+ (free_color_table): free the table manually
+
+2002-08-09 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
+ Buffer::makeLaTeXFile() so that LaTeX can find \input files because
+ input@path is now set correctly.
+
+2002-08-06 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: add support for preview.sty 0.73 (currently
+ #ifdef-ed out, awaiting the formal release).
+
+ * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
+ the contents of a file that has changed.
+
+2002-08-05 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
+ to preview.sty. Works only for versions of preview.sty > 0.72b but
+ doesn't hurt earlier versions. Allows me to test the new parsing of
+ LyX-specific data from the generated log file.
+
+2002-08-02 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsLoader.C: cache the BufferView as a weak_ptr.
+
+ * PreviewLoader.[Ch] (buffer): new method, returning the owner.
+ (add): don't add empty snippets.
+
+ * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
+ (view, setView): access to to the cache_.
+
+2002-08-02 Angus Leeming <leeming@lyx.org>
+
+ * PreviewedInset.[Ch]: cache the LaTeX snippet.
+
+2002-08-01 Angus Leeming <leeming@lyx.org>
+
+ * PreviewedInset.[Ch]: new files. An abstract base class that can help
+ insets to generate previews.
+ The daughter class must instantiate three small methods.
+ The Inset would own an instance of this daughter class and invoke it
+ as necessary. For example, mathd/formula.C gets previews at the cost
+ of 15 or so lines of code.
+
+ * Makefile.am: add PreviewedInset.[Ch].
+
+ * PreviewLoader.C (add): add debug message.
+
+ * Previews.C (generateBufferPreviews): remove if-block from loop.
+
+2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
+ trim,ltrim,rtrim
+ (setAscentFractions): ditto
+
+2002-07-28 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * PreviewLoader.C (setAscentFractions): modify because of strip
+ changes
+
+2002-07-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
+
+ * GraphicsConverter.C (build_script): take a ostream as a more
+ general argument than ostringstream.
+
+2002-07-22 Herbert Voss <voss@lyx.org>
+
+ * GraphicsConverter.C: get the "default converter" run again
+
+2002-07-21 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * PreviewLoader.C: use BufferParams::getLyXTextClass
+
+2002-07-21 Herbert Voss <voss@lyx.org>
+
+ * GraphicsImage.C: get the LyXAspectRatio run.
+
+ * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
+
+2002-07-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * PreviewLoader.C (startLoading): pass an interger as resolution
+ to the lyxpreview converter
+
+ * GraphicsParams.C: include <cstdlib>
+
+2002-07-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * PreviewLoader.C (startLoading): use LibScriptSearch to find the
+ preview converter script
+
+2002-07-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * GraphicsCacheItem.C (reset): use erase() instead of clear() for
+ strings
+
+2002-07-18 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
+ class.
+ (startMonitoring, monitoring, checksum): new methods to interact with
+ the FileMonitor.
+
+ * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
+ methods invoking the CacheItem methods of the same name.
+ (resetFile): if monitoring and the file changes, start monitoring this
+ new file.
+
+2002-07-17 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * Makefile.am: remove FileMonitor.[Ch]
+
+2002-06-17 Herbert Voss <voss@lyx.org>
+
+ * GraphicsCachItem.C (findTargetFormat): remove the speciell case
+ for old ps-files (Garst). It's now handled by defining a converter and
+ disabling the ps-support of xforms.
+
+2002-07-17 Angus Leeming <leeming@lyx.org>
+
+ Be true to the Pimpl idiom, moving all signals into the respective
+ Impl classes and defining methods to connect them to an outside slot.
+ Const-ify all visible class methods as they act only on a const pimpl_.
+
+ * GraphicsCache.[Ch] (add, remove): const-ify.
+
+ * GraphicsCacheItem.[Ch] (startLoading): const-ify.
+ (statusChanged): move the signal into the Impl class.
+ (connect): new method, enabling a listener to connect to this signal.
+
+ * GraphicsConverter.[Ch]: (startConversion): const-ify.
+ (finishedConversion): move the signal into the Impl class.
+ (connect): new method, enabling a listener to connect to this signal.
+
+ * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
+ (statusChanged): move the signal into the Impl class.
+ (connect): new method, enabling a listener to connect to this signal.
+
+ * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
+ (imageReady): move the signal into the Impl class.
+ (connect): new method, enabling a listener to connect to this signal.
+ (emitSignal): new method, enabling PreviewImage to tell the outside
+ world that the file has been loaded into memory.
+
+ * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
+ const-ify.
+
+ * GraphicsCache.C:
+ * GraphicsCacheItem.C:
+ * GraphicsConverter.[Ch]:
+ * GraphicsImage.h:
+ * GraphicsImageXPM.C:
+ * GraphicsLoader.C:
+ * PreviewLoader.[Ch]: whitespace clean-up.
+
+2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * PreviewLoader.C (setConverter): remove unused variable
+
+ * GraphicsImageXPM.C (isDrawable): implement
+ (setPixmap): the opaque color is black, not white
+
+2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * GraphicsImageXPM.C (color_none_id):
+ (contains_color_none): use ascii_lowercase instead of lowercase
+
+2002-07-16 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: greater use of STL algorithms.
+
+ * Previews.[Ch]: use const in more places.
+ (generateBufferPreviews): now takes a Buffer const & argument, not a
+ pointer.
+
+2002-07-15 John Levon <moz@compsoc.man.ac.uk>
+
+ * GraphicsImage.h: remove getPixmap/X, add isDrawable()
+
+2002-07-12 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
+ if visible 2 secs after the call to load them is first made.
+
+ * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
+ BufferView to ascertain whether the inset is visible or not.
+
+ * Makefile.am: added GraphicsSupport.[Ch].
+
+ * PreviewImage.[Ch]: use this smart loader.
+
+ * PreviewLoader.C: don't load generated image files indiscimminantly.
+ Instead emit the imageReady signal and allow the image owner to decide.
+
+2002-07-12 John Levon <moz@compsoc.man.ac.uk>
+
+ * GraphicsCache.C: remove init_graphics()
+
+2002-07-09 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
+ arithmetic when it should be floating.
+
+2002-07-09 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
+ Output equation labels as "(#)" if lyxrc preference is set.
+ (setFontScalingFactor): use lyxrc variable preview_scale_factor
+ rather than hard-coding this.
+
+2002-07-09 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: Further refactoring of the code. Should now be
+ pretty clean.
+
+ * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
+ past its sell-by date. The code to read the metrics file is now found
+ as a helper function in PreviewLoader.C.
+
+ * GraphicsImageXPM.C (scale): use boost::tie.
+
+2002-07-08 Herbert Voss <voss@lyx.org>
+
+ * PreviewLoader.C: use of preview_size_factor to get the right
+ font-size! 0.9 is the default.
+
+2002-07-08 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: Add "delayed" and "showlabels" options to the
+ invocation of preview.sty.
+ Perform something of an internal clean-up.
+
+2002-07-06 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C: ensure that the metrics data is used by the
+ correct image!
+
+ * PreviewLoader.C:
+ * PreviewImage.C: (Impl d-tor): remove all generated files that still
+ exist (perhaps because the process was curtailed before the images
+ were loaded.)
+
+ * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
+
+2002-07-05 Angus Leeming <leeming@lyx.org>
+
+ * PreviewImage.h:
+ * PreviewImage.C:
+ * PreviewLoader.h:
+ * PreviewLoader.C:
+ * PreviewMetrics.h:
+ * PreviewMetrics.C:
+ * Previews.h:
+ * Previews.C: new files. The previewed LaTeX snippet stuff.
+
+ * Makefile.am: add these files.
+
+2002-07-05 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsLoader.h: whitespace.
+
+2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
+
+ * GraphicsImage.[Ch]: newImage and loadableFormats changed to
+ boost::function from boost::signal.
+
+2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * GraphicsConverter.C (convert): do not use ChangeExtension
+ because to_file_base may contain a dot.
+
+2002-06-28 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
+ by moving those SignalPtrs into the grfx::Image and grfx::Converter
+ classes where they really belong.
+ Use the Pimpl idiom to hide the class internals from public view.
+
+ * GraphicsTypes: remove the typedefs, leaving only the enums.
+
+ * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
+ passed a reference to one in the load() method.
+
+ * GraphicsConverter.[Ch]: totally refactored. An instance of
+ grfx::Converter now represents a single conversion process.
+ Thus grfx::CachItem now has a grfx::Converter * that is set when the
+ conversion is initiated and destroyed on completion.
+
+ * GraphicsCache.[Ch]:
+ * GraphicsCacheItem.[Ch]:
+ * GraphicsConverter.[Ch]:
+ * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
+ from public view.
+ Note that I have done this only after making the above changes,
+ so not only should we have a clean, minimal and well documented
+ interface to these classes in the header files, but the class internals
+ should be much clearer too.
+
+ * Renamed classes
+ grfx::GCache -> grfx::Cache,
+ grfx::GCacheItem -> grfx::CacheItem,
+ grfx::GConverter -> grfx::Converter,
+ grfx::GImage -> grfx::Image,
+ grfx::GImageXPM -> grfx::ImageXPM,
+ grfx::GParams -> grfx::Params.
+
+2002-06-26 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
+ std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
+ compiles.
+
+2002-06-26 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
+ move the DisplayType enum out of grfx::GParams to here.
+
+ * GraphicsCacheItem.h: re-write preliminary description to reflect
+ current reality.
+
+ * GraphicsParams.[Ch]:
+ * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
+ grfx::DisplayType out of grfx::GParams.
+
+ * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
+ that was in frontends/screen.C and insets/insetgraphics.C into a
+ single, easy-to-use class.
+
+ * Makefile.am: add these files.
+
+2002-06-25 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsCache.[Ch]:
+ * GraphicsCacheItem.[Ch]:
+ * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
+ file into memory. The cache no longer controls the generation of the
+ pixmap. Instead, it just emits a signal when the loading status of an
+ image changes.
+ The cache no longer stores InsetGraphics pointers and nor does it
+ assume responsibility for modifying an image (scaling, rotating etc).
+ Instead, that must now be performed elsewhere.
+
2002-06-19 Angus Leeming <leeming@lyx.org>
* GraphicsConverter.C: add using std::endl directive.
2002-06-17 Herbert Voss <voss@lyx.org>
- * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
+ * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
default when nothing different was found
- (convertToDisplayFormat): handle zipped files in the right way and
- choose always convert as a default converter when no other
+ (convertToDisplayFormat): handle zipped files in the right way and
+ choose always convert as a default converter when no other
userdefined was found
-
+
* GraphicsConverter.C: add more lyxerr comments and choose
convert when no other userdefined converter was found
-
+
2002-06-10 Herbert Voss <voss@lyx.org>
* GraphicsImageXPM.C (convertTo7chars): get another special color
2002-06-12 John Levon <moz@compsoc.man.ac.uk>
* GraphicsCache.C: use right colormap incantation
-
+
2002-06-12 John Levon <moz@compsoc.man.ac.uk>
* GraphicsCache.C: use lyx_gui namespace
* GraphicsImageXPM.C: back down to using xforms
directly again
-
+
2002-06-07 Angus Leeming <leeming@lyx.org>
Fixes needed to compile with Compaq cxx 6.5.
* GraphicsConverter.h: forward declare class ConvProcess.
- * GraphicsImageXPM.C:
+ * GraphicsImageXPM.C:
all c-library variables have been moved into namespace std.
Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
pretty temperamemtal at the moment.
2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
+
* GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>