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