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