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