1 2002-07-12 John Levon <moz@compsoc.man.ac.uk>
3 * GraphicsCache.C: remove init_graphics()
5 2002-07-09 Angus Leeming <leeming@lyx.org>
7 * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
8 arithmetic when it should be floating.
10 2002-07-09 Angus Leeming <leeming@lyx.org>
12 * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
13 Output equation labels as "(#)" if lyxrc preference is set.
14 (setFontScalingFactor): use lyxrc variable preview_scale_factor
15 rather than hard-coding this.
17 2002-07-09 Angus Leeming <leeming@lyx.org>
19 * PreviewLoader.C: Further refactoring of the code. Should now be
22 * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
23 past its sell-by date. The code to read the metrics file is now found
24 as a helper function in PreviewLoader.C.
26 * GraphicsImageXPM.C (scale): use boost::tie.
28 2002-07-08 Herbert Voss <voss@lyx.org>
30 * PreviewLoader.C: use of preview_size_factor to get the right
31 font-size! 0.9 is the default.
33 2002-07-08 Angus Leeming <leeming@lyx.org>
35 * PreviewLoader.C: Add "delayed" and "showlabels" options to the
36 invocation of preview.sty.
37 Perform something of an internal clean-up.
39 2002-07-06 Angus Leeming <leeming@lyx.org>
41 * PreviewLoader.C: ensure that the metrics data is used by the
45 * PreviewImage.C: (Impl d-tor): remove all generated files that still
46 exist (perhaps because the process was curtailed before the images
49 * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
51 2002-07-05 Angus Leeming <leeming@lyx.org>
60 * Previews.C: new files. The previewed LaTeX snippet stuff.
62 * Makefile.am: add these files.
64 2002-07-05 Angus Leeming <leeming@lyx.org>
66 * GraphicsLoader.h: whitespace.
68 2002-07-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
70 * GraphicsImage.[Ch]: newImage and loadableFormats changed to
71 boost::function from boost::signal.
73 2002-07-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
75 * GraphicsConverter.C (convert): do not use ChangeExtension
76 because to_file_base may contain a dot.
78 2002-06-28 Angus Leeming <leeming@lyx.org>
80 * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
81 by moving those SignalPtrs into the grfx::Image and grfx::Converter
82 classes where they really belong.
83 Use the Pimpl idiom to hide the class internals from public view.
85 * GraphicsTypes: remove the typedefs, leaving only the enums.
87 * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
88 passed a reference to one in the load() method.
90 * GraphicsConverter.[Ch]: totally refactored. An instance of
91 grfx::Converter now represents a single conversion process.
92 Thus grfx::CachItem now has a grfx::Converter * that is set when the
93 conversion is initiated and destroyed on completion.
96 * GraphicsCacheItem.[Ch]:
97 * GraphicsConverter.[Ch]:
98 * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
100 Note that I have done this only after making the above changes,
101 so not only should we have a clean, minimal and well documented
102 interface to these classes in the header files, but the class internals
103 should be much clearer too.
106 grfx::GCache -> grfx::Cache,
107 grfx::GCacheItem -> grfx::CacheItem,
108 grfx::GConverter -> grfx::Converter,
109 grfx::GImage -> grfx::Image,
110 grfx::GImageXPM -> grfx::ImageXPM,
111 grfx::GParams -> grfx::Params.
113 2002-06-26 Angus Leeming <leeming@lyx.org>
115 * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
116 std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
119 2002-06-26 Angus Leeming <leeming@lyx.org>
121 * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
122 move the DisplayType enum out of grfx::GParams to here.
124 * GraphicsCacheItem.h: re-write preliminary description to reflect
127 * GraphicsParams.[Ch]:
128 * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
129 grfx::DisplayType out of grfx::GParams.
131 * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
132 that was in frontends/screen.C and insets/insetgraphics.C into a
133 single, easy-to-use class.
135 * Makefile.am: add these files.
137 2002-06-25 Angus Leeming <leeming@lyx.org>
139 * GraphicsCache.[Ch]:
140 * GraphicsCacheItem.[Ch]:
141 * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
142 file into memory. The cache no longer controls the generation of the
143 pixmap. Instead, it just emits a signal when the loading status of an
145 The cache no longer stores InsetGraphics pointers and nor does it
146 assume responsibility for modifying an image (scaling, rotating etc).
147 Instead, that must now be performed elsewhere.
149 2002-06-19 Angus Leeming <leeming@lyx.org>
151 * GraphicsConverter.C: add using std::endl directive.
153 2002-06-17 Herbert Voss <voss@lyx.org>
155 * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
156 default when nothing different was found
157 (convertToDisplayFormat): handle zipped files in the right way and
158 choose always convert as a default converter when no other
159 userdefined was found
161 * GraphicsConverter.C: add more lyxerr comments and choose
162 convert when no other userdefined converter was found
164 2002-06-10 Herbert Voss <voss@lyx.org>
166 * GraphicsImageXPM.C (convertTo7chars): get another special color
167 format from convert work in the right way
169 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
171 * GraphicsCache.C: use right colormap incantation
173 2002-06-12 John Levon <moz@compsoc.man.ac.uk>
175 * GraphicsCache.C: use lyx_gui namespace
177 * GraphicsImageXPM.C: back down to using xforms
180 2002-06-07 Angus Leeming <leeming@lyx.org>
182 Fixes needed to compile with Compaq cxx 6.5.
183 * GraphicsConverter.h: forward declare class ConvProcess.
185 * GraphicsImageXPM.C:
186 all c-library variables have been moved into namespace std.
187 Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
189 2002-06-06 Angus Leeming <a.leeming@ic.ac.uk>
191 * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
193 2002-05-30 Lars Gullik Bjønnes <larsbj@birdstep.com>
195 * GraphicsImageXPM.C: SigC to boot::signals changes.
196 (newImage): fix () bug when using new.
198 2002-05-29 Lars Gullik Bjønnes <larsbj@birdstep.com>
200 * switch from SigC signals to boost::signals.
202 2002-05-29 André Pönitz <poenitz@gmx.net>
204 * GraphicsParam.C: remove unneeded #include, move vomment
206 2002-05-28 André Pönitz <poenitz@gmx.net>
208 * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
210 2002-05-24 John Levon <moz@compsoc.man.ac.uk>
212 * GraphicsImageXPM.C: ColorHandler moved
214 2002-05-24 Juergen Vigna <jug@sad.it>
217 * GraphicsImage.h: include LString.h first.
219 2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
221 * GraphicsCacheItem.h: use more specific smart_ptr header.
222 * GraphicsTypes.h: ditto
223 * GraphicsImage.h: ditto
224 * GraphicsConverter.h: ditto
226 2002-04-28 John Levon <moz@compsoc.man.ac.uk>
228 * GraphicsImageXPM.C: understand convert's use of "opaque"
231 2002-04-19 Marco Morandini <morandini@aero.polimi.it>
233 * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
234 GImage::loadableFormats() that ensures that the signal is connected
235 to the derived class' method.
237 2002-04-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
239 * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
240 only work on the string.
242 2002-04-17 Angus Leeming <a.leeming@ic.ac.uk>
244 * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
245 the simple image loader when it encounters colour strings like
248 2002-04-16 Angus Leeming <a.leeming@ic.ac.uk>
250 * GraphicsCacheItem.C (convertToDisplayFormat):
251 * GraphicsConverter.C (build_script): remove the Alerts when things go
252 wrong as the inset displays the message anyway. Moreover, Alert seems
253 pretty temperamemtal at the moment.
255 2002-04-16 Rob Lahaye <lahaye@users.sourceforge.net>
256 * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
258 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
260 * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
261 a reference to a temp object that's going out of scope...
263 2002-04-09 Herbert Voss <voss@lyx.org>
265 * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
266 LyXLength::inBP instead of inPixels.
268 2002-04-10 Herbert Voss <voss@perce.de>
270 * GraphicsCache.[Ch]:
271 * GraphicsCacheItem.[Ch]: add width/height functions from Angus
272 to read the "Bounding Box" from non (e)ps files.
274 2002-04-08 Angus Leeming <a.leeming@ic.ac.uk>
276 * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
277 the EPS file too, to ensure that the clipped Bounding Box is relative
278 to the original. (From Herbert.)
280 2002-04-04 Angus Leeming <a.leeming@ic.ac.uk>
282 * GraphicsParams.C (BoundingBox c-tor): ensure that the member
283 variables are initialised. Clean-up parsing of the string (with thanks
286 2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
288 * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
289 if the file can't be found.
291 * GraphicsParams.h (c-tor): remove string() as default argument.
293 * GraphicsCacheItem.C: a couple of changes as a result.
295 2002-03-22 Angus Leeming <a.leeming@ic.ac.uk>
297 * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
298 path to graphics file.
300 * GraphicsParams.[Ch] (c-tor): now passed filepath.
302 2002-03-21 Lars Gullik Bjønnes <larsbj@birdstep.com>
304 * most files: ws cleanup
306 * Makefile.am: remove ld -r stuff
308 2002-03-20 Lars Gullik Bjønnes <larsbj@birdstep.com>
310 * Makefile.am: special rules if partial linking
312 2002-03-14 Angus Leeming <a.leeming@ic.ac.uk>
314 * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
316 2002-03-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
318 * GraphicsConverter.[Ch] (converted): make first arg const ref.
320 * GraphicsCacheItem.h: doxy change
322 * GraphicsCacheItem.C: ws change
324 2002-03-05 Angus Leeming <a.leeming@ic.ac.uk>
326 * Makefile.am: if there is no image loading class leveraging the power
327 of the appropriate gui library, then compile the basic alternative
328 found in GraphicsImageXPM.[Ch].
330 2002-03-04 Angus Leeming <a.leeming@ic.ac.uk>
332 * GraphicsCache.C: change associated with move of initialiseGraphics
335 2002-02-28 Angus Leeming <a.leeming@ic.ac.uk>
337 * GraphicsParams.[Ch]:
339 * GraphicsImageXPM.C: properly resolve more warnings about comparison
340 between signed and unsigned integer expressions.
342 * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
344 * GraphicsCache.C: move connections to the GImage-derived classes to
347 * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
349 * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
350 conversion, then do that.
352 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
354 * GraphicsCache.C: improve commentary to graphicsInit and where it
357 * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
358 that became a memory leak properly. (Let the shared_c_ptr free the
360 (reset, mapcolor): tidy up and introduce a work around for XPM files
361 with crappy color entries. Print out a nice friendly message on what's
362 gone wrong and how to resolve it properly.
364 2002-02-27 Angus Leeming <a.leeming@ic.ac.uk>
366 * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
367 (Data d-tor): introduce memory leak temporarily, to "fix" a crash
369 (unique_color_string): use the correct string c-tor.
371 2002-02-15 Angus Leeming <a.leeming@ic.ac.uk>
374 * ImageLoaderXPM.[Ch]: removed.
376 * GraphicsConverter.[Ch]:
377 * GraphicsImage.[Ch]:
378 * GraphicsImageXPM.[Ch]:
379 * GraphicsParams.[Ch]:
380 * GraphicsTypes.h: new files.
382 * All files. A total re-write of the graphics cache. The cache now
383 supports asynchronous file conversion and file loading. Images
384 can be cropped, rotated and scaled for display on the LyX screen.
385 The old LyXImage and ImageLoader have been combined in a new class
386 GImage. Ditto, ImageLoaderXPM's functionality has been moved into
389 2002-02-07 Herbert Voss <voss@lyx.org>
391 * GraphicsCacheItem.C: use unzipFile() from support/filetools
393 2002-01-31 Herbert Voss <voss@lyx.org>
395 * GraphicsCacheItem.h: handle filetype without the file extension;
396 getting type from contents; handle zipped files
398 2002-01-27 Herbert Voss <voss@lyx.org>
400 * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
402 2002-01-17 John Levon <moz@compsoc.man.ac.uk>
404 * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
406 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
408 * GraphicsCacheItem.h: do not include <config.h> in header files
410 2001-09-21 Angus Leeming <a.leeming@ic.ac.uk>
412 * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
413 transparent colour, then set it to the colour of the background.
414 Also take account of the monochrome, grayscale of color
417 2001-09-20 Angus Leeming <a.leeming@ic.ac.uk>
419 * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
420 are different. Thus, don't delete the "to" if it's the original!
422 2001-09-01 John Levon <moz@compsoc.man.ac.uk>
424 * ImageLoadXPM.C: remove setting of alloc colour mask,
425 led to crash as we don't define a callback
427 2001-07-29 Baruch Even <baruch@lyx.org>
429 * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
430 colors with closeness of 10000.
432 * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
434 2001-07-29 Baruch Even <baruch@lyx.org>
436 * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
439 2001-07-23 Baruch Even <baruch@lyx.org>
441 * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
442 the image after conversion.
444 2001-07-17 Baruch Even <baruch@lyx.org>
446 * GraphicsCacheItem.h:
447 * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
448 from synchronous to asynchronous and to ease the coming changes.
450 2001-07-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
452 * ImageLoaderXPM.C (runImageLoader): get display information from
455 2001-06-14 Angus Leeming <a.leeming@ic.ac.uk>
458 * GraphicsCacheItem.C:
460 * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
462 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
464 * GraphicsCache.h: inherit privately from noncopyable
465 * ImageLoader.h: ditto
466 * GraphicsCacheItem.h: ditto
468 2001-04-16 Allan Rae <rae@lyx.org>
470 * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
471 CC 6.0 as an unrecognised preprocessor directive. So ensure they're
474 2001-04-02 Baruch Even <baruch@lyx.org>
476 * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
477 of hard coding ImageMagick.
479 2001-03-10 Baruch Even <baruch@lyx.org>
481 * GraphicsCache.C: Style change from (*it).field to it->field
483 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
485 * GraphicsCache.h: noncopyable is in namespace boost
486 * ImageLoader.h: ditto
487 * GraphicsCacheItem.h: ditto
489 2001-03-07 Baruch Even <baruch@lyx.org>
491 * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
492 was false and it's not needed anyhow since the shared_ptr's in the cache
493 will destroy everything on exit.
495 2001-02-28 Baruch Even <baruch@ev-en.org>
498 * GraphicsCache.C: Changed the singleton pattern implementation, the
499 former version "leaked" in the sense that it was not deallocated at
502 2001-02-20 Baruch Even <baruch@ev-en.org>
504 * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
505 instead of a pure pointer.
507 * GraphicsCacheItem.[Ch]:
508 * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
509 removed the reference counting that was inside. Also fixed a bug where
510 a temporary file wouldn't get erased.
512 * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
513 Ownership is now dropped when the caller requests the image_ pointer.
515 2001-02-20 Baruch Even <baruch@ev-en.org>
517 * GraphicsCache.C: Cleared up the confusion on when and how it is
520 * GraphicsCacheItem.C: Indentation change.
522 * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
523 figure correctly when the image has been loaded successfully.
525 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
527 * ImageLoader.C: add a "using" directive.
529 * ImageLoader.h: remove extra comma at the end of enum; add an
530 std:: qualifier for vector.
532 2001-01-21 Baruch Even <baruch@ev-en.org>
534 * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
535 height in the image itself and minor cleanups.
537 * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
538 new ImageLoader class instead of the older Renderer class. This
539 means change of responsibilities.