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