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