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