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