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