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