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