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