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