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