]> git.lyx.org Git - lyx.git/blob - src/graphics/ChangeLog
LaTeX can now find \input insets where the file has a relative path.
[lyx.git] / src / graphics / ChangeLog
1 2002-08-09  Angus Leeming  <leeming@lyx.org>
2
3         * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
4         Buffer::makeLaTeXFile() so that LaTeX can find \input files because
5         input@path is now set correctly.
6
7 2002-08-06  Angus Leeming  <leeming@lyx.org>
8
9         * PreviewLoader.C: add support for preview.sty 0.73 (currently
10         #ifdef-ed out, awaiting the formal release).
11
12         * PreviewedInset.[Ch] (removePreview): new method. Useful if previewing
13         the contents of a file that has changed.
14
15 2002-08-05  Angus Leeming  <leeming@lyx.org>
16
17         * PreviewLoader.C (dumpPreamble): add lyx to the list of options output
18         to preview.sty. Works only for versions of preview.sty > 0.72b but
19         doesn't hurt earlier versions. Allows me to test the new parsing of
20         LyX-specific data from the generated log file.
21
22 2002-08-02  Angus Leeming  <leeming@lyx.org>
23
24         * GraphicsLoader.C: cache the BufferView as a weak_ptr.
25
26         * PreviewLoader.[Ch] (buffer): new method, returning the owner.
27         (add): don't add empty snippets.
28
29         * PreviewedInset.[Ch]: cache the BufferView as a weak_ptr.
30         (view, setView): access to to the cache_.
31
32 2002-08-02  Angus Leeming  <leeming@lyx.org>
33
34         * PreviewedInset.[Ch]: cache the LaTeX snippet.
35
36 2002-08-01  Angus Leeming  <leeming@lyx.org>
37
38         * PreviewedInset.[Ch]: new files. An abstract base class that can help
39         insets to generate previews.
40         The daughter class must instantiate three small methods.
41         The Inset would own an instance of this daughter class and invoke it
42         as necessary. For example, mathd/formula.C gets previews at the cost
43         of 15 or so lines of code.
44
45         * Makefile.am: add PreviewedInset.[Ch].
46
47         * PreviewLoader.C (add): add debug message.
48
49         * Previews.C (generateBufferPreviews): remove if-block from loop.
50
51 2002-07-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
52
53         * PreviewLoader.C (setFontScalingFactor): strip,frontStrip ->
54         trim,ltrim,rtrim
55         (setAscentFractions): ditto
56
57 2002-07-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
58
59         * PreviewLoader.C (setAscentFractions): modify because of strip
60         changes
61
62 2002-07-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
63
64         * GraphicsConverter.C (build_script): take a ostream as a more
65         general argument than ostringstream.
66
67 2002-07-22  Herbert Voss  <voss@lyx.org>
68
69         * GraphicsConverter.C: get the "default converter" run again
70
71 2002-07-21  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
72
73         * PreviewLoader.C: use BufferParams::getLyXTextClass
74
75 2002-07-21  Herbert Voss  <voss@lyx.org>
76
77         * GraphicsImage.C: get the LyXAspectRatio run.
78
79         * GraphicsParams.[Ch]: add bool keepLyXXAspectRatio
80
81 2002-07-20  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
82
83         * PreviewLoader.C (startLoading): pass an interger as resolution
84         to the lyxpreview converter
85
86         * GraphicsParams.C: include <cstdlib>
87
88 2002-07-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
89
90         * PreviewLoader.C (startLoading): use LibScriptSearch to find the
91         preview converter script
92
93 2002-07-18  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
94
95         * GraphicsCacheItem.C (reset): use erase() instead of clear() for
96         strings
97
98 2002-07-18  Angus Leeming  <leeming@lyx.org>
99
100         * GraphicsCacheItem.[Ch]: add a FileMonitor variable to the the Impl
101         class.
102         (startMonitoring, monitoring, checksum): new methods to interact with
103         the FileMonitor.
104
105         * GraphicsLoader.[Ch] (startMonitoring, monitoring, checksum): new
106         methods invoking the CacheItem methods of the same name.
107         (resetFile): if monitoring and the file changes, start monitoring this
108         new file.
109
110 2002-07-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
111
112         * Makefile.am: remove FileMonitor.[Ch]
113
114 2002-06-17  Herbert Voss  <voss@lyx.org>
115
116         * GraphicsCachItem.C (findTargetFormat): remove the speciell case
117         for old ps-files (Garst). It's now handled by defining a converter and
118         disabling the ps-support of xforms.
119
120 2002-07-17  Angus Leeming  <leeming@lyx.org>
121
122         Be true to the Pimpl idiom, moving all signals into the respective
123         Impl classes and defining methods to connect them to an outside slot.
124         Const-ify all visible class methods as they act only on a const pimpl_.
125
126         * GraphicsCache.[Ch] (add, remove): const-ify.
127
128         * GraphicsCacheItem.[Ch] (startLoading): const-ify.
129         (statusChanged): move the signal into the Impl class.
130         (connect): new method, enabling a listener to connect to this signal.
131
132         * GraphicsConverter.[Ch]: (startConversion): const-ify.
133         (finishedConversion): move the signal into the Impl class.
134         (connect): new method, enabling a listener to connect to this signal.
135
136         * GraphicsLoader.[Ch] (reset, startLoading): const-ify.
137         (statusChanged): move the signal into the Impl class.
138         (connect): new method, enabling a listener to connect to this signal.
139
140         * PreviewLoader.[Ch] (add, remove, startLoading): const-ify.
141         (imageReady): move the signal into the Impl class.
142         (connect): new method, enabling a listener to connect to this signal.
143         (emitSignal): new method, enabling PreviewImage to tell the outside
144         world that the file has been loaded into memory.
145
146         * Previews.[Ch] (loader, removeLoader, generateBufferPreviews):
147         const-ify.
148
149         * GraphicsCache.C:
150         * GraphicsCacheItem.C:
151         * GraphicsConverter.[Ch]:
152         * GraphicsImage.h:
153         * GraphicsImageXPM.C:
154         * GraphicsLoader.C:
155         * PreviewLoader.[Ch]: whitespace clean-up.
156
157 2002-07-16  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
158
159         * PreviewLoader.C (setConverter): remove unused variable
160
161         * GraphicsImageXPM.C (isDrawable): implement
162         (setPixmap): the opaque color is black, not white
163
164 2002-07-15  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
165
166         * GraphicsImageXPM.C (color_none_id):
167         (contains_color_none): use ascii_lowercase instead of lowercase
168
169 2002-07-16  Angus Leeming  <leeming@lyx.org>
170
171         * PreviewLoader.C: greater use of STL algorithms.
172
173         * Previews.[Ch]: use const in more places.
174         (generateBufferPreviews): now takes a Buffer const & argument, not a
175         pointer.
176
177 2002-07-15  John Levon  <moz@compsoc.man.ac.uk>
178
179         * GraphicsImage.h: remove getPixmap/X, add isDrawable()
180
181 2002-07-12  Angus Leeming  <leeming@lyx.org>
182
183         * GraphicsLoader.[Ch]: smart loading of images. Images are loaded only
184         if visible 2 secs after the call to load them is first made.
185
186         * GraphicsSupport.[Ch]: new files. isInsetVisible interrogates the
187         BufferView to ascertain whether the inset is visible or not.
188
189         * Makefile.am: added GraphicsSupport.[Ch].
190
191         * PreviewImage.[Ch]: use this smart loader.
192
193         * PreviewLoader.C: don't load generated image files indiscimminantly.
194         Instead emit the imageReady signal and allow the image owner to decide.
195
196 2002-07-12  John Levon  <moz@compsoc.man.ac.uk>
197
198         * GraphicsCache.C: remove init_graphics()
199
200 2002-07-09  Angus Leeming  <leeming@lyx.org>
201
202         * PreviewLoader.C (setAscentFractions): fix bug due to use of integer
203         arithmetic when it should be floating.
204
205 2002-07-09  Angus Leeming  <leeming@lyx.org>
206
207         * PreviewLoader.C (startLoading): prepend LaTeX file with "\batchmode".
208         Output equation labels as "(#)" if lyxrc preference is set.
209         (setFontScalingFactor): use lyxrc variable preview_scale_factor
210         rather than hard-coding this.
211
212 2002-07-09  Angus Leeming  <leeming@lyx.org>
213
214         * PreviewLoader.C: Further refactoring of the code. Should now be
215         pretty clean.
216
217         * PreviewMetrics.[Ch]: removed. Had a v. short shelf life and is now
218         past its sell-by date. The code to read the metrics file is now found
219         as a helper function in PreviewLoader.C.
220
221         * GraphicsImageXPM.C (scale): use boost::tie.
222
223 2002-07-08  Herbert Voss  <voss@lyx.org>
224
225         * PreviewLoader.C: use of preview_size_factor to get the right
226         font-size! 0.9 is the default.
227
228 2002-07-08  Angus Leeming  <leeming@lyx.org>
229
230         * PreviewLoader.C: Add "delayed" and "showlabels" options to the
231         invocation of preview.sty.
232         Perform something of an internal clean-up.
233
234 2002-07-06  Angus Leeming  <leeming@lyx.org>
235
236         * PreviewLoader.C: ensure that the metrics data is used by the
237         correct image!
238
239         * PreviewLoader.C:
240         * PreviewImage.C: (Impl d-tor): remove all generated files that still
241         exist (perhaps because the process was curtailed before the images
242         were loaded.)
243
244         * PreviewLoader.C (unique_filename): store the files in Buffer::tmppath.
245
246 2002-07-05  Angus Leeming  <leeming@lyx.org>
247
248         * PreviewImage.h:
249         * PreviewImage.C:
250         * PreviewLoader.h:
251         * PreviewLoader.C:
252         * PreviewMetrics.h:
253         * PreviewMetrics.C:
254         * Previews.h:
255         * Previews.C: new files. The previewed LaTeX snippet stuff.
256
257         * Makefile.am: add these files.
258
259 2002-07-05  Angus Leeming  <leeming@lyx.org>
260
261         * GraphicsLoader.h: whitespace.
262
263 2002-07-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
264
265         * GraphicsImage.[Ch]: newImage and loadableFormats changed to
266         boost::function from boost::signal.
267
268 2002-07-01  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
269
270         * GraphicsConverter.C (convert): do not use ChangeExtension
271         because to_file_base may contain a dot.
272
273 2002-06-28  Angus Leeming  <leeming@lyx.org>
274
275         * GraphicsCacheItem.[Ch]: refactor some of the more convoluted logic
276         by moving those SignalPtrs into the grfx::Image and grfx::Converter
277         classes where they really belong.
278         Use the Pimpl idiom to hide the class internals from public view.
279
280         * GraphicsTypes: remove the typedefs, leaving only the enums.
281
282         * GraphicsImage.h: now has a finishedLoading signal, as opposed to being
283         passed a reference to one in the load() method.
284
285         * GraphicsConverter.[Ch]: totally refactored. An instance of
286         grfx::Converter now represents a single conversion process.
287         Thus grfx::CachItem now has a grfx::Converter * that is set when the
288         conversion is initiated and destroyed on completion.
289
290         * GraphicsCache.[Ch]:
291         * GraphicsCacheItem.[Ch]:
292         * GraphicsConverter.[Ch]:
293         * GraphicsLoader.[Ch]: use the Pimpl idiom to hide the class internals
294         from public view.
295         Note that I have done this only after making the above changes,
296         so not only should we have a clean, minimal and well documented
297         interface to these classes in the header files, but the class internals
298         should be much clearer too.
299
300         * Renamed classes
301         grfx::GCache -> grfx::Cache,
302         grfx::GCacheItem -> grfx::CacheItem,
303         grfx::GConverter -> grfx::Converter,
304         grfx::GImage -> grfx::Image,
305         grfx::GImageXPM -> grfx::ImageXPM,
306         grfx::GParams -> grfx::Params.
307
308 2002-06-26  Angus Leeming  <leeming@lyx.org>
309
310         * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
311         std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
312         compiles.
313
314 2002-06-26  Angus Leeming  <leeming@lyx.org>
315
316         * GraphicsTypes.h: add "Ready" to the ImageStatus enum.
317         move the DisplayType enum out of grfx::GParams to here.
318
319         * GraphicsCacheItem.h: re-write preliminary description to reflect
320         current reality.
321
322         * GraphicsParams.[Ch]:
323         * GraphicsImageXPM.C (load, setPixmap): changes aassociated with moving
324         grfx::DisplayType out of grfx::GParams.
325
326         * GraphicsLoader.[Ch]: new files. Factor out the image loading stuff
327         that was in frontends/screen.C and insets/insetgraphics.C into a
328         single, easy-to-use class.
329
330         * Makefile.am: add these files.
331
332 2002-06-25  Angus Leeming  <leeming@lyx.org>
333
334         * GraphicsCache.[Ch]:
335         * GraphicsCacheItem.[Ch]:
336         * GraphicsTypes.h: rewrite the graphics cache to just load a graphics
337         file into memory. The cache no longer controls the generation of the
338         pixmap. Instead, it just emits a signal when the loading status of an
339         image changes.
340         The cache no longer stores InsetGraphics pointers and nor does it
341         assume responsibility for modifying an image (scaling, rotating etc).
342         Instead, that must now be performed elsewhere.
343
344 2002-06-19  Angus Leeming  <leeming@lyx.org>
345
346         * GraphicsConverter.C: add using std::endl directive.
347
348 2002-06-17  Herbert Voss  <voss@lyx.org>
349
350         * GraphicsCachItem.C: (findTargetFormat)return xpm-format as a
351         default when nothing different was found
352         (convertToDisplayFormat): handle zipped files in the right way and
353         choose always convert as a default converter when no other
354         userdefined was found
355
356         * GraphicsConverter.C: add more lyxerr comments and choose
357         convert when no other userdefined converter was found
358
359 2002-06-10  Herbert Voss  <voss@lyx.org>
360
361         * GraphicsImageXPM.C (convertTo7chars): get another special color
362         format from convert work in the right way
363
364 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
365
366         * GraphicsCache.C: use right colormap incantation
367
368 2002-06-12  John Levon  <moz@compsoc.man.ac.uk>
369
370         * GraphicsCache.C: use lyx_gui namespace
371
372         * GraphicsImageXPM.C: back down to using xforms
373           directly again
374
375 2002-06-07  Angus Leeming  <leeming@lyx.org>
376
377         Fixes needed to compile with Compaq cxx 6.5.
378         * GraphicsConverter.h: forward declare class ConvProcess.
379
380         * GraphicsImageXPM.C:
381         all c-library variables have been moved into namespace std.
382         Wrap using std::xyz declarations inside a #ifndef CXX_GLOBAL_CSTD block.
383
384 2002-06-06  Angus Leeming  <a.leeming@ic.ac.uk>
385
386         * GraphicsImageXPM.C (rotate): rotate in the same sense as xdvi!
387
388 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
389
390         * GraphicsImageXPM.C: SigC to boot::signals changes.
391         (newImage): fix () bug when using new.
392
393 2002-05-29  Lars Gullik Bjønnes  <larsbj@birdstep.com>
394
395         * switch from SigC signals to boost::signals.
396
397 2002-05-29  André Pönitz <poenitz@gmx.net>
398
399         * GraphicsParam.C: remove unneeded #include, move vomment
400
401 2002-05-28  André Pönitz <poenitz@gmx.net>
402
403         * GraphicsParam.[Ch]: move inset related stuff to inset/insetgraphics
404
405 2002-05-24  John Levon  <moz@compsoc.man.ac.uk>
406
407         * GraphicsImageXPM.C: ColorHandler moved
408
409 2002-05-24  Juergen Vigna  <jug@sad.it>
410
411         * GraphicsCache.h:
412         * GraphicsImage.h: include LString.h first.
413
414 2002-05-22  Lars Gullik Bjønnes  <larsbj@birdstep.com>
415
416         * GraphicsCacheItem.h: use more specific smart_ptr header.
417         * GraphicsTypes.h: ditto
418         * GraphicsImage.h: ditto
419         * GraphicsConverter.h: ditto
420
421 2002-04-28  John Levon  <moz@compsoc.man.ac.uk>
422
423         * GraphicsImageXPM.C: understand convert's use of "opaque"
424           as a colour name
425
426 2002-04-19  Marco Morandini <morandini@aero.polimi.it>
427
428         * GraphicsCache.[Ch] (loadableFormats): new method. A wrapper for
429         GImage::loadableFormats() that ensures that the signal is connected
430         to the derived class' method.
431
432 2002-04-18  Lars Gullik Bjønnes  <larsbj@birdstep.com>
433
434         * GraphicsImageXPM.C (convertTo7chars): drop all conversions and
435         only work on the string.
436
437 2002-04-17  Angus Leeming  <a.leeming@ic.ac.uk>
438
439         * GraphicsImageXPM.C (Data::reset): Fix the loading of xpm files by
440         the simple image loader when it encounters colour strings like
441         #rrrrggggbbbb.
442
443 2002-04-16  Angus Leeming  <a.leeming@ic.ac.uk>
444
445         * GraphicsCacheItem.C (convertToDisplayFormat):
446         * GraphicsConverter.C (build_script): remove the Alerts when things go
447         wrong as the inset displays the message anyway. Moreover, Alert seems
448         pretty temperamemtal at the moment.
449
450 2002-04-16  Rob Lahaye  <lahaye@users.sourceforge.net>
451
452         * GraphicsImageXPM.C: fix clipping for boundingbox y-coordinates
453
454 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
455
456         * GraphicsCacheItem.C (findTargetFormat): fix bug waiting to bite:
457         a reference to a temp object that's going out of scope...
458
459 2002-04-09  Herbert Voss  <voss@lyx.org>
460
461         * GraphicsParams.C (BoundingBox c-tor): fix rounding errors by using
462         LyXLength::inBP instead of inPixels.
463
464 2002-04-10  Herbert Voss  <voss@perce.de>
465
466         * GraphicsCache.[Ch]:
467         * GraphicsCacheItem.[Ch]: add width/height functions from Angus
468         to read the "Bounding Box" from non (e)ps files.
469
470 2002-04-08  Angus Leeming  <a.leeming@ic.ac.uk>
471
472         * GraphicsParams.C (c-tor): if clipping, then check the Bounding Box of
473         the EPS file too, to ensure that the clipped Bounding Box is relative
474         to the original. (From Herbert.)
475
476 2002-04-04  Angus Leeming  <a.leeming@ic.ac.uk>
477
478         * GraphicsParams.C (BoundingBox c-tor): ensure that the member
479         variables are initialised. Clean-up parsing of the string (with thanks
480         to Herbert.)
481
482 2002-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
483
484         * GraphicsCacheItem.C (convertToDisplayFormat): don't launch that Alert
485         if the file can't be found.
486
487         * GraphicsParams.h (c-tor): remove string() as default argument.
488
489         * GraphicsCacheItem.C: a couple of changes as a result.
490
491 2002-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
492
493         * GraphicsCache.[Ch] (update): now passed filepath to determine absolute
494         path to graphics file.
495
496         * GraphicsParams.[Ch] (c-tor): now passed filepath.
497
498 2002-03-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
499
500         * most files: ws cleanup
501
502         * Makefile.am: remove ld -r stuff
503
504 2002-03-20  Lars Gullik Bjønnes  <larsbj@birdstep.com>
505
506         * Makefile.am: special rules if partial linking
507
508 2002-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
509
510         * GraphicsCache.C: use Lars' preferred idiom for a for-loop.
511
512 2002-03-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
513
514         * GraphicsConverter.[Ch] (converted): make first arg const ref.
515
516         * GraphicsCacheItem.h: doxy change
517
518         * GraphicsCacheItem.C: ws change
519
520 2002-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
521
522         * Makefile.am: if there is no image loading class leveraging the power
523         of the appropriate gui library, then compile the basic alternative
524         found in GraphicsImageXPM.[Ch].
525
526 2002-03-04  Angus Leeming  <a.leeming@ic.ac.uk>
527
528         * GraphicsCache.C: change associated with move of initialiseGraphics
529         to GUIRuntime.
530
531 2002-02-28  Angus Leeming  <a.leeming@ic.ac.uk>
532
533         * GraphicsParams.[Ch]:
534         * GraphicsImage.C:
535         * GraphicsImageXPM.C: properly resolve more warnings about comparison
536         between signed and unsigned integer expressions.
537
538         * Makefile.am: add GraphicsTypes.h which I'd carelessly left out.
539
540         * GraphicsCache.C: move connections to the GImage-derived classes to
541         the frontends.
542
543         * GraphicsImageXPM.C (copy c-tor): don't copy pixmap.
544
545         * GraphicsCacheItem.C (findTargetFormat): if we can load direct without
546         conversion, then do that.
547
548 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
549
550         * GraphicsCache.C: improve commentary to graphicsInit and where it
551         should really go.
552
553         * GraphicsImageXPM.C (~Data, free_color_table): resolve the crash
554         that became a memory leak properly. (Let the shared_c_ptr free the
555         color table.)
556         (reset, mapcolor): tidy up and introduce a work around for XPM files
557         with crappy color entries. Print out a nice friendly message on what's
558         gone wrong and how to resolve it properly.
559
560 2002-02-27  Angus Leeming  <a.leeming@ic.ac.uk>
561
562         * GraphicsImageXPM.[Ch]: more rigorous use of types (signed/unsigned).
563         (Data d-tor): introduce memory leak temporarily, to "fix" a crash
564         in free_color_table.
565         (unique_color_string): use the correct string c-tor.
566
567 2002-02-15  Angus Leeming  <a.leeming@ic.ac.uk>
568
569         * ImageLoader.[Ch]:
570         * ImageLoaderXPM.[Ch]: removed.
571
572         * GraphicsConverter.[Ch]:
573         * GraphicsImage.[Ch]:
574         * GraphicsImageXPM.[Ch]:
575         * GraphicsParams.[Ch]:
576         * GraphicsTypes.h: new files.
577
578         * All files. A total re-write of the graphics cache. The cache now
579         supports asynchronous file conversion and file loading. Images
580         can be cropped, rotated and scaled for display on the LyX screen.
581         The old LyXImage and ImageLoader have been combined in a new class
582         GImage. Ditto, ImageLoaderXPM's functionality has been moved into
583         GImageXPM.
584
585 2002-02-07  Herbert Voss  <voss@lyx.org>
586
587         * GraphicsCacheItem.C: use unzipFile() from support/filetools
588
589 2002-01-31  Herbert Voss  <voss@lyx.org>
590
591         * GraphicsCacheItem.h: handle filetype without the file extension;
592         getting type from contents; handle zipped files
593
594 2002-01-27  Herbert Voss  <voss@lyx.org>
595
596         * GraphicsCacheItem.h: added Converting to the ImageStatus enum.
597
598 2002-01-17  John Levon  <moz@compsoc.man.ac.uk>
599
600         * ImageLoaderXPM.C: don't set XpmColorKey flag if we don't use it
601
602 2001-12-19  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
603
604         * GraphicsCacheItem.h: do not include <config.h> in header files
605
606 2001-09-21  Angus Leeming  <a.leeming@ic.ac.uk>
607
608         * ImageLoaderXPM.C (runImageLoader): If the pixmap contains a
609         transparent colour, then set it to the colour of the background.
610         Also take account of the monochrome, grayscale of color
611         preferences option.
612
613 2001-09-20  Angus Leeming  <a.leeming@ic.ac.uk>
614
615         * GraphicsCacheItem.C (convertImage): only convert if "from" and "to"
616         are different. Thus, don't delete the "to" if it's the original!
617
618 2001-09-01  John Levon  <moz@compsoc.man.ac.uk>
619
620         * ImageLoadXPM.C: remove setting of alloc colour mask,
621           led to crash as we don't define a callback
622
623 2001-07-29  Baruch Even  <baruch@lyx.org>
624
625         * ImageLoaderXPM.C (runImageLoader): When loading agree to use non-exact
626         colors with closeness of 10000.
627
628         * GraphicsCacheItem.C: Fixed a compilation bug introduced earlier.
629
630 2001-07-29  Baruch Even  <baruch@lyx.org>
631
632         * GraphicsCacheItem.C (findTargetFormat): Removed error dialog box,
633         too annoying.
634
635 2001-07-23  Baruch Even  <baruch@lyx.org>
636
637         * GraphicsCacheItem.C (convertImage): Fixed a bug with regard to loading
638         the image after conversion.
639
640 2001-07-17  Baruch Even  <baruch@lyx.org>
641
642         * GraphicsCacheItem.h:
643         * GraphicsCacheItem.C: Shuffled things a bit to make it easier to switch
644         from synchronous to asynchronous and to ease the coming changes.
645
646 2001-07-03  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
647
648         * ImageLoaderXPM.C (runImageLoader): get display information from
649         GUIRunTime.
650
651 2001-06-14  Angus Leeming  <a.leeming@ic.ac.uk>
652
653         * GraphicsCache.C:
654         * GraphicsCacheItem.C:
655         * ImageLoader.C:
656         * ImageLoaderXPM.C: removed // -*- C++ -*- as first line.
657
658 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
659
660         * GraphicsCache.h: inherit privately from noncopyable
661         * ImageLoader.h: ditto
662         * GraphicsCacheItem.h: ditto
663
664 2001-04-16  Allan Rae  <rae@lyx.org>
665
666         * ImageLoaderXPM.C (runImageLoader): #warning triggers an error on Sun
667         CC 6.0 as an unrecognised preprocessor directive.  So ensure they're
668         wrapped.
669
670 2001-04-02  Baruch Even  <baruch@lyx.org>
671
672         * GraphicsCacheItem.[Ch]: Changed to used the Converter class instead
673         of hard coding ImageMagick.
674
675 2001-03-10  Baruch Even  <baruch@lyx.org>
676
677         * GraphicsCache.C: Style change from (*it).field to it->field
678
679 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
680
681         * GraphicsCache.h: noncopyable is in namespace boost
682         * ImageLoader.h: ditto
683         * GraphicsCacheItem.h: ditto
684
685 2001-03-07  Baruch Even  <baruch@lyx.org>
686
687         * GraphicsCache.C (d-tor): Removed the assert, the assumption it carried
688         was false and it's not needed anyhow since the shared_ptr's in the cache
689         will destroy everything on exit.
690
691 2001-02-28  Baruch Even  <baruch@ev-en.org>
692
693         * GraphicsCache.h:
694         * GraphicsCache.C: Changed the singleton pattern implementation, the
695         former version "leaked" in the sense that it was not deallocated at
696         program end.
697
698 2001-02-20  Baruch Even  <baruch@ev-en.org>
699
700         * GraphicsCache.C: Changed to use shared_ptr<GraphicsCacheItem>
701         instead of a pure pointer.
702
703         * GraphicsCacheItem.[Ch]:
704         * GraphicsCacheItem_pimpl.[Ch]: Collapsed them into GraphicsCacheItem,
705         removed the reference counting that was inside. Also fixed a bug where
706         a temporary file wouldn't get erased.
707
708         * ImageLoader.[Ch]: Changed the semantics of the image_ pointers usage.
709         Ownership is now dropped when the caller requests the image_ pointer.
710
711 2001-02-20  Baruch Even  <baruch@ev-en.org>
712
713         * GraphicsCache.C: Cleared up the confusion on when and how it is
714         emptied.
715
716         * GraphicsCacheItem.C: Indentation change.
717
718         * GraphicsCacheItem_pimpl.C: Fixed the loading logic so that it will
719         figure correctly when the image has been loaded successfully.
720
721 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
722
723         * ImageLoader.C: add a "using" directive.
724
725         * ImageLoader.h: remove extra comma at the end of enum; add an
726         std:: qualifier for vector.
727
728 2001-01-21  Baruch Even  <baruch@ev-en.org>
729
730         * GraphicsCacheItem.[Ch]: Changes due to the storage of width and
731         height in the image itself and minor cleanups.
732
733         * GraphicsCacheItem_impl.[Ch]: Changes due to the switch to use a
734         new ImageLoader class instead of the older Renderer class. This
735         means change of responsibilities.