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