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