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