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