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