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