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